org.benjp.services.jcr
Class NotificationServiceImpl

java.lang.Object
  extended by org.benjp.services.jcr.AbstractJCRService
      extended by org.benjp.services.jcr.NotificationServiceImpl
All Implemented Interfaces:
NotificationService

public class NotificationServiceImpl
extends AbstractJCRService
implements NotificationService


Field Summary
 
Fields inherited from interface org.benjp.services.NotificationService
M_NOTIFICATIONS
 
Constructor Summary
NotificationServiceImpl()
           
 
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 org.benjp.services.jcr.AbstractJCRService
initMandatoryNodes, initNodetypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationServiceImpl

public NotificationServiceImpl()
Method Detail

addNotification

public void addNotification(String user,
                            String type,
                            String category,
                            String categoryId,
                            String content,
                            String link)
Specified by:
addNotification in interface NotificationService

setNotificationsAsRead

public void setNotificationsAsRead(String user,
                                   String type,
                                   String category,
                                   String categoryId)
Specified by:
setNotificationsAsRead in interface NotificationService

getUnreadNotificationsTotal

public int getUnreadNotificationsTotal(String user)
Specified by:
getUnreadNotificationsTotal in interface NotificationService

getUnreadNotificationsTotal

public int getUnreadNotificationsTotal(String user,
                                       String type,
                                       String category,
                                       String categoryId)
Specified by:
getUnreadNotificationsTotal in interface NotificationService

getNumberOfNotifications

public int getNumberOfNotifications()
Specified by:
getNumberOfNotifications in interface NotificationService

getNumberOfUnreadNotifications

public int getNumberOfUnreadNotifications()
Specified by:
getNumberOfUnreadNotifications in interface NotificationService

cleanupNotifications

public static void cleanupNotifications()


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.