info.magnolia.nodebuilder.task
Class AbstractNodeBuilderTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.nodebuilder.task.AbstractNodeBuilderTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
ModuleConfigNodeBuilderTask, ModuleNodeBuilderTask, NodeBuilderTask

public abstract class AbstractNodeBuilderTask
extends AbstractRepositoryTask

Base class for Tasks using the node builder API.

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

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
AbstractNodeBuilderTask(String name, String description, ErrorHandling errorHandling, NodeOperation... operations)
           
 
Method Summary
protected  void doExecute(InstallContext ctx)
           
protected abstract  Content getRootNode(InstallContext ctx)
           
protected  ErrorHandler newErrorHandler(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

AbstractNodeBuilderTask

public AbstractNodeBuilderTask(String name,
                               String description,
                               ErrorHandling errorHandling,
                               NodeOperation... operations)
Method Detail

doExecute

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

getRootNode

protected abstract Content getRootNode(InstallContext ctx)
                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

newErrorHandler

protected ErrorHandler newErrorHandler(InstallContext ctx)


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