Class ObjectClassHelper
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.registries.helper.ObjectClassHelper
-
public final class ObjectClassHelper extends Object
An helper class used to store all the methods associated with an ObjectClass in relation with the Registries and SchemaManager.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addToRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)
Inject the ObjectClass into the registries, updating the references to other SchemaObjectstatic void
removeFromRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)
Remove the ObjectClass from the registries, updating the references to other SchemaObject.
-
-
-
Method Detail
-
addToRegistries
public static void addToRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)
Inject the ObjectClass into the registries, updating the references to other SchemaObject- Parameters:
objectClass
- The ObjectClass to add to the RegistrieserrorHandler
- Error handlerregistries
- The Registries
-
removeFromRegistries
public static void removeFromRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries) throws LdapException
Remove the ObjectClass from the registries, updating the references to other SchemaObject. If one of the referenced SchemaObject does not exist (SUPERIORS, MAY, MUST), an exception is thrown.- Parameters:
objectClass
- The ObjectClass to remove fro the registrieserrorHandler
- Error handlerregistries
- The Registries- Throws:
LdapException
- If the ObjectClass is not valid
-
-