|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.watchers.DefaultWatcherManager
public class DefaultWatcherManager
Field Summary | |
---|---|
static String |
ASSOCIATION_TYPE
|
Constructor Summary | |
---|---|
DefaultWatcherManager(UserAssociationStore userAssociationStore,
ApplicationProperties applicationProperties,
IssueIndexManager indexManager,
UserManager userManager)
|
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) |
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(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)
Enable watching of a particular issue for the user supplied. |
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)
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(com.atlassian.crowd.embedded.api.User user,
Issue 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 ASSOCIATION_TYPE
Constructor Detail |
---|
public DefaultWatcherManager(UserAssociationStore userAssociationStore, ApplicationProperties applicationProperties, IssueIndexManager indexManager, UserManager userManager)
Method Detail |
---|
public void startWatching(com.atlassian.crowd.embedded.api.User user, Issue issue)
WatcherManager
startWatching
in interface WatcherManager
user
- user that starts watching the given issueissue
- issue being watchedpublic void startWatching(com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.User user, Issue issue)
WatcherManager
stopWatching
in interface WatcherManager
user
- user that stops watching the given issueissue
- issue being watchedpublic void stopWatching(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
stopWatching
in interface WatcherManager
user
- user that stops watching the given issueissue
- issue being watchedpublic List<String> getCurrentWatcherUsernames(Issue issue) throws DataAccessException
WatcherManager
getCurrentWatcherUsernames
in interface WatcherManager
issue
- issue being watched
DataAccessException
- if cannot retrieve watcherspublic boolean isWatchingEnabled()
isWatchingEnabled
in interface WatcherManager
public boolean isWatching(com.atlassian.crowd.embedded.api.User user, Issue issue)
WatcherManager
isWatching
in interface WatcherManager
user
- userissue
- issue being watched
public boolean isWatching(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
WatcherManager
isWatching
in interface WatcherManager
user
- userissue
- issue being watched
public Collection<com.atlassian.crowd.embedded.api.User> getCurrentWatchList(Issue issue, Locale userLocale)
WatcherManager
getCurrentWatchList
in interface WatcherManager
issue
- issue being watcheduserLocale
- the locale of the user making this call, this is used for sorting the list values.
User
spublic List<String> getCurrentWatcherUsernames(org.ofbiz.core.entity.GenericValue issue) throws DataAccessException
WatcherManager
getCurrentWatcherUsernames
in interface WatcherManager
issue
- issue being watched
DataAccessException
- if cannot retrieve watcherspublic void removeAllWatchesForUser(com.atlassian.crowd.embedded.api.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 |