info.magnolia.module.blossom.setup
Class RemoveNodeIfExistsTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.blossom.setup.RemoveNodeIfExistsTask
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class RemoveNodeIfExistsTask
extends info.magnolia.module.delta.AbstractRepositoryTask

Removes a node if it exists otherwise does nothing. Unlike RemoveNodeTask it does not issue a warning if the node to remove does not exist.


Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
RemoveNodeIfExistsTask(String name, String description, String workspaceName, String pathToRemove)
           
 
Method Summary
protected  void doExecute(info.magnolia.module.InstallContext installContext)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractRepositoryTask
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

RemoveNodeIfExistsTask

public RemoveNodeIfExistsTask(String name,
                              String description,
                              String workspaceName,
                              String pathToRemove)
Method Detail

doExecute

protected void doExecute(info.magnolia.module.InstallContext installContext)
                  throws javax.jcr.RepositoryException,
                         info.magnolia.module.delta.TaskExecutionException
Specified by:
doExecute in class info.magnolia.module.delta.AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
info.magnolia.module.delta.TaskExecutionException


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