public class DefaultIssueVoterAccessor extends Object implements IssueVoterAccessor
| Constructor and Description |
|---|
DefaultIssueVoterAccessor(VoteManager voteManager) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<String> |
getVoterNames(Issue issue)
Convenience function that simply returns the User names.
|
Iterable<ApplicationUser> |
getVoters(Locale displayLocale,
Issue issue)
Convenience function that simply returns the User objects.
|
Iterable<String> |
getVoterUserkeys(Issue issue)
Returns the userkeys for voters on the given issue.
|
boolean |
isVotingEnabled() |
public DefaultIssueVoterAccessor(VoteManager voteManager)
public Iterable<ApplicationUser> getVoters(@Nonnull Locale displayLocale, @Nonnull Issue issue)
IssueVoterAccessorgetVoters in interface IssueVoterAccessordisplayLocale - for sorting.issue - the issue to get the voters forpublic boolean isVotingEnabled()
isVotingEnabled in interface IssueVoterAccessorpublic Iterable<String> getVoterNames(@Nonnull Issue issue)
IssueVoterAccessorgetVoterNames in interface IssueVoterAccessorissue - the issue to get the voters forpublic Iterable<String> getVoterUserkeys(@Nonnull Issue issue)
IssueVoterAccessorgetVoterUserkeys in interface IssueVoterAccessorissue - the issue to get the voters forCopyright © 2002-2016 Atlassian. All Rights Reserved.