com.atlassian.confluence.mail.notification
Interface NotificationManager

All Known Implementing Classes:
DefaultNotificationManager

public interface NotificationManager


Method Summary
 Notification addDailyReportNotfication(User user)
           
 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)
           
 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)
           
 

Method Detail

getNotificationsByUser

public List getNotificationsByUser(User user)

getNotificationsByPage

public List getNotificationsByPage(AbstractPage page)

getNotificationsBySpace

public List getNotificationsBySpace(Space space)

getNotificationByUserAndPage

public Notification getNotificationByUserAndPage(User user,
                                                 AbstractPage page)

getNotificationByUserAndSpace

public Notification getNotificationByUserAndSpace(User user,
                                                  String spaceKey)

addPageNotification

public Notification addPageNotification(User user,
                                        AbstractPage page)

addSpaceNotification

public Notification addSpaceNotification(User user,
                                         Space space)

addDailyReportNotfication

public Notification addDailyReportNotfication(User user)

removeDailyReportNotification

public void removeDailyReportNotification(User user)

removeNotification

public void removeNotification(Notification notification)

isUserWatchingPageOrSpace

public boolean isUserWatchingPageOrSpace(User user,
                                         Space space,
                                         AbstractPage page)

removeAllNotificationsForUser

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

Parameters:
user -

getDailyReportNotifications

public List getDailyReportNotifications()

getDailyReportNotificationForUser

public Notification getDailyReportNotificationForUser(User user)


Confluence is developed by Atlassian.