use of io.gravitee.management.service.exceptions.PolicyNotFoundException in project gravitee-management-rest-api by gravitee-io.
the class PolicyServiceImpl method findById.
@Override
public PolicyEntity findById(String policyId) {
LOGGER.debug("Find policy by ID: {}", policyId);
PolicyPlugin policyDefinition = policyManager.get(policyId);
if (policyDefinition == null) {
throw new PolicyNotFoundException(policyId);
}
return convert(policyDefinition, true);
}
Aggregations