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    /**
019     * <p>
020     * This class is a wrapper for {@link PollsQuestionLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       PollsQuestionLocalService
025     * @generated
026     */
027    public class PollsQuestionLocalServiceWrapper
028            implements PollsQuestionLocalService {
029            public PollsQuestionLocalServiceWrapper(
030                    PollsQuestionLocalService pollsQuestionLocalService) {
031                    _pollsQuestionLocalService = pollsQuestionLocalService;
032            }
033    
034            public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
035                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return _pollsQuestionLocalService.addPollsQuestion(pollsQuestion);
038            }
039    
040            public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
041                    long questionId) {
042                    return _pollsQuestionLocalService.createPollsQuestion(questionId);
043            }
044    
045            public void deletePollsQuestion(long questionId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _pollsQuestionLocalService.deletePollsQuestion(questionId);
049            }
050    
051            public void deletePollsQuestion(
052                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    _pollsQuestionLocalService.deletePollsQuestion(pollsQuestion);
055            }
056    
057            @SuppressWarnings("unchecked")
058            public java.util.List dynamicQuery(
059                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return _pollsQuestionLocalService.dynamicQuery(dynamicQuery);
062            }
063    
064            @SuppressWarnings("unchecked")
065            public java.util.List dynamicQuery(
066                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
067                    int end) throws com.liferay.portal.kernel.exception.SystemException {
068                    return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start, end);
069            }
070    
071            @SuppressWarnings("unchecked")
072            public java.util.List dynamicQuery(
073                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
074                    int end,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return _pollsQuestionLocalService.dynamicQuery(dynamicQuery, start,
078                            end, orderByComparator);
079            }
080    
081            public long dynamicQueryCount(
082                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _pollsQuestionLocalService.dynamicQueryCount(dynamicQuery);
085            }
086    
087            public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
088                    long questionId)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return _pollsQuestionLocalService.getPollsQuestion(questionId);
092            }
093    
094            public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
095                    java.lang.String uuid, long groupId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return _pollsQuestionLocalService.getPollsQuestionByUuidAndGroupId(uuid,
099                            groupId);
100            }
101    
102            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
103                    int start, int end)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _pollsQuestionLocalService.getPollsQuestions(start, end);
106            }
107    
108            public int getPollsQuestionsCount()
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _pollsQuestionLocalService.getPollsQuestionsCount();
111            }
112    
113            public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
114                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion);
117            }
118    
119            public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
120                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
121                    boolean merge)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return _pollsQuestionLocalService.updatePollsQuestion(pollsQuestion,
124                            merge);
125            }
126    
127            public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
128                    long userId,
129                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
130                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
131                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
132                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
133                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
134                    com.liferay.portal.service.ServiceContext serviceContext)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException {
137                    return _pollsQuestionLocalService.addQuestion(userId, titleMap,
138                            descriptionMap, expirationDateMonth, expirationDateDay,
139                            expirationDateYear, expirationDateHour, expirationDateMinute,
140                            neverExpire, choices, serviceContext);
141            }
142    
143            public void addQuestionResources(long questionId,
144                    boolean addCommunityPermissions, boolean addGuestPermissions)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException {
147                    _pollsQuestionLocalService.addQuestionResources(questionId,
148                            addCommunityPermissions, addGuestPermissions);
149            }
150    
151            public void addQuestionResources(long questionId,
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(questionId,
157                            communityPermissions, guestPermissions);
158            }
159    
160            public void addQuestionResources(
161                    com.liferay.portlet.polls.model.PollsQuestion question,
162                    boolean addCommunityPermissions, boolean addGuestPermissions)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    _pollsQuestionLocalService.addQuestionResources(question,
166                            addCommunityPermissions, addGuestPermissions);
167            }
168    
169            public void addQuestionResources(
170                    com.liferay.portlet.polls.model.PollsQuestion question,
171                    java.lang.String[] communityPermissions,
172                    java.lang.String[] guestPermissions)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    _pollsQuestionLocalService.addQuestionResources(question,
176                            communityPermissions, guestPermissions);
177            }
178    
179            public void deleteQuestion(long questionId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    _pollsQuestionLocalService.deleteQuestion(questionId);
183            }
184    
185            public void deleteQuestion(
186                    com.liferay.portlet.polls.model.PollsQuestion question)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    _pollsQuestionLocalService.deleteQuestion(question);
190            }
191    
192            public void deleteQuestions(long groupId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    _pollsQuestionLocalService.deleteQuestions(groupId);
196            }
197    
198            public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
199                    long questionId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return _pollsQuestionLocalService.getQuestion(questionId);
203            }
204    
205            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
206                    long groupId)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _pollsQuestionLocalService.getQuestions(groupId);
209            }
210    
211            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
212                    long groupId, int start, int end)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _pollsQuestionLocalService.getQuestions(groupId, start, end);
215            }
216    
217            public int getQuestionsCount(long groupId)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _pollsQuestionLocalService.getQuestionsCount(groupId);
220            }
221    
222            public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
223                    long userId, long questionId,
224                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
225                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
226                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
227                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
228                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
229                    com.liferay.portal.service.ServiceContext serviceContext)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    return _pollsQuestionLocalService.updateQuestion(userId, questionId,
233                            titleMap, descriptionMap, expirationDateMonth, expirationDateDay,
234                            expirationDateYear, expirationDateHour, expirationDateMinute,
235                            neverExpire, choices, serviceContext);
236            }
237    
238            public PollsQuestionLocalService getWrappedPollsQuestionLocalService() {
239                    return _pollsQuestionLocalService;
240            }
241    
242            private PollsQuestionLocalService _pollsQuestionLocalService;
243    }