|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.business.ServicePollImpl
public class ServicePollImpl
Implémentation du service de gestion des sondages.
| Constructor Summary | |
|---|---|
ServicePollImpl()
|
|
| Method Summary | |
|---|---|
boolean |
addVoteToPoll(java.lang.String pollId,
java.lang.String voteId)
Ajout d'un vote à un sondage |
java.lang.String |
createPoll(PollDTO pollDTO)
Création d'un sondage |
boolean |
deletePoll(java.lang.String pollId)
Suppression du sondage |
PollDTO |
findPollById(java.lang.String pollId)
Récupération d'un sondage à partir de son identifiant |
PollDTO |
findPollByPollId(java.lang.String pollId)
Récupération d'un sondage à partir de son identifiant hashé en md5 |
java.util.List<PollDTO> |
findPollsByName(java.lang.String pollName)
Récupération d'un sondage par son nom |
java.util.List<PollDTO> |
findPollsByUser(java.lang.String userId)
Récupération des sondages d'un utilisateur |
java.util.List<PollDTO> |
findRunningPolls(boolean withEndDate)
Récupération des sondages en cours |
java.lang.String |
moderate(java.lang.String pollId)
Modératon d'un sondage |
java.util.List<PollDTO> |
selectPolls(java.util.Map<java.lang.String,java.lang.Object> properties)
Récupération des sondages |
boolean |
updatePoll(PollDTO pollDTO)
Mise à jour du sondage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServicePollImpl()
| Method Detail |
|---|
public java.lang.String createPoll(PollDTO pollDTO)
ServicePoll
createPoll in interface ServicePollpollDTO - le sondage
public boolean updatePoll(PollDTO pollDTO)
ServicePoll
updatePoll in interface ServicePollpollDTO - le sondage
public boolean deletePoll(java.lang.String pollId)
ServicePoll
deletePoll in interface ServicePollpollId - le sondage
public PollDTO findPollById(java.lang.String pollId)
ServicePoll
findPollById in interface ServicePollpollId - identifiant topia du sondage
public PollDTO findPollByPollId(java.lang.String pollId)
ServicePoll
findPollByPollId in interface ServicePollpollId - identifiant topia du sondage hashé en md5
public java.util.List<PollDTO> findPollsByName(java.lang.String pollName)
ServicePoll
findPollsByName in interface ServicePollpollName - nom du sondage
public java.util.List<PollDTO> findPollsByUser(java.lang.String userId)
ServicePoll
findPollsByUser in interface ServicePolluserId - Le créateur du sondage
public java.util.List<PollDTO> findRunningPolls(boolean withEndDate)
ServicePoll
findRunningPolls in interface ServicePollwithEndDate - sélectionner uniquement les sondages ayant une date de
fin
public java.util.List<PollDTO> selectPolls(java.util.Map<java.lang.String,java.lang.Object> properties)
ServicePoll
selectPolls in interface ServicePollproperties - filtre
public java.lang.String moderate(java.lang.String pollId)
ServicePoll
moderate in interface ServicePoll
public boolean addVoteToPoll(java.lang.String pollId,
java.lang.String voteId)
ServicePoll
addVoteToPoll in interface ServicePollpollId - identifiant topia du sondagevoteId - l'identiiant topiaId du vote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||