@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)
Deprecated.
since 7.0.1. Use
isWatchingContentCompletionStage(UserKey, ContentId) instead. |
CompletionStage<Boolean> |
isWatchingContentCompletionStage(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)
Deprecated.
since 7.0.1. Use
isWatchingSpaceCompletionStage(UserKey, String, ContentType) 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, List) 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, List) 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 |
@Deprecated com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
watchSpaceCompletionStage(UserKey, String, List)
instead.space
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 com.atlassian.util.concurrent.Promise<Void> unwatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
unwatchSpaceCompletionStage(UserKey, String, List)
instead.userKey
- the watcherspaceKey
- the key of the space to checkcontentTypes
- the content types in the space to check if watching is givenspace
or notCompletionStage<SpaceWatch> watchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
space
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 forCompletionStage<Void> unwatchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, List<ContentType> contentTypes)
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 com.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, ContentType contentType)
isWatchingSpaceCompletionStage(UserKey, String, ContentType)
instead.userKey
- the watcherspaceKey
- the key of the space to checkcontentType
- the content typespace
or notCompletionStage<Boolean> isWatchingSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey, ContentType contentType)
userKey
- the watcherspaceKey
- the key of the space to checkcontentType
- the content typespace
or not@Deprecated com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
watchSpaceCompletionStage(UserKey, String, List)
instead.space
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to add the watch for@Deprecated com.atlassian.util.concurrent.Promise<Void> unwatchSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
unwatchSpaceCompletionStage(UserKey, String, List)
instead.space
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to remove the watch forCompletionStage<SpaceWatch> watchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
space
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to add the watch forCompletionStage<Void> unwatchSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
space
userKey
- the key of the user to add as a watcherspaceKey
- the key of the space to remove the watch for@Deprecated com.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
isWatchingSpaceCompletionStage(UserKey, String, ContentType)
instead.userKey
- the watcherspaceKey
- the key of the space to checkspace
or notCompletionStage<Boolean> isWatchingSpaceCompletionStage(com.atlassian.sal.api.user.UserKey userKey, String spaceKey)
userKey
- the watcherspaceKey
- the key of the space to checkspace
or not@Deprecated com.atlassian.util.concurrent.Promise<ContentWatch> watchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
watchContentCompletionStage(UserKey, ContentId)
instead.content
userKey
- the key of the user to add as a watchercontentId
- the id of the content to add the watch for@Deprecated com.atlassian.util.concurrent.Promise<Void> unwatchContent(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
unwatchContentCompletionStage(UserKey, ContentId)
instead.content
userKey
- the key of the user to add as a watchercontentId
- the id of the content to remove the watch forCompletionStage<ContentWatch> watchContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
content
userKey
- the key of the user to add as a watchercontentId
- the id of the content to add the watch forCompletionStage<Void> unwatchContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
content
userKey
- the key of the user to add as a watchercontentId
- the id of the content to remove the watch for@Deprecated com.atlassian.util.concurrent.Promise<Boolean> isWatchingContent(com.atlassian.sal.api.user.UserKey userKey, ContentId content)
isWatchingContentCompletionStage(UserKey, ContentId)
instead.userKey
- the watchercontent
- the content to checkcontent
or notCompletionStage<Boolean> isWatchingContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId content)
userKey
- the watchercontent
- the content to checkcontent
or notWatchService.Validator validator()
WatchService
.Copyright © 2003–2020 Atlassian. All rights reserved.