org.apache.directory.server.core.schema
Class MetaSyntaxHandler

java.lang.Object
  extended by org.apache.directory.server.core.schema.AbstractSchemaChangeHandler
      extended by org.apache.directory.server.core.schema.MetaSyntaxHandler
All Implemented Interfaces:
SchemaChangeHandler

public class MetaSyntaxHandler
extends AbstractSchemaChangeHandler

A handler for operations peformed to add, delete, modify, rename and move schema normalizers.

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

Field Summary
 
Fields inherited from class org.apache.directory.server.core.schema.AbstractSchemaChangeHandler
factory, loader, m_oidAT, targetRegistries
 
Constructor Summary
MetaSyntaxHandler(Registries targetRegistries, PartitionSchemaLoader loader, SchemaPartitionDao dao)
           
 
Method Summary
 void add(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry)
           
 void add(org.apache.directory.shared.ldap.schema.Syntax syntax)
          Adds a syntax to this handler's registries if it's schema is enabled.
 void delete(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry, boolean cascade)
           
 void delete(org.apache.directory.shared.ldap.schema.Syntax syntax, boolean cascade)
           
protected  void modify(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry, ServerEntry targetEntry, boolean cascade)
           
 void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName, org.apache.directory.shared.ldap.name.LdapDN newParentName, org.apache.directory.shared.ldap.name.Rdn newRn, boolean deleteOldRn, ServerEntry entry, boolean cascade)
           
 void rename(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry, org.apache.directory.shared.ldap.name.Rdn newRdn, boolean cascade)
           
 void replace(org.apache.directory.shared.ldap.name.LdapDN oriChildName, org.apache.directory.shared.ldap.name.LdapDN newParentName, ServerEntry entry, boolean cascade)
           
 
Methods inherited from class org.apache.directory.server.core.schema.AbstractSchemaChangeHandler
checkOidIsUnique, checkOidIsUnique, checkOidIsUnique, getOid, getOids, getSchema, getSchemaName, modify, modify, registerOids, unregisterOids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaSyntaxHandler

public MetaSyntaxHandler(Registries targetRegistries,
                         PartitionSchemaLoader loader,
                         SchemaPartitionDao dao)
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

modify

protected void modify(org.apache.directory.shared.ldap.name.LdapDN name,
                      ServerEntry entry,
                      ServerEntry targetEntry,
                      boolean cascade)
               throws java.lang.Exception
Specified by:
modify in class AbstractSchemaChangeHandler
Throws:
java.lang.Exception

add

public void add(org.apache.directory.shared.ldap.name.LdapDN name,
                ServerEntry entry)
         throws java.lang.Exception
Throws:
java.lang.Exception

delete

public void delete(org.apache.directory.shared.ldap.name.LdapDN name,
                   ServerEntry entry,
                   boolean cascade)
            throws java.lang.Exception
Throws:
java.lang.Exception

delete

public void delete(org.apache.directory.shared.ldap.schema.Syntax syntax,
                   boolean cascade)
            throws java.lang.Exception
Throws:
java.lang.Exception

rename

public void rename(org.apache.directory.shared.ldap.name.LdapDN name,
                   ServerEntry entry,
                   org.apache.directory.shared.ldap.name.Rdn newRdn,
                   boolean cascade)
            throws java.lang.Exception
Throws:
java.lang.Exception

move

public void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName,
                 org.apache.directory.shared.ldap.name.LdapDN newParentName,
                 org.apache.directory.shared.ldap.name.Rdn newRn,
                 boolean deleteOldRn,
                 ServerEntry entry,
                 boolean cascade)
          throws java.lang.Exception
Throws:
java.lang.Exception

replace

public void replace(org.apache.directory.shared.ldap.name.LdapDN oriChildName,
                    org.apache.directory.shared.ldap.name.LdapDN newParentName,
                    ServerEntry entry,
                    boolean cascade)
             throws java.lang.Exception
Throws:
java.lang.Exception

add

public void add(org.apache.directory.shared.ldap.schema.Syntax syntax)
         throws java.lang.Exception
Adds a syntax to this handler's registries if it's schema is enabled. The OID is always registered with the OidRegistry regardless of the enabled state of the schema.

Parameters:
syntax - the syntax that is to be added to this handler's registries
Throws:
javax.naming.NamingException - if there are problems access schema data
java.lang.Exception


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