com.atlassian.jira.issue.vote
Class DefaultVotedIssuesAccessor

java.lang.Object
  extended by com.atlassian.jira.issue.vote.DefaultVotedIssuesAccessor
All Implemented Interfaces:
VotedIssuesAccessor

public class DefaultVotedIssuesAccessor
extends Object
implements VotedIssuesAccessor


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.vote.VotedIssuesAccessor
VotedIssuesAccessor.Security
 
Constructor Summary
DefaultVotedIssuesAccessor(VoteManager voteManager, SearchProvider searchProvider, SearchProviderFactory factory)
           
 
Method Summary
 Iterable<Long> getVotedIssueIds(com.atlassian.crowd.embedded.api.User voter, com.atlassian.crowd.embedded.api.User searcher, VotedIssuesAccessor.Security security)
          Get the issues a particular user has voted for.
 boolean isVotingEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVotedIssuesAccessor

public DefaultVotedIssuesAccessor(@NotNull
                                  VoteManager voteManager,
                                  @NotNull
                                  SearchProvider searchProvider,
                                  @NotNull
                                  SearchProviderFactory factory)
Method Detail

getVotedIssueIds

public Iterable<Long> getVotedIssueIds(com.atlassian.crowd.embedded.api.User voter,
                                       com.atlassian.crowd.embedded.api.User searcher,
                                       VotedIssuesAccessor.Security security)
Description copied from interface: VotedIssuesAccessor
Get the issues a particular user has voted for.

Specified by:
getVotedIssueIds in interface VotedIssuesAccessor
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.

isVotingEnabled

public boolean isVotingEnabled()
Specified by:
isVotingEnabled in interface VotedIssuesAccessor


Copyright © 2002-2013 Atlassian. All Rights Reserved.