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
 Iterable<String> getWatcherNames(Issue issue)
          Convenience function that simply returns the User names.
 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

@NotNull
Iterable<String> getWatcherNames(@NotNull
                                         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

getWatchers

@NotNull
Iterable<com.atlassian.crowd.embedded.api.User> getWatchers(@NotNull
                                                                    Issue issue,
                                                                    @NotNull
                                                                    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-2012 Atlassian. All Rights Reserved.