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 java.lang.Object
implements ServiceChoice

Gestion des choix d'un sondage.

Version:
$Id: ServiceChoiceImpl.java 2737 2009-08-20 13:00:52Z nrannou $
Author:
enema

Constructor Summary
ServiceChoiceImpl()
           
 
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 trans)
          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
 
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 java.lang.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 java.util.List<Choice> createChoices(java.util.List<ChoiceDTO> choices,
                                            java.lang.String pollId,
                                            org.nuiton.topia.TopiaContext trans)
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
trans - 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(java.lang.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(java.lang.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 java.util.List<ChoiceDTO> findChoicesByName(java.lang.String choiceName,
                                                   java.lang.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 java.util.List<ChoiceDTO> selectChoices(java.util.Map<java.lang.String,java.lang.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.