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
 Iterable<String> getVoterNames(Issue issue)
          Convenience function that simply returns the User names.
 Iterable<com.atlassian.crowd.embedded.api.User> getVoters(Locale displayLocale, Issue issue)
          Convenience function that simply returns the User objects.
 boolean isVotingEnabled()
           
 

Method Detail

isVotingEnabled

boolean isVotingEnabled()

getVoterNames

@NotNull
Iterable<String> getVoterNames(@NotNull
                                       Issue issue)
Convenience function that simply returns the User names.

Parameters:
issue - the issue to get the voters for
Returns:
an Iterable of the user names, empty if no voters

getVoters

@NotNull
Iterable<com.atlassian.crowd.embedded.api.User> getVoters(@NotNull
                                                                  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


Copyright © 2002-2013 Atlassian. All Rights Reserved.