info.magnolia.module.delta
Class HasPropertyDelegateTask

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.HasPropertyDelegateTask
All Implemented Interfaces:
Task

public class HasPropertyDelegateTask
extends CheckNodeDelegateTask

A task that delegates to another depending on whether a specified property exists or not.


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
HasPropertyDelegateTask(String taskName, String taskDescription, String workspaceName, String parentPath, String propertyName, Task ifTrue)
           
HasPropertyDelegateTask(String taskName, String taskDescription, String workspaceName, String parentPath, String propertyName, Task ifTrue, Task ifFalse)
           
HasPropertyDelegateTask(String taskName, String parentPath, String propertyName, Task ifTrue)
           
HasPropertyDelegateTask(String taskName, String parentPath, String propertyName, 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

HasPropertyDelegateTask

public HasPropertyDelegateTask(String taskName,
                               String parentPath,
                               String propertyName,
                               Task ifTrue)

HasPropertyDelegateTask

public HasPropertyDelegateTask(String taskName,
                               String parentPath,
                               String propertyName,
                               Task ifTrue,
                               Task ifFalse)

HasPropertyDelegateTask

public HasPropertyDelegateTask(String taskName,
                               String taskDescription,
                               String workspaceName,
                               String parentPath,
                               String propertyName,
                               Task ifTrue)

HasPropertyDelegateTask

public HasPropertyDelegateTask(String taskName,
                               String taskDescription,
                               String workspaceName,
                               String parentPath,
                               String propertyName,
                               Task ifTrue,
                               Task ifFalse)
Method Detail

checkNode

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


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