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

java.lang.Object
  extended by 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

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

MatchingRuleHelper

public MatchingRuleHelper()
Method Detail

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 Registries
errors - The errors we got while adding the MatchingRule to the registries
registries - 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 Registries
errors - The errors we got while removing the MatchingRule from the registries
registries - The Registries
Throws:
If - the MatchingRule is not valid
LdapException


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