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