com.liferay.portlet.polls.service.spring
Class PollsQuestionLocalServiceUtil

java.lang.Object
  extended bycom.liferay.portlet.polls.service.spring.PollsQuestionLocalServiceUtil

public class PollsQuestionLocalServiceUtil
extends java.lang.Object

View Source

Version:
$Revision: 1.183 $
Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String PORTLET_ID
           
 
Constructor Summary
PollsQuestionLocalServiceUtil()
           
 
Method Summary
static PollsQuestion addQuestion(java.lang.String userId, java.lang.String portletId, java.lang.String groupId, java.lang.String title, java.lang.String description, int expMonth, int expDay, int expYear, boolean neverExpires, java.util.List choices)
           
static void deleteAll(java.lang.String groupId)
           
static void deleteQuestion(java.lang.String questionId)
           
static PollsQuestion updateQuestion(java.lang.String userId, java.lang.String questionId, java.lang.String title, java.lang.String description, int expMonth, int expDay, int expYear, boolean neverExpires, java.util.List choices)
           
static void vote(java.lang.String userId, java.lang.String questionId, java.lang.String choiceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTLET_ID

public static final java.lang.String PORTLET_ID
See Also:
Constant Field Values
Constructor Detail

PollsQuestionLocalServiceUtil

public PollsQuestionLocalServiceUtil()
Method Detail

addQuestion

public static PollsQuestion addQuestion(java.lang.String userId,
                                        java.lang.String portletId,
                                        java.lang.String groupId,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expMonth,
                                        int expDay,
                                        int expYear,
                                        boolean neverExpires,
                                        java.util.List choices)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

deleteAll

public static void deleteAll(java.lang.String groupId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

deleteQuestion

public static void deleteQuestion(java.lang.String questionId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

updateQuestion

public static PollsQuestion updateQuestion(java.lang.String userId,
                                           java.lang.String questionId,
                                           java.lang.String title,
                                           java.lang.String description,
                                           int expMonth,
                                           int expDay,
                                           int expYear,
                                           boolean neverExpires,
                                           java.util.List choices)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

vote

public static void vote(java.lang.String userId,
                        java.lang.String questionId,
                        java.lang.String choiceId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException