Class MatchingRuleHelper
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.registries.helper.MatchingRuleHelper
-
public final 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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addToRegistries(MutableMatchingRule matchingRule, SchemaErrorHandler errorHandler, Registries registries)
Inject the MatchingRule into the Registries, updating the references to other SchemaObjectstatic void
removeFromRegistries(MatchingRule matchingRule, SchemaErrorHandler errorHandler, Registries registries)
Remove the MatchingRule from the Registries, updating the references to other SchemaObject.
-
-
-
Method Detail
-
addToRegistries
public static void addToRegistries(MutableMatchingRule matchingRule, SchemaErrorHandler errorHandler, Registries registries) throws LdapException
Inject the MatchingRule into the Registries, updating the references to other SchemaObject- Parameters:
matchingRule
- The MatchingRule to add to the RegistrieserrorHandler
- Error handlerregistries
- The Registries- Throws:
LdapException
- If the addition failed
-
removeFromRegistries
public static void removeFromRegistries(MatchingRule matchingRule, SchemaErrorHandler errorHandler, Registries registries)
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 RegistrieserrorHandler
- Error handlerregistries
- The Registries
-
-