info.magnolia.module.delta
Class PropertyValueDelegateTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.ConditionalDelegateTask
info.magnolia.module.delta.NodeCheckDelegateTask
info.magnolia.module.delta.PropertyValueDelegateTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- IsAuthorInstanceDelegateTask
public class PropertyValueDelegateTask
- extends NodeCheckDelegateTask
A task which delegates to another if a property has a given value.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Constructor Summary |
PropertyValueDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue)
|
PropertyValueDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue,
Task ifFalse)
|
PropertyValueDelegateTask
public PropertyValueDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue)
PropertyValueDelegateTask
public PropertyValueDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue,
Task ifFalse)
- Parameters:
propertyMustExist
- if false, the condition() method will evaluate to false even if the property does not exist. If true and the property does not exist, will throw a TaskExecutionException.
TODO : warning or exception ? consistency between this and other tasks for these kind of cases !
checkNode
protected boolean checkNode(Content node,
InstallContext ctx)
throws TaskExecutionException,
javax.jcr.RepositoryException
- Specified by:
checkNode
in class NodeCheckDelegateTask
- Throws:
TaskExecutionException
javax.jcr.RepositoryException
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.