org.apache.directory.server.core.schema.registries.synchronizers
Class RegistrySynchronizerAdaptor

java.lang.Object
  extended by org.apache.directory.server.core.schema.registries.synchronizers.RegistrySynchronizerAdaptor

public class RegistrySynchronizerAdaptor
extends java.lang.Object

Central point of control for schemas enforced by the server. The following duties are presently performed by this class:

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
RegistrySynchronizerAdaptor(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
           
 
Method Summary
 void add(AddOperationContext opContext)
          Add a new SchemaObject or a new Schema in the Schema partition.
 void delete(DeleteOperationContext opContext, boolean doCascadeDelete)
          
 boolean modify(ModifyOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry targetEntry, boolean doCascadeModify)
          Modify the schema
 void move(MoveOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade)
           
 void moveAndRename(MoveAndRenameOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade)
           
 void rename(RenameOperationContext opContext, boolean doCascadeModify)
          Rename a Schema Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrySynchronizerAdaptor

public RegistrySynchronizerAdaptor(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
                            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

add

public void add(AddOperationContext opContext)
         throws java.lang.Exception
Add a new SchemaObject or a new Schema in the Schema partition.

Parameters:
opContext - The Add context, containing the entry to be added
Throws:
java.lang.Exception - If the addition failed

delete

public void delete(DeleteOperationContext opContext,
                   boolean doCascadeDelete)
            throws java.lang.Exception

Throws:
java.lang.Exception

modify

public boolean modify(ModifyOperationContext opContext,
                      org.apache.directory.shared.ldap.entry.ServerEntry targetEntry,
                      boolean doCascadeModify)
               throws java.lang.Exception
Modify the schema

Parameters:
opContext - The context
targetEntry - The modified entry
doCascadeModify - Not used
Throws:
java.lang.Exception - If the modification failed

rename

public void rename(RenameOperationContext opContext,
                   boolean doCascadeModify)
            throws java.lang.Exception
Rename a Schema Object.

Parameters:
opContext - The contect contaoning the rename informations
doCascadeModify - unused
Throws:
java.lang.Exception - If the rename failed

move

public void move(MoveOperationContext opContext,
                 org.apache.directory.shared.ldap.entry.ServerEntry entry,
                 boolean cascade)
          throws java.lang.Exception
Throws:
java.lang.Exception

moveAndRename

public void moveAndRename(MoveAndRenameOperationContext opContext,
                          org.apache.directory.shared.ldap.entry.ServerEntry entry,
                          boolean cascade)
                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.