Class LdapSyntaxHelper
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.helper.LdapSyntaxHelper
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 Summary
Modifier and TypeMethodDescriptionstatic voidaddToRegistries(LdapSyntax ldapSyntax, SchemaErrorHandler errorHandler, Registries registries) Inject the LdapSyntax into the registries, updating the references to other SchemaObjectstatic voidremoveFromRegistries(LdapSyntax ldapSyntax, SchemaErrorHandler errorHandler, Registries registries) Remove the LdapSyntax from the Registries, updating the references to other SchemaObject.
-
Method Details
-
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 RegistrieserrorHandler- Error handlerregistries- 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 RegistrieserrorHandler- Error handlerregistries- The Registries
-