use of org.gluu.site.ldap.persistence.annotation.LdapObjectClass in project oxCore by GluuFederation.
the class AbstractEntryManager method getTypeObjectClasses.
protected String[] getTypeObjectClasses(Class<?> entryClass) {
// Check if entry is LDAP Entry
List<Annotation> entryAnnotations = ReflectHelper.getClassAnnotations(entryClass, LDAP_ENTRY_TYPE_ANNOTATIONS);
// Get object classes
Annotation ldapObjectClass = ReflectHelper.getAnnotationByType(entryAnnotations, LdapObjectClass.class);
if (ldapObjectClass == null) {
return EMPTY_STRING_ARRAY;
}
return ((LdapObjectClass) ldapObjectClass).values();
}
use of org.gluu.site.ldap.persistence.annotation.LdapObjectClass in project oxCore by GluuFederation.
the class BaseEntryManager method getTypeObjectClasses.
protected String[] getTypeObjectClasses(Class<?> entryClass) {
// Check if entry is LDAP Entry
List<Annotation> entryAnnotations = ReflectHelper.getClassAnnotations(entryClass, LDAP_ENTRY_TYPE_ANNOTATIONS);
// Get object classes
Annotation ldapObjectClass = ReflectHelper.getAnnotationByType(entryAnnotations, LdapObjectClass.class);
if (ldapObjectClass == null) {
return EMPTY_STRING_ARRAY;
}
return ((LdapObjectClass) ldapObjectClass).values();
}
Aggregations