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
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGA logger for this class
-
Constructor Summary
Constructors Modifier Constructor Description privateObjectClassHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddToRegistries(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)Inject the ObjectClass into the registries, updating the references to other SchemaObjectprivate static voidbuildMay(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)Build and check the MAY AT for this ObjectClassprivate static voidbuildMust(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)Build and check the MUST AT for this ObjectClass.private static voidbuildSuperiors(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)Build the references to this ObjectClass SUPERIORS, checking that the type hierarchy is correct.static voidremoveFromRegistries(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
-
buildSuperiors
private static void buildSuperiors(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)
Build the references to this ObjectClass SUPERIORS, checking that the type hierarchy is correct.- Parameters:
objectClass- The oOjectClass to processerrorHandler- The error handlerregistries- The Registries instance
-
buildMust
private static void buildMust(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)
Build and check the MUST AT for this ObjectClass.- Parameters:
objectClass- The oOjectClass to processerrorHandler- The error handlerregistries- The Registries instance
-
buildMay
private static void buildMay(ObjectClass objectClass, SchemaErrorHandler errorHandler, Registries registries)
Build and check the MAY AT for this ObjectClass- Parameters:
objectClass- The oOjectClass to processerrorHandler- The error handlerregistries- The Registries instance
-
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
-
-