|
||||||||||
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(User user,
org.ofbiz.core.entity.GenericValue issue)
Adds a new vote for the user and issue specified. |
Collection<User> |
getVoters(Locale usersLocale,
org.ofbiz.core.entity.GenericValue issue)
Return a 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 |
boolean |
hasVoted(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 |
isVotingEnabled()
Retrieves the 'jira.option.voting' property |
boolean |
removeVote(User user,
org.ofbiz.core.entity.GenericValue issue)
Removes a vote for the user and issue specified. |
void |
removeVotesForUser(User user)
Removes all votes made by user. |
Method Detail |
---|
boolean addVote(User user, org.ofbiz.core.entity.GenericValue issue)
user
- issue
-
boolean removeVote(User user, org.ofbiz.core.entity.GenericValue issue)
user
- issue
-
Collection<User> getVoters(Locale usersLocale, org.ofbiz.core.entity.GenericValue issue)
usersLocale
- the locale of the user making this call.issue
-
User
sCollection<String> getVoterUsernames(org.ofbiz.core.entity.GenericValue issue)
issue
- issue voted for
boolean isVotingEnabled()
boolean hasVoted(User user, org.ofbiz.core.entity.GenericValue issue)
getVoters(java.util.Locale, org.ofbiz.core.entity.GenericValue)
contains
the user supplied.
user
- issue
-
void removeVotesForUser(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 |