|
||||||||||
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)
Retrieve the list of usernames of users watching the given issue |
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) |
Collection<User> |
getCurrentWatchList(Locale userLocale,
org.ofbiz.core.entity.GenericValue issue)
Deprecated. Use getCurrentWatchList(com.atlassian.jira.issue.Issue, java.util.Locale) instead. Since v4.3. |
boolean |
isWatching(User user,
org.ofbiz.core.entity.GenericValue 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)
Determine whether the current user is already watching the issue or not |
boolean |
isWatching(User user,
Issue issue)
Determine whether the current user is already watching the issue or not |
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(User user)
Remove all watches for a given user |
void |
removeAllWatchesForUser(com.atlassian.crowd.embedded.api.User user)
Remove all watches for a given user |
void |
startWatching(User user,
org.ofbiz.core.entity.GenericValue 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)
Enable watching of a particular issue for the user supplied. |
void |
stopWatching(String username,
org.ofbiz.core.entity.GenericValue issue)
Disable watching of a particular issue for the user supplied. |
void |
stopWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
Disable watching of a particular issue for the user supplied. |
void |
stopWatching(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Disable watching of a particular issue for the user supplied. |
void |
stopWatching(User user,
Issue issue)
Disable watching of a particular issue for the user supplied. |
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(User user, Issue issue)
user
- userissue
- issue being watched
boolean isWatching(com.atlassian.crowd.embedded.api.User user, Issue issue)
user
- userissue
- issue being watched
boolean isWatching(User user, org.ofbiz.core.entity.GenericValue issue)
user
- userissue
- issue being watched
boolean isWatching(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
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
sCollection<User> getCurrentWatchList(Locale userLocale, org.ofbiz.core.entity.GenericValue issue)
getCurrentWatchList(com.atlassian.jira.issue.Issue, java.util.Locale)
instead. Since v4.3.
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
issue
- issue being watched
DataAccessException
- if cannot retrieve watchersvoid startWatching(User user, org.ofbiz.core.entity.GenericValue 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)
user
- user that starts watching the given issueissue
- issue being watchedvoid stopWatching(User user, Issue issue)
user
- user that stops 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(User user, org.ofbiz.core.entity.GenericValue 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)
user
- user that stops watching the given issueissue
- issue being watchedvoid stopWatching(String username, org.ofbiz.core.entity.GenericValue issue)
username
- username of the user that stops watching the given issueissue
- issue being watchedvoid removeAllWatchesForUser(User user)
user
- The user that has most probably been deletedvoid 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 |