Class ProfileIndexVisibilityUpgradePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
io.meeds.social.upgrade.ProfileIndexVisibilityUpgradePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class ProfileIndexVisibilityUpgradePlugin
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
Brings the profile index to what it holds since EXO-93256: no owner-hidden
value, no disabled user. Reindexes the profiles of the users who hid at
least one profile value, and unindexes the disabled users, whom earlier
per-user reindexes may have put back. Both go through the indexing queue, in
batches.
-
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
ConstructorsConstructorDescriptionProfileIndexVisibilityUpgradePlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, org.exoplatform.commons.search.index.IndexingService indexingService, IdentityDAO identityDAO) -
Method Summary
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
-
Constructor Details
-
ProfileIndexVisibilityUpgradePlugin
public ProfileIndexVisibilityUpgradePlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, org.exoplatform.commons.search.index.IndexingService indexingService, IdentityDAO identityDAO)
-
-
Method Details
-
processUpgrade
-