001
014
015 package com.liferay.portlet.polls.service;
016
017 import com.liferay.portal.service.ServiceWrapper;
018
019
028 public class PollsQuestionServiceWrapper implements PollsQuestionService,
029 ServiceWrapper<PollsQuestionService> {
030 public PollsQuestionServiceWrapper(
031 PollsQuestionService pollsQuestionService) {
032 _pollsQuestionService = pollsQuestionService;
033 }
034
035 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
036 java.util.Map<java.util.Locale, java.lang.String> titleMap,
037 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
038 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
039 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
040 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
041 com.liferay.portal.service.ServiceContext serviceContext)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
045 expirationDateMonth, expirationDateDay, expirationDateYear,
046 expirationDateHour, expirationDateMinute, neverExpire, choices,
047 serviceContext);
048 }
049
050 public void deleteQuestion(long questionId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException {
053 _pollsQuestionService.deleteQuestion(questionId);
054 }
055
056 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
057 long questionId)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return _pollsQuestionService.getQuestion(questionId);
061 }
062
063 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
064 long questionId,
065 java.util.Map<java.util.Locale, java.lang.String> titleMap,
066 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
067 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
068 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
069 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return _pollsQuestionService.updateQuestion(questionId, titleMap,
074 descriptionMap, expirationDateMonth, expirationDateDay,
075 expirationDateYear, expirationDateHour, expirationDateMinute,
076 neverExpire, choices, serviceContext);
077 }
078
079
082 public PollsQuestionService getWrappedPollsQuestionService() {
083 return _pollsQuestionService;
084 }
085
086
089 public void setWrappedPollsQuestionService(
090 PollsQuestionService pollsQuestionService) {
091 _pollsQuestionService = pollsQuestionService;
092 }
093
094 public PollsQuestionService getWrappedService() {
095 return _pollsQuestionService;
096 }
097
098 public void setWrappedService(PollsQuestionService pollsQuestionService) {
099 _pollsQuestionService = pollsQuestionService;
100 }
101
102 private PollsQuestionService _pollsQuestionService;
103 }