Class MatchingRuleHelper
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.helper.MatchingRuleHelper
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
Modifier and TypeMethodDescriptionstatic voidaddToRegistries(MatchingRule matchingRule, SchemaErrorHandler errorHandler, Registries registries) Inject the MatchingRule into the Registries, updating the references to other SchemaObjectstatic voidremoveFromRegistries(MatchingRule matchingRule, SchemaErrorHandler errorHandler, Registries registries) Remove the MatchingRule from the Registries, updating the references to other SchemaObject.
-
Method Details
-
addToRegistries
public static void addToRegistries(MatchingRule 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
-