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.kernel.exception.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.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          _pollsQuestionLocalService.deletePollsQuestion(questionId);
56      }
57  
58      public void deletePollsQuestion(
59          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
60          throws com.liferay.portal.kernel.exception.SystemException {
61          _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
62      }
63  
64      @SuppressWarnings("unchecked")
65      public java.util.List dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException {
68          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
69      }
70  
71      @SuppressWarnings("unchecked")
72      public java.util.List dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.kernel.exception.SystemException {
75          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      @SuppressWarnings("unchecked")
79      public java.util.List dynamicQuery(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
81          int end,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException {
84          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start,
85              end, orderByComparator);
86      }
87  
88      public long dynamicQueryCount(
89          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _pollsQuestionLocalService.dynamicQueryCount(dynamicQuery);
92      }
93  
94      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
95          long questionId)
96          throws com.liferay.portal.kernel.exception.PortalException,
97              com.liferay.portal.kernel.exception.SystemException {
98          return _pollsQuestionLocalService.getPollsQuestion(questionId);
99      }
100 
101     public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.kernel.exception.PortalException,
104             com.liferay.portal.kernel.exception.SystemException {
105         return _pollsQuestionLocalService.getPollsQuestionByUuidAndGroupId(uuid,
106             groupId);
107     }
108 
109     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
110         int start, int end)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _pollsQuestionLocalService.getPollsQuestions(start, end);
113     }
114 
115     public int getPollsQuestionsCount()
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return _pollsQuestionLocalService.getPollsQuestionsCount();
118     }
119 
120     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
121         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
124     }
125 
126     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
127         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
128         boolean merge)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
131             merge);
132     }
133 
134     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
135         java.lang.String uuid, long userId,
136         java.util.Map<java.util.Locale, java.lang.String> titleMap,
137         java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
138         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
139         int expirationDateHour, 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.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         return _pollsQuestionLocalService.addQuestion(uuid, userId, titleMap,
145             descriptionMap, 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.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
181             com.liferay.portal.kernel.exception.SystemException {
182         _pollsQuestionLocalService.addQuestionResources(question,
183             communityPermissions, guestPermissions);
184     }
185 
186     public void deleteQuestion(long questionId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         _pollsQuestionLocalService.deleteQuestion(questionId);
190     }
191 
192     public void deleteQuestion(
193         com.liferay.portlet.polls.model.PollsQuestion question)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         _pollsQuestionLocalService.deleteQuestion(question);
197     }
198 
199     public void deleteQuestions(long groupId)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         _pollsQuestionLocalService.deleteQuestions(groupId);
203     }
204 
205     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
206         long questionId)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         return _pollsQuestionLocalService.getQuestion(questionId);
210     }
211 
212     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
213         long groupId)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return _pollsQuestionLocalService.getQuestions(groupId);
216     }
217 
218     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
219         long groupId, int start, int end)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return _pollsQuestionLocalService.getQuestions(groupId, start, end);
222     }
223 
224     public int getQuestionsCount(long groupId)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return _pollsQuestionLocalService.getQuestionsCount(groupId);
227     }
228 
229     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
230         long userId, long questionId,
231         java.util.Map<java.util.Locale, java.lang.String> titleMap,
232         java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
233         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
234         int expirationDateHour, int expirationDateMinute, boolean neverExpire)
235         throws com.liferay.portal.kernel.exception.PortalException,
236             com.liferay.portal.kernel.exception.SystemException {
237         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
238             titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
239             expirationDateYear, expirationDateHour, expirationDateMinute,
240             neverExpire);
241     }
242 
243     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
244         long userId, long questionId,
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.updateQuestion(userId, questionId,
254             titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
255             expirationDateYear, expirationDateHour, expirationDateMinute,
256             neverExpire, choices, serviceContext);
257     }
258 
259     public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
260         return _pollsQuestionLocalService;
261     }
262 
263     private PollsQuestionLocalService _pollsQuestionLocalService;
264 }