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