|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface VoteManager
The vote manager is responsible for counting issue votes.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 Issue
boolean addVote(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issue
boolean 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 Issue
boolean 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 Issue
boolean removeVote(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issue
boolean 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 Issue
List<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 Issue
Collection<String> getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
getVoterUsernames(com.atlassian.jira.issue.Issue)
instead. Since v6.0.
issue
- issue voted for
Collection<String> getVoterUserkeys(Issue issue)
issue
- issue voted for
int getVoteCount(Issue issue)
issue
- issue voted for
List<VoteHistoryEntry> getVoteHistory(Issue issue)
issue
- the issue to view
boolean 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 Issue
boolean hasVoted(ApplicationUser user, Issue issue)
user
- the Userissue
- the Issue
boolean 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 Issue
void 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |