| com.atlassian.bitbucket.watcher.WatcherService |
A service for interacting with watchers
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Checks if a
watcher exists that matches the provided request | |||||||||||
Removes a user as a watcher of the given
watchable. | |||||||||||
Adds a new user as a
watcher. | |||||||||||
Checks if a watcher exists that matches the provided request
| request | a request describing the watcher to match |
|---|
true if a watcher exists that matches the provided request, false otherwise
Removes a user as a watcher of the given watchable.
If the user is not provided the authenticated user is used.
If the user is not watching the watchable, this method will have no effect and return false.
| request | a request describing the watcher to delete |
|---|
true if the watcher existed and was removed, false otherwise