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      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
73          return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
77          long questionId)
78          throws com.liferay.portal.kernel.exception.PortalException,
79              com.liferay.portal.kernel.exception.SystemException {
80          return _pollsQuestionLocalService.getPollsQuestion(questionId);
81      }
82  
83      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
84          int start, int end)
85          throws com.liferay.portal.kernel.exception.SystemException {
86          return _pollsQuestionLocalService.getPollsQuestions(start, end);
87      }
88  
89      public int getPollsQuestionsCount()
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _pollsQuestionLocalService.getPollsQuestionsCount();
92      }
93  
94      public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
95          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
98      }
99  
100     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
101         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
105             merge);
106     }
107 
108     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
109         java.lang.String uuid, long userId,
110         java.util.Map<java.util.Locale, String> titleMap,
111         java.util.Map<java.util.Locale, String> descriptionMap,
112         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
113         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
114         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
115         com.liferay.portal.service.ServiceContext serviceContext)
116         throws com.liferay.portal.kernel.exception.PortalException,
117             com.liferay.portal.kernel.exception.SystemException {
118         return _pollsQuestionLocalService.addQuestion(uuid, userId, titleMap,
119             descriptionMap, expirationDateMonth, expirationDateDay,
120             expirationDateYear, expirationDateHour, expirationDateMinute,
121             neverExpire, choices, serviceContext);
122     }
123 
124     public void addQuestionResources(long questionId,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException {
128         _pollsQuestionLocalService.addQuestionResources(questionId,
129             addCommunityPermissions, addGuestPermissions);
130     }
131 
132     public void addQuestionResources(long questionId,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         _pollsQuestionLocalService.addQuestionResources(questionId,
138             communityPermissions, guestPermissions);
139     }
140 
141     public void addQuestionResources(
142         com.liferay.portlet.polls.model.PollsQuestion question,
143         boolean addCommunityPermissions, boolean addGuestPermissions)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException {
146         _pollsQuestionLocalService.addQuestionResources(question,
147             addCommunityPermissions, addGuestPermissions);
148     }
149 
150     public void addQuestionResources(
151         com.liferay.portlet.polls.model.PollsQuestion question,
152         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         _pollsQuestionLocalService.addQuestionResources(question,
157             communityPermissions, guestPermissions);
158     }
159 
160     public void deleteQuestion(long questionId)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         _pollsQuestionLocalService.deleteQuestion(questionId);
164     }
165 
166     public void deleteQuestion(
167         com.liferay.portlet.polls.model.PollsQuestion question)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException {
170         _pollsQuestionLocalService.deleteQuestion(question);
171     }
172 
173     public void deleteQuestions(long groupId)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException {
176         _pollsQuestionLocalService.deleteQuestions(groupId);
177     }
178 
179     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
180         long questionId)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException {
183         return _pollsQuestionLocalService.getQuestion(questionId);
184     }
185 
186     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
187         long groupId)
188         throws com.liferay.portal.kernel.exception.SystemException {
189         return _pollsQuestionLocalService.getQuestions(groupId);
190     }
191 
192     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
193         long groupId, int start, int end)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return _pollsQuestionLocalService.getQuestions(groupId, start, end);
196     }
197 
198     public int getQuestionsCount(long groupId)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return _pollsQuestionLocalService.getQuestionsCount(groupId);
201     }
202 
203     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
204         long userId, long questionId,
205         java.util.Map<java.util.Locale, String> titleMap,
206         java.util.Map<java.util.Locale, String> descriptionMap,
207         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
208         int expirationDateHour, int expirationDateMinute, boolean neverExpire)
209         throws com.liferay.portal.kernel.exception.PortalException,
210             com.liferay.portal.kernel.exception.SystemException {
211         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
212             titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
213             expirationDateYear, expirationDateHour, expirationDateMinute,
214             neverExpire);
215     }
216 
217     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
218         long userId, long questionId,
219         java.util.Map<java.util.Locale, String> titleMap,
220         java.util.Map<java.util.Locale, String> descriptionMap,
221         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
222         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
223         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
224         com.liferay.portal.service.ServiceContext serviceContext)
225         throws com.liferay.portal.kernel.exception.PortalException,
226             com.liferay.portal.kernel.exception.SystemException {
227         return _pollsQuestionLocalService.updateQuestion(userId, questionId,
228             titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
229             expirationDateYear, expirationDateHour, expirationDateMinute,
230             neverExpire, choices, serviceContext);
231     }
232 
233     public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
234         return _pollsQuestionLocalService;
235     }
236 
237     private PollsQuestionLocalService _pollsQuestionLocalService;
238 }