|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WatcherManager
Allows watching of issues. I.e.: Users watching an issue will receive notifications for every update of the issue.
Method Summary | |
---|---|
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)
Retrieve collection of users that are currently watching this issue (including the current user) |
boolean |
isWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated. Use isWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue) instead. Since v5.0. |
boolean |
isWatching(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Determine whether the current user is already watching the issue or not |
boolean |
isWatchingEnabled()
|
void |
removeAllWatchesForUser(com.atlassian.crowd.embedded.api.User user)
Remove all watches for a given user |
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)
Enable 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)
Disable watching of a particular issue for the user supplied. |
Method Detail |
---|
boolean isWatchingEnabled()
boolean isWatching(com.atlassian.crowd.embedded.api.User user, Issue issue)
user
- userissue
- issue being watched
boolean isWatching(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
isWatching(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue)
instead. Since v5.0.
user
- userissue
- issue being watched
Collection<com.atlassian.crowd.embedded.api.User> getCurrentWatchList(Issue issue, Locale userLocale)
userLocale
- the locale of the user making this call, this is used for sorting the list values.issue
- issue being watched
User
sList<String> getCurrentWatcherUsernames(Issue issue) throws DataAccessException
issue
- issue being watched
DataAccessException
- 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 watched
DataAccessException
- if cannot retrieve watchersvoid startWatching(com.atlassian.crowd.embedded.api.User user, Issue issue)
user
- user that starts watching the given issueissue
- issue being watchedvoid 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)
user
- user that stops watching the given issueissue
- issue being watchedvoid 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)
user
- The user that has most probably been deleted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |