001
014
015 package com.liferay.portlet.polls.service;
016
017
026 public class PollsQuestionLocalServiceWrapper
027 implements PollsQuestionLocalService {
028 public PollsQuestionLocalServiceWrapper(
029 PollsQuestionLocalService pollsQuestionLocalService) {
030 _pollsQuestionLocalService = pollsQuestionLocalService;
031 }
032
033
040 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
041 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
042 throws com.liferay.portal.kernel.exception.SystemException {
043 return _pollsQuestionLocalService.addPollsQuestion(pollsQuestion);
044 }
045
046
052 public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
053 long questionId) {
054 return _pollsQuestionLocalService.createPollsQuestion(questionId);
055 }
056
057
064 public void deletePollsQuestion(long questionId)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 _pollsQuestionLocalService.deletePollsQuestion(questionId);
068 }
069
070
076 public void deletePollsQuestion(
077 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
078 throws com.liferay.portal.kernel.exception.SystemException {
079 _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
080 }
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
094 }
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException {
113 return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
114 }
115
116
130 @SuppressWarnings("rawtypes")
131 public java.util.List dynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133 int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start,
137 end, orderByComparator);
138 }
139
140
147 public long dynamicQueryCount(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return _pollsQuestionLocalService.dynamicQueryCount(dynamicQuery);
151 }
152
153
161 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
162 long questionId)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return _pollsQuestionLocalService.getPollsQuestion(questionId);
166 }
167
168
177 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
178 java.lang.String uuid, long groupId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return _pollsQuestionLocalService.getPollsQuestionByUuidAndGroupId(uuid,
182 groupId);
183 }
184
185
197 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
198 int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return _pollsQuestionLocalService.getPollsQuestions(start, end);
201 }
202
203
209 public int getPollsQuestionsCount()
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return _pollsQuestionLocalService.getPollsQuestionsCount();
212 }
213
214
221 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
222 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
225 }
226
227
235 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
236 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
237 boolean merge)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
240 merge);
241 }
242
243 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
244 long userId,
245 java.util.Map<java.util.Locale, java.lang.String> titleMap,
246 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
247 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
248 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
249 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
250 com.liferay.portal.service.ServiceContext serviceContext)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 return _pollsQuestionLocalService.addQuestion(userId, titleMap,
254 descriptionMap, expirationDateMonth, expirationDateDay,
255 expirationDateYear, expirationDateHour, expirationDateMinute,
256 neverExpire, choices, serviceContext);
257 }
258
259 public void addQuestionResources(long questionId,
260 boolean addCommunityPermissions, boolean addGuestPermissions)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException {
263 _pollsQuestionLocalService.addQuestionResources(questionId,
264 addCommunityPermissions, addGuestPermissions);
265 }
266
267 public void addQuestionResources(long questionId,
268 java.lang.String[] communityPermissions,
269 java.lang.String[] guestPermissions)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException {
272 _pollsQuestionLocalService.addQuestionResources(questionId,
273 communityPermissions, guestPermissions);
274 }
275
276 public void addQuestionResources(
277 com.liferay.portlet.polls.model.PollsQuestion question,
278 boolean addCommunityPermissions, boolean addGuestPermissions)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 _pollsQuestionLocalService.addQuestionResources(question,
282 addCommunityPermissions, addGuestPermissions);
283 }
284
285 public void addQuestionResources(
286 com.liferay.portlet.polls.model.PollsQuestion question,
287 java.lang.String[] communityPermissions,
288 java.lang.String[] guestPermissions)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 _pollsQuestionLocalService.addQuestionResources(question,
292 communityPermissions, guestPermissions);
293 }
294
295 public void deleteQuestion(long questionId)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 _pollsQuestionLocalService.deleteQuestion(questionId);
299 }
300
301 public void deleteQuestion(
302 com.liferay.portlet.polls.model.PollsQuestion question)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 _pollsQuestionLocalService.deleteQuestion(question);
306 }
307
308 public void deleteQuestions(long groupId)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 _pollsQuestionLocalService.deleteQuestions(groupId);
312 }
313
314 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
315 long questionId)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 return _pollsQuestionLocalService.getQuestion(questionId);
319 }
320
321 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
322 long groupId)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return _pollsQuestionLocalService.getQuestions(groupId);
325 }
326
327 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
328 long groupId, int start, int end)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return _pollsQuestionLocalService.getQuestions(groupId, start, end);
331 }
332
333 public int getQuestionsCount(long groupId)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return _pollsQuestionLocalService.getQuestionsCount(groupId);
336 }
337
338 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
339 long userId, long questionId,
340 java.util.Map<java.util.Locale, java.lang.String> titleMap,
341 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
342 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
343 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
344 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
345 com.liferay.portal.service.ServiceContext serviceContext)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException {
348 return _pollsQuestionLocalService.updateQuestion(userId, questionId,
349 titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
350 expirationDateYear, expirationDateHour, expirationDateMinute,
351 neverExpire, choices, serviceContext);
352 }
353
354 public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
355 return _pollsQuestionLocalService;
356 }
357
358 private PollsQuestionLocalService _pollsQuestionLocalService;
359 }