public class PollResultsService extends PollenServiceSupport
serviceContext| Constructor and Description |
|---|
PollResultsService() |
| Modifier and Type | Method and Description |
|---|---|
List<PollResult> |
createNumberVoteCountingResult(PollResultList resultListDTO,
com.google.common.collect.Multimap<String,String> choicesResults,
com.google.common.collect.Multimap<String,String> subtitles) |
String |
exportPolltoXml(String pollId) |
VoteCountingResultDTO |
generateResult(Poll poll)
Génère les résultats d'un sondage (= un dépouillement) et les stoque en
base.
|
protected VoteCountingResultDTO |
getResultDTO(Poll poll) |
PollResultList |
getResults(Poll poll)
Récurpération des résultats d'un sondage sous forme de
PollResultList. |
String |
getResultsAsString(Poll poll)
Retourne une chaîne contenant les résultats du sondage.
|
String |
getResultValue(Choice choice,
Collection<PollResult> results) |
List<PollResult> |
getTopRanking(List<PollResult> results) |
protected String |
removeTrailing0(String val)
Supprime le 0 final d'un nombre à virgule.
|
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, updatepublic PollResultList getResults(Poll poll)
PollResultList.
Si les résultats ne sont pas à jour (Poll.isResultUptodate(),
alors ils seront regénérés.poll - le sondage à traiterpublic VoteCountingResultDTO generateResult(Poll poll)
poll - le sondage à dépouillerpublic String exportPolltoXml(String pollId) throws PollNotFoundException
PollNotFoundExceptionpublic String getResultValue(Choice choice, Collection<PollResult> results)
public List<PollResult> createNumberVoteCountingResult(PollResultList resultListDTO, com.google.common.collect.Multimap<String,String> choicesResults, com.google.common.collect.Multimap<String,String> subtitles)
public List<PollResult> getTopRanking(List<PollResult> results)
protected String removeTrailing0(String val)
val - le nombrepublic String getResultsAsString(Poll poll)
poll - le sondageprotected VoteCountingResultDTO getResultDTO(Poll poll)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.