com.atlassian.jira.issue.vote
Interface VotedIssuesAccessor


public interface VotedIssuesAccessor

Get all issue ids someone voted for.

Since:
v4.1

Nested Class Summary
static class VotedIssuesAccessor.Security
           
 
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.
 Iterable<Long> getVotedIssueIds(User voter, User searcher, VotedIssuesAccessor.Security security)
          Deprecated. Use getVotedIssueIds(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.vote.VotedIssuesAccessor.Security). Since v4.3
 boolean isVotingEnabled()
           
 

Method Detail

isVotingEnabled

boolean isVotingEnabled()

getVotedIssueIds

@NotNull
Iterable<Long> getVotedIssueIds(@NotNull
                                        com.atlassian.crowd.embedded.api.User voter,
                                        @NotNull
                                        com.atlassian.crowd.embedded.api.User searcher,
                                        @NotNull
                                        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.

getVotedIssueIds

@NotNull
Iterable<Long> getVotedIssueIds(@NotNull
                                        User voter,
                                        @NotNull
                                        User searcher,
                                        @NotNull
                                        VotedIssuesAccessor.Security security)
Deprecated. Use getVotedIssueIds(com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.vote.VotedIssuesAccessor.Security). Since v4.3

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.


Copyright © 2002-2011 Atlassian. All Rights Reserved.