Class PublishedNewsDisplayedPropUpgrade
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
org.exoplatform.news.upgrade.targets.PublishedNewsDisplayedPropUpgrade
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class PublishedNewsDisplayedPropUpgrade
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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_PARAMETERFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionPublishedNewsDisplayedPropUpgrade(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 Summary
Modifier and TypeMethodDescriptionintList<org.exoplatform.social.core.jpa.storage.entity.MetadataItemEntity> intmanageNewsTargetsMetadataItemsProps(List<org.exoplatform.social.core.jpa.storage.entity.MetadataItemEntity> newsTargetsMetadataItems) voidprocessUpgrade(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, storeValueForPluginMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
INSERT_NEWS_TARGETS_METADATA_ITEMS_PROPS
- See Also:
-
DELETE_NEWS_TARGETS_METADATA_ITEMS_PROPS
- See Also:
-
GET_NEWS_TARGET_METADATA_ITEMS
- See Also:
-
STAGED_STATUS
- See Also:
-
-
Constructor Details
-
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 Details
-
getMigratedPublishedNewsCount
public int getMigratedPublishedNewsCount() -
processUpgrade
- Specified by:
processUpgradein classorg.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)
-