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