Class LdapSyntaxHelper

    • 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