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