com.atlassian.confluence.mail.notification
Class DefaultNotificationManager

java.lang.Object
  extended bycom.atlassian.confluence.mail.notification.DefaultNotificationManager
All Implemented Interfaces:
NotificationManager

public class DefaultNotificationManager
extends Object
implements NotificationManager

Created by IntelliJ IDEA. User: ROSS Date: 6/02/2004 Time: 10:43:12 To change this template use File | Settings | File Templates.


Constructor Summary
DefaultNotificationManager()
           
 
Method Summary
 Notification addDailyReportNotfication(User user)
           
protected  Notification addNotification(User user, Space space, AbstractPage page)
           
 Notification addPageNotification(User user, AbstractPage page)
           
 Notification addSpaceNotification(User user, Space space)
           
 Notification getDailyReportNotificationForUser(User user)
           
 List getDailyReportNotifications()
           
 Notification getNotificationByUserAndPage(User user, AbstractPage page)
           
 Notification getNotificationByUserAndSpace(User user, String spaceKey)
           
 NotificationDao getNotificationDao()
           
 List getNotificationsByPage(AbstractPage page)
           
 List getNotificationsBySpace(Space space)
           
 List getNotificationsByUser(User user)
           
 boolean isUserWatchingPageOrSpace(User user, Space space, AbstractPage page)
           
 void removeAllNotificationsForUser(User user)
          Remove all of the notifications setup for this user.
 void removeDailyReportNotification(User user)
           
 void removeNotification(Notification notification)
           
 void setNotificationDao(NotificationDao notificationDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNotificationManager

public DefaultNotificationManager()
Method Detail

getNotificationDao

public NotificationDao getNotificationDao()

setNotificationDao

public void setNotificationDao(NotificationDao notificationDao)

getNotificationsByUser

public List getNotificationsByUser(User user)
Specified by:
getNotificationsByUser in interface NotificationManager

getNotificationByUserAndPage

public Notification getNotificationByUserAndPage(User user,
                                                 AbstractPage page)
Specified by:
getNotificationByUserAndPage in interface NotificationManager

getNotificationByUserAndSpace

public Notification getNotificationByUserAndSpace(User user,
                                                  String spaceKey)
Specified by:
getNotificationByUserAndSpace in interface NotificationManager

addPageNotification

public Notification addPageNotification(User user,
                                        AbstractPage page)
Specified by:
addPageNotification in interface NotificationManager

addSpaceNotification

public Notification addSpaceNotification(User user,
                                         Space space)
Specified by:
addSpaceNotification in interface NotificationManager

addNotification

protected Notification addNotification(User user,
                                       Space space,
                                       AbstractPage page)

removeNotification

public void removeNotification(Notification notification)
Specified by:
removeNotification in interface NotificationManager

isUserWatchingPageOrSpace

public boolean isUserWatchingPageOrSpace(User user,
                                         Space space,
                                         AbstractPage page)
Specified by:
isUserWatchingPageOrSpace in interface NotificationManager

getNotificationsByPage

public List getNotificationsByPage(AbstractPage page)
Specified by:
getNotificationsByPage in interface NotificationManager

getNotificationsBySpace

public List getNotificationsBySpace(Space space)
Specified by:
getNotificationsBySpace in interface NotificationManager

removeAllNotificationsForUser

public void removeAllNotificationsForUser(User user)
Description copied from interface: NotificationManager
Remove all of the notifications setup for this user. This includes space, page and daily report notifications.

Specified by:
removeAllNotificationsForUser in interface NotificationManager
Parameters:
user -

getDailyReportNotifications

public List getDailyReportNotifications()
Specified by:
getDailyReportNotifications in interface NotificationManager

getDailyReportNotificationForUser

public Notification getDailyReportNotificationForUser(User user)
Specified by:
getDailyReportNotificationForUser in interface NotificationManager

addDailyReportNotfication

public Notification addDailyReportNotfication(User user)
Specified by:
addDailyReportNotfication in interface NotificationManager

removeDailyReportNotification

public void removeDailyReportNotification(User user)
Specified by:
removeDailyReportNotification in interface NotificationManager


Confluence is developed by Atlassian.