org.benjp.services
Class NotificationService

java.lang.Object
  extended by org.benjp.services.NotificationService

@Named(value="notificationService")
@ApplicationScoped
public class NotificationService
extends Object


Field Summary
static String M_NOTIFICATIONS
           
 
Constructor Summary
NotificationService()
           
 
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
 

Field Detail

M_NOTIFICATIONS

public static final String M_NOTIFICATIONS
See Also:
Constant Field Values
Constructor Detail

NotificationService

public NotificationService()
Method Detail

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.