com.atlassian.confluence.mail.notification
Interface NotificationManager

All Known Implementing Classes:
DefaultNotificationManager

public interface NotificationManager


Method Summary
 Notification addDailyReportNotfication(com.atlassian.user.User user)
           
 Notification addPageNotification(com.atlassian.user.User user, AbstractPage page)
           
 Notification addSpaceNotification(com.atlassian.user.User user, Space space)
           
 Notification getDailyReportNotificationForUser(com.atlassian.user.User user)
           
 java.util.List getDailyReportNotifications()
           
 Notification getNotificationByUserAndPage(com.atlassian.user.User user, AbstractPage page)
           
 Notification getNotificationByUserAndSpace(com.atlassian.user.User user, java.lang.String spaceKey)
           
 java.util.List getNotificationsByPage(AbstractPage page)
           
 java.util.List getNotificationsBySpace(Space space)
           
 java.util.List getNotificationsByUser(com.atlassian.user.User user)
           
 boolean isUserWatchingPageOrSpace(com.atlassian.user.User user, Space space, AbstractPage page)
           
 void removeAllNotificationsForUser(com.atlassian.user.User user)
          Remove all of the notifications setup for this user.
 void removeDailyReportNotification(com.atlassian.user.User user)
           
 void removeNotification(Notification notification)
           
 

Method Detail

getNotificationsByUser

java.util.List getNotificationsByUser(com.atlassian.user.User user)

getNotificationsByPage

java.util.List getNotificationsByPage(AbstractPage page)

getNotificationsBySpace

java.util.List getNotificationsBySpace(Space space)

getNotificationByUserAndPage

Notification getNotificationByUserAndPage(com.atlassian.user.User user,
                                          AbstractPage page)

getNotificationByUserAndSpace

Notification getNotificationByUserAndSpace(com.atlassian.user.User user,
                                           java.lang.String spaceKey)

addPageNotification

Notification addPageNotification(com.atlassian.user.User user,
                                 AbstractPage page)

addSpaceNotification

Notification addSpaceNotification(com.atlassian.user.User user,
                                  Space space)

addDailyReportNotfication

Notification addDailyReportNotfication(com.atlassian.user.User user)

removeDailyReportNotification

void removeDailyReportNotification(com.atlassian.user.User user)

removeNotification

void removeNotification(Notification notification)

isUserWatchingPageOrSpace

boolean isUserWatchingPageOrSpace(com.atlassian.user.User user,
                                  Space space,
                                  AbstractPage page)

removeAllNotificationsForUser

void removeAllNotificationsForUser(com.atlassian.user.User user)
Remove all of the notifications setup for this user. This includes space, page and daily report notifications.

Parameters:
user -

getDailyReportNotifications

java.util.List getDailyReportNotifications()

getDailyReportNotificationForUser

Notification getDailyReportNotificationForUser(com.atlassian.user.User user)


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.