org.apache.directory.mitosis.operation
Class AddAttributeOperation

java.lang.Object
  extended by org.apache.directory.mitosis.operation.Operation
      extended by org.apache.directory.mitosis.operation.AttributeOperation
          extended by org.apache.directory.mitosis.operation.AddAttributeOperation
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class AddAttributeOperation
extends AttributeOperation

An Operation that adds an attribute to an entry.

Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.mitosis.operation.AttributeOperation
attribute, dn
 
Fields inherited from class org.apache.directory.mitosis.operation.Operation
csn, operationType, registries
 
Constructor Summary
AddAttributeOperation(Registries registries, CSN csn, org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
          Creates a new operation that adds the specified attribute.
 
Method Summary
protected  void execute1(PartitionNexus nexus, CoreSession coreSession)
          Inject the modified attribute into the server.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.mitosis.operation.AttributeOperation
execute0, getAttribute, getDn
 
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
 

Constructor Detail

AddAttributeOperation

public AddAttributeOperation(Registries registries,
                             CSN csn,
                             org.apache.directory.shared.ldap.name.LdapDN name,
                             org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
Creates a new operation that adds the specified attribute.

Parameters:
attribute - an attribute to add
Method Detail

execute1

protected void execute1(PartitionNexus nexus,
                        CoreSession coreSession)
                 throws java.lang.Exception
Inject the modified attribute into the server.

Specified by:
execute1 in class AttributeOperation
Parameters:
nexus - the partition which will be modified
coreSession - the current session
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class AttributeOperation
See Also:
Object.toString()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.