com.atlassian.confluence.mail.notification
Interface NotificationManager
- All Known Implementing Classes:
- DefaultNotificationManager
public interface NotificationManager
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
Notification
s for User
s who are
following the given User
. That is, all Notification
s 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.