Package org.exoplatform.chat.services
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 Summary
Constructors Constructor Description NotificationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link)voidaddNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link, String options)intgetNumberOfNotifications()intgetNumberOfUnreadNotifications()List<org.exoplatform.chat.model.NotificationBean>getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService)List<org.exoplatform.chat.model.NotificationBean>getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService, String type, String category, String categoryId)intgetUnreadNotificationsTotal(String user)intgetUnreadNotificationsTotal(String user, String type, String category, String categoryId)booleanisRoomSilentForUser(String user, String roomId)voidsetNotificationsAsRead(String user, String type, String category, String categoryId)
-
-
-
Method Detail
-
addNotification
public void addNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link)
- Specified by:
addNotificationin interfaceorg.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:
addNotificationin interfaceorg.exoplatform.chat.services.NotificationService
-
setNotificationsAsRead
public void setNotificationsAsRead(String user, String type, String category, String categoryId)
- Specified by:
setNotificationsAsReadin interfaceorg.exoplatform.chat.services.NotificationService
-
getUnreadNotifications
public List<org.exoplatform.chat.model.NotificationBean> getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService)
- Specified by:
getUnreadNotificationsin interfaceorg.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:
getUnreadNotificationsin interfaceorg.exoplatform.chat.services.NotificationService
-
getUnreadNotificationsTotal
public int getUnreadNotificationsTotal(String user)
- Specified by:
getUnreadNotificationsTotalin interfaceorg.exoplatform.chat.services.NotificationService
-
getUnreadNotificationsTotal
public int getUnreadNotificationsTotal(String user, String type, String category, String categoryId)
- Specified by:
getUnreadNotificationsTotalin interfaceorg.exoplatform.chat.services.NotificationService
-
getNumberOfNotifications
public int getNumberOfNotifications()
- Specified by:
getNumberOfNotificationsin interfaceorg.exoplatform.chat.services.NotificationService
-
getNumberOfUnreadNotifications
public int getNumberOfUnreadNotifications()
- Specified by:
getNumberOfUnreadNotificationsin interfaceorg.exoplatform.chat.services.NotificationService
-
-