@PublicApi
public interface VoteManager
Modifier and Type | Method and Description |
---|---|
boolean |
addVote(ApplicationUser user,
Issue issue)
Adds a new vote for the user and issue specified.
|
boolean |
addVote(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Deprecated.
Use
addVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
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<com.atlassian.crowd.embedded.api.User> |
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,
Issue issue)
Checks if the given User has voted on the given Issue.
|
boolean |
hasVoted(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Deprecated.
Use
hasVoted(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
boolean |
isVotingEnabled()
Retrieves the 'jira.option.voting' property
|
boolean |
removeVote(ApplicationUser user,
Issue issue)
Removes a vote for the user and issue specified.
|
boolean |
removeVote(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Deprecated.
Use
removeVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0. |
void |
removeVotesForUser(ApplicationUser user)
Removes all votes made by user.
|
void |
removeVotesForUser(com.atlassian.crowd.embedded.api.User user)
Deprecated.
Use
removeVotesForUser(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0. |
boolean addVote(com.atlassian.crowd.embedded.api.User user, Issue issue)
addVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.user
- the Userissue
- the Issueboolean addVote(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issueboolean addVote(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user, Issue issue)
removeVote(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(com.atlassian.crowd.embedded.api.User 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<com.atlassian.crowd.embedded.api.User> 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 IssueCollection<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(com.atlassian.crowd.embedded.api.User user, Issue issue)
hasVoted(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.user
- the Userissue
- the Issueboolean hasVoted(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issueboolean hasVoted(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user)
removeVotesForUser(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.user
- user to remove vote associations for.void removeVotesForUser(ApplicationUser user)
user
- user to remove vote associations for.Copyright © 2002-2015 Atlassian. All Rights Reserved.