info.magnolia.module.delta
Class CheckNodeDelegateTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.ConditionalDelegateTask
info.magnolia.module.delta.CheckNodeDelegateTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- HasPropertyDelegateTask, ValueOfPropertyDelegateTask
public abstract class CheckNodeDelegateTask
- extends ConditionalDelegateTask
A task that delegates to another if a checkNode is true, or to an optional other if it is false.
workspaceName
protected final String workspaceName
nodePath
protected final String nodePath
propertyName
protected final String propertyName
CheckNodeDelegateTask
public CheckNodeDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
Task ifTrue,
Task ifFalse)
condition
protected boolean condition(InstallContext ctx)
throws TaskExecutionException
- Specified by:
condition
in class ConditionalDelegateTask
- Throws:
TaskExecutionException
checkNode
protected abstract boolean checkNode(javax.jcr.Node node,
InstallContext ctx)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.