Class NewsJcrNodePermissionsUpgradePlugin

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin

    public class NewsJcrNodePermissionsUpgradePlugin
    extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
    Created by The eXo Platform SAS Author : Ayoub Zayati Sept 14, 2020 This plugin will be executed in order to remove administrators permission from each space news folder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ADMINISTRATORS_IDENTITY  
      static String NEWS_NODES_FOLDER  
      • 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
      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Constructor Summary

      Constructors 
      Constructor Description
      NewsJcrNodePermissionsUpgradePlugin​(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNewsJcrNodesUpdatedCount()  
      void processUpgrade​(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
      • Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

        getDescription, getName, setDescription, setName
    • Constructor Detail

      • NewsJcrNodePermissionsUpgradePlugin

        public NewsJcrNodePermissionsUpgradePlugin​(org.exoplatform.container.xml.InitParams initParams,
                                                   org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                                                   org.exoplatform.services.jcr.RepositoryService repositoryService,
                                                   org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService)
    • Method Detail

      • processUpgrade

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

        public int getNewsJcrNodesUpdatedCount()
        Returns:
        the newsJcrNodesUpdatedCount