com.solidstategroup.cms.velocity
Class VelocityPoll

java.lang.Object
  extended by com.solidstategroup.cms.velocity.VelocityPoll

public class VelocityPoll
extends java.lang.Object


Constructor Summary
VelocityPoll(int pollId, java.lang.String question, java.util.Vector answers, int totalVotes)
           
 
Method Summary
 java.util.Vector getAnswers()
           
 int getPercentage(int pollAnswerId)
           
 VelocityPollAnswer getPollAnswer(int answerId)
           
 int getPollId()
           
 java.lang.String getQuestion()
           
 int getTotalVotes()
           
 boolean hasAlreadyVoted(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VelocityPoll

public VelocityPoll(int pollId,
                    java.lang.String question,
                    java.util.Vector answers,
                    int totalVotes)
Method Detail

getPollId

public int getPollId()

getQuestion

public java.lang.String getQuestion()

getAnswers

public java.util.Vector getAnswers()

getTotalVotes

public int getTotalVotes()

getPercentage

public int getPercentage(int pollAnswerId)

getPollAnswer

public VelocityPollAnswer getPollAnswer(int answerId)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hasAlreadyVoted

public boolean hasAlreadyVoted(javax.servlet.http.HttpServletRequest request)