org.apache.directory.server.core.schema.registries.synchronizers
Interface RegistrySynchronizer

All Known Implementing Classes:
AbstractRegistrySynchronizer, AttributeTypeSynchronizer, ComparatorSynchronizer, DitContentRuleSynchronizer, DitStructureRuleSynchronizer, MatchingRuleSynchronizer, MatchingRuleUseSynchronizer, NameFormSynchronizer, NormalizerSynchronizer, ObjectClassSynchronizer, SchemaSynchronizer, SyntaxCheckerSynchronizer, SyntaxSynchronizer

public interface RegistrySynchronizer

Interface used to detect and react to changes performed on schema entities to update registries so they're synchronized with entries on disk.

Version:
$Rev$
Author:
Apache Directory Project

Field Summary
static boolean SCHEMA_MODIFIED
          A constant to tell the caller that the schema has been modified
static boolean SCHEMA_UNCHANGED
          A constant to tell the caller that the schema has not been modified
 
Method Summary
 void add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
          Adds a new SchemaObject to its registry
 void delete(org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascaded)
          Delete the schema object and update the registries
 boolean modify(ModifyOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry targetEntry, boolean cascaded)
          Applies a set of modification to an entry
 void move(org.apache.directory.shared.ldap.name.DN oriChildName, org.apache.directory.shared.ldap.name.DN newParentName, org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascaded)
           
 void moveAndRename(org.apache.directory.shared.ldap.name.DN oriChildName, org.apache.directory.shared.ldap.name.DN newParentName, org.apache.directory.shared.ldap.name.RDN newRn, boolean deleteOldRn, org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascaded)
           
 void rename(org.apache.directory.shared.ldap.entry.ServerEntry entry, org.apache.directory.shared.ldap.name.RDN newRdn, boolean cascaded)
          Rename a schemaObject.
 

Field Detail

SCHEMA_MODIFIED

static final boolean SCHEMA_MODIFIED
A constant to tell the caller that the schema has been modified

See Also:
Constant Field Values

SCHEMA_UNCHANGED

static final boolean SCHEMA_UNCHANGED
A constant to tell the caller that the schema has not been modified

See Also:
Constant Field Values
Method Detail

add

void add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
         throws java.lang.Exception
Adds a new SchemaObject to its registry

Parameters:
entry - The SchemObject to add
Throws:
java.lang.Exception - If the addition failed

delete

void delete(org.apache.directory.shared.ldap.entry.ServerEntry entry,
            boolean cascaded)
            throws java.lang.Exception
Delete the schema object and update the registries

Parameters:
entry - The entry associated with the SchemaObject to delete
cascaded - unused
Throws:
java.lang.Exception - If the deletion failed

rename

void rename(org.apache.directory.shared.ldap.entry.ServerEntry entry,
            org.apache.directory.shared.ldap.name.RDN newRdn,
            boolean cascaded)
            throws java.lang.Exception
Rename a schemaObject. It is not supposed to have any child

Parameters:
entry - The entry to be renamed
newRdn - The new entry name
cascaded - unused
Throws:
java.lang.Exception - If the rename failed

modify

boolean modify(ModifyOperationContext opContext,
               org.apache.directory.shared.ldap.entry.ServerEntry targetEntry,
               boolean cascaded)
               throws java.lang.Exception
Applies a set of modification to an entry

Parameters:
opContext - The OperationContext, which contains the entry and the modifications to apply
targetEntry - The modified entry
cascaded - Unused
Returns:
True if the modification has been done
Throws:
java.lang.Exception - If the modification failed

moveAndRename

void moveAndRename(org.apache.directory.shared.ldap.name.DN oriChildName,
                   org.apache.directory.shared.ldap.name.DN newParentName,
                   org.apache.directory.shared.ldap.name.RDN newRn,
                   boolean deleteOldRn,
                   org.apache.directory.shared.ldap.entry.ServerEntry entry,
                   boolean cascaded)
                   throws java.lang.Exception
Throws:
java.lang.Exception

move

void move(org.apache.directory.shared.ldap.name.DN oriChildName,
          org.apache.directory.shared.ldap.name.DN newParentName,
          org.apache.directory.shared.ldap.entry.ServerEntry entry,
          boolean cascaded)
          throws java.lang.Exception
Throws:
java.lang.Exception


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