com.liferay.portlet.polls.util
Class PollsUtil

java.lang.Object
  extended by com.liferay.portlet.polls.util.PollsUtil

public class PollsUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan, Shepherd Ching

Constructor Summary
PollsUtil()
           
 
Method Summary
static org.jfree.data.category.CategoryDataset getVotesDataset(long questionId)
           
static boolean hasVoted(javax.servlet.http.HttpServletRequest req, long questionId)
           
static void saveVote(javax.portlet.ActionRequest req, long questionId)
           
static void saveVote(javax.servlet.http.HttpServletRequest req, long questionId)
           
static void saveVote(javax.portlet.RenderRequest req, long questionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsUtil

public PollsUtil()
Method Detail

getVotesDataset

public static org.jfree.data.category.CategoryDataset getVotesDataset(long questionId)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasVoted

public static boolean hasVoted(javax.servlet.http.HttpServletRequest req,
                               long questionId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

saveVote

public static void saveVote(javax.portlet.ActionRequest req,
                            long questionId)

saveVote

public static void saveVote(javax.portlet.RenderRequest req,
                            long questionId)

saveVote

public static void saveVote(javax.servlet.http.HttpServletRequest req,
                            long questionId)