public class WatcherSearchRequest extends Object
watcher
entities by watchable
.
To check if a watcher exists for a given user / watchable pair see IsWatchingRequest
WatcherService.search(WatcherSearchRequest, com.atlassian.bitbucket.util.PageRequest)
Modifier and Type | Class and Description |
---|---|
static class |
WatcherSearchRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Watchable |
getWatchable() |
boolean |
isTransitive()
Indicates if a transitive search should be performed.
|
public boolean isTransitive()
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.
true
if a transitive search should be performed. false
otherwiseCopyright © 2022 Atlassian. All rights reserved.