@Named(value="notificationService") @ApplicationScoped public class NotificationServiceImpl extends Object implements NotificationService
M_NOTIFICATIONS| Constructor and Description |
|---|
NotificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotification(String user,
String from,
String type,
String category,
String categoryId,
String content,
String link,
String dbName) |
void |
addNotification(String user,
String from,
String type,
String category,
String categoryId,
String content,
String link,
String options,
String dbName) |
static void |
cleanupNotifications() |
int |
getNumberOfNotifications(String dbName) |
int |
getNumberOfUnreadNotifications(String dbName) |
List<NotificationBean> |
getUnreadNotifications(String user,
UserService userService,
String dbName) |
List<NotificationBean> |
getUnreadNotifications(String user,
UserService userService,
String type,
String category,
String categoryId,
String dbName) |
int |
getUnreadNotificationsTotal(String user,
String dbName) |
int |
getUnreadNotificationsTotal(String user,
String type,
String category,
String categoryId,
String dbName) |
void |
setNotificationsAsRead(String user,
String type,
String category,
String categoryId,
String dbName) |
public static void cleanupNotifications()
public void addNotification(String user, String from, String type, String category, String categoryId, String content, String link, String dbName)
addNotification in interface NotificationServicepublic void addNotification(String user, String from, String type, String category, String categoryId, String content, String link, String options, String dbName)
addNotification in interface NotificationServicepublic void setNotificationsAsRead(String user, String type, String category, String categoryId, String dbName)
setNotificationsAsRead in interface NotificationServicepublic List<NotificationBean> getUnreadNotifications(String user, UserService userService, String dbName)
getUnreadNotifications in interface NotificationServicepublic List<NotificationBean> getUnreadNotifications(String user, UserService userService, String type, String category, String categoryId, String dbName)
getUnreadNotifications in interface NotificationServicepublic int getUnreadNotificationsTotal(String user, String dbName)
getUnreadNotificationsTotal in interface NotificationServicepublic int getUnreadNotificationsTotal(String user, String type, String category, String categoryId, String dbName)
getUnreadNotificationsTotal in interface NotificationServicepublic int getNumberOfNotifications(String dbName)
getNumberOfNotifications in interface NotificationServicepublic int getNumberOfUnreadNotifications(String dbName)
getNumberOfUnreadNotifications in interface NotificationServiceCopyright © 2003–2016 eXo Platform SAS. All rights reserved.