Class PublishedNewsDisplayedPropUpgrade

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

    public class PublishedNewsDisplayedPropUpgrade
    extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String STAGED_STATUS  
      • 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
      PublishedNewsDisplayedPropUpgrade​(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService, org.exoplatform.news.service.NewsService newsService, org.exoplatform.social.metadata.MetadataService metadataService)  
    • Constructor Detail

      • PublishedNewsDisplayedPropUpgrade

        public PublishedNewsDisplayedPropUpgrade​(org.exoplatform.container.xml.InitParams initParams,
                                                 org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService,
                                                 org.exoplatform.news.service.NewsService newsService,
                                                 org.exoplatform.social.metadata.MetadataService metadataService)
    • Method Detail

      • getMigratedPublishedNewsCount

        public int getMigratedPublishedNewsCount()
      • processUpgrade

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

        public List<org.exoplatform.social.core.jpa.storage.entity.MetadataItemEntity> getNewsTargetMetadataItems()
      • manageNewsTargetsMetadataItemsProps

        public int manageNewsTargetsMetadataItemsProps​(List<org.exoplatform.social.core.jpa.storage.entity.MetadataItemEntity> newsTargetsMetadataItems)