org.apache.jackrabbit.core.session
Class AddNodeOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.session.AddNodeOperation
All Implemented Interfaces:
SessionOperation<Node>, SessionWriteOperation<Node>

public class AddNodeOperation
extends Object
implements SessionWriteOperation<Node>

Session operation for adding a new node.


Constructor Summary
AddNodeOperation(NodeImpl node, String relPath, String nodeTypeName, String uuid)
           
 
Method Summary
 Node perform(SessionContext context)
          Performs the session operation.
 String toString()
          Returns a string representation of this operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddNodeOperation

public AddNodeOperation(NodeImpl node,
                        String relPath,
                        String nodeTypeName,
                        String uuid)
Method Detail

perform

public Node perform(SessionContext context)
             throws RepositoryException
Description copied from interface: SessionOperation
Performs the session operation.

Specified by:
perform in interface SessionOperation<Node>
Parameters:
context - component context of this session
Throws:
RepositoryException - if the operation fails

toString

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

Overrides:
toString in class Object


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.