info.magnolia.module.delta
Class RemoveNodeWoChildren

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

public class RemoveNodeWoChildren
extends AbstractRepositoryTask

A task that removes node if that has no children.


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

RemoveNodeWoChildren

public RemoveNodeWoChildren(String name,
                            String pathToCheck)

RemoveNodeWoChildren

public RemoveNodeWoChildren(String name,
                            String description,
                            String workspaceName,
                            String pathToCheck)
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.