@PublicApi
public interface WatcherManager
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
getCurrentWatcherUsernames(com.atlassian.jira.issue.Issue) instead. Since v5.0. |
List<String> |
getCurrentWatcherUsernames(Issue issue)
Retrieve the list of usernames of users watching the given issue
|
Collection<com.atlassian.crowd.embedded.api.User> |
getCurrentWatchList(Issue issue,
Locale userLocale)
Deprecated.
Use
getWatchers(com.atlassian.jira.issue.Issue, java.util.Locale) instead. Since v6.0. |
int |
getWatcherCount(Issue issue)
Returns the number of users watching this issue.
|
List<ApplicationUser> |
getWatchers(Issue issue,
Locale userLocale)
Retrieve list of users that are currently watching this issue (including the current user).
|
Collection<String> |
getWatcherUserKeys(Issue issue)
Retrieve list of users that are currently watching this issue (including the current user).
|
boolean |
isWatching(ApplicationUser user,
Issue issue)
Determine whether the current user is already watching the issue or not
|
boolean |
isWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
isWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v5.0. |
boolean |
isWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Deprecated.
Use
isWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean |
isWatchingEnabled() |
void |
removeAllWatchesForUser(ApplicationUser user)
Remove all watches for a given user
|
void |
removeAllWatchesForUser(com.atlassian.crowd.embedded.api.User user)
Deprecated.
Use
removeAllWatchesForUser(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0. |
void |
startWatching(ApplicationUser user,
Collection<Issue> issues)
|
void |
startWatching(ApplicationUser user,
Collection<Issue> issues,
Context taskContext)
Enable watching of a list of issues for the user supplied.
|
void |
startWatching(ApplicationUser user,
Issue issue)
Enable watching of a particular issue for the user supplied.
|
void |
startWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
startWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0. |
void |
startWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Deprecated.
Use
startWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
void |
stopWatching(ApplicationUser user,
Collection<Issue> issues)
|
void |
stopWatching(ApplicationUser user,
Collection<Issue> issues,
Context taskContext)
Disable watching of a list of issues for the user supplied.
|
void |
stopWatching(ApplicationUser user,
Issue issue)
Disable watching of a particular issue for the user supplied.
|
void |
stopWatching(String username,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
stopWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0. |
void |
stopWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
stopWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0. |
void |
stopWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Deprecated.
Use
stopWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean isWatchingEnabled()
boolean isWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
isWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.user - userissue - issue being watchedboolean isWatching(ApplicationUser user, Issue issue)
user - userissue - issue being watchedboolean isWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
isWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v5.0.user - userissue - issue being watchedCollection<com.atlassian.crowd.embedded.api.User> getCurrentWatchList(Issue issue, Locale userLocale)
getWatchers(com.atlassian.jira.issue.Issue, java.util.Locale) instead. Since v6.0.userLocale - the locale of the user making this call, this is used for sorting the list values.issue - issue being watchedUsersList<ApplicationUser> getWatchers(Issue issue, Locale userLocale)
userLocale - the locale of the user making this call, this is used for sorting the list values.issue - issue being watchedint getWatcherCount(Issue issue)
issue - issue being watchedCollection<String> getWatcherUserKeys(Issue issue)
issue - issue being watchedList<String> getCurrentWatcherUsernames(Issue issue) throws DataAccessException
issue - issue being watchedDataAccessException - if cannot retrieve watchersList<String> getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue) throws DataAccessException
getCurrentWatcherUsernames(com.atlassian.jira.issue.Issue) instead. Since v5.0.issue - issue being watchedDataAccessException - if cannot retrieve watchersvoid startWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
startWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.user - user that starts watching the given issueissue - issue being watchedvoid startWatching(ApplicationUser user, Issue issue)
user - user that starts watching the given issueissue - issue being watched@Deprecated void startWatching(ApplicationUser user, Collection<Issue> issues)
startWatching(com.atlassian.jira.user.ApplicationUser, java.util.Collection, com.atlassian.jira.task.context.Context)user - user that starts watching the given issuesissues - the list of issues to watchvoid startWatching(ApplicationUser user, Collection<Issue> issues, Context taskContext)
user - user that starts watching the given issuesissues - the list of issues to watchtaskContext - a context through which progress can be reported backvoid startWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
startWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0.user - user that starts watching the given issueissue - issue being watchedvoid stopWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
stopWatching(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.user - user that stops watching the given issueissue - issue being watchedvoid stopWatching(ApplicationUser user, Issue issue)
user - user that stops watching the given issueissue - issue being watched@Deprecated void stopWatching(ApplicationUser user, Collection<Issue> issues)
stopWatching(com.atlassian.jira.user.ApplicationUser, java.util.Collection, com.atlassian.jira.task.context.Context)user - user that stops watching the given issuesissues - list of issues being watchedvoid stopWatching(ApplicationUser user, Collection<Issue> issues, Context taskContext)
user - user that stops watching the given issuesissues - list of issues being watchedtaskContext - a context through which progress can be reported backvoid stopWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
stopWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0.user - user that stops watching the given issueissue - issue being watchedvoid stopWatching(String username, org.ofbiz.core.entity.GenericValue issue)
stopWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0.username - username of the user that stops watching the given issueissue - issue being watchedvoid removeAllWatchesForUser(com.atlassian.crowd.embedded.api.User user)
removeAllWatchesForUser(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.user - The user that has most probably been deletedvoid removeAllWatchesForUser(ApplicationUser user)
user - The user that has most probably been deletedCopyright © 2002-2015 Atlassian. All Rights Reserved.