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
 java.lang.Iterable<com.opensymphony.user.User> getDetails(java.util.Locale displayLocale, Issue issue)
          Convenience function that simply returns the User objects.
<T> java.lang.Iterable<T>
getDetails(java.util.Locale displayLocale, Issue issue, Function<com.opensymphony.user.User,T> transformer)
          Return an Iterable of all watchers for the supplied issue.
 boolean isWatchingEnabled()
           
 

Method Detail

isWatchingEnabled

boolean isWatchingEnabled()

getDetails

@NotNull
java.lang.Iterable<com.opensymphony.user.User> getDetails(@NotNull
                                                                  java.util.Locale displayLocale,
                                                                  @NotNull
                                                                  Issue issue)
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

getDetails

@NotNull
<T> java.lang.Iterable<T> getDetails(@NotNull
                                             java.util.Locale displayLocale,
                                             @NotNull
                                             Issue issue,
                                             @NotNull
                                             Function<com.opensymphony.user.User,T> transformer)
Return an Iterable of all watchers for the supplied issue. The elements are of the type the transformer function returns.

Type Parameters:
T - the type of element in the returned iterable.
Parameters:
displayLocale - for sorting.
issue - the issue to get the watchers for
transformer - to get the required details from the User objects.
Returns:
an Iterable of the user details, empty if no watchers


Copyright © 2002-2010 Atlassian. All Rights Reserved.