001
014
015 package com.liferay.portlet.polls.service;
016
017
026 public class PollsQuestionServiceWrapper implements PollsQuestionService {
027 public PollsQuestionServiceWrapper(
028 PollsQuestionService pollsQuestionService) {
029 _pollsQuestionService = pollsQuestionService;
030 }
031
032 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
033 java.util.Map<java.util.Locale, java.lang.String> titleMap,
034 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
035 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
036 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
037 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
038 com.liferay.portal.service.ServiceContext serviceContext)
039 throws com.liferay.portal.kernel.exception.PortalException,
040 com.liferay.portal.kernel.exception.SystemException {
041 return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
042 expirationDateMonth, expirationDateDay, expirationDateYear,
043 expirationDateHour, expirationDateMinute, neverExpire, choices,
044 serviceContext);
045 }
046
047 public void deleteQuestion(long questionId)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException {
050 _pollsQuestionService.deleteQuestion(questionId);
051 }
052
053 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
054 long questionId)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException {
057 return _pollsQuestionService.getQuestion(questionId);
058 }
059
060 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
061 long questionId,
062 java.util.Map<java.util.Locale, java.lang.String> titleMap,
063 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
064 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
065 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
066 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return _pollsQuestionService.updateQuestion(questionId, titleMap,
071 descriptionMap, expirationDateMonth, expirationDateDay,
072 expirationDateYear, expirationDateHour, expirationDateMinute,
073 neverExpire, choices, serviceContext);
074 }
075
076 public PollsQuestionService getWrappedPollsQuestionService() {
077 return _pollsQuestionService;
078 }
079
080 private PollsQuestionService _pollsQuestionService;
081 }