|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public boolean addVote(User user, org.ofbiz.core.entity.GenericValue issue)
user
- issue
-
public boolean removeVote(User user, org.ofbiz.core.entity.GenericValue issue)
user
- issue
-
public Collection getVoters(org.ofbiz.core.entity.GenericValue issue)
issue
-
User
spublic boolean isVotingEnabled()
public 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 |