use of org.xdi.oxauth.model.uma.persistence.ResourceSetPermission in project oxAuth by GluuFederation.
the class ResourceSetPermissionManager method getResourceSetPermissionByConfigurationCode.
public ResourceSetPermission getResourceSetPermissionByConfigurationCode(String p_configurationCode, String clientDn) {
try {
final Filter filter = Filter.create(String.format("&(oxConfigurationCode=%s)", p_configurationCode));
final List<ResourceSetPermission> entries = ldapEntryManager.findEntries(clientDn, ResourceSetPermission.class, filter);
if (entries != null && !entries.isEmpty()) {
return entries.get(0);
}
} catch (Exception e) {
log.trace(e.getMessage(), e);
}
return null;
}
Aggregations