Class ObjectClassHelper

    • 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 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