com.liferay.portlet.polls.service
Interface PollsQuestionLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface PollsQuestionLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
PollsQuestionLocalServiceUtil

Method Summary
 PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
           
 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)
           
 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)
           
 void addQuestionResources(long questionId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addQuestionResources(long questionId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addQuestionResources(PollsQuestion question, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addQuestionResources(PollsQuestion question, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 PollsQuestion createPollsQuestion(long questionId)
           
 void deletePollsQuestion(long questionId)
           
 void deletePollsQuestion(PollsQuestion pollsQuestion)
           
 void deleteQuestion(long questionId)
           
 void deleteQuestion(PollsQuestion question)
           
 void deleteQuestions(long groupId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 PollsQuestion getPollsQuestion(long questionId)
           
 java.util.List<PollsQuestion> getPollsQuestions(int start, int end)
           
 int getPollsQuestionsCount()
           
 PollsQuestion getQuestion(long questionId)
           
 java.util.List<PollsQuestion> getQuestions(long groupId)
           
 java.util.List<PollsQuestion> getQuestions(long groupId, int start, int end)
           
 int getQuestionsCount(long groupId)
           
 PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
           
 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)
           
 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)
           
 

Method Detail

addPollsQuestion

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

createPollsQuestion

PollsQuestion createPollsQuestion(long questionId)

deletePollsQuestion

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

deletePollsQuestion

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

dynamicQuery

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PollsQuestion getPollsQuestion(long questionId)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getPollsQuestions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PollsQuestion> getPollsQuestions(int start,
                                                              int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPollsQuestionsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPollsQuestionsCount()
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePollsQuestion

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

addQuestion

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

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

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

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

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

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

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

deleteQuestion

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

deleteQuestions

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

getQuestion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PollsQuestion getQuestion(long questionId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getQuestions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PollsQuestion> getQuestions(long groupId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<PollsQuestion> getQuestions(long groupId,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestionsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getQuestionsCount(long groupId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateQuestion

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

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