org.chorem.pollen.business.services
Class ServiceChoiceImpl

java.lang.Object
  extended by org.chorem.pollen.business.services.ServiceChoiceImpl
All Implemented Interfaces:
ServiceChoice

public class ServiceChoiceImpl
extends Object
implements ServiceChoice

Gestion des choix d'un sondage.

Version:
$Id: ServiceChoiceImpl.java 2862 2010-02-09 15:31:45Z jruchaud $
Author:
enema

Constructor Summary
ServiceChoiceImpl()
           
 
Method Summary
 String createChoice(ChoiceDTO choice)
          Création d'un choix
 List<Choice> createChoices(List<ChoiceDTO> choices, String pollId, org.nuiton.topia.TopiaContext transaction)
          Création des choix du sondage
 boolean deleteChoice(String choiceId)
          Suppression d'un choix de sondage
 ChoiceDTO findChoiceById(String choiceId)
          Recherche d'un choix par son identifiant
 List<ChoiceDTO> findChoicesByName(String choiceName, String pollId)
          Recherche de choix d'un sondage à partir du nom
 List<ChoiceDTO> selectChoices(Map<String,Object> properties)
          Recherche de tous les choix d'un sondage
 boolean updateChoice(ChoiceDTO choiceDTO)
          Mise à jour d'un choix pour un sondage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceChoiceImpl

public ServiceChoiceImpl()
Method Detail

createChoice

public String createChoice(ChoiceDTO choice)
Description copied from interface: ServiceChoice
Création d'un choix

Specified by:
createChoice in interface ServiceChoice
Parameters:
choice - le dto choix
Returns:
l'identifiant du choix

createChoices

public List<Choice> createChoices(List<ChoiceDTO> choices,
                                  String pollId,
                                  org.nuiton.topia.TopiaContext transaction)
Description copied from interface: ServiceChoice
Création des choix du sondage

Specified by:
createChoices in interface ServiceChoice
Parameters:
choices - les dtos choix
pollId - l'identifiant du sondage
transaction - la transaction du sondage
Returns:
les choix créés

updateChoice

public boolean updateChoice(ChoiceDTO choiceDTO)
Description copied from interface: ServiceChoice
Mise à jour d'un choix pour un sondage

Specified by:
updateChoice in interface ServiceChoice
Returns:
true si le choix a été mise à jours

deleteChoice

public boolean deleteChoice(String choiceId)
Description copied from interface: ServiceChoice
Suppression d'un choix de sondage

Specified by:
deleteChoice in interface ServiceChoice
Parameters:
choiceId - l'identifiant du choix
Returns:
true si le choix a été mis à jours

findChoiceById

public ChoiceDTO findChoiceById(String choiceId)
Description copied from interface: ServiceChoice
Recherche d'un choix par son identifiant

Specified by:
findChoiceById in interface ServiceChoice
Parameters:
choiceId - l'identifiant du choix
Returns:
le choix

findChoicesByName

public List<ChoiceDTO> findChoicesByName(String choiceName,
                                         String pollId)
Description copied from interface: ServiceChoice
Recherche de choix d'un sondage à partir du nom

Specified by:
findChoicesByName in interface ServiceChoice
Parameters:
choiceName - le nom du choix
pollId - l'identifiant du sondage
Returns:
les choix

selectChoices

public List<ChoiceDTO> selectChoices(Map<String,Object> properties)
Description copied from interface: ServiceChoice
Recherche de tous les choix d'un sondage

Specified by:
selectChoices in interface ServiceChoice
Parameters:
properties - filtre sur les champs de la table choix
Returns:
les choix du sondage


Copyright © 2009-2010 CodeLutin. All Rights Reserved.