Class NotificationServiceImpl

java.lang.Object
org.exoplatform.chat.services.NotificationServiceImpl
All Implemented Interfaces:
org.exoplatform.chat.services.NotificationService

@Named("notificationService") @ApplicationScoped @Singleton public class NotificationServiceImpl extends Object implements org.exoplatform.chat.services.NotificationService
  • Constructor Details

    • NotificationServiceImpl

      public NotificationServiceImpl()
  • Method Details

    • addNotification

      public void addNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link)
      Specified by:
      addNotification in interface org.exoplatform.chat.services.NotificationService
    • addNotification

      public void addNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link, String options)
      Specified by:
      addNotification in interface org.exoplatform.chat.services.NotificationService
    • setNotificationsAsRead

      public void setNotificationsAsRead(String user, String type, String category, String categoryId)
      Specified by:
      setNotificationsAsRead in interface org.exoplatform.chat.services.NotificationService
    • getUnreadNotifications

      public List<org.exoplatform.chat.model.NotificationBean> getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService)
      Specified by:
      getUnreadNotifications in interface org.exoplatform.chat.services.NotificationService
    • getUnreadNotifications

      public List<org.exoplatform.chat.model.NotificationBean> getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService, String type, String category, String categoryId)
      Specified by:
      getUnreadNotifications in interface org.exoplatform.chat.services.NotificationService
    • getUnreadNotificationsTotal

      public int getUnreadNotificationsTotal(String user)
      Specified by:
      getUnreadNotificationsTotal in interface org.exoplatform.chat.services.NotificationService
    • getUnreadNotificationsTotal

      public int getUnreadNotificationsTotal(String user, String type, String category, String categoryId)
      Specified by:
      getUnreadNotificationsTotal in interface org.exoplatform.chat.services.NotificationService
    • getNumberOfNotifications

      public int getNumberOfNotifications()
      Specified by:
      getNumberOfNotifications in interface org.exoplatform.chat.services.NotificationService
    • getNumberOfUnreadNotifications

      public int getNumberOfUnreadNotifications()
      Specified by:
      getNumberOfUnreadNotifications in interface org.exoplatform.chat.services.NotificationService
    • isRoomSilentForUser

      public boolean isRoomSilentForUser(String user, String roomId)
      Specified by:
      isRoomSilentForUser in interface org.exoplatform.chat.services.NotificationService