org.exoplatform.ecms.upgrade.templates
Class MetadataTemplateUpgradePlugin

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.commons.upgrade.UpgradeProductPlugin
          extended by org.exoplatform.ecms.upgrade.templates.MetadataTemplateUpgradePlugin
All Implemented Interfaces:
Comparable<org.exoplatform.commons.upgrade.UpgradeProductPlugin>, org.exoplatform.container.component.ComponentPlugin

public class MetadataTemplateUpgradePlugin
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin

Created by The eXo Platform SAS This class will be used to upgrade template to view and edit metadata like dc:elementSet. Metadata templates for manual upgration can be specified in file configuration.properties.
Syntax:
unchanged-metadata-templates= For example:
unchanged-metadata-templates=metadata:siteMetadata


Field Summary
 
Fields inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
oldProductGroupId, productGroupId
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
MetadataTemplateUpgradePlugin(org.exoplatform.services.cms.metadata.MetadataService metadataService, org.exoplatform.container.xml.InitParams initParams)
           
 
Method Summary
 void processUpgrade(String oldVersion, String newVersion)
           
 boolean shouldProceedToUpgrade(String newVersion, String previousVersion)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataTemplateUpgradePlugin

public MetadataTemplateUpgradePlugin(org.exoplatform.services.cms.metadata.MetadataService metadataService,
                                     org.exoplatform.container.xml.InitParams initParams)
Method Detail

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.