info.magnolia.module.delta
Class ValueOfPropertyDelegateTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.ConditionalDelegateTask
          extended by info.magnolia.module.delta.CheckNodeDelegateTask
              extended by info.magnolia.module.delta.ValueOfPropertyDelegateTask
All Implemented Interfaces:
Task

public class ValueOfPropertyDelegateTask
extends CheckNodeDelegateTask

A task which delegates to another if a property has a given value.


Field Summary
 
Fields inherited from class info.magnolia.module.delta.CheckNodeDelegateTask
nodePath, propertyName, workspaceName
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
DO_NOTHING, log
 
Constructor Summary
ValueOfPropertyDelegateTask(String taskName, String parentPath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue)
           
ValueOfPropertyDelegateTask(String taskName, String parentPath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue, Task ifFalse)
           
ValueOfPropertyDelegateTask(String taskName, String taskDescription, String workspaceName, String nodePath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue)
           
ValueOfPropertyDelegateTask(String taskName, String taskDescription, String workspaceName, String nodePath, String propertyName, String expectedValue, boolean propertyMustExist, Task ifTrue, Task ifFalse)
           
 
Method Summary
protected  boolean checkNode(javax.jcr.Node node, InstallContext ctx)
           
 
Methods inherited from class info.magnolia.module.delta.CheckNodeDelegateTask
condition
 
Methods inherited from class info.magnolia.module.delta.ConditionalDelegateTask
execute
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueOfPropertyDelegateTask

public ValueOfPropertyDelegateTask(String taskName,
                                   String parentPath,
                                   String propertyName,
                                   String expectedValue,
                                   boolean propertyMustExist,
                                   Task ifTrue)

ValueOfPropertyDelegateTask

public ValueOfPropertyDelegateTask(String taskName,
                                   String parentPath,
                                   String propertyName,
                                   String expectedValue,
                                   boolean propertyMustExist,
                                   Task ifTrue,
                                   Task ifFalse)

ValueOfPropertyDelegateTask

public ValueOfPropertyDelegateTask(String taskName,
                                   String taskDescription,
                                   String workspaceName,
                                   String nodePath,
                                   String propertyName,
                                   String expectedValue,
                                   boolean propertyMustExist,
                                   Task ifTrue)

ValueOfPropertyDelegateTask

public ValueOfPropertyDelegateTask(String taskName,
                                   String taskDescription,
                                   String workspaceName,
                                   String nodePath,
                                   String propertyName,
                                   String expectedValue,
                                   boolean propertyMustExist,
                                   Task ifTrue,
                                   Task ifFalse)
Method Detail

checkNode

protected boolean checkNode(javax.jcr.Node node,
                            InstallContext ctx)
                     throws TaskExecutionException,
                            javax.jcr.RepositoryException
Specified by:
checkNode in class CheckNodeDelegateTask
Throws:
TaskExecutionException
javax.jcr.RepositoryException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.