com.atlassian.jira.issue.vote
Class DefaultIssueVoterAccessor
java.lang.Object
com.atlassian.jira.issue.vote.DefaultIssueVoterAccessor
- All Implemented Interfaces:
- IssueVoterAccessor
public class DefaultIssueVoterAccessor
- extends java.lang.Object
- implements IssueVoterAccessor
Method Summary |
java.lang.Iterable<com.opensymphony.user.User> |
getDetails(java.util.Locale displayLocale,
Issue issue)
Convenience function that simply returns the User objects. |
<T> java.lang.Iterable<T> |
|
getDetails(java.util.Locale displayLocale,
Issue issue,
Function<com.opensymphony.user.User,T> transformer)
Return an Iterable of all voters for the supplied issue. |
boolean |
isVotingEnabled()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIssueVoterAccessor
public DefaultIssueVoterAccessor(VoteManager voteManager)
getDetails
public <T> java.lang.Iterable<T> getDetails(java.util.Locale displayLocale,
Issue issue,
Function<com.opensymphony.user.User,T> transformer)
- Description copied from interface:
IssueVoterAccessor
- Return an Iterable of all voters for the supplied issue. The elements are of the type the transformer function returns.
- Specified by:
getDetails
in interface IssueVoterAccessor
- Type Parameters:
T
- the type of element in the returned iterable.- Parameters:
displayLocale
- for sorting.issue
- the issue to get the voters fortransformer
- to get the required details from the User
objects.
- Returns:
- an Iterable of the user details, empty if no voters
getDetails
public java.lang.Iterable<com.opensymphony.user.User> getDetails(java.util.Locale displayLocale,
Issue issue)
- Description copied from interface:
IssueVoterAccessor
- Convenience function that simply returns the User objects.
- Specified by:
getDetails
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
Copyright © 2002-2010 Atlassian. All Rights Reserved.