|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.registries.synchronizers.SchemaSynchronizer
public class SchemaSynchronizer
This class handle modifications made on a global schema. Modifications made on SchemaObjects are handled by the specific shcemaObject synchronizers.
Field Summary |
---|
Fields inherited from interface org.apache.directory.server.core.schema.registries.synchronizers.RegistrySynchronizer |
---|
SCHEMA_MODIFIED, SCHEMA_UNCHANGED |
Constructor Summary | |
---|---|
SchemaSynchronizer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates and initializes a new instance of Schema synchronizer |
Method Summary | |
---|---|
void |
add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Handles the addition of a metaSchema object to the schema partition. |
void |
delete(org.apache.directory.shared.ldap.entry.ServerEntry entry,
boolean cascade)
Called to react to the deletion of a metaSchema object. |
boolean |
modify(ModifyOperationContext opContext,
org.apache.directory.shared.ldap.entry.ServerEntry targetEntry,
boolean cascade)
The only modification done on a schema element is on the m-disabled attributeType Depending in the existence of this attribute in the previous entry, we will have to update the entry or not. |
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)
Moves are not allowed for metaSchema objects so this always throws an UNWILLING_TO_PERFORM LdapException. |
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 |
moveAndRename(org.apache.directory.shared.ldap.name.DN oriChildName,
org.apache.directory.shared.ldap.name.DN newParentName,
java.lang.String newRn,
boolean deleteOldRn,
org.apache.directory.shared.ldap.entry.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.entry.ServerEntry entry,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean cascade)
Responds to the rdn (commonName) of the metaSchema object being changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaSynchronizer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws java.lang.Exception
registries
- The Registriesloader
- The schema loader
java.lang.Exception
- If something went wrongMethod Detail |
---|
public boolean modify(ModifyOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry targetEntry, boolean cascade) throws java.lang.Exception
modify
in interface RegistrySynchronizer
opContext
- The OperationContext, which contains the entry and the modifications to applytargetEntry
- The modified entrycascade
- Unused
java.lang.Exception
- If the modification failedpublic 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 org.apache.directory.shared.ldap.exception.LdapException
moveAndRename
in interface RegistrySynchronizer
org.apache.directory.shared.ldap.exception.LdapException
public void add(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws java.lang.Exception
add
in interface RegistrySynchronizer
name
- the dn of the new metaSchema objectentry
- the attributes of the new metaSchema object
java.lang.Exception
- If the addition failedpublic void delete(org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade) throws java.lang.Exception
delete
in interface RegistrySynchronizer
name
- the dn of the metaSchema object being deletedentry
- the attributes of the metaSchema object
java.lang.Exception
- If the deletion failedpublic void rename(org.apache.directory.shared.ldap.entry.ServerEntry entry, org.apache.directory.shared.ldap.name.RDN newRdn, boolean cascade) throws java.lang.Exception
rename
in interface RegistrySynchronizer
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
- If the rename failedpublic void moveAndRename(org.apache.directory.shared.ldap.name.DN oriChildName, org.apache.directory.shared.ldap.name.DN newParentName, java.lang.String newRn, boolean deleteOldRn, org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade) throws org.apache.directory.shared.ldap.exception.LdapUnwillingToPerformException
org.apache.directory.shared.ldap.exception.LdapUnwillingToPerformException
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 org.apache.directory.shared.ldap.exception.LdapUnwillingToPerformException
move
in interface RegistrySynchronizer
org.apache.directory.shared.ldap.exception.LdapUnwillingToPerformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |