org.apache.directory.api.ldap.model.schema.registries.helper
Class AttributeTypeHelper
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.helper.AttributeTypeHelper
public 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 |
static void |
addToRegistries(MutableAttributeType attributeType,
List<Throwable> errors,
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,
List<Throwable> errors,
Registries registries)
Remove the AttributeType from the registries, updating the references to
other SchemaObject. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeTypeHelper
public AttributeTypeHelper()
addToRegistries
public static void addToRegistries(MutableAttributeType attributeType,
List<Throwable> errors,
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 Registrieserrors - The errors we got while adding the AttributeType to the Registriesregistries - The Registries
- Throws:
If - the AttributeType is not valid
LdapException
removeFromRegistries
public static void removeFromRegistries(AttributeType attributeType,
List<Throwable> errors,
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 Registrieserrors - The errors we got while removing the AttributeType from the Registriesregistries - The Registries
- Throws:
If - the AttributeType is not valid
LdapException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.