com.atlassian.jira.issue.watchers
Class DefaultIssueWatcherAccessor
java.lang.Object
com.atlassian.jira.issue.watchers.DefaultIssueWatcherAccessor
- All Implemented Interfaces:
- IssueWatcherAccessor
public class DefaultIssueWatcherAccessor
- extends Object
- implements IssueWatcherAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIssueWatcherAccessor
public DefaultIssueWatcherAccessor(WatcherManager watcherManager)
getWatchers
public Iterable<com.atlassian.crowd.embedded.api.User> getWatchers(@NotNull
Issue issue,
@NotNull
Locale displayLocale)
- Description copied from interface:
IssueWatcherAccessor
- Convenience function that simply returns the User objects.
- Specified by:
getWatchers
in interface IssueWatcherAccessor
- Parameters:
issue
- the issue to get the watchers fordisplayLocale
- for sorting.
- Returns:
- an Iterable of the users, empty if no watchers
isWatchingEnabled
public boolean isWatchingEnabled()
- Specified by:
isWatchingEnabled
in interface IssueWatcherAccessor
getWatcherNames
public Iterable<String> getWatcherNames(@NotNull
Issue issue)
- Description copied from interface:
IssueWatcherAccessor
- Convenience function that simply returns the User names.
- Specified by:
getWatcherNames
in interface IssueWatcherAccessor
- Parameters:
issue
- the issue to get the watchers for
- Returns:
- an Iterable of the user names, empty if no watchers
Copyright © 2002-2013 Atlassian. All Rights Reserved.