@Named(value="notificationStorage") @ApplicationScoped @Singleton public class NotificationMongoDataStorage extends Object implements NotificationDataStorage
M_NOTIFICATIONS| Constructor and Description |
|---|
NotificationMongoDataStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotification(String receiver,
String sender,
String type,
String category,
String categoryId,
String content,
String link) |
void |
addNotification(String receiver,
String sender,
String type,
String category,
String categoryId,
String content,
String link,
String options) |
static void |
cleanupNotifications() |
int |
getNumberOfNotifications() |
int |
getNumberOfUnreadNotifications() |
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) |
int |
getUnreadNotificationsTotal(String user) |
int |
getUnreadNotificationsTotal(String user,
String type,
String category,
String categoryId) |
void |
setNotificationsAsRead(String user,
String type,
String category,
String categoryId) |
public static void cleanupNotifications()
public void addNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link)
addNotification in interface NotificationDataStoragepublic void addNotification(String receiver, String sender, String type, String category, String categoryId, String content, String link, String options)
addNotification in interface NotificationDataStoragepublic void setNotificationsAsRead(String user, String type, String category, String categoryId)
setNotificationsAsRead in interface NotificationDataStoragepublic List<org.exoplatform.chat.model.NotificationBean> getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService)
getUnreadNotifications in interface NotificationDataStoragepublic List<org.exoplatform.chat.model.NotificationBean> getUnreadNotifications(String user, org.exoplatform.chat.services.UserService userService, String type, String category, String categoryId)
getUnreadNotifications in interface NotificationDataStoragepublic int getUnreadNotificationsTotal(String user)
getUnreadNotificationsTotal in interface NotificationDataStoragepublic int getUnreadNotificationsTotal(String user, String type, String category, String categoryId)
getUnreadNotificationsTotal in interface NotificationDataStoragepublic int getNumberOfNotifications()
getNumberOfNotifications in interface NotificationDataStoragepublic int getNumberOfUnreadNotifications()
getNumberOfUnreadNotifications in interface NotificationDataStorageCopyright © 2003–2019 eXo Platform SAS. All rights reserved.