org.chorem.pollen.ui.data
Class PollHelper

java.lang.Object
  extended by org.chorem.pollen.ui.data.PollHelper

public class PollHelper
extends java.lang.Object

Gestion de la copie d'un sondage existant pour en créer un nouveau.

Version:
$Id: PollHelper.java 2688 2009-08-03 15:16:17Z nrannou $
Author:
rannou

Constructor Summary
PollHelper()
           
 
Method Summary
static java.util.List<DateChoiceUIO> getDateChoices(PollDTO oldPoll)
          Création de choix de type Date à partir d'un sondage existant.
static java.util.List<ImageChoiceUIO> getImageChoices(PollDTO oldPoll)
          Création de choix de type Image à partir d'un sondage existant.
static PreventRuleDTO getNotificationPreventRule(PollDTO oldPoll)
          Création de la règle de notification à partir d'un sondage existant.
static PollDTO getPoll(PollDTO oldPoll)
          Création d'un nouveau sondage à partir d'un sondage existant.
static PreventRuleDTO getReminderPreventRule(PollDTO oldPoll)
          Création de la règle de rappel à partir d'un sondage existant.
static java.util.List<ChoiceDTO> getTextChoices(PollDTO oldPoll)
          Création de choix de type Texte à partir d'un sondage existant.
static java.util.List<VotingListDTO> getVotingLists(PollDTO oldPoll)
          Création de listes de votants à partir d'un sondage existant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollHelper

public PollHelper()
Method Detail

getPoll

public static PollDTO getPoll(PollDTO oldPoll)
Création d'un nouveau sondage à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
le nouveau sondage

getVotingLists

public static java.util.List<VotingListDTO> getVotingLists(PollDTO oldPoll)
Création de listes de votants à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
les listes de votants

getTextChoices

public static java.util.List<ChoiceDTO> getTextChoices(PollDTO oldPoll)
Création de choix de type Texte à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
les choix

getDateChoices

public static java.util.List<DateChoiceUIO> getDateChoices(PollDTO oldPoll)
Création de choix de type Date à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
les choix

getImageChoices

public static java.util.List<ImageChoiceUIO> getImageChoices(PollDTO oldPoll)
Création de choix de type Image à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
les choix

getNotificationPreventRule

public static PreventRuleDTO getNotificationPreventRule(PollDTO oldPoll)
Création de la règle de notification à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
la règle

getReminderPreventRule

public static PreventRuleDTO getReminderPreventRule(PollDTO oldPoll)
Création de la règle de rappel à partir d'un sondage existant.

Parameters:
oldPoll - le sondage existant
Returns:
la règle


Copyright © 2009 CodeLutin. All Rights Reserved.