org.exoplatform.ecms.upgrade.plugins
Class FavoriteActionUpgradePlugin

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

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

Created by The eXo Platform SAS Add exo:addToFavoriteAction action to all favorite node of all user which have not that action yet Author : eXoPlatform dongpd@exoplatform.com Oct 4, 2011


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
FavoriteActionUpgradePlugin(org.exoplatform.services.jcr.RepositoryService repoService, DMSConfiguration dmsConfiguration, ScriptService scriptService, org.exoplatform.container.configuration.ConfigurationManager configurationManager, ActionServiceContainer actionServiceContainer, TemplateService templateService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.organization.OrganizationService organizationService, org.exoplatform.container.xml.InitParams initParams)
           
 
Method Summary
 void addFavorite(javax.jcr.Node node, java.lang.String userName)
           
 boolean isFavoriter(java.lang.String userName, javax.jcr.Node node)
           
 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

FavoriteActionUpgradePlugin

public FavoriteActionUpgradePlugin(org.exoplatform.services.jcr.RepositoryService repoService,
                                   DMSConfiguration dmsConfiguration,
                                   ScriptService scriptService,
                                   org.exoplatform.container.configuration.ConfigurationManager configurationManager,
                                   ActionServiceContainer actionServiceContainer,
                                   TemplateService templateService,
                                   org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                                   org.exoplatform.services.organization.OrganizationService organizationService,
                                   org.exoplatform.container.xml.InitParams initParams)
Method Detail

shouldProceedToUpgrade

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

processUpgrade

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

isFavoriter

public boolean isFavoriter(java.lang.String userName,
                           javax.jcr.Node node)
                    throws java.lang.Exception
Throws:
java.lang.Exception

addFavorite

public void addFavorite(javax.jcr.Node node,
                        java.lang.String userName)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.