info.magnolia.jcr.nodebuilder
Class AbstractNodeOperation

java.lang.Object
  extended by info.magnolia.jcr.nodebuilder.AbstractNodeOperation
All Implemented Interfaces:
NodeOperation

public abstract class AbstractNodeOperation
extends Object
implements NodeOperation

Abstract implementation of NodeOperation. Mainly implementing then(NodeOperation...).

Version:
$Id$

Constructor Summary
AbstractNodeOperation()
           
 
Method Summary
protected abstract  javax.jcr.Node doExec(javax.jcr.Node context, ErrorHandler errorHandler)
           
 void exec(javax.jcr.Node context, ErrorHandler errorHandler)
           
 NodeOperation then(NodeOperation... childrenOps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNodeOperation

public AbstractNodeOperation()
Method Detail

exec

public void exec(javax.jcr.Node context,
                 ErrorHandler errorHandler)
Specified by:
exec in interface NodeOperation

doExec

protected abstract javax.jcr.Node doExec(javax.jcr.Node context,
                                         ErrorHandler errorHandler)
                                  throws javax.jcr.RepositoryException
Returns:
the node that should now be used as the context for subsequent operations
Throws:
javax.jcr.RepositoryException

then

public NodeOperation then(NodeOperation... childrenOps)
Specified by:
then in interface NodeOperation


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.