info.magnolia.module.delta
Class RemoveNodeAndEmptyParentTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.RemoveNodeTask
              extended by info.magnolia.module.delta.RemoveNodeAndEmptyParentTask
All Implemented Interfaces:
Task

public class RemoveNodeAndEmptyParentTask
extends RemoveNodeTask

Removes the specified node and its parents if are empty.


Field Summary
 
Fields inherited from class info.magnolia.module.delta.RemoveNodeTask
pathToRemove, workspaceName
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
RemoveNodeAndEmptyParentTask(String pathToRemove)
           
RemoveNodeAndEmptyParentTask(String name, String description, String workspaceName, String pathToRemove)
           
 
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

RemoveNodeAndEmptyParentTask

public RemoveNodeAndEmptyParentTask(String pathToRemove)

RemoveNodeAndEmptyParentTask

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

doExecute

protected void doExecute(InstallContext ctx)
                  throws javax.jcr.RepositoryException,
                         TaskExecutionException
Overrides:
doExecute in class RemoveNodeTask
Throws:
javax.jcr.RepositoryException
TaskExecutionException


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