com.atlassian.confluence.mail.notification
Interface NotificationManager
- All Known Implementing Classes:
- DefaultNotificationManager
public interface NotificationManager
getNotificationsByUser
List getNotificationsByUser(User user)
getNotificationsByPage
List getNotificationsByPage(AbstractPage page)
getNotificationsBySpace
List getNotificationsBySpace(Space space)
getNotificationByUserAndPage
Notification getNotificationByUserAndPage(User user,
AbstractPage page)
getNotificationByUserAndSpace
Notification getNotificationByUserAndSpace(User user,
String spaceKey)
addPageNotification
Notification addPageNotification(User user,
AbstractPage page)
addSpaceNotification
Notification addSpaceNotification(User user,
Space space)
addDailyReportNotfication
Notification addDailyReportNotfication(User user)
removeDailyReportNotification
void removeDailyReportNotification(User user)
removeNotification
void removeNotification(Notification notification)
isUserWatchingPageOrSpace
boolean isUserWatchingPageOrSpace(User user,
Space space,
AbstractPage page)
removeAllNotificationsForUser
void removeAllNotificationsForUser(User user)
- Remove all of the notifications setup for this user. This includes space, page and daily
report notifications.
- Parameters:
user -
getDailyReportNotifications
List getDailyReportNotifications()
getDailyReportNotificationForUser
Notification getDailyReportNotificationForUser(User user)