Class ObjectClassHelper
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.helper.ObjectClassHelper
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
Modifier and TypeMethodDescriptionstatic voidaddToRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries) Inject the ObjectClass into the registries, updating the references to other SchemaObjectstatic voidremoveFromRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries) Remove the ObjectClass from the registries, updating the references to other SchemaObject.
-
Method Details
-
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
-