|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceVote
Interface du service de vote.
| Method Summary | |
|---|---|
String |
createVote(VoteDTO voteDTO,
PollAccountDTO pollAccountDTO)
Rajouter un vote à un sondage |
boolean |
deleteVote(String voteId)
Supprime un vote de la base de données |
List<VoteDTO> |
getVotesByPoll(PollDTO poll,
int startIndex,
int endIndex)
Retrieve existings votes from the poll. |
boolean |
hasAlreadyVoted(String votingId,
PollDTO poll)
Test if the votingId has already voted for the poll. |
List<VoteDTO> |
selectVotes(Map<String,Object> properties)
Retourne les votes d'un sondage |
boolean |
updateVote(VoteDTO voteDTO)
Mise à jour d'un vote |
| Method Detail |
|---|
String createVote(VoteDTO voteDTO,
PollAccountDTO pollAccountDTO)
voteDTO - Le DTO du vote
boolean updateVote(VoteDTO voteDTO)
voteDTO - Le DTO du vote
boolean deleteVote(String voteId)
voteId - L'identifiant du vote
List<VoteDTO> getVotesByPoll(PollDTO poll,
int startIndex,
int endIndex)
poll. Only needed votes inside
the range (startIndex and endIndex) will be retrieve.
The results will be ordered by creationDate (the last vote done will
be at the end of the list).
poll - to retrieve votesstartIndex - begin range for resulting votesendIndex - end range for resulting votes
boolean hasAlreadyVoted(String votingId,
PollDTO poll)
votingId has already voted for the poll.
votingId - to test existing votepoll - where the votingId can have already voted
List<VoteDTO> selectVotes(Map<String,Object> properties)
properties - La HashMap pour sélectionner les votes d'un sondage. Il
faut y mettre le bon champs pollId
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||