Interface RemoteWatchService

  • All Known Implementing Classes:
    RemoteWatchServiceImpl

    @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.

    • Method Detail

      • watchSpace

        @Deprecated
        default com.atlassian.util.concurrent.Promise<SpaceWatch> watchSpace​(com.atlassian.sal.api.user.UserKey userKey,
                                                                             String spaceKey,
                                                                             List<ContentType> contentTypes)
        Deprecated.
        Remove a watch to the blog posts in a given space
        Parameters:
        userKey - the key of the user to add as a watcher
        spaceKey - the key of the space to remove the watch for
        contentTypes - the content types in the space to remove the watch for
        Since:
        6.8.0
      • unwatchSpace

        @Deprecated
        default com.atlassian.util.concurrent.Promise<Void> unwatchSpace​(com.atlassian.sal.api.user.UserKey userKey,
                                                                         String spaceKey,
                                                                         List<ContentType> contentTypes)
        Deprecated.
        Parameters:
        userKey - the watcher
        spaceKey - the key of the space to check
        contentTypes - the content types in the space to check if watching is given
        Returns:
        whether the user is watching the given space or not
        Since:
        6.8.0
      • watchSpaceCompletionStage

        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
        Parameters:
        userKey - the key of the user to add as a watcher
        spaceKey - the key of the space to remove the watch for
        contentTypes - the content types in the space to remove the watch for
        Since:
        7.0.1
      • unwatchSpaceCompletionStage

        CompletionStage<Void> unwatchSpaceCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                          String spaceKey,
                                                          List<ContentType> contentTypes)
        Parameters:
        userKey - the watcher
        spaceKey - the key of the space to check
        contentTypes - the content types in the space to check if watching is given
        Returns:
        whether the user is watching the given space or not
        Since:
        7.0.1
      • isWatchingSpace

        @Deprecated
        default com.atlassian.util.concurrent.Promise<Boolean> isWatchingSpace​(com.atlassian.sal.api.user.UserKey userKey,
                                                                               String spaceKey,
                                                                               ContentType contentType)
        Parameters:
        userKey - the watcher
        spaceKey - the key of the space to check
        contentType - the content type
        Returns:
        whether the user is watching the specific content type in the given space or not
        Since:
        6.8.0
      • isWatchingSpaceCompletionStage

        CompletionStage<Boolean> isWatchingSpaceCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                                String spaceKey,
                                                                ContentType contentType)
        Parameters:
        userKey - the watcher
        spaceKey - the key of the space to check
        contentType - the content type
        Returns:
        whether the user is watching the specific content type in the given space or not
        Since:
        7.0.1
      • unwatchSpace

        @Deprecated
        default com.atlassian.util.concurrent.Promise<Void> unwatchSpace​(com.atlassian.sal.api.user.UserKey userKey,
                                                                         String spaceKey)
        Deprecated.
        Remove a watch to the given space
        Parameters:
        userKey - the key of the user to add as a watcher
        spaceKey - the key of the space to remove the watch for
      • watchSpaceCompletionStage

        CompletionStage<SpaceWatch> watchSpaceCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                              String spaceKey)
        Create a watch to the given space
        Parameters:
        userKey - the key of the user to add as a watcher
        spaceKey - the key of the space to add the watch for
        Since:
        7.0.1
      • unwatchSpaceCompletionStage

        CompletionStage<Void> unwatchSpaceCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                          String spaceKey)
        Remove a watch to the given space
        Parameters:
        userKey - the key of the user to add as a watcher
        spaceKey - the key of the space to remove the watch for
        Since:
        7.0.1
      • isWatchingSpaceCompletionStage

        CompletionStage<Boolean> isWatchingSpaceCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                                String spaceKey)
        Parameters:
        userKey - the watcher
        spaceKey - the key of the space to check
        Returns:
        whether the user is watching the given space or not
        Since:
        7.0.1
      • unwatchContent

        @Deprecated
        default com.atlassian.util.concurrent.Promise<Void> unwatchContent​(com.atlassian.sal.api.user.UserKey userKey,
                                                                           ContentId contentId)
        Deprecated.
        Remove a watch to the given content
        Parameters:
        userKey - the key of the user to add as a watcher
        contentId - the id of the content to remove the watch for
      • watchContentCompletionStage

        CompletionStage<ContentWatch> watchContentCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                                  ContentId contentId)
        Create a watch to the given content
        Parameters:
        userKey - the key of the user to add as a watcher
        contentId - the id of the content to add the watch for
        Since:
        7.0.1
      • unwatchContentCompletionStage

        CompletionStage<Void> unwatchContentCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                            ContentId contentId)
        Remove a watch to the given content
        Parameters:
        userKey - the key of the user to add as a watcher
        contentId - the id of the content to remove the watch for
        Since:
        7.0.1
      • isWatchingContentCompletionStage

        CompletionStage<Boolean> isWatchingContentCompletionStage​(com.atlassian.sal.api.user.UserKey userKey,
                                                                  ContentId content)
        Parameters:
        userKey - the watcher
        content - the content to check
        Returns:
        whether the user is watching the given content or not
        Since:
        7.0.1