001
014
015 package com.liferay.portlet.polls.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.service.ServiceWrapper;
020
021
028 @ProviderType
029 public class PollsQuestionServiceWrapper implements PollsQuestionService,
030 ServiceWrapper<PollsQuestionService> {
031 public PollsQuestionServiceWrapper(
032 PollsQuestionService pollsQuestionService) {
033 _pollsQuestionService = pollsQuestionService;
034 }
035
036
041 @Override
042 public java.lang.String getBeanIdentifier() {
043 return _pollsQuestionService.getBeanIdentifier();
044 }
045
046
051 @Override
052 public void setBeanIdentifier(java.lang.String beanIdentifier) {
053 _pollsQuestionService.setBeanIdentifier(beanIdentifier);
054 }
055
056 @Override
057 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
058 java.util.Map<java.util.Locale, java.lang.String> titleMap,
059 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
060 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
061 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
062 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
067 expirationDateMonth, expirationDateDay, expirationDateYear,
068 expirationDateHour, expirationDateMinute, neverExpire, choices,
069 serviceContext);
070 }
071
072 @Override
073 public void deleteQuestion(long questionId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 _pollsQuestionService.deleteQuestion(questionId);
077 }
078
079 @Override
080 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
081 long questionId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 return _pollsQuestionService.getQuestion(questionId);
085 }
086
087 @Override
088 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
089 long questionId,
090 java.util.Map<java.util.Locale, java.lang.String> titleMap,
091 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
092 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
093 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
094 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return _pollsQuestionService.updateQuestion(questionId, titleMap,
099 descriptionMap, expirationDateMonth, expirationDateDay,
100 expirationDateYear, expirationDateHour, expirationDateMinute,
101 neverExpire, choices, serviceContext);
102 }
103
104
107 public PollsQuestionService getWrappedPollsQuestionService() {
108 return _pollsQuestionService;
109 }
110
111
114 public void setWrappedPollsQuestionService(
115 PollsQuestionService pollsQuestionService) {
116 _pollsQuestionService = pollsQuestionService;
117 }
118
119 @Override
120 public PollsQuestionService getWrappedService() {
121 return _pollsQuestionService;
122 }
123
124 @Override
125 public void setWrappedService(PollsQuestionService pollsQuestionService) {
126 _pollsQuestionService = pollsQuestionService;
127 }
128
129 private PollsQuestionService _pollsQuestionService;
130 }