public class PollsUtil
extends java.lang.Object
| Constructor and Description |
|---|
PollsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.polls.model.PollsQuestion |
getQuestionByPortlet(javax.portlet.PortletPreferences portletPreferences) |
static org.jfree.data.category.CategoryDataset |
getVotesDataset(long questionId) |
static boolean |
hasVoted(javax.servlet.http.HttpServletRequest request,
long questionId) |
static void |
saveVote(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long questionId) |
static void |
saveVote(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
long questionId) |
public static com.liferay.polls.model.PollsQuestion getQuestionByPortlet(javax.portlet.PortletPreferences portletPreferences)
throws java.lang.Exception
java.lang.Exceptionpublic static org.jfree.data.category.CategoryDataset getVotesDataset(long questionId)
public static boolean hasVoted(javax.servlet.http.HttpServletRequest request,
long questionId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void saveVote(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long questionId)
public static void saveVote(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
long questionId)