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, putFuturepublic RemoteWatchServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public WatchService.Validator validator()
RemoteWatchServiceWatchService.validator in interface RemoteWatchServicepublic com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
RemoteWatchServicespacewatchSpace in interface RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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)
RemoteWatchServicespaceunwatchSpace in interface RemoteWatchServiceuserKey - 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)
RemoteWatchServicecontentwatchContent in interface RemoteWatchServiceuserKey - 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)
RemoteWatchServicecontentunwatchContent in interface RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - the watchercontentId - the content to checkcontent or notCopyright © 2003–2017 Atlassian. All rights reserved.