org.opends.server.core
Class BaseDnRegistry

java.lang.Object
  extended by org.opends.server.core.BaseDnRegistry

public class BaseDnRegistry
extends java.lang.Object

Registry for maintaining the set of registered base DN's, assocated backends and naming context information.


Method Summary
 java.util.List<Message> deregisterBaseDN(DN baseDN)
          Deregisters a base DN with this registry.
 java.util.List<Message> registerBaseDN(DN baseDN, Backend backend, boolean isPrivate)
          Registers a base DN with this registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerBaseDN

public java.util.List<Message> registerBaseDN(DN baseDN,
                                              Backend backend,
                                              boolean isPrivate)
                                       throws DirectoryException
Registers a base DN with this registry.

Parameters:
baseDN - to register
backend - with which the base DN is assocated
isPrivate - indicates whether or not this base DN is private
Returns:
list of error messages generated by registering the base DN that should be logged if the changes to this registry are committed to the server
Throws:
DirectoryException - if the base DN cannot be registered

deregisterBaseDN

public java.util.List<Message> deregisterBaseDN(DN baseDN)
                                         throws DirectoryException
Deregisters a base DN with this registry.

Parameters:
baseDN - to deregister
Returns:
list of error messages generated by deregistering the base DN that should be logged if the changes to this registry are committed to the server
Throws:
DirectoryException - if the base DN could not be deregistered