@PublicApi
public interface VoteManager
Modifier and Type | Method and Description |
---|---|
boolean |
addVote(ApplicationUser user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
addVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean |
addVote(ApplicationUser user,
Issue issue)
Adds a new vote for the user and issue specified.
|
int |
getVoteCount(Issue issue)
Return the number of users that have voted for the given issue.
|
List<VoteHistoryEntry> |
getVoteHistory(Issue issue)
Get the list of vote history for an issue.
|
List<ApplicationUser> |
getVoters(Issue issue,
Locale usersLocale)
Deprecated.
Use
getVotersFor(com.atlassian.jira.issue.Issue, java.util.Locale) instead. Since v6.0. |
List<ApplicationUser> |
getVotersFor(Issue issue,
Locale usersLocale)
Returns an ordered list of voters for a particular issue.
|
Collection<String> |
getVoterUserkeys(Issue issue)
Return a collection of userkeys of users that voted for given issue
|
Collection<String> |
getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
getVoterUsernames(com.atlassian.jira.issue.Issue) instead. Since v6.0. |
Collection<String> |
getVoterUsernames(Issue issue)
Deprecated.
Use
getVoterUserkeys(com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean |
hasVoted(ApplicationUser user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
hasVoted(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean |
hasVoted(ApplicationUser user,
Issue issue)
Checks if the given User has voted on the given Issue.
|
boolean |
isVotingEnabled()
Retrieves the 'jira.option.voting' property
|
boolean |
removeVote(ApplicationUser user,
org.ofbiz.core.entity.GenericValue issue)
Deprecated.
Use
removeVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean |
removeVote(ApplicationUser user,
Issue issue)
Removes a vote for the user and issue specified.
|
void |
removeVotesForUser(ApplicationUser user)
Removes all votes made by user.
|
boolean addVote(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issueboolean addVote(ApplicationUser user, org.ofbiz.core.entity.GenericValue issue)
addVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.user
- the Userissue
- the Issueboolean removeVote(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issueboolean removeVote(ApplicationUser user, org.ofbiz.core.entity.GenericValue issue)
removeVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.user
- the Userissue
- the IssueList<ApplicationUser> getVoters(Issue issue, Locale usersLocale)
getVotersFor(com.atlassian.jira.issue.Issue, java.util.Locale)
instead. Since v6.0.issue
- the IssueusersLocale
- the locale of the user making this call which is used to sort the results.List<ApplicationUser> getVotersFor(Issue issue, Locale usersLocale)
issue
- the IssueusersLocale
- the locale of the user making this call which is used to sort the results.Collection<String> getVoterUsernames(Issue issue)
getVoterUserkeys(com.atlassian.jira.issue.Issue)
instead. Since v6.0.issue
- the Issue@Deprecated Collection<String> getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
getVoterUsernames(com.atlassian.jira.issue.Issue)
instead. Since v6.0.issue
- issue voted forCollection<String> getVoterUserkeys(Issue issue)
issue
- issue voted forint getVoteCount(Issue issue)
issue
- issue voted forList<VoteHistoryEntry> getVoteHistory(Issue issue)
issue
- the issue to viewboolean isVotingEnabled()
boolean hasVoted(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issueboolean hasVoted(ApplicationUser user, org.ofbiz.core.entity.GenericValue issue)
hasVoted(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.user
- the Userissue
- the Issuevoid removeVotesForUser(ApplicationUser user)
user
- user to remove vote associations for.Copyright © 2002-2022 Atlassian. All Rights Reserved.