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, putFuturepublic RemoteWatchServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
public WatchService.Validator validator()
RemoteWatchServiceWatchService.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.RemoteWatchServicespacewatchSpace in interface RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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)
RemoteWatchServicespacewatchSpaceCompletionStage in interface RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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.RemoteWatchServicespacewatchSpace in interface RemoteWatchServiceuserKey - 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)
RemoteWatchServicespacewatchSpaceCompletionStage in interface RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - 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.RemoteWatchServicespaceunwatchSpace in interface RemoteWatchServiceuserKey - 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)
RemoteWatchServicespaceunwatchSpaceCompletionStage in interface RemoteWatchServiceuserKey - 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.RemoteWatchServicecontentwatchContent in interface RemoteWatchServiceuserKey - 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.RemoteWatchServicecontentunwatchContent in interface RemoteWatchServiceuserKey - 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)
RemoteWatchServicecontentwatchContentCompletionStage in interface RemoteWatchServiceuserKey - 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)
RemoteWatchServicecontentunwatchContentCompletionStage in interface RemoteWatchServiceuserKey - 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 RemoteWatchServiceuserKey - the watchercontentId - the content to checkcontent or notpublic CompletionStage<Boolean> isWatchingContentCompletionStage(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId)
isWatchingContentCompletionStage in interface RemoteWatchServiceuserKey - the watchercontentId - the content to checkcontent or notCopyright © 2003–2022 Atlassian. All rights reserved.