|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.mitosis.operation.Operation
org.apache.directory.mitosis.operation.AttributeOperation
public abstract class AttributeOperation
An Operation that adds an attribute to an entry.
| Field Summary | |
|---|---|
protected org.apache.directory.shared.ldap.entry.EntryAttribute |
attribute
The attribute |
protected org.apache.directory.shared.ldap.name.LdapDN |
dn
The attribute's DN |
| Fields inherited from class org.apache.directory.mitosis.operation.Operation |
|---|
csn, operationType, registries |
| Constructor Summary | |
|---|---|
AttributeOperation(Registries registries,
OperationType operationType,
CSN csn,
org.apache.directory.shared.ldap.name.LdapDN dn,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
Create a new operation that affects an entry with the specified name. |
|
| Method Summary | |
|---|---|
protected void |
execute0(PartitionNexus nexus,
ReplicationStore store,
CoreSession coreSession)
Check that we can apply the modification, and create the associated entry, if it does not exists locally. |
protected abstract void |
execute1(PartitionNexus nexus,
CoreSession coreSession)
Apply the requested modification locally |
org.apache.directory.shared.ldap.entry.EntryAttribute |
getAttribute()
|
org.apache.directory.shared.ldap.name.LdapDN |
getDn()
|
java.lang.String |
toString()
|
| Methods inherited from class org.apache.directory.mitosis.operation.Operation |
|---|
deserialize, execute, getCSN, readExternal, serialize, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.directory.shared.ldap.name.LdapDN dn
protected org.apache.directory.shared.ldap.entry.EntryAttribute attribute
| Constructor Detail |
|---|
public AttributeOperation(Registries registries,
OperationType operationType,
CSN csn,
org.apache.directory.shared.ldap.name.LdapDN dn,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
registries - the server registriesoperationType - The operation's typecsn - the operation's CSNdn - the normalized name of an entryattribute - an attribute to modify| Method Detail |
|---|
public org.apache.directory.shared.ldap.name.LdapDN getDn()
protected final void execute0(PartitionNexus nexus,
ReplicationStore store,
CoreSession coreSession)
throws java.lang.Exception
execute0 in class Operationnexus - The partition to updatestore - the replication storagecoreSession - the current session
java.lang.Exception
protected abstract void execute1(PartitionNexus nexus,
CoreSession coreSession)
throws java.lang.Exception
nexus - The partition on which the operation is appliedcoreSession - the current session
java.lang.Exceptionpublic org.apache.directory.shared.ldap.entry.EntryAttribute getAttribute()
public java.lang.String toString()
toString in class OperationObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||