org.chorem.pollen.business.services
Interface ServiceChoice

All Known Implementing Classes:
ServiceChoiceImpl

public interface ServiceChoice

Interface de gestion des choix

Version:
$Id: ServiceChoice.java 2649 2009-07-15 16:30:23Z nrannou $
Author:
enema

Method Summary
 java.lang.String createChoice(ChoiceDTO choice)
          Création d'un choix
 java.util.List<Choice> createChoices(java.util.List<ChoiceDTO> choices, java.lang.String pollId, org.nuiton.topia.TopiaContext transaction)
          Création des choix du sondage
 boolean deleteChoice(java.lang.String choiceId)
          Suppression d'un choix de sondage
 ChoiceDTO findChoiceById(java.lang.String choiceId)
          Recherche d'un choix par son identifiant
 java.util.List<ChoiceDTO> findChoicesByName(java.lang.String choiceName, java.lang.String pollId)
          Recherche de choix d'un sondage à partir du nom
 java.util.List<ChoiceDTO> selectChoices(java.util.Map<java.lang.String,java.lang.Object> properties)
          Recherche de tous les choix d'un sondage
 boolean updateChoice(ChoiceDTO choiceDTO)
          Mise à jour d'un choix pour un sondage
 

Method Detail

createChoice

java.lang.String createChoice(ChoiceDTO choice)
Création d'un choix

Parameters:
choice - le dto choix
Returns:
l'identifiant du choix

createChoices

java.util.List<Choice> createChoices(java.util.List<ChoiceDTO> choices,
                                     java.lang.String pollId,
                                     org.nuiton.topia.TopiaContext transaction)
Création des choix du sondage

Parameters:
choices - les dtos choix
pollId - l'identifiant du sondage
transaction - la transaction du sondage
Returns:
les choix créés

updateChoice

boolean updateChoice(ChoiceDTO choiceDTO)
Mise à jour d'un choix pour un sondage

Parameters:
choiceDTO -
Returns:
true si le choix a été mise à jours

deleteChoice

boolean deleteChoice(java.lang.String choiceId)
Suppression d'un choix de sondage

Parameters:
choiceId - l'identifiant du choix
Returns:
true si le choix a été mis à jours

findChoiceById

ChoiceDTO findChoiceById(java.lang.String choiceId)
Recherche d'un choix par son identifiant

Parameters:
choiceId - l'identifiant du choix
Returns:
le choix

findChoicesByName

java.util.List<ChoiceDTO> findChoicesByName(java.lang.String choiceName,
                                            java.lang.String pollId)
Recherche de choix d'un sondage à partir du nom

Parameters:
choiceName - le nom du choix
pollId - l'identifiant du sondage
Returns:
les choix

selectChoices

java.util.List<ChoiceDTO> selectChoices(java.util.Map<java.lang.String,java.lang.Object> properties)
Recherche de tous les choix d'un sondage

Parameters:
properties - filtre sur les champs de la table choix
Returns:
les choix du sondage


Copyright © 2009 CodeLutin. All Rights Reserved.