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.util.Map<java.util.Locale, String> titleMap,
42          java.util.Map<java.util.Locale, String> descriptionMap,
43          int expirationDateMonth, int expirationDateDay, int expirationDateYear,
44          int expirationDateHour, int expirationDateMinute, boolean neverExpire,
45          java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
46          com.liferay.portal.service.ServiceContext serviceContext)
47          throws com.liferay.portal.kernel.exception.PortalException,
48              com.liferay.portal.kernel.exception.SystemException {
49          return _pollsQuestionService.addQuestion(titleMap, descriptionMap,
50              expirationDateMonth, expirationDateDay, expirationDateYear,
51              expirationDateHour, expirationDateMinute, neverExpire, choices,
52              serviceContext);
53      }
54  
55      public void deleteQuestion(long questionId)
56          throws com.liferay.portal.kernel.exception.PortalException,
57              com.liferay.portal.kernel.exception.SystemException {
58          _pollsQuestionService.deleteQuestion(questionId);
59      }
60  
61      public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
62          long questionId)
63          throws com.liferay.portal.kernel.exception.PortalException,
64              com.liferay.portal.kernel.exception.SystemException {
65          return _pollsQuestionService.getQuestion(questionId);
66      }
67  
68      public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
69          long questionId, java.util.Map<java.util.Locale, String> titleMap,
70          java.util.Map<java.util.Locale, String> descriptionMap,
71          int expirationDateMonth, int expirationDateDay, int expirationDateYear,
72          int expirationDateHour, int expirationDateMinute, boolean neverExpire,
73          java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
74          com.liferay.portal.service.ServiceContext serviceContext)
75          throws com.liferay.portal.kernel.exception.PortalException,
76              com.liferay.portal.kernel.exception.SystemException {
77          return _pollsQuestionService.updateQuestion(questionId, titleMap,
78              descriptionMap, expirationDateMonth, expirationDateDay,
79              expirationDateYear, expirationDateHour, expirationDateMinute,
80              neverExpire, choices, serviceContext);
81      }
82  
83      public PollsQuestionService getWrappedPollsQuestionService() {
84          return _pollsQuestionService;
85      }
86  
87      private PollsQuestionService _pollsQuestionService;
88  }