|
||||||||||
| 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 WatcherManageruser - userissue - issue being watched
public Collection getCurrentWatchList(Locale userLocale,
org.ofbiz.core.entity.GenericValue issue)
WatcherManager
getCurrentWatchList in interface WatcherManageruserLocale - the locale of the user making this call, this is used for sorting the list values.issue - issue being watched
Users
public List getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue)
throws DataAccessException
WatcherManager
getCurrentWatcherUsernames in interface WatcherManagerissue - issue being watched
DataAccessException - if cannot retrieve watchers
public void startWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
WatcherManager
startWatching in interface WatcherManageruser - user that starts watching the given issueissue - issue being watched
public void stopWatching(String username,
org.ofbiz.core.entity.GenericValue issue)
WatcherManager
stopWatching in interface WatcherManagerusername - username of the user that stops watching the given issueissue - issue being watched
public void stopWatching(User user,
org.ofbiz.core.entity.GenericValue issue)
WatcherManager
stopWatching in interface WatcherManageruser - user that stops watching the given issueissue - issue being watchedpublic void removeAllWatchesForUser(User user)
WatcherManager
removeAllWatchesForUser in interface WatcherManageruser - The user that has most probably been deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||