use of org.gluu.site.ldap.persistence.annotation.LdapEntry in project oxCore by GluuFederation.
the class AbstractEntryManager method getEntrySortBy.
protected String[] getEntrySortBy(Class<?> entryClass) {
if (entryClass == null) {
throw new MappingException("Entry class is null");
}
// Check if entry is LDAP Entry
List<Annotation> entryAnnotations = ReflectHelper.getClassAnnotations(entryClass, LDAP_ENTRY_TYPE_ANNOTATIONS);
Annotation annotation = ReflectHelper.getAnnotationByType(entryAnnotations, LdapEntry.class);
if (annotation == null) {
return null;
}
return ((LdapEntry) annotation).sortBy();
}
Aggregations