org.benjp.services
Class NotificationService
java.lang.Object
org.benjp.services.NotificationService
@Named(value="notificationService")
@ApplicationScoped
public class NotificationService
- extends Object
|
Method Summary |
void |
addNotification(String user,
String type,
String category,
String categoryId,
String content,
String link)
|
static void |
cleanupNotifications()
|
int |
getNumberOfNotifications()
|
int |
getNumberOfUnreadNotifications()
|
int |
getUnreadNotificationsTotal(String user)
|
int |
getUnreadNotificationsTotal(String user,
String type,
String category,
String categoryId)
|
void |
setNotificationsAsRead(String user,
String type,
String category,
String categoryId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
M_NOTIFICATIONS
public static final String M_NOTIFICATIONS
- See Also:
- Constant Field Values
NotificationService
public NotificationService()
cleanupNotifications
public static void cleanupNotifications()
addNotification
public void addNotification(String user,
String type,
String category,
String categoryId,
String content,
String link)
setNotificationsAsRead
public void setNotificationsAsRead(String user,
String type,
String category,
String categoryId)
getUnreadNotificationsTotal
public int getUnreadNotificationsTotal(String user)
getUnreadNotificationsTotal
public int getUnreadNotificationsTotal(String user,
String type,
String category,
String categoryId)
getNumberOfNotifications
public int getNumberOfNotifications()
getNumberOfUnreadNotifications
public int getNumberOfUnreadNotifications()
Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.