public class

DefaultIssueVoterAccessor

extends Object
implements IssueVoterAccessor
java.lang.Object
   ↳ com.atlassian.jira.issue.vote.DefaultIssueVoterAccessor

Summary

Public Constructors
DefaultIssueVoterAccessor(VoteManager voteManager)
Public Methods
Iterable<String> getVoterNames(Issue issue)
Convenience function that simply returns the User names.
Iterable<String> getVoterUserkeys(Issue issue)
Returns the userkeys for voters on the given issue.
Iterable<User> getVoters(Locale displayLocale, Issue issue)
Convenience function that simply returns the User objects.
boolean isVotingEnabled()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.vote.IssueVoterAccessor

Public Constructors

public DefaultIssueVoterAccessor (VoteManager voteManager)

Public Methods

public Iterable<String> getVoterNames (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

public Iterable<String> getVoterUserkeys (Issue issue)

Returns the userkeys for voters on the given issue.

Parameters
issue the issue to get the voters for
Returns
  • an Iterable of the user keys, empty if no voters

public Iterable<User> getVoters (Locale displayLocale, 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

public boolean isVotingEnabled ()