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          long plid, 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          boolean addCommunityPermissions, boolean addGuestPermissions)
46          throws com.liferay.portal.PortalException,
47              com.liferay.portal.SystemException, java.rmi.RemoteException {
48          return _pollsQuestionService.addQuestion(plid, title, description,
49              expirationDateMonth, expirationDateDay, expirationDateYear,
50              expirationDateHour, expirationDateMinute, neverExpire, choices,
51              addCommunityPermissions, addGuestPermissions);
52      }
53  
54      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
55          long plid, java.lang.String title, java.lang.String description,
56          int expirationDateMonth, int expirationDateDay, int expirationDateYear,
57          int expirationDateHour, int expirationDateMinute, boolean neverExpire,
58          java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
59          java.lang.String[] communityPermissions,
60          java.lang.String[] guestPermissions)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException, java.rmi.RemoteException {
63          return _pollsQuestionService.addQuestion(plid, title, description,
64              expirationDateMonth, expirationDateDay, expirationDateYear,
65              expirationDateHour, expirationDateMinute, neverExpire, choices,
66              communityPermissions, guestPermissions);
67      }
68  
69      public void deleteQuestion(long questionId)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException, java.rmi.RemoteException {
72          _pollsQuestionService.deleteQuestion(questionId);
73      }
74  
75      public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
76          long questionId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException, java.rmi.RemoteException {
79          return _pollsQuestionService.getQuestion(questionId);
80      }
81  
82      public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
83          long questionId, java.lang.String title, java.lang.String description,
84          int expirationDateMonth, int expirationDateDay, int expirationDateYear,
85          int expirationDateHour, int expirationDateMinute, boolean neverExpire,
86          java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException, java.rmi.RemoteException {
89          return _pollsQuestionService.updateQuestion(questionId, title,
90              description, expirationDateMonth, expirationDateDay,
91              expirationDateYear, expirationDateHour, expirationDateMinute,
92              neverExpire, choices);
93      }
94  
95      public PollsQuestionService getWrappedPollsQuestionService() {
96          return _pollsQuestionService;
97      }
98  
99      private PollsQuestionService _pollsQuestionService;
100 }