com.liferay.portlet.polls.service.impl
Class PollsQuestionLocalServiceImpl
java.lang.Object
com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl
com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.polls.service.PollsQuestionLocalService
- public class PollsQuestionLocalServiceImpl
- extends PollsQuestionLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
com.liferay.portlet.polls.model.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)
|
com.liferay.portlet.polls.model.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)
|
com.liferay.portlet.polls.model.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)
|
void |
addQuestionResources(long questionId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addQuestionResources(long questionId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addQuestionResources(com.liferay.portlet.polls.model.PollsQuestion question,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addQuestionResources(com.liferay.portlet.polls.model.PollsQuestion question,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
deleteQuestion(long questionId)
|
void |
deleteQuestion(com.liferay.portlet.polls.model.PollsQuestion question)
|
void |
deleteQuestions(long groupId)
|
com.liferay.portlet.polls.model.PollsQuestion |
getQuestion(long questionId)
|
java.util.List |
getQuestions(long groupId)
|
java.util.List |
getQuestions(long groupId,
int begin,
int end)
|
int |
getQuestionsCount(long groupId)
|
com.liferay.portlet.polls.model.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)
|
protected void |
validate(java.lang.String title,
java.lang.String description,
java.util.List choices)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollsQuestionLocalServiceImpl
public PollsQuestionLocalServiceImpl()
addQuestion
public com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.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 com.liferay.portlet.polls.model.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 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 void addQuestionResources(com.liferay.portlet.polls.model.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 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 void addQuestionResources(com.liferay.portlet.polls.model.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 void deleteQuestion(long questionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteQuestion
public void deleteQuestion(com.liferay.portlet.polls.model.PollsQuestion question)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteQuestions
public void deleteQuestions(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getQuestion
public com.liferay.portlet.polls.model.PollsQuestion getQuestion(long questionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getQuestions
public java.util.List getQuestions(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getQuestions
public java.util.List getQuestions(long groupId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getQuestionsCount
public int getQuestionsCount(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateQuestion
public com.liferay.portlet.polls.model.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
validate
protected void validate(java.lang.String title,
java.lang.String description,
java.util.List choices)
throws com.liferay.portal.PortalException
- Throws:
com.liferay.portal.PortalException