public interface

IssueVoterAccessor

com.atlassian.jira.issue.vote.IssueVoterAccessor
Known Indirect Subclasses

Class Overview

Get all voters for an issue.

Summary

Public Methods
@Nonnull Iterable<String> getVoterNames(Issue issue)
This method is deprecated. Use getVoterUserkeys(com.atlassian.jira.issue.Issue) instead. Since v6.0.
@Nonnull Iterable<String> getVoterUserkeys(Issue issue)
Returns the userkeys for voters on the given issue.
@Nonnull Iterable<User> getVoters(Locale displayLocale, Issue issue)
Convenience function that simply returns the User objects.
boolean isVotingEnabled()

Public Methods

@Nonnull public Iterable<String> getVoterNames (Issue issue)

This method is deprecated.
Use getVoterUserkeys(com.atlassian.jira.issue.Issue) instead. Since v6.0.

Convenience function that simply returns the User names.

Parameters
issue the issue to get the voters for
Returns
  • an Iterable of the user names, empty if no voters

@Nonnull public Iterable<String> getVoterUserkeys (Issue issue)

Returns the userkeys for voters on the given issue.

Parameters
issue the issue to get the voters for
Returns
  • an Iterable of the user keys, empty if no voters

@Nonnull public Iterable<User> getVoters (Locale displayLocale, Issue issue)

Convenience function that simply returns the User objects.

Parameters
displayLocale for sorting.
issue the issue to get the voters for
Returns
  • an Iterable of the users, empty if no voters

public boolean isVotingEnabled ()