public interface

IssueWatcherAccessor

com.atlassian.jira.issue.watchers.IssueWatcherAccessor
Known Indirect Subclasses

Class Overview

Get all watchers for an issue.

Summary

Public Methods
Collection<String> getWatcherKeys(Issue issue)
@Nonnull Iterable<String> getWatcherNames(Issue issue)
This method is deprecated. Use getWatcherKeys(com.atlassian.jira.issue.Issue) instead. Since v6.0.
@Nonnull Iterable<User> getWatchers(Issue issue, Locale displayLocale)
Convenience function that simply returns the User objects.
boolean isWatchingEnabled()

Public Methods

public Collection<String> getWatcherKeys (Issue issue)

@Nonnull public Iterable<String> getWatcherNames (Issue issue)

This method is deprecated.
Use getWatcherKeys(com.atlassian.jira.issue.Issue) instead. Since v6.0.

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

@Nonnull 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 ()