|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VoteManager
The vote manager is responsible for counting issue votes.
Method Summary | |
---|---|
boolean |
addVote(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Adds a new vote for the user and issue specified. |
boolean |
addVote(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Adds a new vote for the user and issue specified. |
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)
Returns an ordered list of voters for a particular issue. |
Collection<String> |
getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
Return a collection of usernames of users that voted for given issue |
Collection<String> |
getVoterUsernames(Issue issue)
Return a collection of usernames of users that voted for the given issue. |
boolean |
hasVoted(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Checks if the collection of #getVoters(java.util.Locale, org.ofbiz.core.entity.GenericValue) contains
the user supplied. |
boolean |
hasVoted(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Checks if the given User has voted on the given Issue. |
boolean |
isVotingEnabled()
Retrieves the 'jira.option.voting' property |
boolean |
removeVote(com.atlassian.crowd.embedded.api.User user,
org.ofbiz.core.entity.GenericValue issue)
Removes a vote for the user and issue specified. |
boolean |
removeVote(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Removes a vote for the user and issue specified. |
void |
removeVotesForUser(com.atlassian.crowd.embedded.api.User user)
Removes all votes made by user. |
Method Detail |
---|
boolean addVote(com.atlassian.crowd.embedded.api.User user, Issue issue)
user
- the Userissue
- the Issue
boolean addVote(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
user
- the Userissue
- the Issue
boolean removeVote(com.atlassian.crowd.embedded.api.User user, Issue issue)
user
- the Userissue
- the Issue
boolean removeVote(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
user
- the Userissue
- the Issue
List<com.atlassian.crowd.embedded.api.User> getVoters(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)
issue
- the Issue
Collection<String> getVoterUsernames(org.ofbiz.core.entity.GenericValue 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)
user
- the Userissue
- the Issue
boolean hasVoted(com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue issue)
#getVoters(java.util.Locale, org.ofbiz.core.entity.GenericValue)
contains
the user supplied.
user
- the Userissue
- the Issue
void removeVotesForUser(com.atlassian.crowd.embedded.api.User user)
user
- user to remove vote associations for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |