Package io.meeds.appcenter.upgrade
Class CleanFavoriteApplications
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
io.meeds.appcenter.upgrade.CleanFavoriteApplications
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
@Component
public class CleanFavoriteApplications
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
-
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
ConstructorsConstructorDescriptionCleanFavoriteApplications(org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService) -
Method Summary
Modifier and TypeMethodDescriptionprotected intcleanFavoriteApps(jakarta.persistence.EntityManager entityManager, List<Object[]> duplicatedFavoriteApplicationsEntityList) protected voiddeleteFavoriteApplication(jakarta.persistence.EntityManager entityManager, Long favoriteApplicationId) getName()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, setDescription, setName
-
Constructor Details
-
CleanFavoriteApplications
@Autowired public CleanFavoriteApplications(org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService)
-
-
Method Details
-
processUpgrade
- Specified by:
processUpgradein classorg.exoplatform.commons.upgrade.UpgradeProductPlugin
-
cleanFavoriteApps
-
deleteFavoriteApplication
protected void deleteFavoriteApplication(jakarta.persistence.EntityManager entityManager, Long favoriteApplicationId) -
getName
- Specified by:
getNamein interfaceorg.exoplatform.container.component.ComponentPlugin- Overrides:
getNamein classorg.exoplatform.container.component.BaseComponentPlugin
-