ValueOfPropertyDelegateTask
instead.@Deprecated public class PropertyValueDelegateTask extends NodeCheckDelegateTask
nodePath, propertyName, workspaceName
DO_NOTHING, log
Constructor and Description |
---|
PropertyValueDelegateTask(String taskName,
String parentPath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue)
Deprecated.
|
PropertyValueDelegateTask(String taskName,
String parentPath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue,
Task ifFalse)
Deprecated.
|
PropertyValueDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue)
Deprecated.
|
PropertyValueDelegateTask(String taskName,
String taskDescription,
String workspaceName,
String nodePath,
String propertyName,
String expectedValue,
boolean propertyMustExist,
Task ifTrue,
Task ifFalse)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkNode(Content node,
InstallContext ctx)
Deprecated.
|
condition
execute
getDescription, getName, toString
public PropertyValueDelegateTask(String taskName, String parentPath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue)
public PropertyValueDelegateTask(String taskName, String parentPath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue, Task ifFalse)
public PropertyValueDelegateTask(String taskName, String taskDescription, String workspaceName, String nodePath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue)
public PropertyValueDelegateTask(String taskName, String taskDescription, String workspaceName, String nodePath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue, Task ifFalse)
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 !protected boolean checkNode(Content node, InstallContext ctx) throws TaskExecutionException, javax.jcr.RepositoryException
checkNode
in class NodeCheckDelegateTask
TaskExecutionException
javax.jcr.RepositoryException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.