1
14
15 package com.liferay.portlet.polls.service;
16
17
33 public class PollsQuestionServiceWrapper implements PollsQuestionService {
34 public PollsQuestionServiceWrapper(
35 PollsQuestionService pollsQuestionService) {
36 _pollsQuestionService = pollsQuestionService;
37 }
38
39 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
40 java.lang.String title, java.lang.String description,
41 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
42 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
43 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
44 com.liferay.portal.service.ServiceContext serviceContext)
45 throws com.liferay.portal.PortalException,
46 com.liferay.portal.SystemException {
47 return _pollsQuestionService.addQuestion(title, description,
48 expirationDateMonth, expirationDateDay, expirationDateYear,
49 expirationDateHour, expirationDateMinute, neverExpire, choices,
50 serviceContext);
51 }
52
53 public void deleteQuestion(long questionId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 _pollsQuestionService.deleteQuestion(questionId);
57 }
58
59 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
60 long questionId)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException {
63 return _pollsQuestionService.getQuestion(questionId);
64 }
65
66 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
67 long questionId, java.lang.String title, java.lang.String description,
68 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
69 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
70 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
71 com.liferay.portal.service.ServiceContext serviceContext)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException {
74 return _pollsQuestionService.updateQuestion(questionId, title,
75 description, expirationDateMonth, expirationDateDay,
76 expirationDateYear, expirationDateHour, expirationDateMinute,
77 neverExpire, choices, serviceContext);
78 }
79
80 public PollsQuestionService getWrappedPollsQuestionService() {
81 return _pollsQuestionService;
82 }
83
84 private PollsQuestionService _pollsQuestionService;
85 }