|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.business.services.ServiceVoteImpl
public class ServiceVoteImpl
Implémentation du service de gestion des votes.
| Constructor Summary | |
|---|---|
ServiceVoteImpl()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceVoteImpl()
| Method Detail |
|---|
public String createVote(VoteDTO voteDTO,
PollAccountDTO pollAccountDTO)
ServiceVote
createVote in interface ServiceVotevoteDTO - Le DTO du vote
public boolean updateVote(VoteDTO voteDTO)
ServiceVote
updateVote in interface ServiceVotevoteDTO - Le DTO du vote
public boolean deleteVote(String voteId)
ServiceVote
deleteVote in interface ServiceVotevoteId - L'identifiant du vote
public List<VoteDTO> getVotesByPoll(PollDTO poll,
int startIndex,
int endIndex)
ServiceVotepoll. 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).
getVotesByPoll in interface ServiceVotepoll - to retrieve votesstartIndex - begin range for resulting votesendIndex - end range for resulting votes
public boolean hasAlreadyVoted(String votingId,
PollDTO poll)
ServiceVotevotingId has already voted for the poll.
hasAlreadyVoted in interface ServiceVotevotingId - to test existing votepoll - where the votingId can have already voted
public List<VoteDTO> selectVotes(Map<String,Object> properties)
ServiceVote
selectVotes in interface ServiceVoteproperties - 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 | |||||||||