info.magnolia.module.delta
Class NodeExistsDelegateTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.ConditionalDelegateTask
          extended by info.magnolia.module.delta.NodeExistsDelegateTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
BootstrapConditionally, IsModuleInstalledOrRegistered, ReplaceIfExistsTask

public class NodeExistsDelegateTask
extends ConditionalDelegateTask

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


Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
DO_NOTHING, log
 
Constructor Summary
NodeExistsDelegateTask(String name, String description, String workspaceName, String pathToCheck, Task ifTrue)
           
NodeExistsDelegateTask(String name, String description, String workspaceName, String pathToCheck, Task ifTrue, Task ifFalse)
           
NodeExistsDelegateTask(String name, String pathToCheck, Task ifTrue)
           
NodeExistsDelegateTask(String name, String pathToCheck, Task ifTrue, Task ifFalse)
           
 
Method Summary
protected  boolean condition(InstallContext ctx)
           
 
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

NodeExistsDelegateTask

public NodeExistsDelegateTask(String name,
                              String pathToCheck,
                              Task ifTrue)

NodeExistsDelegateTask

public NodeExistsDelegateTask(String name,
                              String pathToCheck,
                              Task ifTrue,
                              Task ifFalse)

NodeExistsDelegateTask

public NodeExistsDelegateTask(String name,
                              String description,
                              String workspaceName,
                              String pathToCheck,
                              Task ifTrue)

NodeExistsDelegateTask

public NodeExistsDelegateTask(String name,
                              String description,
                              String workspaceName,
                              String pathToCheck,
                              Task ifTrue,
                              Task ifFalse)
Method Detail

condition

protected boolean condition(InstallContext ctx)
Specified by:
condition in class ConditionalDelegateTask


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