|
||||||||||
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.AbstractRegistrySynchronizer
org.apache.directory.server.core.schema.registries.synchronizers.ComparatorSynchronizer
public class ComparatorSynchronizer
A handler for operations performed to add, delete, modify, rename and move schema comparators.
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 | |
---|---|
ComparatorSynchronizer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a new instance of ComparatorSynchronizer. |
Method Summary | |
---|---|
void |
add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Adds a new SchemaObject to its registry |
protected org.apache.directory.shared.ldap.schema.LdapComparator<?> |
checkComparatorOidExists(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Check that a Comparator exists in the ComparatorRegistry, and if so, return it. |
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 newRdn,
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 |
---|
public ComparatorSynchronizer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws java.lang.Exception
schemaManager
- The global schemaManager
java.lang.Exception
- If the initialization failedMethod Detail |
---|
public boolean modify(ModifyOperationContext opContext, org.apache.directory.shared.ldap.entry.ServerEntry targetEntry, boolean cascade) throws java.lang.Exception
modify
in interface RegistrySynchronizer
modify
in class AbstractRegistrySynchronizer
opContext
- The OperationContext, which contains the entry and the modifications to applytargetEntry
- The modified entrycascade
- Unused
java.lang.Exception
- If the modification failedpublic void add(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws java.lang.Exception
entry
- The SchemObject to add
java.lang.Exception
- If the addition failedpublic void delete(org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade) throws java.lang.Exception
entry
- The entry associated with the SchemaObject to deletecascade
- unused
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
entry
- The entry to be renamednewRdn
- The new entry namecascade
- unused
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, org.apache.directory.shared.ldap.name.RDN newRdn, boolean deleteOldRn, org.apache.directory.shared.ldap.entry.ServerEntry entry, boolean cascade) throws java.lang.Exception
java.lang.Exception
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 java.lang.Exception
java.lang.Exception
protected org.apache.directory.shared.ldap.schema.LdapComparator<?> checkComparatorOidExists(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |