com.atlassian.confluence.mail.notification
Interface NotificationManager
- All Known Implementing Classes:
- DefaultNotificationManager
- public interface NotificationManager
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)