org.apache.directory.mitosis.operation
Class ReplaceAttributeOperation

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.ReplaceAttributeOperation
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ReplaceAttributeOperation
extends AttributeOperation

An Operation that replaces an attribute in 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
ReplaceAttributeOperation(Registries registries, CSN csn, org.apache.directory.shared.ldap.name.LdapDN dn, ServerAttribute attribute)
          Creates a new operation that replaces 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

ReplaceAttributeOperation

public ReplaceAttributeOperation(Registries registries,
                                 CSN csn,
                                 org.apache.directory.shared.ldap.name.LdapDN dn,
                                 ServerAttribute attribute)
Creates a new operation that replaces the specified attribute.

Parameters:
attribute - an attribute to replace
csn - The operation CSN
dn - The associated DN
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.