info.magnolia.module.delta
Class NodeCheckDelegateTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.ConditionalDelegateTask
info.magnolia.module.delta.NodeCheckDelegateTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- PropertyExistsDelegateTask, PropertyValueDelegateTask
public abstract class NodeCheckDelegateTask
- extends ConditionalDelegateTask
A task that delegates to another if a checkNode is true, or to an optional other if it is false.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Constructor Summary |
NodeCheckDelegateTask(java.lang.String taskName,
java.lang.String taskDescription,
java.lang.String workspaceName,
java.lang.String nodePath,
java.lang.String propertyName,
Task ifTrue,
Task ifFalse)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
workspaceName
protected final java.lang.String workspaceName
nodePath
protected final java.lang.String nodePath
propertyName
protected final java.lang.String propertyName
NodeCheckDelegateTask
public NodeCheckDelegateTask(java.lang.String taskName,
java.lang.String taskDescription,
java.lang.String workspaceName,
java.lang.String nodePath,
java.lang.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(Content node,
InstallContext ctx)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.