Class LdapSyntaxHelper


  • public final class LdapSyntaxHelper
    extends Object
    An helper class used to store all the methods associated with an LdapSyntax in relation with the Registries and SchemaManager.
    Author:
    Apache Directory Project
    • Method Detail

      • addToRegistries

        public static void addToRegistries​(LdapSyntax ldapSyntax,
                                           SchemaErrorHandler errorHandler,
                                           Registries registries)
                                    throws LdapException
        Inject the LdapSyntax into the registries, updating the references to other SchemaObject
        Parameters:
        ldapSyntax - The LdapSyntax to add to the Registries
        errorHandler - Error handler
        registries - The Registries
        Throws:
        LdapException - If the addition failed
      • removeFromRegistries

        public static void removeFromRegistries​(LdapSyntax ldapSyntax,
                                                SchemaErrorHandler errorHandler,
                                                Registries registries)
        Remove the LdapSyntax from the Registries, updating the references to other SchemaObject. If one of the referenced SchemaObject does not exist, an exception is thrown.
        Parameters:
        ldapSyntax - The LdapSyntax to remove from the Registries
        errorHandler - Error handler
        registries - The Registries