use of io.jans.orm.annotation.ObjectClass in project jans by JanssenProject.
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, ObjectClass.class);
if (ldapObjectClass == null) {
return EMPTY_STRING_ARRAY;
}
if (StringHelper.isEmpty(((ObjectClass) ldapObjectClass).value())) {
return EMPTY_STRING_ARRAY;
}
return new String[] { ((ObjectClass) ldapObjectClass).value() };
}
Aggregations