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 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 Registries
      errorHandler - Error handler
      registries - 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 registries
      errorHandler - Error handler
      registries - The Registries
      Throws:
      LdapException - If the ObjectClass is not valid