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)
IssueVoterAccessor
getVoters
in interface IssueVoterAccessor
displayLocale
- for sorting.issue
- the issue to get the voters forpublic boolean isVotingEnabled()
isVotingEnabled
in interface IssueVoterAccessor
public Iterable<String> getVoterNames(@Nonnull Issue issue)
IssueVoterAccessor
getVoterNames
in interface IssueVoterAccessor
issue
- the issue to get the voters forpublic Iterable<String> getVoterUserkeys(@Nonnull Issue issue)
IssueVoterAccessor
getVoterUserkeys
in interface IssueVoterAccessor
issue
- the issue to get the voters forCopyright © 2002-2022 Atlassian. All Rights Reserved.