Package org.exoplatform.wiki.upgrade
Class ElasticsearchMigration
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.upgrade.UpgradeProductPlugin
-
- org.exoplatform.wiki.upgrade.ElasticsearchMigration
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class ElasticsearchMigration extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
-
-
Field Summary
Fields Modifier and Type Field Description static org.exoplatform.commons.api.settings.data.ContextNOTES_ES_UPGRADE_CONTEXTstatic StringNOTES_ES_UPGRADE_CONTEXT_NAMEstatic org.exoplatform.commons.api.settings.data.ScopeNOTES_ES_UPGRADE_SCOPEstatic StringNOTES_ES_UPGRADE_SCOPE_NAMEstatic StringNOTES_ES_UPGRADE_SETTINGS_KEY_NAME-
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
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchMigration(org.exoplatform.analytics.es.AnalyticsESClient analyticsESClient, org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.wiki.jpa.dao.PageDAO pageDAO, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()voidprocessUpgrade(String oldVersion, String newVersion)booleanshouldProceedToUpgrade(String newVersion, String previousGroupVersion, org.exoplatform.commons.upgrade.UpgradePluginExecutionContext previousUpgradePluginExecution)-
Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin
afterUpgrade, beforeUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, isExecuteOnlyOnce, shouldProceedToUpgrade, storeValueForPlugin
-
-
-
-
Field Detail
-
NOTES_ES_UPGRADE_SCOPE_NAME
public static final String NOTES_ES_UPGRADE_SCOPE_NAME
- See Also:
- Constant Field Values
-
NOTES_ES_UPGRADE_CONTEXT_NAME
public static final String NOTES_ES_UPGRADE_CONTEXT_NAME
- See Also:
- Constant Field Values
-
NOTES_ES_UPGRADE_CONTEXT
public static final org.exoplatform.commons.api.settings.data.Context NOTES_ES_UPGRADE_CONTEXT
-
NOTES_ES_UPGRADE_SCOPE
public static final org.exoplatform.commons.api.settings.data.Scope NOTES_ES_UPGRADE_SCOPE
-
NOTES_ES_UPGRADE_SETTINGS_KEY_NAME
public static final String NOTES_ES_UPGRADE_SETTINGS_KEY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElasticsearchMigration
public ElasticsearchMigration(org.exoplatform.analytics.es.AnalyticsESClient analyticsESClient, org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.wiki.jpa.dao.PageDAO pageDAO, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Overrides:
isEnabledin classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
shouldProceedToUpgrade
public boolean shouldProceedToUpgrade(String newVersion, String previousGroupVersion, org.exoplatform.commons.upgrade.UpgradePluginExecutionContext previousUpgradePluginExecution)
- Overrides:
shouldProceedToUpgradein classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
-