com.atlassian.jira.issue.watchers
Interface IssueWatcherAccessor

All Known Implementing Classes:
DefaultIssueWatcherAccessor

public interface IssueWatcherAccessor

Get all watchers for an issue.

Since:
v4.1

Method Summary
 Collection<String> getWatcherKeys(Issue issue)
           
 Iterable<String> getWatcherNames(Issue issue)
          Deprecated. Use getWatcherKeys(com.atlassian.jira.issue.Issue) instead. Since v6.0.
 Iterable<com.atlassian.crowd.embedded.api.User> getWatchers(Issue issue, Locale displayLocale)
          Convenience function that simply returns the User objects.
 boolean isWatchingEnabled()
           
 

Method Detail

isWatchingEnabled

boolean isWatchingEnabled()

getWatcherNames

@Nonnull
Iterable<String> getWatcherNames(@Nonnull
                                         Issue issue)
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

getWatcherKeys

Collection<String> getWatcherKeys(Issue issue)

getWatchers

@Nonnull
Iterable<com.atlassian.crowd.embedded.api.User> getWatchers(@Nonnull
                                                                    Issue issue,
                                                                    @Nonnull
                                                                    Locale displayLocale)
Convenience function that simply returns the User objects.

Parameters:
displayLocale - for sorting.
issue - the issue to get the watchers for
Returns:
an Iterable of the users, empty if no watchers
Since:
v4.3


Copyright © 2002-2014 Atlassian. All Rights Reserved.