Class WebNotificationServiceImpl

  • All Implemented Interfaces:
    org.exoplatform.commons.api.notification.service.WebNotificationService

    public class WebNotificationServiceImpl
    extends Object
    implements org.exoplatform.commons.api.notification.service.WebNotificationService
    • Constructor Detail

      • WebNotificationServiceImpl

        public WebNotificationServiceImpl​(org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webStorage)
    • Method Detail

      • save

        public void save​(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
        Specified by:
        save 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)
                         throws Exception
        Specified by:
        markAllRead in interface org.exoplatform.commons.api.notification.service.WebNotificationService
        Throws:
        Exception
      • 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
      • 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
      • 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
      • getNumberOnBadge

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