Class SiteExplorerTemplateUpgradePlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.upgrade.UpgradeProductPlugin
-
- org.exoplatform.ecms.upgrade.views.SiteExplorerTemplateUpgradePlugin
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class SiteExplorerTemplateUpgradePlugin extends org.exoplatform.commons.upgrade.UpgradeProductPluginCreated 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 Site Explorer. Templates with desire of manual upgrade can be specified in file configuration.properties.
Syntax :
unchanged-site-explorer-templates={templates name list} For examples :
unchanged-site-explorer-templates=ThumbnailsView, ContentView
-
-
Field Summary
-
Fields inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
asyncUpgradeExecution, executeOnlyOnce, OLD_PRODUCT_GROUP_ID, oldProductGroupId, PRODUCT_GROUP_ID, productGroupId, targetVersion, UPGRADE_COMPLETED_STATUS, UPGRADE_PLUGIN_ASYNC, UPGRADE_PLUGIN_ENABLE, UPGRADE_PLUGIN_EXECUTE_ONCE_PARAMETER, UPGRADE_PLUGIN_EXECUTION_ORDER, UPGRADE_PLUGIN_TARGET_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description SiteExplorerTemplateUpgradePlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService repoService, org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration, org.exoplatform.services.cms.views.ManageViewService manageViewService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSiteExplorerTemplatesUpdatedCount()voidprocessUpgrade(String oldVersion, String newVersion)-
Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
afterUpgrade, beforeUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, isEnabled, isExecuteOnlyOnce, shouldProceedToUpgrade, shouldProceedToUpgrade, storeValueForPlugin
-
-
-
-
Constructor Detail
-
SiteExplorerTemplateUpgradePlugin
public SiteExplorerTemplateUpgradePlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService repoService, org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration, org.exoplatform.services.cms.views.ManageViewService manageViewService)- Parameters:
initParams-
-
-
Method Detail
-
processUpgrade
public void processUpgrade(String oldVersion, String newVersion)
- Specified by:
processUpgradein classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
getSiteExplorerTemplatesUpdatedCount
public int getSiteExplorerTemplatesUpdatedCount()
- Returns:
- the siteExplorerTemplatesUpdatedCount
-
-