|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WatcherService
Watcher-related business logic interface.
| Method Summary | |
|---|---|
ServiceOutcome<List<User>> |
addWatcher(Issue issue,
User remoteUser,
User watcher)
Deprecated. since v4.3. Use addWatcher(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.User) instead. |
ServiceOutcome<List<com.atlassian.crowd.embedded.api.User>> |
addWatcher(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
com.atlassian.crowd.embedded.api.User watcher)
Adds a watcher to an issue's list of watchers, returning the updated list of watchers. |
ServiceOutcome<Pair<Integer,List<User>>> |
getWatchers(Issue issue,
User remoteUser)
Deprecated. since v4.3. Use getWatchers(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) instead. |
ServiceOutcome<Pair<Integer,List<com.atlassian.crowd.embedded.api.User>>> |
getWatchers(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
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. |
boolean |
hasViewWatcherListPermission(Issue issue,
User remoteUser)
Returns a boolean indicating whether the given user is authorised to view an issue's watcher list. |
boolean |
hasViewWatcherListPermission(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Returns a boolean indicating whether the given user is authorised to view an issue's watcher list. |
boolean |
isWatchingEnabled()
Returns a boolean indicating whether watching is enabled in JIRA. |
ServiceOutcome<List<User>> |
removeWatcher(Issue issue,
User remoteUser,
User watcher)
Deprecated. since v4.3. Use removeWatcher(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.User) instead. |
ServiceOutcome<List<com.atlassian.crowd.embedded.api.User>> |
removeWatcher(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
com.atlassian.crowd.embedded.api.User watcher)
Removes a watcher from an issue's list of watchers, returning the updated list of watchers. |
| Method Detail |
|---|
boolean isWatchingEnabled()
boolean hasViewWatcherListPermission(Issue issue,
User remoteUser)
issue - an IssueremoteUser - a User
boolean hasViewWatcherListPermission(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
issue - an IssueremoteUser - a User
@Deprecated
ServiceOutcome<Pair<Integer,List<User>>> getWatchers(Issue issue,
User remoteUser)
throws WatchingDisabledException
getWatchers(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) instead.
issue - the Issue to find watchers forremoteUser - the calling User
WatchingDisabledException - if watching is currently disabled
ServiceOutcome<Pair<Integer,List<com.atlassian.crowd.embedded.api.User>>> getWatchers(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
throws WatchingDisabledException
issue - the Issue to find watchers forremoteUser - the calling User
WatchingDisabledException - if watching is currently disabled
@Deprecated
ServiceOutcome<List<User>> addWatcher(Issue issue,
User remoteUser,
User watcher)
throws WatchingDisabledException
addWatcher(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.User) instead.
issue - the issue to updateremoteUser - the remote user on behalf of whichwatcher - the watcher to add
WatchingDisabledException - if watching is currently disabled
ServiceOutcome<List<com.atlassian.crowd.embedded.api.User>> addWatcher(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
com.atlassian.crowd.embedded.api.User watcher)
throws WatchingDisabledException
issue - the issue to updateremoteUser - the remote user on behalf of whichwatcher - the watcher to add
WatchingDisabledException - if watching is currently disabled
@Deprecated
ServiceOutcome<List<User>> removeWatcher(Issue issue,
User remoteUser,
User watcher)
throws WatchingDisabledException
removeWatcher(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.User) instead.
issue - the Issue to updateremoteUser - a User indicating the user on behalf of whom this operation is being performedwatcher - a User representing the User to remove from the watcher list
WatchingDisabledException - if watching is currently disabled
ServiceOutcome<List<com.atlassian.crowd.embedded.api.User>> removeWatcher(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
com.atlassian.crowd.embedded.api.User watcher)
throws WatchingDisabledException
issue - the Issue to updateremoteUser - a User indicating the user on behalf of whom this operation is being performedwatcher - a User representing the User to remove from the watcher list
WatchingDisabledException - if watching is currently disabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||