Class WebNotificationServiceImpl

java.lang.Object
org.exoplatform.commons.notification.impl.service.WebNotificationServiceImpl
All Implemented Interfaces:
org.exoplatform.commons.api.notification.service.WebNotificationService

public class WebNotificationServiceImpl extends Object implements org.exoplatform.commons.api.notification.service.WebNotificationService
  • Field Summary

    Fields inherited from interface org.exoplatform.commons.api.notification.service.WebNotificationService

    POPUP_OVER
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebNotificationServiceImpl(org.exoplatform.commons.api.notification.service.setting.PluginSettingService pluginSettingService, org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService, org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webStorage, org.exoplatform.commons.api.notification.channel.ChannelManager channelManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    get(org.exoplatform.commons.api.notification.model.WebNotificationFilter filter, int offset, int limit)
     
    org.exoplatform.commons.api.notification.model.NotificationInfo
    getNotificationInfo(String notificationId)
     
    List<org.exoplatform.commons.api.notification.model.NotificationInfo>
    getNotificationInfos(org.exoplatform.commons.api.notification.model.WebNotificationFilter filter, int offset, int limit)
     
    getNotificationMessage(org.exoplatform.commons.api.notification.model.NotificationInfo notification, boolean isOnPopover)
    Deprecated, for removal: This API element is subject to removal in a future version.
    int
     
    org.exoplatform.commons.api.notification.model.NotificationInfo
    getUnreadNotification(String pluginId, String activityId, String userId)
     
    void
    hidePopover(String notificationId)
     
    void
     
    void
    markAllRead(List<String> plugins, String username)
     
    void
    markRead(String notificationId)
     
    boolean
    remove(String notificationId)
     
    void
     
    void
    resetNumberOnBadge(List<String> plugins, String username)
     
    void
    save(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
     
    void
    update(org.exoplatform.commons.api.notification.model.NotificationInfo notification, boolean moveTop)
     

    Methods inherited from class java.lang.Object

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

    • WebNotificationServiceImpl

      public WebNotificationServiceImpl(org.exoplatform.commons.api.notification.service.setting.PluginSettingService pluginSettingService, org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService, org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webStorage, org.exoplatform.commons.api.notification.channel.ChannelManager channelManager)
  • Method Details

    • save

      public void save(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
      Specified by:
      save in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • update

      public void update(org.exoplatform.commons.api.notification.model.NotificationInfo notification, boolean moveTop)
      Specified by:
      update in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • getUnreadNotification

      public org.exoplatform.commons.api.notification.model.NotificationInfo getUnreadNotification(String pluginId, String activityId, String userId)
      Specified by:
      getUnreadNotification in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • getNotificationInfo

      public org.exoplatform.commons.api.notification.model.NotificationInfo getNotificationInfo(String notificationId)
      Specified by:
      getNotificationInfo in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • markRead

      public void markRead(String notificationId)
      Specified by:
      markRead in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • markAllRead

      public void markAllRead(String userId)
      Specified by:
      markAllRead in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • markAllRead

      public void markAllRead(List<String> plugins, String username)
      Specified by:
      markAllRead in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • getNotificationInfos

      public List<org.exoplatform.commons.api.notification.model.NotificationInfo> getNotificationInfos(org.exoplatform.commons.api.notification.model.WebNotificationFilter filter, int offset, int limit)
      Specified by:
      getNotificationInfos in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • getNotificationMessage

      @Deprecated(forRemoval=true, since="1.5.0") public String getNotificationMessage(org.exoplatform.commons.api.notification.model.NotificationInfo notification, boolean isOnPopover)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNotificationMessage in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • get

      public List<String> get(org.exoplatform.commons.api.notification.model.WebNotificationFilter filter, int offset, int limit)
      Specified by:
      get in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • remove

      public boolean remove(String notificationId)
      Specified by:
      remove in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • hidePopover

      public void hidePopover(String notificationId)
      Specified by:
      hidePopover in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • resetNumberOnBadge

      public void resetNumberOnBadge(String userId)
      Specified by:
      resetNumberOnBadge in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • resetNumberOnBadge

      public void resetNumberOnBadge(List<String> plugins, String username)
      Specified by:
      resetNumberOnBadge in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • getNumberOnBadge

      public int getNumberOnBadge(String userId)
      Specified by:
      getNumberOnBadge in interface org.exoplatform.commons.api.notification.service.WebNotificationService
    • countUnreadByPlugin

      public Map<String,Integer> countUnreadByPlugin(String userId)
      Specified by:
      countUnreadByPlugin in interface org.exoplatform.commons.api.notification.service.WebNotificationService