|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationManager
Method Summary | |
---|---|
Notification |
addDailyReportNotfication(com.atlassian.user.User user)
|
Notification |
addPageNotification(com.atlassian.user.User user,
AbstractPage page)
|
Notification |
addSpaceNotification(com.atlassian.user.User user,
Space space)
|
Notification |
addSpaceNotification(com.atlassian.user.User user,
Space space,
ContentTypeEnum type)
Add a space notification for a particular content type. |
List<Notification> |
findNotificationsByFollowing(com.atlassian.user.User modifier)
Retrieves the list of Network Notification s for User s who are
following the given User . |
Iterable<Long> |
findPageAndSpaceNotificationIdsFromSpace(Space space)
Retrieves ids of all notifications in a space. |
Notification |
getDailyReportNotificationForUser(com.atlassian.user.User user)
|
List<Notification> |
getDailyReportNotifications()
|
Notification |
getNetworkNotificationForUser(com.atlassian.user.User user)
|
Notification |
getNotificationByUserAndPage(com.atlassian.user.User user,
AbstractPage page)
|
Notification |
getNotificationByUserAndSpace(com.atlassian.user.User user,
Space space)
Return a notification if the user is watching the entire space. |
Notification |
getNotificationByUserAndSpace(com.atlassian.user.User user,
String spaceKey)
Return a notification if the user is watching the entire space with the given spaceKey. |
Notification |
getNotificationByUserAndSpaceAndType(com.atlassian.user.User user,
Space space,
ContentTypeEnum type)
|
List<Notification> |
getNotificationsByPage(AbstractPage page)
|
List<Notification> |
getNotificationsBySpace(Space space)
Deprecated. Since 3.5 - use getNotificationsBySpaceAndType(Space, ContentTypeEnum) |
List<Notification> |
getNotificationsBySpaceAndType(Space space,
ContentTypeEnum type)
|
List<Notification> |
getNotificationsByUser(com.atlassian.user.User user)
|
Notification |
getSiteBlogNotificationForUser(com.atlassian.user.User user)
|
List<Notification> |
getSiteBlogNotifications()
|
boolean |
isUserWatchingPageOrSpace(com.atlassian.user.User user,
Space space,
AbstractPage page)
Returns true if: a) the user is watching the AbstractPage b) the user is watching the space, or c) the user is watching the contentType of the AbstractPage for the Space This method can be used to check if a user is watching a page directly or indirectly. |
void |
removeAllNotificationsForSpace(Space space)
Remove all of the notifications set up for this space. |
void |
removeAllNotificationsForUser(com.atlassian.user.User user)
Remove all of the notifications setup for this user. |
void |
removeDailyReportNotification(com.atlassian.user.User user)
|
void |
removeNotification(Notification notification)
|
void |
setNetworkNotificationForUser(com.atlassian.user.User user,
boolean watchingNetwork)
|
void |
setSiteBlogNotificationForUser(com.atlassian.user.User user,
boolean globalBlogWatchForUser)
|
Method Detail |
---|
List<Notification> getNotificationsByUser(com.atlassian.user.User user)
List<Notification> getNotificationsByPage(AbstractPage page)
@Deprecated List<Notification> getNotificationsBySpace(Space space)
getNotificationsBySpaceAndType(Space, ContentTypeEnum)
List<Notification> getNotificationsBySpaceAndType(Space space, ContentTypeEnum type)
Notification getNotificationByUserAndPage(com.atlassian.user.User user, AbstractPage page)
Notification getNotificationByUserAndSpace(com.atlassian.user.User user, String spaceKey)
getNotificationByUserAndSpaceAndType(com.atlassian.user.User, com.atlassian.confluence.spaces.Space, com.atlassian.confluence.search.service.ContentTypeEnum)
instead.
Notification getNotificationByUserAndSpace(com.atlassian.user.User user, Space space)
getNotificationByUserAndSpaceAndType(com.atlassian.user.User, com.atlassian.confluence.spaces.Space, com.atlassian.confluence.search.service.ContentTypeEnum)
instead.
Notification getNotificationByUserAndSpaceAndType(com.atlassian.user.User user, Space space, ContentTypeEnum type)
Notification addPageNotification(com.atlassian.user.User user, AbstractPage page)
Notification addSpaceNotification(com.atlassian.user.User user, Space space)
Notification addSpaceNotification(com.atlassian.user.User user, Space space, ContentTypeEnum type)
Notification addDailyReportNotfication(com.atlassian.user.User user)
void removeDailyReportNotification(com.atlassian.user.User user)
void removeNotification(Notification notification)
boolean isUserWatchingPageOrSpace(com.atlassian.user.User user, Space space, AbstractPage page)
void removeAllNotificationsForUser(com.atlassian.user.User user)
void removeAllNotificationsForSpace(Space space)
List<Notification> getDailyReportNotifications()
Notification getDailyReportNotificationForUser(com.atlassian.user.User user)
Notification getSiteBlogNotificationForUser(com.atlassian.user.User user)
Notification getNetworkNotificationForUser(com.atlassian.user.User user)
void setSiteBlogNotificationForUser(com.atlassian.user.User user, boolean globalBlogWatchForUser)
void setNetworkNotificationForUser(com.atlassian.user.User user, boolean watchingNetwork)
List<Notification> getSiteBlogNotifications()
List<Notification> findNotificationsByFollowing(com.atlassian.user.User modifier)
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
.
modifier
- usually a user who has modified a piece of content.
modifier
.Connection
Iterable<Long> findPageAndSpaceNotificationIdsFromSpace(Space space)
space
- a space to find the notifications for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |