info.magnolia.module.samples.setup
Class SamplesVersionHandler

java.lang.Object
  extended by info.magnolia.module.AbstractModuleVersionHandler
      extended by info.magnolia.module.DefaultModuleVersionHandler
          extended by info.magnolia.module.samples.setup.SamplesVersionHandler
All Implemented Interfaces:
ModuleVersionHandler

public class SamplesVersionHandler
extends DefaultModuleVersionHandler

Used to update previous version of samples module to the new one, as the module has major changes there are some tasks to perform.

Version:
$Id: SamplesVersionHandler.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
philipp

Nested Class Summary
 
Nested classes/interfaces inherited from class info.magnolia.module.AbstractModuleVersionHandler
AbstractModuleVersionHandler.ModuleVersionToLatestTask, AbstractModuleVersionHandler.ModuleVersionUpdateTask
 
Field Summary
 
Fields inherited from class info.magnolia.module.AbstractModuleVersionHandler
log
 
Constructor Summary
SamplesVersionHandler()
          First thing is to back up the old module, configuration and templates.
 
Method Summary
protected  List getCommonTasks()
          There are some tasks common to the update process and the new installation process that are not automatically bootstraped.
protected  List getExtraInstallTasks(InstallContext installContext)
          Installation process will boostrap everything in the bootstrap folder, then we have to add some extra tasks.
 
Methods inherited from class info.magnolia.module.DefaultModuleVersionHandler
getBasicInstallTasks
 
Methods inherited from class info.magnolia.module.AbstractModuleVersionHandler
getCurrentlyInstalled, getDefaultUpdate, getDefaultUpdateConditions, getDefaultUpdateTasks, getDeltas, getInstall, getInstallConditions, getStartupDelta, getStartupTasks, getUpdate, getUpdateDeltas, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplesVersionHandler

public SamplesVersionHandler()
First thing is to back up the old module, configuration and templates. Then the new content is bootstraped.

Method Detail

getCommonTasks

protected List getCommonTasks()
There are some tasks common to the update process and the new installation process that are not automatically bootstraped. Add new menu item, and three sub menu items and then set the new menu item in the proper place And then sets the default virtual URI on public instances

Returns:

getExtraInstallTasks

protected List getExtraInstallTasks(InstallContext installContext)
Installation process will boostrap everything in the bootstrap folder, then we have to add some extra tasks.

Overrides:
getExtraInstallTasks in class AbstractModuleVersionHandler


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