com.atlassian.jira.issue.vote
Class DefaultIssueVoterAccessor

java.lang.Object
  extended by com.atlassian.jira.issue.vote.DefaultIssueVoterAccessor
All Implemented Interfaces:
IssueVoterAccessor

public class DefaultIssueVoterAccessor
extends Object
implements IssueVoterAccessor


Constructor Summary
DefaultIssueVoterAccessor(VoteManager voteManager)
           
 
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.
 Iterable<String> getVoterUserkeys(Issue issue)
          Returns the userkeys for voters on the given issue.
 boolean isVotingEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueVoterAccessor

public DefaultIssueVoterAccessor(VoteManager voteManager)
Method Detail

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-2014 Atlassian. All Rights Reserved.