|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.vote.DefaultVoteManager
public class DefaultVoteManager
Constructor Summary | |
---|---|
DefaultVoteManager(ApplicationProperties applicationProperties,
com.atlassian.core.ofbiz.association.AssociationManager associationManager,
IssueIndexManager indexManager,
IssueManager issueManager)
|
Method Summary | |
---|---|
boolean |
addVote(User user,
org.ofbiz.core.entity.GenericValue issue)
Add vote to issue - returns if vote was successfully added |
Collection |
getVoters(Locale usersLocale,
org.ofbiz.core.entity.GenericValue issue)
Return a list of users that have voted on the specified issue |
Collection |
getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
Return a collection of usernames of users that voted for given issue |
boolean |
hasVoted(User user,
org.ofbiz.core.entity.GenericValue issue)
Check if user has already voted on this issue |
boolean |
isVotingEnabled()
Check if voting has been enabled |
boolean |
removeVote(User user,
org.ofbiz.core.entity.GenericValue issue)
Remove vote from issue - returns if vote was successfully removed |
void |
removeVotesForUser(User user)
Removes all votes made by user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultVoteManager(ApplicationProperties applicationProperties, com.atlassian.core.ofbiz.association.AssociationManager associationManager, IssueIndexManager indexManager, IssueManager issueManager)
Method Detail |
---|
public boolean addVote(User user, org.ofbiz.core.entity.GenericValue issue)
addVote
in interface VoteManager
user
- user who votes for given issueissue
- issue being voted for
public boolean removeVote(User user, org.ofbiz.core.entity.GenericValue issue)
removeVote
in interface VoteManager
user
- user who no longer votes for given issueissue
- issue being voted for
public Collection getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
VoteManager
getVoterUsernames
in interface VoteManager
issue
- issue voted for
public Collection getVoters(Locale usersLocale, org.ofbiz.core.entity.GenericValue issue)
getVoters
in interface VoteManager
usersLocale
- the locale of the user making this call.
User
spublic boolean isVotingEnabled()
isVotingEnabled
in interface VoteManager
public boolean hasVoted(User user, org.ofbiz.core.entity.GenericValue issue)
hasVoted
in interface VoteManager
public void removeVotesForUser(User user)
VoteManager
removeVotesForUser
in interface VoteManager
user
- user to remove vote associations for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |