org.exoplatform.ecms.upgrade.plugins
Class NodeTypeTemplateUpgradePlugin

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

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

Created by The eXo Platform SAS Author : Nguyen Anh Vu vuna@exoplatform.com Feb 23, 2012 This class will be used to upgrade node type templates like view1.gtmpl, dialog1.gtmpl, stylesheet-rt.css, stylesheet-lt.css. Node type templates with desire of manual upgration can be specified in file configuration.properties.
Syntax :
unchanged-nodetype-templates= For examples :
unchanged-nodetype-templates=nt:file, exo:article


Field Summary
 
Fields inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
productGroupId
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
NodeTypeTemplateUpgradePlugin(TemplateService templateService, MetadataService metadataService, org.exoplatform.container.xml.InitParams initParams)
           
 
Method Summary
 void processUpgrade(java.lang.String oldVersion, java.lang.String newVersion)
           
 boolean shouldProceedToUpgrade(java.lang.String previousVersion, java.lang.String newVersion)
           
 
Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
addNodeVersion, compareTo, equals, 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

NodeTypeTemplateUpgradePlugin

public NodeTypeTemplateUpgradePlugin(TemplateService templateService,
                                     MetadataService metadataService,
                                     org.exoplatform.container.xml.InitParams initParams)
Method Detail

processUpgrade

public void processUpgrade(java.lang.String oldVersion,
                           java.lang.String newVersion)
Specified by:
processUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin

shouldProceedToUpgrade

public boolean shouldProceedToUpgrade(java.lang.String previousVersion,
                                      java.lang.String newVersion)
Specified by:
shouldProceedToUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin


Copyright © 2012 eXo Platform SAS. All Rights Reserved.