com.liferay.portlet.polls.service
Class PollsQuestionLocalServiceUtil

java.lang.Object
  extended bycom.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.

com.liferay.portlet.polls.service.PollsQuestionLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
PollsQuestionLocalService, PollsQuestionLocalServiceFactory

Constructor Summary
PollsQuestionLocalServiceUtil()
           
 
Method Summary
static PollsQuestion addPollsQuestion(PollsQuestion model)
           
static PollsQuestion addQuestion(long userId, long plid, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static PollsQuestion addQuestion(long userId, long plid, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.List choices, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static PollsQuestion addQuestion(long userId, long plid, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.List choices, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static PollsQuestion addQuestion(java.lang.String uuid, long userId, long plid, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static PollsQuestion addQuestion(java.lang.String uuid, long userId, long plid, java.lang.String title, java.lang.String description, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.List choices, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
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 void afterPropertiesSet()
           
static void deleteQuestion(long questionId)
           
static void deleteQuestion(PollsQuestion question)
           
static void deleteQuestions(long groupId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static PollsChoiceFinder getPollsChoiceFinder()
           
static PollsChoicePersistence getPollsChoicePersistence()
           
static PollsQuestionPersistence getPollsQuestionPersistence()
           
static PollsVotePersistence getPollsVotePersistence()
           
static PollsQuestion getQuestion(long questionId)
           
static java.util.List getQuestions(long groupId)
           
static java.util.List getQuestions(long groupId, int begin, int end)
           
static int getQuestionsCount(long groupId)
           
static ResourceFinder getResourceFinder()
           
static ResourcePersistence getResourcePersistence()
           
static UserFinder getUserFinder()
           
static UserPersistence getUserPersistence()
           
static void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder)
           
static void setPollsChoicePersistence(PollsChoicePersistence pollsChoicePersistence)
           
static void setPollsQuestionPersistence(PollsQuestionPersistence pollsQuestionPersistence)
           
static void setPollsVotePersistence(PollsVotePersistence pollsVotePersistence)
           
static void setResourceFinder(ResourceFinder resourceFinder)
           
static void setResourcePersistence(ResourcePersistence resourcePersistence)
           
static void setUserFinder(UserFinder userFinder)
           
static void setUserPersistence(UserPersistence userPersistence)
           
static PollsQuestion updatePollsQuestion(PollsQuestion model)
           
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 choices)
           
 
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 model)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePollsQuestion

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

getPollsChoicePersistence

public static PollsChoicePersistence getPollsChoicePersistence()

setPollsChoicePersistence

public static void setPollsChoicePersistence(PollsChoicePersistence pollsChoicePersistence)

getPollsChoiceFinder

public static PollsChoiceFinder getPollsChoiceFinder()

setPollsChoiceFinder

public static void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder)

getPollsQuestionPersistence

public static PollsQuestionPersistence getPollsQuestionPersistence()

setPollsQuestionPersistence

public static void setPollsQuestionPersistence(PollsQuestionPersistence pollsQuestionPersistence)

getPollsVotePersistence

public static PollsVotePersistence getPollsVotePersistence()

setPollsVotePersistence

public static void setPollsVotePersistence(PollsVotePersistence pollsVotePersistence)

getResourcePersistence

public static ResourcePersistence getResourcePersistence()

setResourcePersistence

public static void setResourcePersistence(ResourcePersistence resourcePersistence)

getResourceFinder

public static ResourceFinder getResourceFinder()

setResourceFinder

public static void setResourceFinder(ResourceFinder resourceFinder)

getUserPersistence

public static UserPersistence getUserPersistence()

setUserPersistence

public static void setUserPersistence(UserPersistence userPersistence)

getUserFinder

public static UserFinder getUserFinder()

setUserFinder

public static void setUserFinder(UserFinder userFinder)

afterPropertiesSet

public static void afterPropertiesSet()

addQuestion

public static PollsQuestion addQuestion(long userId,
                                        long plid,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expirationDateMonth,
                                        int expirationDateDay,
                                        int expirationDateYear,
                                        int expirationDateHour,
                                        int expirationDateMinute,
                                        boolean neverExpire,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 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,
                                        long plid,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expirationDateMonth,
                                        int expirationDateDay,
                                        int expirationDateYear,
                                        int expirationDateHour,
                                        int expirationDateMinute,
                                        boolean neverExpire,
                                        boolean addCommunityPermissions,
                                        boolean addGuestPermissions)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestion

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

addQuestion

public static PollsQuestion addQuestion(long userId,
                                        long plid,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expirationDateMonth,
                                        int expirationDateDay,
                                        int expirationDateYear,
                                        int expirationDateHour,
                                        int expirationDateMinute,
                                        boolean neverExpire,
                                        java.util.List choices,
                                        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

addQuestion

public static PollsQuestion addQuestion(java.lang.String uuid,
                                        long userId,
                                        long plid,
                                        java.lang.String title,
                                        java.lang.String description,
                                        int expirationDateMonth,
                                        int expirationDateDay,
                                        int expirationDateYear,
                                        int expirationDateHour,
                                        int expirationDateMinute,
                                        boolean neverExpire,
                                        java.util.List choices,
                                        java.lang.Boolean addCommunityPermissions,
                                        java.lang.Boolean addGuestPermissions,
                                        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(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 getQuestions(long groupId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestions

public static java.util.List getQuestions(long groupId,
                                          int begin,
                                          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 choices)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException