org.exoplatform.ecms.upgrade.templates
Class WCMTemplateUpgradePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
org.exoplatform.ecms.upgrade.templates.WCMTemplateUpgradePlugin
- All Implemented Interfaces:
- Comparable<org.exoplatform.commons.upgrade.UpgradeProductPlugin>, org.exoplatform.container.component.ComponentPlugin
public class WCMTemplateUpgradePlugin
- extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
Created by The eXo Platform SAS
Author : Nguyen Anh Vu
vuna@exoplatform.com
Feb 24, 2012
This class will be used to upgrade pre-defined templates of Content-list-viewer and Search portlets.
Views with desire of manual upgration can be specified in file configuration.properties.
Syntax :
unchanged-clv-templates=
unchanged-wcm-search-templates=
For examples :
unchanged-clv-templates=list/BigHotNewsTemplateCLV.gtmpl,navigation/CategoryList.gtmpl
unchanged-wcm-search-templates=search-form/UIDefaultSearchForm.gtmpl
| Fields inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin |
oldProductGroupId, productGroupId |
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
desc, name |
|
Constructor Summary |
WCMTemplateUpgradePlugin(org.exoplatform.services.cms.views.ApplicationTemplateManagerService appTemplateService,
org.exoplatform.container.xml.InitParams initParams)
|
| Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin |
addNodeVersion, compareTo, equals, getOldProductGroupId, getPluginExecutionOrder, getProductGroupId, hashCode, isEnabled |
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
getDescription, getName, setDescription, setName |
WCMTemplateUpgradePlugin
public WCMTemplateUpgradePlugin(org.exoplatform.services.cms.views.ApplicationTemplateManagerService appTemplateService,
org.exoplatform.container.xml.InitParams initParams)
processUpgrade
public void processUpgrade(String oldVersion,
String newVersion)
- Specified by:
processUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
shouldProceedToUpgrade
public boolean shouldProceedToUpgrade(String newVersion,
String previousVersion)
- Specified by:
shouldProceedToUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.