public interface WatcherService
watchers
Modifier and Type | Method and Description |
---|---|
boolean |
isWatching(IsWatchingRequest request)
Checks if a
watcher exists that matches the provided request |
Page<Watcher> |
search(WatcherSearchRequest request,
PageRequest pageRequest)
|
boolean |
unwatch(UnwatchRequest request)
Removes a user as a watcher of the given
watchable . |
Watcher |
watch(WatchRequest request)
Adds a new user as a
watcher . |
boolean isWatching(@Nonnull IsWatchingRequest request)
watcher
exists that matches the provided requestrequest
- a request describing the watcher to matchtrue
if a watcher exists that matches the provided request, false
otherwise@Nonnull Page<Watcher> search(@Nonnull WatcherSearchRequest request, @Nonnull PageRequest pageRequest)
request
- a request describing the watchers to search forpageRequest
- the page requestboolean unwatch(@Nonnull UnwatchRequest request)
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 deletetrue
if the watcher existed and was removed, false
otherwise@Nonnull Watcher watch(@Nonnull WatchRequest request)
watcher
. If the user
is not provided,
the authenticated user is used. If the user is already watching the watchable
this method
will simply return the corresponding watcher
instance.request
- a request describing the watcher to createCopyright © 2019 Atlassian. All rights reserved.