|
||||||||||
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 |
getVoters(org.ofbiz.core.entity.GenericValue issue)
Return a list of voters for a particular issue. |
boolean |
hasVoted(User user,
org.ofbiz.core.entity.GenericValue issue)
Checks if the collection of getVoters(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. |
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 getVoters(org.ofbiz.core.entity.GenericValue issue)
issue
-
User
sboolean isVotingEnabled()
boolean hasVoted(User user, org.ofbiz.core.entity.GenericValue issue)
getVoters(org.ofbiz.core.entity.GenericValue)
contains
the user supplied.
user
- issue
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |