001
014
015 package com.liferay.portlet.polls.service;
016
017 import com.liferay.portal.service.ServiceWrapper;
018
019
028 public class PollsQuestionLocalServiceWrapper
029 implements PollsQuestionLocalService,
030 ServiceWrapper<PollsQuestionLocalService> {
031 public PollsQuestionLocalServiceWrapper(
032 PollsQuestionLocalService pollsQuestionLocalService) {
033 _pollsQuestionLocalService = pollsQuestionLocalService;
034 }
035
036
043 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
044 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
045 throws com.liferay.portal.kernel.exception.SystemException {
046 return _pollsQuestionLocalService.addPollsQuestion(pollsQuestion);
047 }
048
049
055 public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
056 long questionId) {
057 return _pollsQuestionLocalService.createPollsQuestion(questionId);
058 }
059
060
067 public void deletePollsQuestion(long questionId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 _pollsQuestionLocalService.deletePollsQuestion(questionId);
071 }
072
073
079 public void deletePollsQuestion(
080 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
081 throws com.liferay.portal.kernel.exception.SystemException {
082 _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
083 }
084
085
092 @SuppressWarnings("rawtypes")
093 public java.util.List dynamicQuery(
094 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
097 }
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException {
116 return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
117 }
118
119
133 @SuppressWarnings("rawtypes")
134 public java.util.List dynamicQuery(
135 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136 int end,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start,
140 end, orderByComparator);
141 }
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return _pollsQuestionLocalService.dynamicQueryCount(dynamicQuery);
154 }
155
156 public com.liferay.portlet.polls.model.PollsQuestion fetchPollsQuestion(
157 long questionId)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return _pollsQuestionLocalService.fetchPollsQuestion(questionId);
160 }
161
162
170 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
171 long questionId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException {
174 return _pollsQuestionLocalService.getPollsQuestion(questionId);
175 }
176
177 public com.liferay.portal.model.PersistedModel getPersistedModel(
178 java.io.Serializable primaryKeyObj)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return _pollsQuestionLocalService.getPersistedModel(primaryKeyObj);
182 }
183
184
193 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
194 java.lang.String uuid, long groupId)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return _pollsQuestionLocalService.getPollsQuestionByUuidAndGroupId(uuid,
198 groupId);
199 }
200
201
213 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
214 int start, int end)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return _pollsQuestionLocalService.getPollsQuestions(start, end);
217 }
218
219
225 public int getPollsQuestionsCount()
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return _pollsQuestionLocalService.getPollsQuestionsCount();
228 }
229
230
237 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
238 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
241 }
242
243
251 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
252 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
253 boolean merge)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
256 merge);
257 }
258
259
264 public java.lang.String getBeanIdentifier() {
265 return _pollsQuestionLocalService.getBeanIdentifier();
266 }
267
268
273 public void setBeanIdentifier(java.lang.String beanIdentifier) {
274 _pollsQuestionLocalService.setBeanIdentifier(beanIdentifier);
275 }
276
277 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
278 long userId,
279 java.util.Map<java.util.Locale, java.lang.String> titleMap,
280 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
281 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
282 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
283 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
284 com.liferay.portal.service.ServiceContext serviceContext)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException {
287 return _pollsQuestionLocalService.addQuestion(userId, titleMap,
288 descriptionMap, expirationDateMonth, expirationDateDay,
289 expirationDateYear, expirationDateHour, expirationDateMinute,
290 neverExpire, choices, serviceContext);
291 }
292
293 public void addQuestionResources(long questionId,
294 boolean addGroupPermissions, boolean addGuestPermissions)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException {
297 _pollsQuestionLocalService.addQuestionResources(questionId,
298 addGroupPermissions, addGuestPermissions);
299 }
300
301 public void addQuestionResources(long questionId,
302 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 _pollsQuestionLocalService.addQuestionResources(questionId,
306 groupPermissions, guestPermissions);
307 }
308
309 public void addQuestionResources(
310 com.liferay.portlet.polls.model.PollsQuestion question,
311 boolean addGroupPermissions, boolean addGuestPermissions)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 _pollsQuestionLocalService.addQuestionResources(question,
315 addGroupPermissions, addGuestPermissions);
316 }
317
318 public void addQuestionResources(
319 com.liferay.portlet.polls.model.PollsQuestion question,
320 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 _pollsQuestionLocalService.addQuestionResources(question,
324 groupPermissions, guestPermissions);
325 }
326
327 public void deleteQuestion(long questionId)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 _pollsQuestionLocalService.deleteQuestion(questionId);
331 }
332
333 public void deleteQuestion(
334 com.liferay.portlet.polls.model.PollsQuestion question)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 _pollsQuestionLocalService.deleteQuestion(question);
338 }
339
340 public void deleteQuestions(long groupId)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException {
343 _pollsQuestionLocalService.deleteQuestions(groupId);
344 }
345
346 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
347 long questionId)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 return _pollsQuestionLocalService.getQuestion(questionId);
351 }
352
353 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
354 long groupId)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return _pollsQuestionLocalService.getQuestions(groupId);
357 }
358
359 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
360 long groupId, int start, int end)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return _pollsQuestionLocalService.getQuestions(groupId, start, end);
363 }
364
365 public int getQuestionsCount(long groupId)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return _pollsQuestionLocalService.getQuestionsCount(groupId);
368 }
369
370 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
371 long userId, long questionId,
372 java.util.Map<java.util.Locale, java.lang.String> titleMap,
373 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
374 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
375 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
376 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
377 com.liferay.portal.service.ServiceContext serviceContext)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 return _pollsQuestionLocalService.updateQuestion(userId, questionId,
381 titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
382 expirationDateYear, expirationDateHour, expirationDateMinute,
383 neverExpire, choices, serviceContext);
384 }
385
386
389 public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
390 return _pollsQuestionLocalService;
391 }
392
393
396 public void setWrappedPollsQuestionLocalService(
397 PollsQuestionLocalService pollsQuestionLocalService) {
398 _pollsQuestionLocalService = pollsQuestionLocalService;
399 }
400
401 public PollsQuestionLocalService getWrappedService() {
402 return _pollsQuestionLocalService;
403 }
404
405 public void setWrappedService(
406 PollsQuestionLocalService pollsQuestionLocalService) {
407 _pollsQuestionLocalService = pollsQuestionLocalService;
408 }
409
410 private PollsQuestionLocalService _pollsQuestionLocalService;
411 }