Package org.exoplatform.news.upgrade.jcr
Class NewsArticlesUpgrade
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
org.exoplatform.news.upgrade.jcr.NewsArticlesUpgrade
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class NewsArticlesUpgrade
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.exoplatform.social.metadata.model.MetadataTypeFields 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
ConstructorsConstructorDescriptionNewsArticlesUpgrade(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, io.meeds.news.service.NewsService newsService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.wiki.service.NoteService noteService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.services.attachments.storage.AttachmentStorage attachmentStorage, org.exoplatform.commons.api.settings.SettingService settingService) -
Method Summary
Modifier and TypeMethodDescriptionvoidintmanageNewsArticles(List<String> newsArticlesNodesUUIDs, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) voidprocessUpgrade(String oldVersion, String newVersion) booleanshouldProceedToUpgrade(String newVersion, String previousGroupVersion, org.exoplatform.commons.upgrade.UpgradePluginExecutionContext upgradePluginExecutionContext) Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
beforeUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, isEnabled, isExecuteOnlyOnce, shouldProceedToUpgrade, storeValueForPluginMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
NEWS_METADATA_TYPE
public static final org.exoplatform.social.metadata.model.MetadataType NEWS_METADATA_TYPE -
NEWS_METADATA_NAME
- See Also:
-
-
Constructor Details
-
NewsArticlesUpgrade
public NewsArticlesUpgrade(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, io.meeds.news.service.NewsService newsService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.wiki.service.NoteService noteService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.services.attachments.storage.AttachmentStorage attachmentStorage, org.exoplatform.commons.api.settings.SettingService settingService)
-
-
Method Details
-
processUpgrade
- Specified by:
processUpgradein classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
afterUpgrade
public void afterUpgrade()- Overrides:
afterUpgradein classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
shouldProceedToUpgrade
public boolean shouldProceedToUpgrade(String newVersion, String previousGroupVersion, org.exoplatform.commons.upgrade.UpgradePluginExecutionContext upgradePluginExecutionContext) - Overrides:
shouldProceedToUpgradein classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
manageNewsArticles
-