Class NotificationUpgradePlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
io.meeds.social.notification.upgrade.NotificationUpgradePlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class NotificationUpgradePlugin 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_PARAMETER

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    NotificationUpgradePlugin(org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService, org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
     
    int
     
    boolean
     
    boolean
     
    void
    processUpgrade(String oldVersion, String newVersion)
     
    int
     

    Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin

    afterUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, shouldProceedToUpgrade, shouldProceedToUpgrade, storeValueForPlugin

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NotificationUpgradePlugin

      public NotificationUpgradePlugin(org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService, org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • beforeUpgrade

      public void beforeUpgrade()
      Overrides:
      beforeUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
    • isExecuteOnlyOnce

      public boolean isExecuteOnlyOnce()
      Overrides:
      isExecuteOnlyOnce in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
    • processUpgrade

      public void processUpgrade(String oldVersion, String newVersion)
      Specified by:
      processUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
    • upgradeUsersNotifications

      public int upgradeUsersNotifications(Set<String> channelIds)
    • countUpgradedUsers

      public int countUpgradedUsers()
    • countUsersToUpgrade

      public int countUsersToUpgrade()