com.liferay.portlet.polls.service
Interface PollsQuestionLocalService

All Known Implementing Classes:
PollsQuestionLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,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
Generated:

Method Summary
 PollsQuestion addPollsQuestion(PollsQuestion pollsQuestion)
           
 PollsQuestion addQuestion(java.lang.String uuid, long userId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, 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 dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 PollsQuestion getPollsQuestion(long questionId)
           
 PollsQuestion getPollsQuestionByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 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 updatePollsQuestion(PollsQuestion pollsQuestion, boolean merge)
           
 PollsQuestion updateQuestion(long userId, long questionId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire)
           
 PollsQuestion updateQuestion(long userId, long questionId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, 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 SystemException
Throws:
SystemException

createPollsQuestion

PollsQuestion createPollsQuestion(long questionId)

deletePollsQuestion

void deletePollsQuestion(long questionId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deletePollsQuestion

void deletePollsQuestion(PollsQuestion pollsQuestion)
                         throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getPollsQuestion

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

getPollsQuestionByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PollsQuestion getPollsQuestionByUuidAndGroupId(java.lang.String uuid,
                                                                                        long groupId)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getPollsQuestions

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

getPollsQuestionsCount

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

updatePollsQuestion

PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion)
                                  throws SystemException
Throws:
SystemException

updatePollsQuestion

PollsQuestion updatePollsQuestion(PollsQuestion pollsQuestion,
                                  boolean merge)
                                  throws SystemException
Throws:
SystemException

addQuestion

PollsQuestion addQuestion(java.lang.String uuid,
                          long userId,
                          java.util.Map<java.util.Locale,java.lang.String> titleMap,
                          java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                          int expirationDateMonth,
                          int expirationDateDay,
                          int expirationDateYear,
                          int expirationDateHour,
                          int expirationDateMinute,
                          boolean neverExpire,
                          java.util.List<PollsChoice> choices,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addQuestionResources

void addQuestionResources(long questionId,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addQuestionResources

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

addQuestionResources

void addQuestionResources(PollsQuestion question,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addQuestionResources

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

deleteQuestion

void deleteQuestion(long questionId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteQuestion

void deleteQuestion(PollsQuestion question)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteQuestions

void deleteQuestions(long groupId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getQuestion

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

getQuestions

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

getQuestions

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

getQuestionsCount

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

updateQuestion

PollsQuestion updateQuestion(long userId,
                             long questionId,
                             java.util.Map<java.util.Locale,java.lang.String> titleMap,
                             java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                             int expirationDateMonth,
                             int expirationDateDay,
                             int expirationDateYear,
                             int expirationDateHour,
                             int expirationDateMinute,
                             boolean neverExpire)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateQuestion

PollsQuestion updateQuestion(long userId,
                             long questionId,
                             java.util.Map<java.util.Locale,java.lang.String> titleMap,
                             java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                             int expirationDateMonth,
                             int expirationDateDay,
                             int expirationDateYear,
                             int expirationDateHour,
                             int expirationDateMinute,
                             boolean neverExpire,
                             java.util.List<PollsChoice> choices,
                             ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException