|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServicePoll
Interface du service de gestion des sondages.
| Method Summary | |
|---|---|
boolean |
addVoteToPoll(String pollId,
String voteId)
Ajout d'un vote à un sondage |
String |
createPoll(PollDTO poll)
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. |
PollAccountDTO |
getRestrictedAccount(String accountUId,
PollDTO poll)
Return the pollAccount corresponding to the accountUId for the
restricted poll. |
List<PollDTO> |
selectPolls(Map<String,Object> properties)
Récupération des sondages |
boolean |
updatePoll(PollDTO poll)
Mise à jour du sondage |
| Method Detail |
|---|
String createPoll(PollDTO poll)
poll - le sondage
boolean updatePoll(PollDTO poll)
poll - le sondage
boolean deletePoll(String pollId)
pollId - le sondage
PollDTO findPollById(String pollId)
pollId - identifiant topia du sondage
PollDTO findPollByPollId(String pollId)
pollId - identifiant du sondage
List<PollDTO> findPollsByName(String pollName)
pollName - nom du sondage
List<PollDTO> findPollsByUser(String userId)
userId - Le créateur du sondage
List<PollDTO> findParticipatedPolls(String userId)
userId - L'identifiant de l'utilisateur
List<PollDTO> findInvitedPolls(String userId)
userId - L'identifiant de l'utilisateur
List<PollDTO> findRunningPolls(boolean withEndDate)
withEndDate - sélectionner uniquement les sondages ayant une date de
fin
List<PollDTO> selectPolls(Map<String,Object> properties)
properties - filtre
boolean addVoteToPoll(String pollId,
String voteId)
pollId - identifiant topia du sondagevoteId - l'identiiant topiaId du vote
PollAccountDTO getRestrictedAccount(String accountUId,
PollDTO poll)
accountUId for the
restricted poll.
TODO : need JUnit test, must be done for 1.3
accountUId - to check the restriction constraintpoll - reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||