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

java.lang.Object
  extended by org.apache.directory.api.ldap.model.schema.registries.helper.LdapSyntaxHelper

public 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

Constructor Summary
LdapSyntaxHelper()
           
 
Method Summary
static void addToRegistries(LdapSyntax ldapSyntax, List<Throwable> errors, Registries registries)
          Inject the LdapSyntax into the registries, updating the references to other SchemaObject
static void removeFromRegistries(LdapSyntax ldapSyntax, List<Throwable> errors, Registries registries)
          Remove the LdapSyntax 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

LdapSyntaxHelper

public LdapSyntaxHelper()
Method Detail

addToRegistries

public static void addToRegistries(LdapSyntax ldapSyntax,
                                   List<Throwable> errors,
                                   Registries registries)
                            throws LdapException
Inject the LdapSyntax into the registries, updating the references to other SchemaObject

Parameters:
ldapSyntax - The LdapSyntax to add to the Registries
errors - The errors we got while adding the LdapSyntax to the Registries
registries - The Registries
Throws:
If - the addition failed
LdapException

removeFromRegistries

public static void removeFromRegistries(LdapSyntax ldapSyntax,
                                        List<Throwable> errors,
                                        Registries registries)
                                 throws LdapException
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 Registries
errors - The errors we got while removing the LdapSyntax from the Registries
registries - The Registries
Throws:
If - the LdapSyntax is not valid
LdapException


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