@ExperimentalApi
public interface RemoteWatchService
WatchService implementation that communicates with Confluence remotely using the Confluence REST api.
Provides future returning equivalents for the methods in WatchService.
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<Boolean> |
isWatchingContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId content) |
com.atlassian.util.concurrent.Promise<Boolean> |
isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey) |
com.atlassian.util.concurrent.Promise<Void> |
unwatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Remove a watch to the given
content |
com.atlassian.util.concurrent.Promise<Void> |
unwatchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Remove a watch to the given
space |
WatchService.Validator |
validator()
Get the validator of the
WatchService. |
com.atlassian.util.concurrent.Promise<ContentWatch> |
watchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Create a watch to the given
content |
com.atlassian.util.concurrent.Promise<SpaceWatch> |
watchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Create a watch to the given
space |
com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
spaceuserKey - the key of the user to add as a watcherspaceKey - the key of the space to add the watch forcom.atlassian.util.concurrent.Promise<Void> unwatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
spaceuserKey - the key of the user to add as a watcherspaceKey - the key of the space to remove the watch forcom.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
userKey - the watcherspaceKey - the key of the space to checkspace or notcom.atlassian.util.concurrent.Promise<ContentWatch> watchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
contentuserKey - the key of the user to add as a watchercontentId - the id of the content to add the watch forcom.atlassian.util.concurrent.Promise<Void> unwatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
contentuserKey - the key of the user to add as a watchercontentId - the id of the content to remove the watch forcom.atlassian.util.concurrent.Promise<Boolean> isWatchingContent(com.atlassian.sal.api.user.UserKey userKey, ContentId content)
userKey - the watchercontent - the content to checkcontent or notWatchService.Validator validator()
WatchService.Copyright © 2003–2019 Atlassian. All rights reserved.