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 54850 2012-02-24 08:43:56Z tmattsson $

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<Task> getCommonTasks()
          There are some tasks common to the update process and the new installation process that are not automatically bootstrapped.
protected  List<Task> getExtraInstallTasks(InstallContext installContext)
          Installation process will bootstrap 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 bootstrapped.

Method Detail

getCommonTasks

protected List<Task> getCommonTasks()
There are some tasks common to the update process and the new installation process that are not automatically bootstrapped. 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<Task> getExtraInstallTasks(InstallContext installContext)
Installation process will bootstrap everything in the bootstrap folder, then we have to add some extra tasks.

Overrides:
getExtraInstallTasks in class AbstractModuleVersionHandler


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