001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.polls.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PollsQuestionLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PollsQuestionLocalService
024     * @generated
025     */
026    public class PollsQuestionLocalServiceWrapper
027            implements PollsQuestionLocalService {
028            public PollsQuestionLocalServiceWrapper(
029                    PollsQuestionLocalService pollsQuestionLocalService) {
030                    _pollsQuestionLocalService = pollsQuestionLocalService;
031            }
032    
033            public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
034                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _pollsQuestionLocalService.addPollsQuestion(pollsQuestion);
037            }
038    
039            public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
040                    long questionId) {
041                    return _pollsQuestionLocalService.createPollsQuestion(questionId);
042            }
043    
044            public void deletePollsQuestion(long questionId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _pollsQuestionLocalService.deletePollsQuestion(questionId);
048            }
049    
050            public void deletePollsQuestion(
051                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start,
077                            end, orderByComparator);
078            }
079    
080            public long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _pollsQuestionLocalService.dynamicQueryCount(dynamicQuery);
084            }
085    
086            public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
087                    long questionId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _pollsQuestionLocalService.getPollsQuestion(questionId);
091            }
092    
093            public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _pollsQuestionLocalService.getPollsQuestionByUuidAndGroupId(uuid,
098                            groupId);
099            }
100    
101            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
102                    int start, int end)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _pollsQuestionLocalService.getPollsQuestions(start, end);
105            }
106    
107            public int getPollsQuestionsCount()
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _pollsQuestionLocalService.getPollsQuestionsCount();
110            }
111    
112            public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
113                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
116            }
117    
118            public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
119                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
120                    boolean merge)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
123                            merge);
124            }
125    
126            public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
127                    long userId,
128                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
129                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
130                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
131                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
132                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
133                    com.liferay.portal.service.ServiceContext serviceContext)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException {
136                    return _pollsQuestionLocalService.addQuestion(userId, titleMap,
137                            descriptionMap, expirationDateMonth, expirationDateDay,
138                            expirationDateYear, expirationDateHour, expirationDateMinute,
139                            neverExpire, choices, serviceContext);
140            }
141    
142            public void addQuestionResources(long questionId,
143                    boolean addCommunityPermissions, boolean addGuestPermissions)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException {
146                    _pollsQuestionLocalService.addQuestionResources(questionId,
147                            addCommunityPermissions, addGuestPermissions);
148            }
149    
150            public void addQuestionResources(long questionId,
151                    java.lang.String[] communityPermissions,
152                    java.lang.String[] guestPermissions)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    _pollsQuestionLocalService.addQuestionResources(questionId,
156                            communityPermissions, guestPermissions);
157            }
158    
159            public void addQuestionResources(
160                    com.liferay.portlet.polls.model.PollsQuestion question,
161                    boolean addCommunityPermissions, boolean addGuestPermissions)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    _pollsQuestionLocalService.addQuestionResources(question,
165                            addCommunityPermissions, addGuestPermissions);
166            }
167    
168            public void addQuestionResources(
169                    com.liferay.portlet.polls.model.PollsQuestion question,
170                    java.lang.String[] communityPermissions,
171                    java.lang.String[] guestPermissions)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    _pollsQuestionLocalService.addQuestionResources(question,
175                            communityPermissions, guestPermissions);
176            }
177    
178            public void deleteQuestion(long questionId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    _pollsQuestionLocalService.deleteQuestion(questionId);
182            }
183    
184            public void deleteQuestion(
185                    com.liferay.portlet.polls.model.PollsQuestion question)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    _pollsQuestionLocalService.deleteQuestion(question);
189            }
190    
191            public void deleteQuestions(long groupId)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException {
194                    _pollsQuestionLocalService.deleteQuestions(groupId);
195            }
196    
197            public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
198                    long questionId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return _pollsQuestionLocalService.getQuestion(questionId);
202            }
203    
204            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
205                    long groupId)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _pollsQuestionLocalService.getQuestions(groupId);
208            }
209    
210            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
211                    long groupId, int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _pollsQuestionLocalService.getQuestions(groupId, start, end);
214            }
215    
216            public int getQuestionsCount(long groupId)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _pollsQuestionLocalService.getQuestionsCount(groupId);
219            }
220    
221            public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
222                    long userId, long questionId,
223                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
224                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
225                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
226                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
227                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
228                    com.liferay.portal.service.ServiceContext serviceContext)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException {
231                    return _pollsQuestionLocalService.updateQuestion(userId, questionId,
232                            titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
233                            expirationDateYear, expirationDateHour, expirationDateMinute,
234                            neverExpire, choices, serviceContext);
235            }
236    
237            public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
238                    return _pollsQuestionLocalService;
239            }
240    
241            private PollsQuestionLocalService _pollsQuestionLocalService;
242    }