1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.polls.service;
16  
17  /**
18   * <a href="PollsQuestionServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link PollsQuestionService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PollsQuestionService
31   * @generated
32   */
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  }