com.atlassian.confluence.mail.notification
Interface NotificationManager
- All Known Implementing Classes:
- DefaultNotificationManager
public interface NotificationManager
getNotificationsByUser
java.util.List<Notification> getNotificationsByUser(com.atlassian.user.User user)
getNotificationsByPage
java.util.List<Notification> getNotificationsByPage(AbstractPage page)
getNotificationsBySpace
java.util.List<Notification> 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.
getDailyReportNotifications
java.util.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
java.util.List<Notification> getSiteBlogNotifications()
findNotificationsByFollowing
java.util.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-2010 Atlassian. All Rights Reserved.