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

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.polls.service.base.PollsQuestionServiceBaseImpl
          extended by com.liferay.portlet.polls.service.impl.PollsQuestionServiceImpl
All Implemented Interfaces:
com.liferay.portlet.polls.service.PollsQuestionService

public class PollsQuestionServiceImpl
extends PollsQuestionServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.polls.service.base.PollsQuestionServiceBaseImpl
counterLocalService, counterService, pollsChoiceFinder, pollsChoiceLocalService, pollsChoicePersistence, pollsQuestionLocalService, pollsQuestionPersistence, pollsQuestionService, pollsVoteLocalService, pollsVotePersistence, pollsVoteService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
PollsQuestionServiceImpl()
           
 
Method Summary
 com.liferay.portlet.polls.model.PollsQuestion addQuestion(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 deleteQuestion(long questionId)
           
 com.liferay.portlet.polls.model.PollsQuestion getQuestion(long questionId)
           
 com.liferay.portlet.polls.model.PollsQuestion updateQuestion(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)
           
 
Methods inherited from class com.liferay.portlet.polls.service.base.PollsQuestionServiceBaseImpl
getCounterLocalService, getCounterService, getPollsChoiceFinder, getPollsChoiceLocalService, getPollsChoicePersistence, getPollsQuestionLocalService, getPollsQuestionPersistence, getPollsQuestionService, getPollsVoteLocalService, getPollsVotePersistence, getPollsVoteService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setCounterLocalService, setCounterService, setPollsChoiceFinder, setPollsChoiceLocalService, setPollsChoicePersistence, setPollsQuestionLocalService, setPollsQuestionPersistence, setPollsQuestionService, setPollsVoteLocalService, setPollsVotePersistence, setPollsVoteService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsQuestionServiceImpl

public PollsQuestionServiceImpl()
Method Detail

addQuestion

public com.liferay.portlet.polls.model.PollsQuestion addQuestion(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

deleteQuestion

public void deleteQuestion(long questionId)
                    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

updateQuestion

public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(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