public class RemoteWatchServiceImpl extends AbstractRemoteService<WatchService> implements RemoteWatchService
provider
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)
Deprecated.
since 7.0.1. Use
isWatchingContentCompletionStage(UserKey, ContentId) instead. |
CompletionStage<Boolean> |
isWatchingContentCompletionStage(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)
Deprecated.
since 7.0.1. Use
isWatchingSpaceCompletionStage(UserKey, String) instead. |
com.atlassian.util.concurrent.Promise<Boolean> |
isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey,
ContentType contentType)
Deprecated.
since 7.0.1. Use
isWatchingSpaceCompletionStage(UserKey, String, ContentType) instead. |
CompletionStage<Boolean> |
isWatchingSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey) |
CompletionStage<Boolean> |
isWatchingSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey,
ContentType contentType) |
com.atlassian.util.concurrent.Promise<Void> |
unwatchContent(com.atlassian.sal.api.user.UserKey userKey,
ContentId contentId)
Deprecated.
since 7.0.1. Use
unwatchContentCompletionStage(UserKey, ContentId) instead. |
CompletionStage<Void> |
unwatchContentCompletionStage(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)
Deprecated.
since 7.0.1. Use
unwatchSpaceCompletionStage(UserKey, String) instead. |
com.atlassian.util.concurrent.Promise<Void> |
unwatchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey,
List<ContentType> contentTypes)
Deprecated.
since 7.0.1. Use
unwatchSpaceCompletionStage(UserKey, String, List) instead. |
CompletionStage<Void> |
unwatchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Remove a watch to the given
space |
CompletionStage<Void> |
unwatchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey,
List<ContentType> contentTypes) |
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)
Deprecated.
since 7.0.1. Use
watchContentCompletionStage(UserKey, ContentId) instead. |
CompletionStage<ContentWatch> |
watchContentCompletionStage(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)
Deprecated.
since 7.0.1. Use
watchSpaceCompletionStage(UserKey, String) instead. |
com.atlassian.util.concurrent.Promise<SpaceWatch> |
watchSpace(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey,
List<ContentType> contentTypes)
Deprecated.
since 7.0.1. Use
watchSpaceCompletionStage(UserKey, String, List) instead. |
CompletionStage<SpaceWatch> |
watchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey)
Create a watch to the given
space |
CompletionStage<SpaceWatch> |
watchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey,
String spaceKey,
List<ContentType> contentTypes)
Remove a watch to the blog posts in a given
space |
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
public RemoteWatchServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public WatchService.Validator validator()
RemoteWatchService
WatchService
.validator
in interface RemoteWatchService
@Deprecated public com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
watchSpaceCompletionStage(UserKey, String, List)
instead.RemoteWatchService
space
watchSpace
in interface RemoteWatchService
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to remove the watch forcontentTypes
- the content types in the space to remove the watch for@Deprecated public com.atlassian.util.concurrent.Promise<Void> unwatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
unwatchSpaceCompletionStage(UserKey, String, List)
instead.unwatchSpace
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkcontentTypes
- the content types in the space to check if watching is givenspace
or notpublic CompletionStage<SpaceWatch> watchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
RemoteWatchService
space
watchSpaceCompletionStage
in interface RemoteWatchService
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to remove the watch forcontentTypes
- the content types in the space to remove the watch forpublic CompletionStage<Void> unwatchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
unwatchSpaceCompletionStage
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkcontentTypes
- the content types in the space to check if watching is givenspace
or not@Deprecated public com.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, ContentType contentType)
isWatchingSpaceCompletionStage(UserKey, String, ContentType)
instead.isWatchingSpace
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkcontentType
- the content typespace
or notpublic CompletionStage<Boolean> isWatchingSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, ContentType contentType)
isWatchingSpaceCompletionStage
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkcontentType
- the content typespace
or not@Deprecated public com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
watchSpaceCompletionStage(UserKey, String)
instead.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 CompletionStage<SpaceWatch> watchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
RemoteWatchService
space
watchSpaceCompletionStage
in interface RemoteWatchService
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to add the watch for@Deprecated public com.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
isWatchingSpaceCompletionStage(UserKey, String)
instead.isWatchingSpace
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkspace
or notpublic CompletionStage<Boolean> isWatchingSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
isWatchingSpaceCompletionStage
in interface RemoteWatchService
userKey
- the watcherspaceKey
- the key of the space to checkspace
or not@Deprecated public com.atlassian.util.concurrent.Promise<Void> unwatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
unwatchSpaceCompletionStage(UserKey, String)
instead.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 CompletionStage<Void> unwatchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
RemoteWatchService
space
unwatchSpaceCompletionStage
in interface RemoteWatchService
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to remove the watch for@Deprecated public com.atlassian.util.concurrent.Promise<ContentWatch> watchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
watchContentCompletionStage(UserKey, ContentId)
instead.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 for@Deprecated public com.atlassian.util.concurrent.Promise<Void> unwatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
unwatchContentCompletionStage(UserKey, ContentId)
instead.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 CompletionStage<ContentWatch> watchContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
RemoteWatchService
content
watchContentCompletionStage
in interface RemoteWatchService
userKey
- the key of the user to add as a watchercontentId
- the id of the content to add the watch forpublic CompletionStage<Void> unwatchContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
RemoteWatchService
content
unwatchContentCompletionStage
in interface RemoteWatchService
userKey
- the key of the user to add as a watchercontentId
- the id of the content to remove the watch for@Deprecated public com.atlassian.util.concurrent.Promise<Boolean> isWatchingContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
isWatchingContentCompletionStage(UserKey, ContentId)
instead.isWatchingContent
in interface RemoteWatchService
userKey
- the watchercontentId
- the content to checkcontent
or notpublic CompletionStage<Boolean> isWatchingContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
isWatchingContentCompletionStage
in interface RemoteWatchService
userKey
- the watchercontentId
- the content to checkcontent
or notCopyright © 2003–2020 Atlassian. All rights reserved.