info.magnolia.module.delta
Class PropertyExistsDelegateTask

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

public class PropertyExistsDelegateTask
extends NodeCheckDelegateTask

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

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Field Summary
 
Fields inherited from class info.magnolia.module.delta.NodeCheckDelegateTask
nodePath, propertyName, workspaceName
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
PropertyExistsDelegateTask(String taskName, String taskDescription, String workspaceName, String parentPath, String propertyName, Task ifTrue)
           
PropertyExistsDelegateTask(String taskName, String taskDescription, String workspaceName, String parentPath, String propertyName, Task ifTrue, Task ifFalse)
           
 
Method Summary
protected  boolean checkNode(Content node, InstallContext ctx)
           
 
Methods inherited from class info.magnolia.module.delta.NodeCheckDelegateTask
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

PropertyExistsDelegateTask

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

PropertyExistsDelegateTask

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

checkNode

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


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