use of org.xdi.model.SchemaEntry in project oxCore by GluuFederation.
the class SchemaService method removeObjectClassWithDefinition.
private void removeObjectClassWithDefinition(String objectClassDefinition) {
SchemaEntry schemaEntry = new SchemaEntry();
schemaEntry.setDn(getDnForSchema());
schemaEntry.addObjectClass(objectClassDefinition);
log.debug("Removing objectClass: {}", schemaEntry);
ldapEntryManager.remove(schemaEntry);
}
use of org.xdi.model.SchemaEntry in project oxCore by GluuFederation.
the class SchemaService method removeObjectClass.
/**
* Remove object class
*
* @param objectClass
* Object class name
*/
public void removeObjectClass(String objectClass) {
SchemaEntry schema = getSchema();
String objectClassDefinition = getObjectClassDefinition(schema, objectClass);
if (objectClassDefinition != null) {
removeObjectClassWithDefinition(objectClassDefinition);
}
}
Aggregations