public class DefaultIssueWatcherAccessor extends Object implements IssueWatcherAccessor
Constructor and Description |
---|
DefaultIssueWatcherAccessor(WatcherManager watcherManager) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getWatcherKeys(Issue issue) |
Iterable<String> |
getWatcherNames(Issue issue)
Convenience function that simply returns the User names.
|
Iterable<ApplicationUser> |
getWatchers(Issue issue,
Locale displayLocale)
Convenience function that simply returns the User objects.
|
boolean |
isWatchingEnabled() |
public DefaultIssueWatcherAccessor(WatcherManager watcherManager)
public Iterable<ApplicationUser> getWatchers(@Nonnull Issue issue, @Nonnull Locale displayLocale)
IssueWatcherAccessor
getWatchers
in interface IssueWatcherAccessor
issue
- the issue to get the watchers fordisplayLocale
- for sorting.public boolean isWatchingEnabled()
isWatchingEnabled
in interface IssueWatcherAccessor
public Iterable<String> getWatcherNames(@Nonnull Issue issue)
IssueWatcherAccessor
getWatcherNames
in interface IssueWatcherAccessor
issue
- the issue to get the watchers forpublic Collection<String> getWatcherKeys(Issue issue)
getWatcherKeys
in interface IssueWatcherAccessor
Copyright © 2002-2016 Atlassian. All Rights Reserved.