|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.rpc.NotificationsRpc
public class NotificationsRpc
Wraps the ConfluenceRpc object for notification-specific calls. All `watch*` calls are synced on event queue in order to avoid race condition when user starts watching space before first space page get created
Method Summary | |
---|---|
java.util.Collection<User> |
getWatchersForPage(Page page)
Gets all watchers of a page. |
boolean |
isWatchingPage(Page page,
User user)
Check whether the given user is watching the given page. |
boolean |
isWatchingSpace(Space space,
User user)
Check whether the given user is watching the given space. |
boolean |
isWatchingSpaceForType(Space space,
ContentTypeEnum contentType,
User user)
Check whether the given user is watching the given content type (e.g. |
void |
unwatchPageForUser(AbstractPageEntity page,
User user)
Removes a page watch for the specified user. |
void |
unwatchSpace(User user,
Space space,
ContentTypeEnum contentType)
|
void |
watchNetwork(User user,
boolean watchingNetwork)
Sets Network watch emails for a user to enabled or disabled. |
void |
watchPage(Page page)
Watch a page as the current user. |
void |
watchPageForUser(AbstractPageEntity page,
User user)
Add a page watch for the specified user. |
void |
watchSiteBlogs(User user)
|
void |
watchSpace(Space space)
Watch a space as the current user. |
void |
watchSpace(User user,
Space space)
Watch all content in a space. |
void |
watchSpace(User user,
Space space,
ContentTypeEnum contentType)
Watch all content of a certain type in a space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void watchSiteBlogs(User user)
public void watchSpace(User user, Space space)
user
- to watch content forspace
- to watch content inpublic void watchSpace(User user, Space space, ContentTypeEnum contentType)
user
- to watch content forspace
- to watch content incontentType
- type of content to watch (usually blogpost)public void watchSpace(Space space)
public void watchPage(Page page)
public void watchPageForUser(AbstractPageEntity page, User user)
page
- the page whose watches will be checked, this must have its correct id set.public void unwatchPageForUser(AbstractPageEntity page, User user)
page
- the page to stop watchinguser
- the user who no longer wants to watchpublic void unwatchSpace(User user, Space space, ContentTypeEnum contentType)
public boolean isWatchingPage(Page page, User user)
page
- the page whose watches will be checked, this must have its correct id set.public boolean isWatchingSpace(Space space, User user)
public boolean isWatchingSpaceForType(Space space, ContentTypeEnum contentType, User user)
public void watchNetwork(User user, boolean watchingNetwork)
user
- the user to set the watch state forwatchingNetwork
- true if the user should watch their network, false if notpublic java.util.Collection<User> getWatchersForPage(Page page)
page
- page to get watchers fromcollection
- of users watching a page, empty if none
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |