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

java.lang.Object
  extended by org.apache.directory.server.core.schema.registries.synchronizers.AbstractRegistrySynchronizer
      extended by org.apache.directory.server.core.schema.registries.synchronizers.NameFormSynchronizer
All Implemented Interfaces:
RegistrySynchronizer

public class NameFormSynchronizer
extends AbstractRegistrySynchronizer

A schema entity change handler for NameForms.

Version:
$Rev$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.server.core.schema.registries.synchronizers.AbstractRegistrySynchronizer
factory, m_oidAT, schemaManager
 
Fields inherited from interface org.apache.directory.server.core.schema.registries.synchronizers.RegistrySynchronizer
SCHEMA_MODIFIED, SCHEMA_UNCHANGED
 
Constructor Summary
protected NameFormSynchronizer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
          Creates a new instance of NameFormSynchronizer.
 
Method Summary
 void add(org.apache.directory.shared.ldap.schema.NameForm nf)
           
 void add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
          Adds a new SchemaObject to its registry
 void delete(org.apache.directory.shared.ldap.schema.NameForm nf, boolean cascade)
           
 void delete(org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade)
          Delete the schema object and update the registries
 boolean modify(ModifyOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry targetEntry, boolean cascade)
          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 cascade)
           
 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 cascade)
           
 void rename(org.apache.directory.shared.ldap.entry.ServerEntry entry, org.apache.directory.shared.ldap.name.RDN newRdn, boolean cascade)
          Rename a schemaObject.
 
Methods inherited from class org.apache.directory.server.core.schema.registries.synchronizers.AbstractRegistrySynchronizer
addToSchema, checkOidExists, checkOidIsUnique, checkOidIsUnique, checkOidIsUnique, checkParent, deleteFromSchema, getOid, getOids, getReferenced, getSchemaName, isSchemaEnabled, isSchemaLoaded, isSchemaLoaded, registerOids, unregisterOids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameFormSynchronizer

protected NameFormSynchronizer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
                        throws java.lang.Exception
Creates a new instance of NameFormSynchronizer.

Parameters:
schemaManager - The global schemaManager
Throws:
java.lang.Exception - If the initialization failed
Method Detail

modify

public boolean modify(ModifyOperationContext opContext,
                      org.apache.directory.shared.ldap.entry.ServerEntry targetEntry,
                      boolean cascade)
               throws javax.naming.NamingException
Applies a set of modification to an entry

Specified by:
modify in interface RegistrySynchronizer
Specified by:
modify in class AbstractRegistrySynchronizer
Parameters:
opContext - The OperationContext, which contains the entry and the modifications to apply
targetEntry - The modified entry
cascade - Unused
Returns:
True if the modification has been done
Throws:
javax.naming.NamingException

add

public void add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
         throws javax.naming.NamingException
Adds a new SchemaObject to its registry

Parameters:
entry - The SchemObject to add
Throws:
javax.naming.NamingException

delete

public void delete(org.apache.directory.shared.ldap.entry.ServerEntry entry,
                   boolean cascade)
            throws javax.naming.NamingException
Delete the schema object and update the registries

Parameters:
entry - The entry associated with the SchemaObject to delete
cascade - unused
Throws:
javax.naming.NamingException

moveAndRename

public 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 cascade)
                   throws javax.naming.NamingException
Throws:
javax.naming.NamingException

move

public 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 cascade)
          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

rename

public void rename(org.apache.directory.shared.ldap.entry.ServerEntry entry,
                   org.apache.directory.shared.ldap.name.RDN newRdn,
                   boolean cascade)
            throws javax.naming.NamingException
Rename a schemaObject. It is not supposed to have any child

Parameters:
entry - The entry to be renamed
newRdn - The new entry name
cascade - unused
Throws:
javax.naming.NamingException

add

public void add(org.apache.directory.shared.ldap.schema.NameForm nf)

delete

public void delete(org.apache.directory.shared.ldap.schema.NameForm nf,
                   boolean cascade)


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