org.exoplatform.chat.services.mongodb
Class NotificationServiceImpl

java.lang.Object
  extended by org.exoplatform.chat.services.mongodb.NotificationServiceImpl
All Implemented Interfaces:
NotificationService

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


Field Summary
 
Fields inherited from interface org.exoplatform.chat.services.NotificationService
M_NOTIFICATIONS
 
Constructor Summary
NotificationServiceImpl()
           
 
Method Summary
 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)
           
 
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

cleanupNotifications

public static void cleanupNotifications()

addNotification

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

addNotification

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

setNotificationsAsRead

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

getUnreadNotifications

public List<NotificationBean> getUnreadNotifications(String user,
                                                     UserService userService)
Specified by:
getUnreadNotifications in interface NotificationService

getUnreadNotifications

public List<NotificationBean> getUnreadNotifications(String user,
                                                     UserService userService,
                                                     String type,
                                                     String category,
                                                     String categoryId)
Specified by:
getUnreadNotifications 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


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.