|
||||||||||
| 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 |
getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue)
Retrieve the list of usernames of users watching the given issue |
Collection |
getCurrentWatchList(Locale userLocale,
org.ofbiz.core.entity.GenericValue issue)
Retrieve collection of users that are currently watching this issue (including the current user) |
boolean |
isWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
Determine whether the current user is already watching the issue or not |
void |
removeAllWatchesForUser(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 |
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. |
| Method Detail |
|---|
boolean isWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
user - userissue - issue being watched
Collection getCurrentWatchList(Locale userLocale,
org.ofbiz.core.entity.GenericValue issue)
userLocale - the locale of the user making this call, this is used for sorting the list values.issue - issue being watched
Users
List getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue)
throws DataAccessException
issue - issue being watched
DataAccessException - if cannot retrieve watchers
void startWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
user - user that starts watching the given issueissue - issue being watched
void stopWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
user - user that stops watching the given issueissue - issue being watched
void 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 deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||