public class ComparatorSynchronizer extends AbstractRegistrySynchronizer
factory, moidAT, schemaManagerSCHEMA_MODIFIED, SCHEMA_UNCHANGED| Constructor and Description |
|---|
ComparatorSynchronizer(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a new instance of ComparatorSynchronizer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.directory.api.ldap.model.entry.Entry entry)
Adds a new SchemaObject to its registry
|
protected org.apache.directory.api.ldap.model.schema.LdapComparator<?> |
checkComparatorOidExists(org.apache.directory.api.ldap.model.entry.Entry entry)
Check that a Comparator exists in the ComparatorRegistry, and if so,
return it.
|
void |
delete(org.apache.directory.api.ldap.model.entry.Entry entry,
boolean cascade)
Delete the schema object and update the registries
|
boolean |
modify(ModifyOperationContext modifyContext,
org.apache.directory.api.ldap.model.entry.Entry targetEntry,
boolean cascade)
Applies a set of modification to an entry
|
void |
move(org.apache.directory.api.ldap.model.name.Dn oriChildName,
org.apache.directory.api.ldap.model.name.Dn newParentName,
org.apache.directory.api.ldap.model.entry.Entry entry,
boolean cascade) |
void |
moveAndRename(org.apache.directory.api.ldap.model.name.Dn oriChildName,
org.apache.directory.api.ldap.model.name.Dn newParentName,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean deleteOldRn,
org.apache.directory.api.ldap.model.entry.Entry entry,
boolean cascade) |
void |
rename(org.apache.directory.api.ldap.model.entry.Entry entry,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean cascade)
Rename a schemaObject.
|
addToSchema, checkOidExists, checkOidIsUnique, checkOidIsUnique, checkOidIsUnique, checkParent, deleteFromSchema, getOid, getOids, getReferenced, getSchemaName, isSchemaEnabled, isSchemaLoaded, isSchemaLoaded, registerOids, unregisterOidspublic boolean modify(ModifyOperationContext modifyContext, org.apache.directory.api.ldap.model.entry.Entry targetEntry, boolean cascade) throws org.apache.directory.api.ldap.model.exception.LdapException
modify in interface RegistrySynchronizermodify in class AbstractRegistrySynchronizermodifyContext - The OperationContext, which contains the entry and the modifications to applytargetEntry - The modified entrycascade - Unusedorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void add(org.apache.directory.api.ldap.model.entry.Entry entry)
throws org.apache.directory.api.ldap.model.exception.LdapException
entry - The SchemObject to addorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void delete(org.apache.directory.api.ldap.model.entry.Entry entry,
boolean cascade)
throws org.apache.directory.api.ldap.model.exception.LdapException
entry - The entry associated with the SchemaObject to deletecascade - unusedorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void rename(org.apache.directory.api.ldap.model.entry.Entry entry,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean cascade)
throws org.apache.directory.api.ldap.model.exception.LdapException
entry - The entry to be renamednewRdn - The new entry namecascade - unusedorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void moveAndRename(org.apache.directory.api.ldap.model.name.Dn oriChildName,
org.apache.directory.api.ldap.model.name.Dn newParentName,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean deleteOldRn,
org.apache.directory.api.ldap.model.entry.Entry entry,
boolean cascade)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void move(org.apache.directory.api.ldap.model.name.Dn oriChildName,
org.apache.directory.api.ldap.model.name.Dn newParentName,
org.apache.directory.api.ldap.model.entry.Entry entry,
boolean cascade)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionprotected org.apache.directory.api.ldap.model.schema.LdapComparator<?> checkComparatorOidExists(org.apache.directory.api.ldap.model.entry.Entry entry)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionCopyright © 2021. All rights reserved.