Class HiddenPositionReindexUpgradePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
io.meeds.social.upgrade.HiddenPositionReindexUpgradePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class HiddenPositionReindexUpgradePlugin
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
Reindexes the profile of every enabled user who hid their position, so that
the profile index no longer holds the position the indexer wrote before it
applied the user's choice to that field.
-
Field Summary
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_PARAMETERFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionHiddenPositionReindexUpgradePlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, IdentityDAO identityDAO, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.search.index.IndexingService indexingService) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessUpgrade(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, isEnabled, isExecuteOnlyOnce, shouldProceedToUpgrade, storeValueForPluginMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
HiddenPositionReindexUpgradePlugin
public HiddenPositionReindexUpgradePlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, IdentityDAO identityDAO, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.search.index.IndexingService indexingService)
-
-
Method Details
-
shouldProceedToUpgrade
-
processUpgrade
-