1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.polls.service;
16  
17  
18  /**
19   * <a href="PollsQuestionServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link PollsQuestionService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       PollsQuestionService
32   * @generated
33   */
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  }