info.magnolia.module.delta
Class RemoveNodesTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.RemoveNodesTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
RemoveNodeTask

public class RemoveNodesTask
extends AbstractRepositoryTask

Removes a list of nodes referenced by their absolute paths.
In case a Node does not exist, logs an info message if the flag displayInfoMessageForMissingNodes is set to true.
Otherwise just continues with the next absolute path from the list.


Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
DO_NOTHING
 
Constructor Summary
RemoveNodesTask(String name, String workspace, List<String> pathsToRemove, boolean displayInfoMessageForMissingNodes)
           
RemoveNodesTask(String name, String description, String workspaceName, List<String> pathsToRemove, boolean displayInfoMessageForMissingNodes)
           
 
Method Summary
protected  void doExecute(InstallContext ctx)
           
 
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

RemoveNodesTask

public RemoveNodesTask(String name,
                       String workspace,
                       List<String> pathsToRemove,
                       boolean displayInfoMessageForMissingNodes)

RemoveNodesTask

public RemoveNodesTask(String name,
                       String description,
                       String workspaceName,
                       List<String> pathsToRemove,
                       boolean displayInfoMessageForMissingNodes)
Method Detail

doExecute

protected void doExecute(InstallContext ctx)
                  throws javax.jcr.RepositoryException,
                         TaskExecutionException
Specified by:
doExecute in class AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
TaskExecutionException


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