com.liferay.portlet.polls.service
Class PollsQuestionLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.polls.service.PollsQuestionLocalServiceUtil

public class PollsQuestionLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portlet.polls.service.PollsQuestionLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
PollsQuestionLocalService

Constructor Summary
PollsQuestionLocalServiceUtil()
           
 
Method Summary
static PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
           
static PollsQuestion addQuestion(long userId, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.List<PollsChoice> choices, ServiceContext serviceContext)
           
static PollsQuestion addQuestion(java.lang.String uuid, long userId, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.List<PollsChoice> choices, ServiceContext serviceContext)
           
static void addQuestionResources(long questionId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addQuestionResources(long questionId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addQuestionResources(PollsQuestion question, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addQuestionResources(PollsQuestion question, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static PollsQuestion createPollsQuestion(long questionId)
           
static void deletePollsQuestion(long questionId)
           
static void deletePollsQuestion(PollsQuestion pollsQuestion)
           
static void deleteQuestion(long questionId)
           
static void deleteQuestion(PollsQuestion question)
           
static void deleteQuestions(long groupId)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static PollsQuestion getPollsQuestion(long questionId)
           
static java.util.List<PollsQuestion> getPollsQuestions(int start, int end)
           
static int getPollsQuestionsCount()
           
static PollsQuestion getQuestion(long questionId)
           
static java.util.List<PollsQuestion> getQuestions(long groupId)
           
static java.util.List<PollsQuestion> getQuestions(long groupId, int start, int end)
           
static int getQuestionsCount(long groupId)
           
static PollsQuestionLocalService getService()
           
 void setService(PollsQuestionLocalService service)
           
static PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
           
static PollsQuestion updateQuestion(long userId, long questionId, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire)
           
static PollsQuestion updateQuestion(long userId, long questionId, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.List<PollsChoice> choices, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsQuestionLocalServiceUtil

public PollsQuestionLocalServiceUtil()
Method Detail

addPollsQuestion

public static PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createPollsQuestion

public static PollsQuestion createPollsQuestion(long questionId)

deletePollsQuestion

public static void deletePollsQuestion(long questionId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePollsQuestion

public static void deletePollsQuestion(PollsQuestion pollsQuestion)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPollsQuestion

public static PollsQuestion getPollsQuestion(long questionId)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPollsQuestions

public static java.util.List<PollsQuestion> getPollsQuestions(int start,
                                                              int end)
                                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPollsQuestionsCount

public static int getPollsQuestionsCount()
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePollsQuestion

public static PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addQuestion

public static PollsQuestion addQuestion(long userId,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expirationDateMonth,
                                        int expirationDateDay,
                                        int expirationDateYear,
                                        int expirationDateHour,
                                        int expirationDateMinute,
                                        boolean neverExpire,
                                        java.util.List<PollsChoice> choices,
                                        ServiceContext serviceContext)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestion

public static PollsQuestion addQuestion(java.lang.String uuid,
                                        long userId,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expirationDateMonth,
                                        int expirationDateDay,
                                        int expirationDateYear,
                                        int expirationDateHour,
                                        int expirationDateMinute,
                                        boolean neverExpire,
                                        java.util.List<PollsChoice> choices,
                                        ServiceContext serviceContext)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestionResources

public static void addQuestionResources(long questionId,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestionResources

public static void addQuestionResources(PollsQuestion question,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestionResources

public static void addQuestionResources(long questionId,
                                        java.lang.String[] communityPermissions,
                                        java.lang.String[] guestPermissions)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestionResources

public static void addQuestionResources(PollsQuestion question,
                                        java.lang.String[] communityPermissions,
                                        java.lang.String[] guestPermissions)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteQuestion

public static void deleteQuestion(long questionId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteQuestion

public static void deleteQuestion(PollsQuestion question)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteQuestions

public static void deleteQuestions(long groupId)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getQuestion

public static PollsQuestion getQuestion(long questionId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getQuestions

public static java.util.List<PollsQuestion> getQuestions(long groupId)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestions

public static java.util.List<PollsQuestion> getQuestions(long groupId,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestionsCount

public static int getQuestionsCount(long groupId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateQuestion

public static PollsQuestion updateQuestion(long userId,
                                           long questionId,
                                           java.lang.String title,
                                           java.lang.String description,
                                           int expirationDateMonth,
                                           int expirationDateDay,
                                           int expirationDateYear,
                                           int expirationDateHour,
                                           int expirationDateMinute,
                                           boolean neverExpire)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateQuestion

public static PollsQuestion updateQuestion(long userId,
                                           long questionId,
                                           java.lang.String title,
                                           java.lang.String description,
                                           int expirationDateMonth,
                                           int expirationDateDay,
                                           int expirationDateYear,
                                           int expirationDateHour,
                                           int expirationDateMinute,
                                           boolean neverExpire,
                                           java.util.List<PollsChoice> choices,
                                           ServiceContext serviceContext)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getService

public static PollsQuestionLocalService getService()

setService

public void setService(PollsQuestionLocalService service)