org.chorem.pollen.business
Class ServiceVoteImpl

java.lang.Object
  extended by org.chorem.pollen.business.ServiceVoteImpl
All Implemented Interfaces:
ServiceVote

public class ServiceVoteImpl
extends java.lang.Object
implements ServiceVote

Implémentation du service de gestion des votes.

Version:
$Id: ServiceVoteImpl.java 2621 2009-07-03 15:09:23Z nrannou $
Author:
rannou

Constructor Summary
ServiceVoteImpl()
           
 
Method Summary
 java.lang.String createVote(VoteDTO voteDTO, PollAccountDTO pollAccountDTO)
          Rajouter un vote à un sondage
 boolean deleteVote(VoteDTO voteDTO)
          Supprime un vote de la base de données
 java.util.List<VoteDTO> selectVotes(java.util.Map<java.lang.String,java.lang.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

ServiceVoteImpl

public ServiceVoteImpl()
Method Detail

createVote

public java.lang.String createVote(VoteDTO voteDTO,
                                   PollAccountDTO pollAccountDTO)
Description copied from interface: ServiceVote
Rajouter un vote à un sondage

Specified by:
createVote in interface ServiceVote
Parameters:
voteDTO - Le DTO du vote
Returns:
L'ID du vote créé

updateVote

public boolean updateVote(VoteDTO voteDTO)
Description copied from interface: ServiceVote
Mise à jour d'un vote

Specified by:
updateVote in interface ServiceVote
Parameters:
voteDTO - Le DTO du vote
Returns:
Retourne TRUE si la mise à jour s'est correctement déroulée

deleteVote

public boolean deleteVote(VoteDTO voteDTO)
Description copied from interface: ServiceVote
Supprime un vote de la base de données

Specified by:
deleteVote in interface ServiceVote
Parameters:
voteDTO - Le DTO du vote
Returns:
Retourne TRUE si la suppression s'est correctement déroulée

selectVotes

public java.util.List<VoteDTO> selectVotes(java.util.Map<java.lang.String,java.lang.Object> properties)
Description copied from interface: ServiceVote
Retourne les votes d'un sondage

Specified by:
selectVotes in interface ServiceVote
Parameters:
properties - La HashMap pour sélectionner les votes d'un sondage. Il faut y mettre le bon champs pollId
Returns:
Les votes d'un sondage dans un DTO, le tout stocké dans une liste.


Copyright © 2009 CodeLutin. All Rights Reserved.