public class

WatcherSearchRequest

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.watcher.WatcherSearchRequest

Class Overview

A request object to search for watcher entities by watchable. To check if a watcher exists for a given user / watchable pair see IsWatchingRequest

Summary

Nested Classes
class WatcherSearchRequest.Builder  
Public Methods
@Nonnull Watchable getWatchable()
boolean isTransitive()
Indicates if a transitive search should be performed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public Watchable getWatchable ()

public boolean isTransitive ()

Indicates if a transitive search should be performed.

Transitive searches will retrieve watchers within a hierarchy. Users who are watching multiple entities in a hierarchy will be de-duplicated and only the most specific entity in the hierarchy will be returned. For example, if a user is watching a repository and a pull request only the pull request watcher will be returned.

Returns
  • true if a transitive search should be performed. false otherwise