Class LdapSyntaxHelper
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.registries.helper.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addToRegistries(LdapSyntax ldapSyntax, SchemaErrorHandler errorHandler, Registries registries)
Inject the LdapSyntax into the registries, updating the references to other SchemaObjectstatic void
removeFromRegistries(LdapSyntax ldapSyntax, SchemaErrorHandler errorHandler, Registries registries)
Remove the LdapSyntax from the Registries, updating the references to other SchemaObject.
-
-
-
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 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
-
-