1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.polls.service;
24  
25  
26  /**
27   * <a href="PollsQuestionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link PollsQuestionLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       PollsQuestionLocalService
40   * @generated
41   */
42  public class PollsQuestionLocalServiceWrapper
43      implements PollsQuestionLocalService {
44      public PollsQuestionLocalServiceWrapper(
45          PollsQuestionLocalService pollsQuestionLocalService) {
46          _pollsQuestionLocalService = pollsQuestionLocalService;
47      }
48  
49      public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
50          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
51          throws com.liferay.portal.SystemException {
52          return _pollsQuestionLocalService.addPollsQuestion(pollsQuestion);
53      }
54  
55      public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
56          long questionId) {
57          return _pollsQuestionLocalService.createPollsQuestion(questionId);
58      }
59  
60      public void deletePollsQuestion(long questionId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          _pollsQuestionLocalService.deletePollsQuestion(questionId);
64      }
65  
66      public void deletePollsQuestion(
67          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
68          throws com.liferay.portal.SystemException {
69          _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
70      }
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException {
75          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
76      }
77  
78      public java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end) throws com.liferay.portal.SystemException {
81          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
82      }
83  
84      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
85          long questionId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return _pollsQuestionLocalService.getPollsQuestion(questionId);
89      }
90  
91      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
92          int start, int end) throws com.liferay.portal.SystemException {
93          return _pollsQuestionLocalService.getPollsQuestions(start, end);
94      }
95  
96      public int getPollsQuestionsCount()
97          throws com.liferay.portal.SystemException {
98          return _pollsQuestionLocalService.getPollsQuestionsCount();
99      }
100 
101     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
102         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
103         throws com.liferay.portal.SystemException {
104         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
105     }
106 
107     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
108         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
109         boolean merge) throws com.liferay.portal.SystemException {
110         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
111             merge);
112     }
113 
114     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
115         long userId, java.lang.String title, java.lang.String description,
116         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
117         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
118         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
119         com.liferay.portal.service.ServiceContext serviceContext)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         return _pollsQuestionLocalService.addQuestion(userId, title,
123             description, expirationDateMonth, expirationDateDay,
124             expirationDateYear, expirationDateHour, expirationDateMinute,
125             neverExpire, choices, serviceContext);
126     }
127 
128     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
129         java.lang.String uuid, long userId, java.lang.String title,
130         java.lang.String description, int expirationDateMonth,
131         int expirationDateDay, int expirationDateYear, int expirationDateHour,
132         int expirationDateMinute, boolean neverExpire,
133         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
134         com.liferay.portal.service.ServiceContext serviceContext)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         return _pollsQuestionLocalService.addQuestion(uuid, userId, title,
138             description, expirationDateMonth, expirationDateDay,
139             expirationDateYear, expirationDateHour, expirationDateMinute,
140             neverExpire, choices, serviceContext);
141     }
142 
143     public void addQuestionResources(long questionId,
144         boolean addCommunityPermissions, boolean addGuestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         _pollsQuestionLocalService.addQuestionResources(questionId,
148             addCommunityPermissions, addGuestPermissions);
149     }
150 
151     public void addQuestionResources(long questionId,
152         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         _pollsQuestionLocalService.addQuestionResources(questionId,
157             communityPermissions, guestPermissions);
158     }
159 
160     public void addQuestionResources(
161         com.liferay.portlet.polls.model.PollsQuestion question,
162         boolean addCommunityPermissions, boolean addGuestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         _pollsQuestionLocalService.addQuestionResources(question,
166             addCommunityPermissions, addGuestPermissions);
167     }
168 
169     public void addQuestionResources(
170         com.liferay.portlet.polls.model.PollsQuestion question,
171         java.lang.String[] communityPermissions,
172         java.lang.String[] guestPermissions)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         _pollsQuestionLocalService.addQuestionResources(question,
176             communityPermissions, guestPermissions);
177     }
178 
179     public void deleteQuestion(long questionId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         _pollsQuestionLocalService.deleteQuestion(questionId);
183     }
184 
185     public void deleteQuestion(
186         com.liferay.portlet.polls.model.PollsQuestion question)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         _pollsQuestionLocalService.deleteQuestion(question);
190     }
191 
192     public void deleteQuestions(long groupId)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         _pollsQuestionLocalService.deleteQuestions(groupId);
196     }
197 
198     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
199         long questionId)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         return _pollsQuestionLocalService.getQuestion(questionId);
203     }
204 
205     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
206         long groupId) throws com.liferay.portal.SystemException {
207         return _pollsQuestionLocalService.getQuestions(groupId);
208     }
209 
210     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
211         long groupId, int start, int end)
212         throws com.liferay.portal.SystemException {
213         return _pollsQuestionLocalService.getQuestions(groupId, start, end);
214     }
215 
216     public int getQuestionsCount(long groupId)
217         throws com.liferay.portal.SystemException {
218         return _pollsQuestionLocalService.getQuestionsCount(groupId);
219     }
220 
221     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
222         long userId, long questionId, java.lang.String title,
223         java.lang.String description, int expirationDateMonth,
224         int expirationDateDay, int expirationDateYear, int expirationDateHour,
225         int expirationDateMinute, boolean neverExpire)
226         throws com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException {
228         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
229             title, description, expirationDateMonth, expirationDateDay,
230             expirationDateYear, expirationDateHour, expirationDateMinute,
231             neverExpire);
232     }
233 
234     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
235         long userId, long questionId, java.lang.String title,
236         java.lang.String description, int expirationDateMonth,
237         int expirationDateDay, int expirationDateYear, int expirationDateHour,
238         int expirationDateMinute, boolean neverExpire,
239         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
240         com.liferay.portal.service.ServiceContext serviceContext)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException {
243         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
244             title, description, expirationDateMonth, expirationDateDay,
245             expirationDateYear, expirationDateHour, expirationDateMinute,
246             neverExpire, choices, serviceContext);
247     }
248 
249     public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
250         return _pollsQuestionLocalService;
251     }
252 
253     private PollsQuestionLocalService _pollsQuestionLocalService;
254 }