info.magnolia.nodebuilder
Class AbstractNodeOperation

java.lang.Object
  extended by info.magnolia.nodebuilder.AbstractNodeOperation
All Implemented Interfaces:
NodeOperation
Direct Known Subclasses:
RecursiveOp

public abstract class AbstractNodeOperation
extends Object
implements NodeOperation

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


Constructor Summary
AbstractNodeOperation()
           
 
Method Summary
protected abstract  Content doExec(Content context, ErrorHandler errorHandler)
           
 void exec(Content 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(Content context,
                 ErrorHandler errorHandler)
Specified by:
exec in interface NodeOperation

doExec

protected abstract Content doExec(Content 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-2012 Magnolia International Ltd.. All Rights Reserved.