info.magnolia.module.delta
Class ChildrenExistsDelegateTask

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

public class ChildrenExistsDelegateTask
extends ConditionalDelegateTask

A task that delegates to another depending on existence of children.

Version:
$Revision: $ ($Author: $)
Author:
ochytil

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
ChildrenExistsDelegateTask(java.lang.String name, java.lang.String description, java.lang.String workspaceName, java.lang.String pathToCheck, java.lang.String contentType, Task ifTrue)
           
ChildrenExistsDelegateTask(java.lang.String name, java.lang.String description, java.lang.String workspaceName, java.lang.String pathToCheck, java.lang.String contentType, 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

ChildrenExistsDelegateTask

public ChildrenExistsDelegateTask(java.lang.String name,
                                  java.lang.String description,
                                  java.lang.String workspaceName,
                                  java.lang.String pathToCheck,
                                  java.lang.String contentType,
                                  Task ifTrue)

ChildrenExistsDelegateTask

public ChildrenExistsDelegateTask(java.lang.String name,
                                  java.lang.String description,
                                  java.lang.String workspaceName,
                                  java.lang.String pathToCheck,
                                  java.lang.String contentType,
                                  Task ifTrue,
                                  Task ifFalse)
Method Detail

condition

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


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