info.magnolia.testframework.setup
Class AbstractTestingVersionHandler

java.lang.Object
  extended by info.magnolia.module.AbstractModuleVersionHandler
      extended by info.magnolia.testframework.setup.AbstractTestingVersionHandler
All Implemented Interfaces:
info.magnolia.module.ModuleVersionHandler

public abstract class AbstractTestingVersionHandler
extends info.magnolia.module.AbstractModuleVersionHandler

A version handler which will only work on installs, to ensure we're working with a well-known setup, and provides a few utility methods to create templates, dialogs, pages, ... By default, it imports content into the website and config workspace using the properties file returned by getWebsiteImportPropertiesFile() and getConfigImportPropertiesFile() respectively.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class info.magnolia.module.AbstractModuleVersionHandler
info.magnolia.module.AbstractModuleVersionHandler.ModuleVersionToLatestTask, info.magnolia.module.AbstractModuleVersionHandler.ModuleVersionUpdateTask
 
Field Summary
 
Fields inherited from class info.magnolia.module.AbstractModuleVersionHandler
log
 
Constructor Summary
AbstractTestingVersionHandler()
           
 
Method Summary
protected  info.magnolia.module.delta.Task copyArchetypeDialog(String archetypeName, String newName)
           
protected  info.magnolia.module.delta.ArrayDelegateTask copyArchetypePageAndChangeTemplate(String name, String newPageName, String newTemplate, String newTitle, String renderType, String templateScript)
           
protected  List<info.magnolia.module.delta.Task> getBasicInstallTasks(info.magnolia.module.InstallContext installContext)
           
protected abstract  String getConfigImportPropertiesFile()
           
 List<info.magnolia.module.delta.Delta> getDeltas(info.magnolia.module.InstallContext installContext, info.magnolia.module.model.Version from)
           
protected abstract  List<info.magnolia.module.delta.Task> getExtraInstallTasks(info.magnolia.module.InstallContext installContext)
           
protected abstract  String getWebsiteImportPropertiesFile()
           
protected  info.magnolia.nodebuilder.task.ModuleNodeBuilderTask newComponentDefinition(String name, String templateScript, String renderType, Class modelClass)
           
protected  info.magnolia.nodebuilder.task.ModuleNodeBuilderTask newTemplateDefinition(String name, String templateScript, String renderType)
           
protected  info.magnolia.module.delta.Task removeArchetypePage()
           
 
Methods inherited from class info.magnolia.module.AbstractModuleVersionHandler
getCurrentlyInstalled, getDefaultUpdate, getDefaultUpdateConditions, getDefaultUpdateTasks, getInstall, getInstallConditions, getStartupDelta, getStartupTasks, getUpdateDeltas, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTestingVersionHandler

public AbstractTestingVersionHandler()
Method Detail

getDeltas

public List<info.magnolia.module.delta.Delta> getDeltas(info.magnolia.module.InstallContext installContext,
                                                        info.magnolia.module.model.Version from)
Specified by:
getDeltas in interface info.magnolia.module.ModuleVersionHandler
Overrides:
getDeltas in class info.magnolia.module.AbstractModuleVersionHandler

getBasicInstallTasks

protected List<info.magnolia.module.delta.Task> getBasicInstallTasks(info.magnolia.module.InstallContext installContext)
Specified by:
getBasicInstallTasks in class info.magnolia.module.AbstractModuleVersionHandler

getWebsiteImportPropertiesFile

protected abstract String getWebsiteImportPropertiesFile()

getConfigImportPropertiesFile

protected abstract String getConfigImportPropertiesFile()

getExtraInstallTasks

protected abstract List<info.magnolia.module.delta.Task> getExtraInstallTasks(info.magnolia.module.InstallContext installContext)
Overrides:
getExtraInstallTasks in class info.magnolia.module.AbstractModuleVersionHandler

newTemplateDefinition

protected info.magnolia.nodebuilder.task.ModuleNodeBuilderTask newTemplateDefinition(String name,
                                                                                     String templateScript,
                                                                                     String renderType)

newComponentDefinition

protected info.magnolia.nodebuilder.task.ModuleNodeBuilderTask newComponentDefinition(String name,
                                                                                      String templateScript,
                                                                                      String renderType,
                                                                                      Class modelClass)

copyArchetypeDialog

protected info.magnolia.module.delta.Task copyArchetypeDialog(String archetypeName,
                                                              String newName)

copyArchetypePageAndChangeTemplate

protected info.magnolia.module.delta.ArrayDelegateTask copyArchetypePageAndChangeTemplate(String name,
                                                                                          String newPageName,
                                                                                          String newTemplate,
                                                                                          String newTitle,
                                                                                          String renderType,
                                                                                          String templateScript)

removeArchetypePage

protected info.magnolia.module.delta.Task removeArchetypePage()


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