org.apache.directory.mitosis.operation
Class AddEntryOperation

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

public class AddEntryOperation
extends Operation

An Operation that adds a new entry.

Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.mitosis.operation.Operation
csn, operationType, registries
 
Constructor Summary
AddEntryOperation(Registries registries)
          Creates a new operation that adds the specified entry.
AddEntryOperation(Registries registries, CSN csn, ServerEntry entry)
          Creates a new instance.
 
Method Summary
protected  void execute0(PartitionNexus nexus, ReplicationStore store, CoreSession coreSession)
          Inject the entry into the local server
 org.apache.directory.shared.ldap.entry.Entry getEntry()
           
 void setEntry(org.apache.directory.shared.ldap.entry.Entry entry)
          Set the Entry to add into this AddEntry instance.
 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
 

Constructor Detail

AddEntryOperation

public AddEntryOperation(Registries registries)
Creates a new operation that adds the specified entry. This constructor will not be visible out of this package, as it is only used for the deserialization process.

Parameters:
registries - the registries instance

AddEntryOperation

public AddEntryOperation(Registries registries,
                         CSN csn,
                         ServerEntry entry)
Creates a new instance.

Parameters:
entry - an entry
Method Detail

execute0

protected void execute0(PartitionNexus nexus,
                        ReplicationStore store,
                        CoreSession coreSession)
                 throws java.lang.Exception
Inject the entry into the local server

Overrides:
execute0 in class Operation
Parameters:
nexus - the local partition to update
store - not used... Just for inheritence sake.
coreSession - the current session
Throws:
java.lang.Exception

setEntry

public void setEntry(org.apache.directory.shared.ldap.entry.Entry entry)
Set the Entry to add into this AddEntry instance.

Parameters:
entry - the entry to add

getEntry

public org.apache.directory.shared.ldap.entry.Entry getEntry()
Returns:
the operation's entry

toString

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


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