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
-
Field Summary
Fields inherited from interface org.exoplatform.chat.services.NotificationService
M_NOTIFICATIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotification(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) intintList<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) intintgetUnreadNotificationsTotal(String user, String type, String category, String categoryId) booleanisRoomSilentForUser(String user, String roomId) voidsetNotificationsAsRead(String user, String type, String category, String categoryId)
-
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:
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
- 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
- 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
-
isRoomSilentForUser
- Specified by:
isRoomSilentForUserin interfaceorg.exoplatform.chat.services.NotificationService
-