public class RemoveMIMEIconsTask extends NodeVisitorTask
DO_NOTHING
Constructor and Description |
---|
RemoveMIMEIconsTask(String name,
String description,
String workspace,
String absPath) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
nodeMatches(javax.jcr.Node node)
Implement this method to define which nodes should subsequently be operated upon.
|
protected void |
operateOnNode(InstallContext installContext,
javax.jcr.Node node)
Implement this method to apply changes to each of the nodes that are matched by
NodeVisitorTask.nodeMatches(Node) . |
doExecute, getFilteringPredicate
execute
getDescription, getName, toString
protected boolean nodeMatches(javax.jcr.Node node)
NodeVisitorTask
This will be called for every visited node in that task, and serves a similar purpose as a JCR query statement.
nodeMatches
in class NodeVisitorTask
node
- the JCR node that is currently being visitedtrue
if the node should be operated upon, false
otherwiseNodeVisitorTask.operateOnNode(InstallContext, Node)
protected void operateOnNode(InstallContext installContext, javax.jcr.Node node)
NodeVisitorTask
NodeVisitorTask.nodeMatches(Node)
.
This is typically where the update logic goes, in a similar fashion as the QueryTask
.
operateOnNode
in class NodeVisitorTask
installContext
- the current install contextnode
- the JCR node that should be operated uponQueryTask.operateOnNode(InstallContext, Node)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.