com.liferay.portlet.polls.service.impl
Class PollsQuestionLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl
      extended by 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

Field Summary
 
Fields inherited from class com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl
counterLocalService, counterService, pollsChoiceFinder, pollsChoiceLocalService, pollsChoicePersistence, pollsQuestionLocalService, pollsQuestionPersistence, pollsQuestionService, pollsVoteLocalService, pollsVotePersistence, pollsVoteService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
PollsQuestionLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.polls.model.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<com.liferay.portlet.polls.model.PollsChoice> choices, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.polls.model.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<com.liferay.portlet.polls.model.PollsChoice> choices, com.liferay.portal.service.ServiceContext serviceContext)
           
 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<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(long groupId)
           
 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(long groupId, int start, 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)
           
 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<com.liferay.portlet.polls.model.PollsChoice> choices, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void validate(java.lang.String title, java.lang.String description, java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
           
 
Methods inherited from class com.liferay.portlet.polls.service.base.PollsQuestionLocalServiceBaseImpl
addPollsQuestion, createPollsQuestion, deletePollsQuestion, deletePollsQuestion, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getPollsChoiceFinder, getPollsChoiceLocalService, getPollsChoicePersistence, getPollsQuestion, getPollsQuestionLocalService, getPollsQuestionPersistence, getPollsQuestions, getPollsQuestionsCount, getPollsQuestionService, getPollsVoteLocalService, getPollsVotePersistence, getPollsVoteService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setCounterService, setPollsChoiceFinder, setPollsChoiceLocalService, setPollsChoicePersistence, setPollsQuestionLocalService, setPollsQuestionPersistence, setPollsQuestionService, setPollsVoteLocalService, setPollsVotePersistence, setPollsVoteService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updatePollsQuestion, updatePollsQuestion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsQuestionLocalServiceImpl

public PollsQuestionLocalServiceImpl()
Method Detail

addQuestion

public com.liferay.portlet.polls.model.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<com.liferay.portlet.polls.model.PollsChoice> choices,
                                                                 com.liferay.portal.service.ServiceContext serviceContext)
                                                          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(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<com.liferay.portlet.polls.model.PollsChoice> choices,
                                                                 com.liferay.portal.service.ServiceContext serviceContext)
                                                          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<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(long groupId)
                                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestions

public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(long groupId,
                                                                                  int start,
                                                                                  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)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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<com.liferay.portlet.polls.model.PollsChoice> choices,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             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<com.liferay.portlet.polls.model.PollsChoice> choices)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException