|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.magnolia.module.AbstractModuleVersionHandler
info.magnolia.module.DefaultModuleVersionHandler
it.openutils.mgnltasks.SimpleModuleVersionHandler
public class SimpleModuleVersionHandler
A base module version handler that re-bootstrap its configuration each time the version number changes. Can be used as is or subclasses (usually overriding getStartupTasks() for configuration tweaks).
All the bootstrap files placed in "/mgnl-bootstrap/(modulename)" will be reloaded every time the version number changes, while xml files placed in "/mgnl-bootstrap/(modulename)-nooverwrite" will be bootstrapped only if the node is not already existing in the repository.
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 | |
---|---|
protected Set<String> |
includedRepositoriesInBootstrap
Repositories to include in bootstrap. |
protected org.slf4j.Logger |
log
Logger. |
Constructor Summary | |
---|---|
SimpleModuleVersionHandler()
|
Method Summary | |
---|---|
void |
addExcludeRepositoryFromBootstrap(String repository)
Deprecated. |
void |
addIncludedRepositoryInmBootstrap(String repository)
Add a repository to bootstrap *inclusion* list |
protected void |
addModuleConfigBootstrapTasks(String modulename,
info.magnolia.module.delta.Delta delta)
Deletes any existing module configuration node (templates, paragraphs, virtualURI and dialogs) before reimporting all the content of the bootstrap folder, to avoid any leftover or problems with renamed items. |
List<info.magnolia.module.delta.Delta> |
getDeltas(info.magnolia.module.InstallContext ctx,
info.magnolia.module.model.Version from)
|
Methods inherited from class info.magnolia.module.DefaultModuleVersionHandler |
---|
getBasicInstallTasks |
Methods inherited from class info.magnolia.module.AbstractModuleVersionHandler |
---|
getCurrentlyInstalled, getDefaultUpdate, getDefaultUpdateConditions, getDefaultUpdateTasks, getExtraInstallTasks, 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 |
Field Detail |
---|
protected org.slf4j.Logger log
protected Set<String> includedRepositoriesInBootstrap
Constructor Detail |
---|
public SimpleModuleVersionHandler()
Method Detail |
---|
@Deprecated public void addExcludeRepositoryFromBootstrap(String repository)
repository
- repository to exclude from bootstrappublic void addIncludedRepositoryInmBootstrap(String repository)
repository
- repository to include in bootstrappublic List<info.magnolia.module.delta.Delta> getDeltas(info.magnolia.module.InstallContext ctx, info.magnolia.module.model.Version from)
getDeltas
in interface info.magnolia.module.ModuleVersionHandler
getDeltas
in class info.magnolia.module.AbstractModuleVersionHandler
protected void addModuleConfigBootstrapTasks(String modulename, info.magnolia.module.delta.Delta delta)
modulename
- delta
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |