public class PollVoteCountingService extends PollenServiceSupport
serviceContext
Constructor and Description |
---|
PollVoteCountingService() |
Modifier and Type | Method and Description |
---|---|
GroupVoteCountingResult |
getGroupResult(Poll poll) |
VoteCountingResult |
getMainResult(Poll poll) |
String |
getResultsAsString(Poll poll)
Retourne une chaîne contenant les résultats du sondage.
|
String |
getResultValue(Choice choice,
List<ChoiceScore> results) |
String |
getResultValue(ChoiceScore result) |
VoteCountingResult |
getSimpleResult(Poll poll)
Execute a simple vote counting for a given poll (if the poll
is a group poll, none of his group will be used).
|
protected String |
removeTrailing0(String val)
Supprime le 0 final d'un nombre à virgule.
|
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update
public VoteCountingResult getMainResult(Poll poll)
public VoteCountingResult getSimpleResult(Poll poll)
poll
- poll on wich vote countpublic GroupVoteCountingResult getGroupResult(Poll poll)
public String getResultValue(Choice choice, List<ChoiceScore> results)
public String getResultValue(ChoiceScore result)
public String getResultsAsString(Poll poll)
poll
- le sondageCopyright © 2009–2014 CodeLutin. All rights reserved.