info.magnolia.module.delta
Class BootstrapConditionally

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

public class BootstrapConditionally
extends NodeExistsDelegateTask

A Task which bootstraps if the node targeted by the bootstrap file does not exist. (see constructors for details)

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

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
BootstrapConditionally(String taskName, String taskDescription, String resourceToBootstrap)
          Bootstraps the given resource if the corresponding node does not exist yet, does nothing otherwise.
BootstrapConditionally(String taskName, String taskDescription, String repositoryName, String pathToCheck, String resourceToBootstrap, Task ifNodeExists)
          Executes the given task if the specified node exists in the specific repository, bootstraps the given resource otherwise.
BootstrapConditionally(String taskName, String taskDescription, String resourceToBootstrap, Task ifNodeExists)
          Bootstraps the given resource if the corresponding node does not exist yet, executes the given task otherwise.
 
Method Summary
 
Methods inherited from class info.magnolia.module.delta.NodeExistsDelegateTask
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

BootstrapConditionally

public BootstrapConditionally(String taskName,
                              String taskDescription,
                              String resourceToBootstrap)
Bootstraps the given resource if the corresponding node does not exist yet, does nothing otherwise.


BootstrapConditionally

public BootstrapConditionally(String taskName,
                              String taskDescription,
                              String resourceToBootstrap,
                              Task ifNodeExists)
Bootstraps the given resource if the corresponding node does not exist yet, executes the given task otherwise.


BootstrapConditionally

public BootstrapConditionally(String taskName,
                              String taskDescription,
                              String repositoryName,
                              String pathToCheck,
                              String resourceToBootstrap,
                              Task ifNodeExists)
Executes the given task if the specified node exists in the specific repository, bootstraps the given resource otherwise.



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