public class DefaultVotedIssuesAccessor extends Object implements VotedIssuesAccessor
VotedIssuesAccessor.Security
Constructor and Description |
---|
DefaultVotedIssuesAccessor(VoteManager voteManager,
SearchProvider searchProvider,
SearchProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
Iterable<Long> |
getVotedIssueIds(ApplicationUser voter,
ApplicationUser searcher,
VotedIssuesAccessor.Security security)
Get the issues a particular user has voted for.
|
boolean |
isVotingEnabled() |
public DefaultVotedIssuesAccessor(@Nonnull VoteManager voteManager, @Nonnull SearchProvider searchProvider, @Nonnull SearchProviderFactory factory)
public Iterable<Long> getVotedIssueIds(ApplicationUser voter, ApplicationUser searcher, VotedIssuesAccessor.Security security)
VotedIssuesAccessor
getVotedIssueIds
in interface VotedIssuesAccessor
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.public boolean isVotingEnabled()
isVotingEnabled
in interface VotedIssuesAccessor
Copyright © 2002-2022 Atlassian. All Rights Reserved.