@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) |
void |
addNotification(String user,
String from,
String type,
String category,
String categoryId,
String content,
String link,
String options) |
static void |
cleanupNotifications() |
int |
getNumberOfNotifications() |
int |
getNumberOfUnreadNotifications() |
List<NotificationBean> |
getUnreadNotifications(String user,
UserService userService) |
List<NotificationBean> |
getUnreadNotifications(String user,
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 user, String from, String type, String category, String categoryId, String content, String link)
addNotification in interface NotificationServicepublic void addNotification(String user, String from, String type, String category, String categoryId, String content, String link, String options)
addNotification in interface NotificationServicepublic void setNotificationsAsRead(String user, String type, String category, String categoryId)
setNotificationsAsRead in interface NotificationServicepublic List<NotificationBean> getUnreadNotifications(String user, UserService userService)
getUnreadNotifications in interface NotificationServicepublic List<NotificationBean> getUnreadNotifications(String user, UserService userService, String type, String category, String categoryId)
getUnreadNotifications in interface NotificationServicepublic int getUnreadNotificationsTotal(String user)
getUnreadNotificationsTotal in interface NotificationServicepublic int getUnreadNotificationsTotal(String user, String type, String category, String categoryId)
getUnreadNotificationsTotal in interface NotificationServicepublic int getNumberOfNotifications()
getNumberOfNotifications in interface NotificationServicepublic int getNumberOfUnreadNotifications()
getNumberOfUnreadNotifications in interface NotificationServiceCopyright © 2003–2015 eXo Platform SAS. All rights reserved.