org.apache.directory.mitosis.operation
Class AttributeOperation

java.lang.Object
  extended by org.apache.directory.mitosis.operation.Operation
      extended by org.apache.directory.mitosis.operation.AttributeOperation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddAttributeOperation, DeleteAttributeOperation, ReplaceAttributeOperation

public abstract class AttributeOperation
extends Operation

An Operation that adds an attribute to an entry.

See Also:
Serialized Form

Constructor Summary
AttributeOperation(CSN csn, LdapDN name, javax.naming.directory.Attribute attribute)
          Create a new operation that affects an entry with the specified name.
 
Method Summary
protected  void execute0(PartitionNexus nexus, ReplicationStore store, AttributeTypeRegistry registry)
           
protected abstract  void execute1(PartitionNexus nexus)
           
 javax.naming.directory.Attribute getAttribute()
          Returns the attribute to modify.
 LdapDN getName()
          Returns the name of an entry this operation will affect.
 java.lang.String toString()
          Returns string representation of this operation.
 
Methods inherited from class org.apache.directory.mitosis.operation.Operation
execute, getCSN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeOperation

public AttributeOperation(CSN csn,
                          LdapDN name,
                          javax.naming.directory.Attribute attribute)
Create a new operation that affects an entry with the specified name.

Parameters:
name - the normalized name of an entry
attribute - an attribute to modify
Method Detail

getAttribute

public javax.naming.directory.Attribute getAttribute()
Returns the attribute to modify.


getName

public LdapDN getName()
Returns the name of an entry this operation will affect.


execute0

protected final void execute0(PartitionNexus nexus,
                              ReplicationStore store,
                              AttributeTypeRegistry registry)
                       throws javax.naming.NamingException
Overrides:
execute0 in class Operation
Throws:
javax.naming.NamingException

execute1

protected abstract void execute1(PartitionNexus nexus)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

toString

public java.lang.String toString()
Returns string representation of this operation.

Overrides:
toString in class Operation
Returns:
the CSN for this operation