org.apache.directory.api.ldap.model.schema.registries.helper
Class AttributeTypeHelper

java.lang.Object
  extended by 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

Constructor Summary
AttributeTypeHelper()
           
 
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
 

Constructor Detail

AttributeTypeHelper

public AttributeTypeHelper()
Method Detail

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 Registries
errors - The errors we got while adding the AttributeType to the Registries
registries - 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 Registries
errors - The errors we got while removing the AttributeType from the Registries
registries - The Registries
Throws:
If - the AttributeType is not valid
LdapException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.