com.liferay.portlet.polls.service
Class PollsQuestionLocalServiceUtil
java.lang.Object
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.
com.liferay.portlet.polls.service.PollsQuestionLocalServiceFactory
is responsible for the lookup of the bean.
- Author:
- Brian Wing Shun Chan
- See Also:
PollsQuestionLocalService
,
PollsQuestionLocalServiceFactory
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,
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.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
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 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 |
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 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 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,
java.util.List choices)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollsQuestionLocalServiceUtil
public PollsQuestionLocalServiceUtil()
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
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(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,
java.util.List choices)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException