public class IdentifySameNameSiblingNodesTask extends AbstractRepositoryTask
Modifier and Type | Field and Description |
---|---|
protected javax.jcr.Session |
session |
protected String |
workspace |
DO_NOTHING
Constructor and Description |
---|
IdentifySameNameSiblingNodesTask(String name,
String description,
String workspace,
String subPath,
List<String> nodeTypes,
boolean evaluateSupertypes) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(InstallContext installContext) |
protected void |
handleNode(javax.jcr.Node node,
InstallContext installContext)
Take action on a sibling node.
In this case, simply display in the install screen the sibling node name and path. |
protected boolean |
isSameNameSiblingNode(javax.jcr.Node node)
Return true if the node match the siblingMatcherPattern.
|
execute
getDescription, getName, toString
protected final String workspace
protected javax.jcr.Session session
public IdentifySameNameSiblingNodesTask(String name, String description, String workspace, String subPath, List<String> nodeTypes, boolean evaluateSupertypes)
name
- task namedescription
- task descriptionworkspace
- task is running against this workspace. TaskExecutionException is throws if the workspace is invalid or null.subPath
- used to limit the operation to a specified subPath '/demo-project/about'nodeTypes
- List of nodeTypes that has to search. If null or empty, the search of siblings is performed against 'nt:base'evaluateSupertypes
- if set to true, the child nodeTypes of a defined 'nodeType' are also part of the evaluation.protected void doExecute(InstallContext installContext) throws javax.jcr.RepositoryException, TaskExecutionException
doExecute
in class AbstractRepositoryTask
javax.jcr.RepositoryException
TaskExecutionException
protected boolean isSameNameSiblingNode(javax.jcr.Node node)
protected void handleNode(javax.jcr.Node node, InstallContext installContext) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.