com.atlassian.jira.issue.vote
Class DefaultIssueVoterAccessor
java.lang.Object
com.atlassian.jira.issue.vote.DefaultIssueVoterAccessor
- All Implemented Interfaces:
- IssueVoterAccessor
public class DefaultIssueVoterAccessor
- extends Object
- implements IssueVoterAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIssueVoterAccessor
public DefaultIssueVoterAccessor(VoteManager voteManager)
getVoters
public Iterable<com.atlassian.crowd.embedded.api.User> getVoters(@Nonnull
Locale displayLocale,
@Nonnull
Issue issue)
- Description copied from interface:
IssueVoterAccessor
- Convenience function that simply returns the User objects.
- Specified by:
getVoters
in interface IssueVoterAccessor
- Parameters:
displayLocale
- for sorting.issue
- the issue to get the voters for
- Returns:
- an Iterable of the users, empty if no voters
isVotingEnabled
public boolean isVotingEnabled()
- Specified by:
isVotingEnabled
in interface IssueVoterAccessor
getVoterNames
public Iterable<String> getVoterNames(@Nonnull
Issue issue)
- Description copied from interface:
IssueVoterAccessor
- Convenience function that simply returns the User names.
- Specified by:
getVoterNames
in interface IssueVoterAccessor
- Parameters:
issue
- the issue to get the voters for
- Returns:
- an Iterable of the user names, empty if no voters
getVoterUserkeys
public Iterable<String> getVoterUserkeys(@Nonnull
Issue issue)
- Description copied from interface:
IssueVoterAccessor
- Returns the userkeys for voters on the given issue.
- Specified by:
getVoterUserkeys
in interface IssueVoterAccessor
- Parameters:
issue
- the issue to get the voters for
- Returns:
- an Iterable of the user keys, empty if no voters
Copyright © 2002-2013 Atlassian. All Rights Reserved.