|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.watchers.DefaultWatcherManager
public class DefaultWatcherManager
Field Summary | |
---|---|
static String |
WATCH_ISSUE
|
Constructor Summary | |
---|---|
DefaultWatcherManager(com.atlassian.core.ofbiz.association.AssociationManager associationManager)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WATCH_ISSUE
Constructor Detail |
---|
public DefaultWatcherManager(com.atlassian.core.ofbiz.association.AssociationManager associationManager)
Method Detail |
---|
public boolean isWatching(User user, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
isWatching
in interface WatcherManager
user
- userissue
- issue being watched
public Collection getCurrentWatchList(Locale userLocale, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
getCurrentWatchList
in interface WatcherManager
userLocale
- the locale of the user making this call, this is used for sorting the list values.issue
- issue being watched
User
spublic List getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue) throws DataAccessException
WatcherManager
getCurrentWatcherUsernames
in interface WatcherManager
issue
- issue being watched
DataAccessException
- if cannot retrieve watcherspublic void startWatching(User user, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
startWatching
in interface WatcherManager
user
- user that starts watching the given issueissue
- issue being watchedpublic void stopWatching(String username, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
stopWatching
in interface WatcherManager
username
- username of the user that stops watching the given issueissue
- issue being watchedpublic void stopWatching(User user, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
stopWatching
in interface WatcherManager
user
- user that stops watching the given issueissue
- issue being watchedpublic void removeAllWatchesForUser(User user)
WatcherManager
removeAllWatchesForUser
in interface WatcherManager
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 |