public class

DefaultVotedIssuesAccessor

extends Object
implements VotedIssuesAccessor
java.lang.Object
   ↳ com.atlassian.jira.issue.vote.DefaultVotedIssuesAccessor

Summary

Public Constructors
DefaultVotedIssuesAccessor(VoteManager voteManager, SearchProvider searchProvider, SearchProviderFactory factory)
Public Methods
Iterable<Long> getVotedIssueIds(ApplicationUser voter, ApplicationUser searcher, VotedIssuesAccessor.Security security)
Get the issues a particular user has voted for.
boolean isVotingEnabled()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.vote.VotedIssuesAccessor

Public Constructors

public DefaultVotedIssuesAccessor (VoteManager voteManager, SearchProvider searchProvider, SearchProviderFactory factory)

Public Methods

public Iterable<Long> getVotedIssueIds (ApplicationUser voter, ApplicationUser searcher, VotedIssuesAccessor.Security security)

Get the issues a particular user has voted for.

Parameters
voter the user whose votes we are searching for.
searcher the user who is searching for the voted issues.
security whether to respect or override security.
Returns
  • the ids of the found issues.

public boolean isVotingEnabled ()