|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.MetaSchemaHandler
public class MetaSchemaHandler
Handles events where entries of objectClass metaSchema are modified.
Constructor Summary | |
---|---|
MetaSchemaHandler(Registries globalRegistries,
PartitionSchemaLoader loader)
|
Method Summary | |
---|---|
void |
add(org.apache.directory.shared.ldap.name.LdapDN name,
ServerEntry entry)
Handles the addition of a metaSchema object to the schema partition. |
void |
delete(org.apache.directory.shared.ldap.name.LdapDN name,
ServerEntry entry,
boolean cascade)
Called to react to the deletion of a metaSchema object. |
void |
modify(org.apache.directory.shared.ldap.name.LdapDN name,
java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods,
ServerEntry entry,
ServerEntry targetEntry,
boolean cascade)
Reacts to modification of a metaSchema object. |
void |
modify(org.apache.directory.shared.ldap.name.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp,
ServerEntry mods,
ServerEntry entry,
ServerEntry targetEntry,
boolean cascade)
Reacts to modification of a metaSchema object. |
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 cascaded)
|
void |
move(org.apache.directory.shared.ldap.name.LdapDN oriChildName,
org.apache.directory.shared.ldap.name.LdapDN newParentName,
java.lang.String newRn,
boolean deleteOldRn,
ServerEntry entry,
boolean cascade)
Moves are not allowed for metaSchema objects so this always throws an UNWILLING_TO_PERFORM LdapException. |
void |
rename(org.apache.directory.shared.ldap.name.LdapDN name,
ServerEntry entry,
org.apache.directory.shared.ldap.name.Rdn newRdn,
boolean cascade)
Responds to the rdn (commonName) of the metaSchema object being changed. |
void |
replace(org.apache.directory.shared.ldap.name.LdapDN oriChildName,
org.apache.directory.shared.ldap.name.LdapDN newParentName,
ServerEntry entry,
boolean cascade)
Moves are not allowed for metaSchema objects so this always throws an UNWILLING_TO_PERFORM LdapException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaSchemaHandler(Registries globalRegistries, PartitionSchemaLoader loader) throws javax.naming.NamingException
javax.naming.NamingException
Method Detail |
---|
public void modify(org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation modOp, ServerEntry mods, ServerEntry entry, ServerEntry targetEntry, boolean cascade) throws java.lang.Exception
modify
in interface SchemaChangeHandler
name
- the dn of the metaSchema object modifiedmodOp
- the type of modification operation being performedmods
- the attribute modifications as an Attributes objectentry
- the entry after the modifications have been applied
java.lang.Exception
public void modify(org.apache.directory.shared.ldap.name.LdapDN name, java.util.List<org.apache.directory.shared.ldap.entry.Modification> mods, ServerEntry entry, ServerEntry targetEntry, boolean cascade) throws java.lang.Exception
modify
in interface SchemaChangeHandler
name
- the dn of the metaSchema object modifiedmods
- the attribute modifications as an ModificationItem arryentry
- the entry after the modifications have been applied
java.lang.Exception
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 cascaded) throws javax.naming.NamingException
move
in interface SchemaChangeHandler
javax.naming.NamingException
public void add(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry) throws java.lang.Exception
add
in interface SchemaChangeHandler
name
- the dn of the new metaSchema objectentry
- the attributes of the new metaSchema object
java.lang.Exception
public void delete(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry, boolean cascade) throws java.lang.Exception
delete
in interface SchemaChangeHandler
name
- the dn of the metaSchema object being deletedentry
- the attributes of the metaSchema object
java.lang.Exception
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
rename
in interface SchemaChangeHandler
name
- the dn of the metaSchema object renamedentry
- the entry of the metaSchema object before the renamenewRdn
- the new commonName of the metaSchema object
java.lang.Exception
public void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName, org.apache.directory.shared.ldap.name.LdapDN newParentName, java.lang.String newRn, boolean deleteOldRn, ServerEntry entry, boolean cascade) throws javax.naming.NamingException
javax.naming.NamingException
public void replace(org.apache.directory.shared.ldap.name.LdapDN oriChildName, org.apache.directory.shared.ldap.name.LdapDN newParentName, ServerEntry entry, boolean cascade) throws javax.naming.NamingException
replace
in interface SchemaChangeHandler
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |