public class PollVoteCountingService extends PollenServiceSupport
serviceContext| Constructor and Description |
|---|
PollVoteCountingService() |
| Modifier and Type | Method and Description |
|---|---|
VoteCountingStrategyProvider |
getProvider() |
void |
setProvider(VoteCountingStrategyProvider provider) |
VoteCountingResult |
voteCount(int strategyId,
Set<Voter> voter)
Execute a vote counting for a given strategy (by his id) and the
given
voters. |
protected void |
voteCount(VoteCountingStrategy strategy,
GroupOfVoter group,
Map<GroupOfVoter,VoteCountingResult> results) |
GroupVoteCountingResult |
voteCountByGroup(int strategyId,
Set<Voter> voter)
Execute a vote counting for a given strategy (by his id) and the
given
voters. |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, updatepublic VoteCountingStrategyProvider getProvider()
public void setProvider(VoteCountingStrategyProvider provider)
public VoteCountingResult voteCount(int strategyId, Set<Voter> voter)
voters.strategyId - the id of the vote counting strategy to usevoter - the votes to vote countpublic GroupVoteCountingResult voteCountByGroup(int strategyId, Set<Voter> voter)
voters.strategyId - the id of the vote counting strategy to usevoter - the votes to vote countprotected void voteCount(VoteCountingStrategy strategy, GroupOfVoter group, Map<GroupOfVoter,VoteCountingResult> results)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.