public class RemoteWatchServiceImpl extends AbstractRemoteService<WatchService> implements RemoteWatchService
Constructor and Description |
---|
RemoteWatchServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Boolean> |
isWatchingContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId) |
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 |
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
public RemoteWatchServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public WatchService.Validator validator()
RemoteWatchService
WatchService
.validator
in interface RemoteWatchService
public com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
RemoteWatchService
space
watchSpace
in interface RemoteWatchService
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to add the watch forpublic com.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
isWatchingSpace
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkspace
or notpublic com.atlassian.util.concurrent.Promise<Void> unwatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
RemoteWatchService
space
unwatchSpace
in interface RemoteWatchService
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to remove the watch forpublic com.atlassian.util.concurrent.Promise<ContentWatch> watchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
RemoteWatchService
content
watchContent
in interface RemoteWatchService
userKey
- the key of the user to add as a watchercontentId
- the id of the content to add the watch forpublic com.atlassian.util.concurrent.Promise<Void> unwatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
RemoteWatchService
content
unwatchContent
in interface RemoteWatchService
userKey
- the key of the user to add as a watchercontentId
- the id of the content to remove the watch forpublic com.atlassian.util.concurrent.Promise<Boolean> isWatchingContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
isWatchingContent
in interface RemoteWatchService
userKey
- the watchercontentId
- the content to checkcontent
or notCopyright © 2003–2017 Atlassian. All rights reserved.