org.chorem.pollen.ui.pages.poll
Class VoteForPoll

java.lang.Object
  extended by org.chorem.pollen.ui.pages.poll.VoteForPoll

@IncludeStylesheet(value="context:css/vote.css")
public class VoteForPoll
extends java.lang.Object

Classe de la page de vote.

Version:
$Id: VoteForPoll.java 2619 2009-07-02 13:33:10Z nrannou $
Author:
kmorin, rannou

Constructor Summary
VoteForPoll()
           
 
Method Summary
 java.lang.String getChoiceImageSrc()
          Retourne le chemin de l'image correspondant au choix courant
 java.util.Date getChoiceNameAsDate()
          Retourne la date correspondant au choix courant
 java.lang.String getChoiceThumbSrc()
          Retourne le chemin de la miniature correspondant au choix courant
 java.lang.String getCreatorName()
          Récupération du créateur du sondage.
 java.lang.String getCurrentChoiceResult()
          Retourne le résultat correspondant au choix de sondage courant.
 ChoiceDTO getCurrentVoteChoice()
          Retourne le choix de vote correspondant au choix de sondage courant.
 java.lang.String getCurrentVotingId()
          Retourne l'identifiant du votant du vote courant
 java.lang.String getHelpMessage()
          Retourne le message d'aide correspondant au type de sondage.
 boolean isAccountFieldDisplayed()
          Retourne vrai si le champs pollAccount doit apparaître.
 boolean isAddChoice()
           
 java.lang.Boolean isChoiceInVote(ChoiceDTO choice)
          Retourne si le choix fait partie du vote (s'il a été renseigné par le votant).
 boolean isCondorcetVoteCounting()
           
 boolean isCurrentVoteAnonymous()
          Retourne true si le sondage est anonyme ou si le vote courant est anonyme.
 boolean isDateType()
           
 boolean isDescNull()
           
 boolean isFreePoll()
           
 boolean isGroupPoll()
           
 boolean isImageType()
           
 boolean isNormalVoteCounting()
           
 boolean isPercentageVoteCounting()
           
 boolean isPollChoiceOrVoteStarted()
           
 boolean isPollChoiceRunning()
           
 boolean isPollChoiceStarted()
           
 boolean isPollFinished()
           
 boolean isPollNull()
           
 boolean isPollRunning()
           
 boolean isPollStarted()
           
 boolean isRestrictedPoll()
           
 boolean isTextType()
           
 boolean isUserIdMatching(java.lang.String votingId)
          Retourne vrai si l'utilisateur connecté est l'auteur du vote.
 boolean isVoteAnonymous()
          Retourne true si le sondage est anonyme ou si le vote soumis est anonyme.
 void setAddChoice(boolean addChoice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoteForPoll

public VoteForPoll()
Method Detail

isUserIdMatching

public boolean isUserIdMatching(java.lang.String votingId)
Retourne vrai si l'utilisateur connecté est l'auteur du vote.

Parameters:
votingId - le votant a rechercher
Returns:
vrai si l'utilisateur est l'auteur du vote

isAddChoice

public boolean isAddChoice()

setAddChoice

public void setAddChoice(boolean addChoice)

isChoiceInVote

public java.lang.Boolean isChoiceInVote(ChoiceDTO choice)
Retourne si le choix fait partie du vote (s'il a été renseigné par le votant).

Parameters:
choice - le choix concerné
Returns:
true si le choix est dans le vote

getCurrentVoteChoice

public ChoiceDTO getCurrentVoteChoice()
Retourne le choix de vote correspondant au choix de sondage courant.

Returns:
un choix de vote

getCurrentChoiceResult

public java.lang.String getCurrentChoiceResult()
Retourne le résultat correspondant au choix de sondage courant.

Returns:
le résultat du choix

isVoteAnonymous

public boolean isVoteAnonymous()
Retourne true si le sondage est anonyme ou si le vote soumis est anonyme. Utilisé lors de la soumission d'un vote.

Returns:
true si le vote est anonyme

isCurrentVoteAnonymous

public boolean isCurrentVoteAnonymous()
Retourne true si le sondage est anonyme ou si le vote courant est anonyme. Utilisé dans la boucle de parcours des votes.

Returns:
true si le vote est anonyme

getCurrentVotingId

public java.lang.String getCurrentVotingId()
Retourne l'identifiant du votant du vote courant


isPollNull

public boolean isPollNull()

isPollChoiceStarted

public boolean isPollChoiceStarted()

isPollStarted

public boolean isPollStarted()

isPollFinished

public boolean isPollFinished()

isPollChoiceOrVoteStarted

public boolean isPollChoiceOrVoteStarted()

isPollChoiceRunning

public boolean isPollChoiceRunning()

isPollRunning

public boolean isPollRunning()

isDescNull

public boolean isDescNull()

isAccountFieldDisplayed

public boolean isAccountFieldDisplayed()
Retourne vrai si le champs pollAccount doit apparaître.


isFreePoll

public boolean isFreePoll()

isRestrictedPoll

public boolean isRestrictedPoll()

isGroupPoll

public boolean isGroupPoll()

isTextType

public boolean isTextType()

isDateType

public boolean isDateType()

isImageType

public boolean isImageType()

isNormalVoteCounting

public boolean isNormalVoteCounting()

isPercentageVoteCounting

public boolean isPercentageVoteCounting()

isCondorcetVoteCounting

public boolean isCondorcetVoteCounting()

getCreatorName

public java.lang.String getCreatorName()
Récupération du créateur du sondage.

Returns:
le nom du créateur du sondage.

getHelpMessage

public java.lang.String getHelpMessage()
Retourne le message d'aide correspondant au type de sondage.


getChoiceNameAsDate

public java.util.Date getChoiceNameAsDate()
Retourne la date correspondant au choix courant


getChoiceImageSrc

public java.lang.String getChoiceImageSrc()
Retourne le chemin de l'image correspondant au choix courant


getChoiceThumbSrc

public java.lang.String getChoiceThumbSrc()
Retourne le chemin de la miniature correspondant au choix courant



Copyright © 2009 CodeLutin. All Rights Reserved.