org.apache.directory.api.ldap.model.schema.registries.helper
Class MatchingRuleHelper
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.helper.MatchingRuleHelper
public class MatchingRuleHelper
- extends Object
An helper class used to store all the methods associated with an MatchingRule
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 |
MatchingRuleHelper
public MatchingRuleHelper()
addToRegistries
public static void addToRegistries(MutableMatchingRule matchingRule,
List<Throwable> errors,
Registries registries)
throws LdapException
- Inject the MatchingRule into the Registries, updating the references to
other SchemaObject
- Parameters:
matchingRule - The MatchingRule to add to the Registrieserrors - The errors we got while adding the MatchingRule to the registriesregistries - The Registries
- Throws:
If - the addition failed
LdapException
removeFromRegistries
public static void removeFromRegistries(MatchingRule matchingRule,
List<Throwable> errors,
Registries registries)
throws LdapException
- Remove the MatchingRule from the Registries, updating the references to
other SchemaObject.
If one of the referenced SchemaObject does not exist,
an exception is thrown.
- Parameters:
matchingRule - The MatchingRule to remove from the Registrieserrors - The errors we got while removing the MatchingRule from the registriesregistries - The Registries
- Throws:
If - the MatchingRule is not valid
LdapException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.