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