|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.nodebuilder.AbstractNodeOperation info.magnolia.nodebuilder.RecursiveOp
public class RecursiveOp
Visits the hierarchy recursively and executes the operations on all nodes matching the filter. The recursion does not stop if a node does not match! The class has some static methods to build recursive operations easily.
Constructor Summary | |
---|---|
RecursiveOp(Content.ContentFilter filter,
NodeOperation[] childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching the filter. |
Method Summary | |
---|---|
protected Content |
doExec(Content context,
ErrorHandler errorHandler)
|
static NodeOperation |
recursive(Content.ContentFilter filter,
NodeOperation... childrenOps)
|
static NodeOperation |
recursive(ItemType type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type. |
static NodeOperation |
recursive(NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes excluding meta data and jcr base nodes. |
static NodeOperation |
recursive(java.lang.String type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type. |
Methods inherited from class info.magnolia.nodebuilder.AbstractNodeOperation |
---|
exec, then |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecursiveOp(Content.ContentFilter filter, NodeOperation[] childrenOps)
Method Detail |
---|
public static NodeOperation recursive(NodeOperation... childrenOps)
public static NodeOperation recursive(java.lang.String type, NodeOperation... childrenOps)
public static NodeOperation recursive(ItemType type, NodeOperation... childrenOps)
public static NodeOperation recursive(Content.ContentFilter filter, NodeOperation... childrenOps)
protected Content doExec(Content context, ErrorHandler errorHandler) throws javax.jcr.RepositoryException
doExec
in class AbstractNodeOperation
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |