Class AttributeTypeHelper
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.registries.helper.AttributeTypeHelper
-
public final class AttributeTypeHelper extends Object
An helper class used to store all the methods associated with an AttributeType 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(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
Inject the AttributeType into the Registries, updating the references to other SchemaObject If one of the referenced SchemaObject does not exist (SUP, EQUALITY, ORDERING, SUBSTR, SYNTAX), an exception is thrown.static void
removeFromRegistries(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
Remove the AttributeType from the registries, updating the references to other SchemaObject.
-
-
-
Method Detail
-
addToRegistries
public static void addToRegistries(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries) throws LdapException
Inject the AttributeType into the Registries, updating the references to other SchemaObject If one of the referenced SchemaObject does not exist (SUP, EQUALITY, ORDERING, SUBSTR, SYNTAX), an exception is thrown.- Parameters:
attributeType
- The AttributeType to add to the RegistrieserrorHandler
- Error handlerregistries
- The Registries- Throws:
LdapException
- If the AttributeType is not valid
-
removeFromRegistries
public static void removeFromRegistries(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries) throws LdapException
Remove the AttributeType from the registries, updating the references to other SchemaObject. If one of the referenced SchemaObject does not exist (SUP, EQUALITY, ORDERING, SUBSTR, SYNTAX), an exception is thrown.- Parameters:
attributeType
- The AttributeType to remove from the RegistrieserrorHandler
- Error handlerregistries
- The Registries- Throws:
LdapException
- If the AttributeType is not valid
-
-