com.atlassian.jira.issue.vote
Interface IssueVoterAccessor

All Known Implementing Classes:
DefaultIssueVoterAccessor

public interface IssueVoterAccessor

Get all voters 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 voters for the supplied issue.
 boolean isVotingEnabled()
           
 

Method Detail

isVotingEnabled

boolean isVotingEnabled()

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 voters for
Returns:
an Iterable of the users, empty if no voters

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 voters 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 voters for
transformer - to get the required details from the User objects.
Returns:
an Iterable of the user details, empty if no voters


Copyright © 2002-2010 Atlassian. All Rights Reserved.