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="PollsQuestionLocalServiceUtil.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 PollsQuestionLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PollsQuestionLocalService
31   * @generated
32   */
33  public class PollsQuestionLocalServiceWrapper
34      implements PollsQuestionLocalService {
35      public PollsQuestionLocalServiceWrapper(
36          PollsQuestionLocalService pollsQuestionLocalService) {
37          _pollsQuestionLocalService = pollsQuestionLocalService;
38      }
39  
40      public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
41          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
42          throws com.liferay.portal.SystemException {
43          return _pollsQuestionLocalService.addPollsQuestion(pollsQuestion);
44      }
45  
46      public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
47          long questionId) {
48          return _pollsQuestionLocalService.createPollsQuestion(questionId);
49      }
50  
51      public void deletePollsQuestion(long questionId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _pollsQuestionLocalService.deletePollsQuestion(questionId);
55      }
56  
57      public void deletePollsQuestion(
58          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
59          throws com.liferay.portal.SystemException {
60          _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
61      }
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException {
74          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("rawtypes")
78      public java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.SystemException {
83          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start,
84              end, orderByComparator);
85      }
86  
87      public int dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.SystemException {
90          return _pollsQuestionLocalService.dynamicQueryCount(dynamicQuery);
91      }
92  
93      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
94          long questionId)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException {
97          return _pollsQuestionLocalService.getPollsQuestion(questionId);
98      }
99  
100     public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException {
104         return _pollsQuestionLocalService.getPollsQuestionByUuidAndGroupId(uuid,
105             groupId);
106     }
107 
108     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
109         int start, int end) throws com.liferay.portal.SystemException {
110         return _pollsQuestionLocalService.getPollsQuestions(start, end);
111     }
112 
113     public int getPollsQuestionsCount()
114         throws com.liferay.portal.SystemException {
115         return _pollsQuestionLocalService.getPollsQuestionsCount();
116     }
117 
118     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
119         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
120         throws com.liferay.portal.SystemException {
121         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
122     }
123 
124     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
125         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
126         boolean merge) throws com.liferay.portal.SystemException {
127         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
128             merge);
129     }
130 
131     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
132         long userId, java.lang.String title, java.lang.String description,
133         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
134         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
135         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         return _pollsQuestionLocalService.addQuestion(userId, title,
140             description, expirationDateMonth, expirationDateDay,
141             expirationDateYear, expirationDateHour, expirationDateMinute,
142             neverExpire, choices, serviceContext);
143     }
144 
145     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
146         java.lang.String uuid, long userId, java.lang.String title,
147         java.lang.String description, int expirationDateMonth,
148         int expirationDateDay, int expirationDateYear, int expirationDateHour,
149         int expirationDateMinute, boolean neverExpire,
150         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
151         com.liferay.portal.service.ServiceContext serviceContext)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         return _pollsQuestionLocalService.addQuestion(uuid, userId, title,
155             description, expirationDateMonth, expirationDateDay,
156             expirationDateYear, expirationDateHour, expirationDateMinute,
157             neverExpire, choices, serviceContext);
158     }
159 
160     public void addQuestionResources(long questionId,
161         boolean addCommunityPermissions, boolean addGuestPermissions)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         _pollsQuestionLocalService.addQuestionResources(questionId,
165             addCommunityPermissions, addGuestPermissions);
166     }
167 
168     public void addQuestionResources(long questionId,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         _pollsQuestionLocalService.addQuestionResources(questionId,
174             communityPermissions, guestPermissions);
175     }
176 
177     public void addQuestionResources(
178         com.liferay.portlet.polls.model.PollsQuestion question,
179         boolean addCommunityPermissions, boolean addGuestPermissions)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         _pollsQuestionLocalService.addQuestionResources(question,
183             addCommunityPermissions, addGuestPermissions);
184     }
185 
186     public void addQuestionResources(
187         com.liferay.portlet.polls.model.PollsQuestion question,
188         java.lang.String[] communityPermissions,
189         java.lang.String[] guestPermissions)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException {
192         _pollsQuestionLocalService.addQuestionResources(question,
193             communityPermissions, guestPermissions);
194     }
195 
196     public void deleteQuestion(long questionId)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException {
199         _pollsQuestionLocalService.deleteQuestion(questionId);
200     }
201 
202     public void deleteQuestion(
203         com.liferay.portlet.polls.model.PollsQuestion question)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException {
206         _pollsQuestionLocalService.deleteQuestion(question);
207     }
208 
209     public void deleteQuestions(long groupId)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException {
212         _pollsQuestionLocalService.deleteQuestions(groupId);
213     }
214 
215     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
216         long questionId)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException {
219         return _pollsQuestionLocalService.getQuestion(questionId);
220     }
221 
222     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
223         long groupId) throws com.liferay.portal.SystemException {
224         return _pollsQuestionLocalService.getQuestions(groupId);
225     }
226 
227     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
228         long groupId, int start, int end)
229         throws com.liferay.portal.SystemException {
230         return _pollsQuestionLocalService.getQuestions(groupId, start, end);
231     }
232 
233     public int getQuestionsCount(long groupId)
234         throws com.liferay.portal.SystemException {
235         return _pollsQuestionLocalService.getQuestionsCount(groupId);
236     }
237 
238     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
239         long userId, long questionId, java.lang.String title,
240         java.lang.String description, int expirationDateMonth,
241         int expirationDateDay, int expirationDateYear, int expirationDateHour,
242         int expirationDateMinute, boolean neverExpire)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException {
245         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
246             title, description, expirationDateMonth, expirationDateDay,
247             expirationDateYear, expirationDateHour, expirationDateMinute,
248             neverExpire);
249     }
250 
251     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
252         long userId, long questionId, java.lang.String title,
253         java.lang.String description, int expirationDateMonth,
254         int expirationDateDay, int expirationDateYear, int expirationDateHour,
255         int expirationDateMinute, boolean neverExpire,
256         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
257         com.liferay.portal.service.ServiceContext serviceContext)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
261             title, description, expirationDateMonth, expirationDateDay,
262             expirationDateYear, expirationDateHour, expirationDateMinute,
263             neverExpire, choices, serviceContext);
264     }
265 
266     public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
267         return _pollsQuestionLocalService;
268     }
269 
270     private PollsQuestionLocalService _pollsQuestionLocalService;
271 }