public class

DefaultIssueWatcherAccessor

extends Object
implements IssueWatcherAccessor
java.lang.Object
   ↳ com.atlassian.jira.issue.watchers.DefaultIssueWatcherAccessor

Summary

Public Constructors
DefaultIssueWatcherAccessor(WatcherManager watcherManager)
Public Methods
Collection<String> getWatcherKeys(Issue issue)
Iterable<String> getWatcherNames(Issue issue)
Convenience function that simply returns the User names.
Iterable<User> getWatchers(Issue issue, Locale displayLocale)
Convenience function that simply returns the User objects.
boolean isWatchingEnabled()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.watchers.IssueWatcherAccessor

Public Constructors

public DefaultIssueWatcherAccessor (WatcherManager watcherManager)

Public Methods

public Collection<String> getWatcherKeys (Issue issue)

public Iterable<String> getWatcherNames (Issue issue)

Convenience function that simply returns the User names.

Parameters
issue the issue to get the watchers for
Returns
  • an Iterable of the user names, empty if no watchers

public Iterable<User> getWatchers (Issue issue, Locale displayLocale)

Convenience function that simply returns the User objects.

Parameters
issue the issue to get the watchers for
displayLocale for sorting.
Returns
  • an Iterable of the users, empty if no watchers

public boolean isWatchingEnabled ()