|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.business.services.ServicePollImpl
public class ServicePollImpl
Implémentation du service de gestion des sondages.
| Constructor Summary | |
|---|---|
ServicePollImpl()
|
|
| Method Summary | |
|---|---|
boolean |
addVoteToPoll(String pollId,
String voteId)
Ajout d'un vote à un sondage |
String |
createPoll(PollDTO pollDTO)
Création d'un sondage |
boolean |
deletePoll(String pollId)
Suppression du sondage |
List<PollDTO> |
findInvitedPolls(String userId)
Récupération des sondages auxquels un utilisateur est invité. |
List<PollDTO> |
findParticipatedPolls(String userId)
Récupération des sondages auxquels un utilisateur a participé. |
PollDTO |
findPollById(String pollId)
Récupération d'un sondage à partir de son identifiant ToPIA |
PollDTO |
findPollByPollId(String pollId)
Récupération d'un sondage à partir de son identifiant. |
List<PollDTO> |
findPollsByName(String pollName)
Récupération d'un sondage par son nom |
List<PollDTO> |
findPollsByUser(String userId)
Récupération des sondages d'un utilisateur |
List<PollDTO> |
findRunningPolls(boolean withEndDate)
Récupération des sondages en cours. |
List<PollDTO> |
selectPolls(Map<String,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 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(String pollId)
ServicePoll
deletePoll in interface ServicePollpollId - le sondage
public PollDTO findPollById(String pollId)
ServicePoll
findPollById in interface ServicePollpollId - identifiant topia du sondage
public PollDTO findPollByPollId(String pollId)
ServicePoll
findPollByPollId in interface ServicePollpollId - identifiant du sondage
public List<PollDTO> findPollsByName(String pollName)
ServicePoll
findPollsByName in interface ServicePollpollName - nom du sondage
public List<PollDTO> findPollsByUser(String userId)
ServicePoll
findPollsByUser in interface ServicePolluserId - Le créateur du sondage
public List<PollDTO> findParticipatedPolls(String userId)
ServicePoll
findParticipatedPolls in interface ServicePolluserId - L'identifiant de l'utilisateur
public List<PollDTO> findInvitedPolls(String userId)
ServicePoll
findInvitedPolls in interface ServicePolluserId - L'identifiant de l'utilisateur
public List<PollDTO> findRunningPolls(boolean withEndDate)
ServicePoll
findRunningPolls in interface ServicePollwithEndDate - sélectionner uniquement les sondages ayant une date de
fin
public List<PollDTO> selectPolls(Map<String,Object> properties)
ServicePoll
selectPolls in interface ServicePollproperties - filtre
public boolean addVoteToPoll(String pollId,
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 | |||||||||