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)
           
 List<Notification> findNotificationsByFollowing(com.atlassian.user.User modifier)
          Retrieves the list of Network Notifications for Users who are following the given User.
 Notification getDailyReportNotificationForUser(com.atlassian.user.User user)
           
 List<Notification> getDailyReportNotifications()
           
 Notification getNetworkNotificationForUser(com.atlassian.user.User user)
           
 Notification getNotificationByUserAndPage(com.atlassian.user.User user, AbstractPage page)
           
 Notification getNotificationByUserAndSpace(com.atlassian.user.User user, String spaceKey)
           
 List<Notification> getNotificationsByPage(AbstractPage page)
           
 List<Notification> getNotificationsBySpace(Space space)
           
 List<Notification> getNotificationsByUser(com.atlassian.user.User user)
           
 Notification getSiteBlogNotificationForUser(com.atlassian.user.User user)
           
 List<Notification> getSiteBlogNotifications()
           
 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)
           
 void setNetworkNotificationForUser(com.atlassian.user.User user, boolean watchingNetwork)
           
 void setSiteBlogNotificationForUser(com.atlassian.user.User user, boolean globalBlogWatchForUser)
           
 

Method Detail

getNotificationsByUser

List<Notification> getNotificationsByUser(com.atlassian.user.User user)

getNotificationsByPage

List<Notification> getNotificationsByPage(AbstractPage page)

getNotificationsBySpace

List<Notification> getNotificationsBySpace(Space space)

getNotificationByUserAndPage

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

getNotificationByUserAndSpace

Notification getNotificationByUserAndSpace(com.atlassian.user.User user,
                                           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.


getDailyReportNotifications

List<Notification> getDailyReportNotifications()

getDailyReportNotificationForUser

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

getSiteBlogNotificationForUser

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

getNetworkNotificationForUser

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

setSiteBlogNotificationForUser

void setSiteBlogNotificationForUser(com.atlassian.user.User user,
                                    boolean globalBlogWatchForUser)

setNetworkNotificationForUser

void setNetworkNotificationForUser(com.atlassian.user.User user,
                                   boolean watchingNetwork)

getSiteBlogNotifications

List<Notification> getSiteBlogNotifications()

findNotificationsByFollowing

List<Notification> findNotificationsByFollowing(com.atlassian.user.User modifier)
Retrieves the list of Network Notifications for Users who are following the given User. That is, all Notifications that return true from Notification.isNetwork() and belong to somebody who is following modifier via a Connection.

Parameters:
modifier - usually a user who has modified a piece of content.
Returns:
notifications for anybody subscribed to network notifications who follows modifier.
See Also:
Connection


Copyright © 2003-2011 Atlassian. All Rights Reserved.