com.atlassian.jira.bc.issue.watcher.WatcherService |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Watcher-related business logic interface.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WatcherService.BulkWatchResult | Used to return the result of a Bulk Watch or Bulk Unwatch operation. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a watcher to an issue's list of watchers, returning the updated list of watchers.
| |||||||||||
Adds a watcher to all of the supplied issues.
| |||||||||||
This method is deprecated.
since 6.1 use
canUnwatchAll(Iterable, com.atlassian.jira.user.ApplicationUser)
| |||||||||||
Whether the specified user can unwatch all the specified issues.
| |||||||||||
This method is deprecated.
since 6.1 use
canWatchAll(Iterable, com.atlassian.jira.user.ApplicationUser)
| |||||||||||
Whether the specified user can watch all the specified issues.
| |||||||||||
Returns a the total number of watchers for a given issue in the first element of the returned Pair, and the list
of visible watchers in the second element of the Pair.
| |||||||||||
Returns a boolean indicating whether the given user is authorised to view an issue's watcher list.
| |||||||||||
Returns a boolean indicating whether watching is enabled in JIRA.
| |||||||||||
Removes a watcher from an issue's list of watchers, returning the updated list of watchers.
| |||||||||||
Removes a watcher from all of the supplied issues.
|
Adds a watcher to an issue's list of watchers, returning the updated list of watchers.
issue | the issue to update |
---|---|
remoteUser | the remote user on behalf of which |
watcher | the watcher to add |
WatchingDisabledException | if watching is currently disabled |
---|
Adds a watcher to all of the supplied issues.
If there is partial success, the issues which we can modify will be modified and the ones we cannot will be returned in a BulkWatchResult.issues | the list of issues to update |
---|---|
remoteUser | the remote user on behalf of which |
watcher | the watcher to add |
WatchingDisabledException | if watching is currently disabled |
---|
This method is deprecated.
since 6.1 use canUnwatchAll(Iterable, com.atlassian.jira.user.ApplicationUser)
Whether the specified user can unwatch all the specified issues.
issues | The list of issues to check |
---|---|
remoteUser | The user to execute this check for |
Whether the specified user can unwatch all the specified issues.
issues | The list of issues to check |
---|---|
applicationUser | The user to execute this check for |
This method is deprecated.
since 6.1 use canWatchAll(Iterable, com.atlassian.jira.user.ApplicationUser)
Whether the specified user can watch all the specified issues.
issues | The list of issues to check |
---|---|
remoteUser | The user to execute this check for |
Whether the specified user can watch all the specified issues.
issues | The list of issues to check |
---|---|
applicationUser | The user to execute this check for |
Returns a the total number of watchers for a given issue in the first element of the returned Pair, and the list of visible watchers in the second element of the Pair. Note that if the remote user does not have permission to view the list of watchers, it is possible for the number of elements in the returned user list to be less than the returned number of watchers.
issue | the Issue to find watchers for |
---|---|
remoteUser | the calling User |
WatchingDisabledException | if watching is currently disabled |
---|
Returns a boolean indicating whether the given user is authorised to view an issue's watcher list.
issue | an Issue |
---|---|
remoteUser | a User |
Returns a boolean indicating whether watching is enabled in JIRA.
Removes a watcher from an issue's list of watchers, returning the updated list of watchers.
issue | the Issue to update |
---|---|
remoteUser | a User indicating the user on behalf of whom this operation is being performed |
watcher | a User representing the User to remove from the watcher list |
WatchingDisabledException | if watching is currently disabled |
---|
Removes a watcher from all of the supplied issues.
If there is partial success, the issues which we can modify will be modified and the ones we cannot will be returned in a BulkWatchResult.issues | the list of Issues to update |
---|---|
remoteUser | an ApplicationUser indicating the user on behalf of whom this operation is being performed |
watcher | an ApplicationUser representing the user to remove from the watcher list for each issue |
WatchingDisabledException | if watching is currently disabled |
---|