001    /**
002     * Copyright (c) 2000-present 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.messageboards.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MBDiscussionLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBDiscussionLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MBDiscussionLocalServiceWrapper implements MBDiscussionLocalService,
030            ServiceWrapper<MBDiscussionLocalService> {
031            public MBDiscussionLocalServiceWrapper(
032                    MBDiscussionLocalService mbDiscussionLocalService) {
033                    _mbDiscussionLocalService = mbDiscussionLocalService;
034            }
035    
036            /**
037            * @deprecated As of 7.0.0, replaced by {@link #addDiscussion(long, long,
038            long, long, long, ServiceContext)}
039            */
040            @Deprecated
041            @Override
042            public com.liferay.portlet.messageboards.model.MBDiscussion addDiscussion(
043                    long userId, long classNameId, long classPK, long threadId,
044                    com.liferay.portal.service.ServiceContext serviceContext)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return _mbDiscussionLocalService.addDiscussion(userId, classNameId,
047                            classPK, threadId, serviceContext);
048            }
049    
050            @Override
051            public com.liferay.portlet.messageboards.model.MBDiscussion addDiscussion(
052                    long userId, long groupId, long classNameId, long classPK,
053                    long threadId, com.liferay.portal.service.ServiceContext serviceContext)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return _mbDiscussionLocalService.addDiscussion(userId, groupId,
056                            classNameId, classPK, threadId, serviceContext);
057            }
058    
059            /**
060            * Adds the message boards discussion to the database. Also notifies the appropriate model listeners.
061            *
062            * @param mbDiscussion the message boards discussion
063            * @return the message boards discussion that was added
064            */
065            @Override
066            public com.liferay.portlet.messageboards.model.MBDiscussion addMBDiscussion(
067                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
068                    return _mbDiscussionLocalService.addMBDiscussion(mbDiscussion);
069            }
070    
071            /**
072            * Creates a new message boards discussion with the primary key. Does not add the message boards discussion to the database.
073            *
074            * @param discussionId the primary key for the new message boards discussion
075            * @return the new message boards discussion
076            */
077            @Override
078            public com.liferay.portlet.messageboards.model.MBDiscussion createMBDiscussion(
079                    long discussionId) {
080                    return _mbDiscussionLocalService.createMBDiscussion(discussionId);
081            }
082    
083            /**
084            * Deletes the message boards discussion with the primary key from the database. Also notifies the appropriate model listeners.
085            *
086            * @param discussionId the primary key of the message boards discussion
087            * @return the message boards discussion that was removed
088            * @throws PortalException if a message boards discussion with the primary key could not be found
089            */
090            @Override
091            public com.liferay.portlet.messageboards.model.MBDiscussion deleteMBDiscussion(
092                    long discussionId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _mbDiscussionLocalService.deleteMBDiscussion(discussionId);
095            }
096    
097            /**
098            * Deletes the message boards discussion from the database. Also notifies the appropriate model listeners.
099            *
100            * @param mbDiscussion the message boards discussion
101            * @return the message boards discussion that was removed
102            */
103            @Override
104            public com.liferay.portlet.messageboards.model.MBDiscussion deleteMBDiscussion(
105                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
106                    return _mbDiscussionLocalService.deleteMBDiscussion(mbDiscussion);
107            }
108    
109            /**
110            * @throws PortalException
111            */
112            @Override
113            public com.liferay.portal.model.PersistedModel deletePersistedModel(
114                    com.liferay.portal.model.PersistedModel persistedModel)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    return _mbDiscussionLocalService.deletePersistedModel(persistedModel);
117            }
118    
119            @Override
120            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
121                    return _mbDiscussionLocalService.dynamicQuery();
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns the matching rows.
126            *
127            * @param dynamicQuery the dynamic query
128            * @return the matching rows
129            */
130            @Override
131            public <T> java.util.List<T> dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
133                    return _mbDiscussionLocalService.dynamicQuery(dynamicQuery);
134            }
135    
136            /**
137            * Performs a dynamic query on the database and returns a range of the matching rows.
138            *
139            * <p>
140            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
141            * </p>
142            *
143            * @param dynamicQuery the dynamic query
144            * @param start the lower bound of the range of model instances
145            * @param end the upper bound of the range of model instances (not inclusive)
146            * @return the range of matching rows
147            */
148            @Override
149            public <T> java.util.List<T> dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end) {
152                    return _mbDiscussionLocalService.dynamicQuery(dynamicQuery, start, end);
153            }
154    
155            /**
156            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
157            *
158            * <p>
159            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
160            * </p>
161            *
162            * @param dynamicQuery the dynamic query
163            * @param start the lower bound of the range of model instances
164            * @param end the upper bound of the range of model instances (not inclusive)
165            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
166            * @return the ordered range of matching rows
167            */
168            @Override
169            public <T> java.util.List<T> dynamicQuery(
170                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
171                    int end,
172                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
173                    return _mbDiscussionLocalService.dynamicQuery(dynamicQuery, start, end,
174                            orderByComparator);
175            }
176    
177            /**
178            * Returns the number of rows matching the dynamic query.
179            *
180            * @param dynamicQuery the dynamic query
181            * @return the number of rows matching the dynamic query
182            */
183            @Override
184            public long dynamicQueryCount(
185                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
186                    return _mbDiscussionLocalService.dynamicQueryCount(dynamicQuery);
187            }
188    
189            /**
190            * Returns the number of rows matching the dynamic query.
191            *
192            * @param dynamicQuery the dynamic query
193            * @param projection the projection to apply to the query
194            * @return the number of rows matching the dynamic query
195            */
196            @Override
197            public long dynamicQueryCount(
198                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
199                    com.liferay.portal.kernel.dao.orm.Projection projection) {
200                    return _mbDiscussionLocalService.dynamicQueryCount(dynamicQuery,
201                            projection);
202            }
203    
204            @Override
205            public com.liferay.portlet.messageboards.model.MBDiscussion fetchDiscussion(
206                    java.lang.String className, long classPK) {
207                    return _mbDiscussionLocalService.fetchDiscussion(className, classPK);
208            }
209    
210            @Override
211            public com.liferay.portlet.messageboards.model.MBDiscussion fetchDiscussion(
212                    long discussionId) {
213                    return _mbDiscussionLocalService.fetchDiscussion(discussionId);
214            }
215    
216            @Override
217            public com.liferay.portlet.messageboards.model.MBDiscussion fetchMBDiscussion(
218                    long discussionId) {
219                    return _mbDiscussionLocalService.fetchMBDiscussion(discussionId);
220            }
221    
222            /**
223            * Returns the message boards discussion matching the UUID and group.
224            *
225            * @param uuid the message boards discussion's UUID
226            * @param groupId the primary key of the group
227            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
228            */
229            @Override
230            public com.liferay.portlet.messageboards.model.MBDiscussion fetchMBDiscussionByUuidAndGroupId(
231                    java.lang.String uuid, long groupId) {
232                    return _mbDiscussionLocalService.fetchMBDiscussionByUuidAndGroupId(uuid,
233                            groupId);
234            }
235    
236            @Override
237            public com.liferay.portlet.messageboards.model.MBDiscussion fetchThreadDiscussion(
238                    long threadId) {
239                    return _mbDiscussionLocalService.fetchThreadDiscussion(threadId);
240            }
241    
242            @Override
243            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
244                    return _mbDiscussionLocalService.getActionableDynamicQuery();
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            @Override
253            public java.lang.String getBeanIdentifier() {
254                    return _mbDiscussionLocalService.getBeanIdentifier();
255            }
256    
257            @Override
258            public com.liferay.portlet.messageboards.model.MBDiscussion getDiscussion(
259                    java.lang.String className, long classPK)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    return _mbDiscussionLocalService.getDiscussion(className, classPK);
262            }
263    
264            @Override
265            public com.liferay.portlet.messageboards.model.MBDiscussion getDiscussion(
266                    long discussionId)
267                    throws com.liferay.portal.kernel.exception.PortalException {
268                    return _mbDiscussionLocalService.getDiscussion(discussionId);
269            }
270    
271            @Override
272            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
273                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
274                    return _mbDiscussionLocalService.getExportActionableDynamicQuery(portletDataContext);
275            }
276    
277            /**
278            * Returns the message boards discussion with the primary key.
279            *
280            * @param discussionId the primary key of the message boards discussion
281            * @return the message boards discussion
282            * @throws PortalException if a message boards discussion with the primary key could not be found
283            */
284            @Override
285            public com.liferay.portlet.messageboards.model.MBDiscussion getMBDiscussion(
286                    long discussionId)
287                    throws com.liferay.portal.kernel.exception.PortalException {
288                    return _mbDiscussionLocalService.getMBDiscussion(discussionId);
289            }
290    
291            /**
292            * Returns the message boards discussion matching the UUID and group.
293            *
294            * @param uuid the message boards discussion's UUID
295            * @param groupId the primary key of the group
296            * @return the matching message boards discussion
297            * @throws PortalException if a matching message boards discussion could not be found
298            */
299            @Override
300            public com.liferay.portlet.messageboards.model.MBDiscussion getMBDiscussionByUuidAndGroupId(
301                    java.lang.String uuid, long groupId)
302                    throws com.liferay.portal.kernel.exception.PortalException {
303                    return _mbDiscussionLocalService.getMBDiscussionByUuidAndGroupId(uuid,
304                            groupId);
305            }
306    
307            /**
308            * Returns a range of all the message boards discussions.
309            *
310            * <p>
311            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
312            * </p>
313            *
314            * @param start the lower bound of the range of message boards discussions
315            * @param end the upper bound of the range of message boards discussions (not inclusive)
316            * @return the range of message boards discussions
317            */
318            @Override
319            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussions(
320                    int start, int end) {
321                    return _mbDiscussionLocalService.getMBDiscussions(start, end);
322            }
323    
324            /**
325            * Returns all the message boards discussions matching the UUID and company.
326            *
327            * @param uuid the UUID of the message boards discussions
328            * @param companyId the primary key of the company
329            * @return the matching message boards discussions, or an empty list if no matches were found
330            */
331            @Override
332            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussionsByUuidAndCompanyId(
333                    java.lang.String uuid, long companyId) {
334                    return _mbDiscussionLocalService.getMBDiscussionsByUuidAndCompanyId(uuid,
335                            companyId);
336            }
337    
338            /**
339            * Returns a range of message boards discussions matching the UUID and company.
340            *
341            * @param uuid the UUID of the message boards discussions
342            * @param companyId the primary key of the company
343            * @param start the lower bound of the range of message boards discussions
344            * @param end the upper bound of the range of message boards discussions (not inclusive)
345            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
346            * @return the range of matching message boards discussions, or an empty list if no matches were found
347            */
348            @Override
349            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussionsByUuidAndCompanyId(
350                    java.lang.String uuid, long companyId, int start, int end,
351                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBDiscussion> orderByComparator) {
352                    return _mbDiscussionLocalService.getMBDiscussionsByUuidAndCompanyId(uuid,
353                            companyId, start, end, orderByComparator);
354            }
355    
356            /**
357            * Returns the number of message boards discussions.
358            *
359            * @return the number of message boards discussions
360            */
361            @Override
362            public int getMBDiscussionsCount() {
363                    return _mbDiscussionLocalService.getMBDiscussionsCount();
364            }
365    
366            @Override
367            public com.liferay.portal.model.PersistedModel getPersistedModel(
368                    java.io.Serializable primaryKeyObj)
369                    throws com.liferay.portal.kernel.exception.PortalException {
370                    return _mbDiscussionLocalService.getPersistedModel(primaryKeyObj);
371            }
372    
373            @Override
374            public com.liferay.portlet.messageboards.model.MBDiscussion getThreadDiscussion(
375                    long threadId)
376                    throws com.liferay.portal.kernel.exception.PortalException {
377                    return _mbDiscussionLocalService.getThreadDiscussion(threadId);
378            }
379    
380            /**
381            * Sets the Spring bean ID for this bean.
382            *
383            * @param beanIdentifier the Spring bean ID for this bean
384            */
385            @Override
386            public void setBeanIdentifier(java.lang.String beanIdentifier) {
387                    _mbDiscussionLocalService.setBeanIdentifier(beanIdentifier);
388            }
389    
390            @Override
391            public void subscribeDiscussion(long userId, long groupId,
392                    java.lang.String className, long classPK)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    _mbDiscussionLocalService.subscribeDiscussion(userId, groupId,
395                            className, classPK);
396            }
397    
398            @Override
399            public void unsubscribeDiscussion(long userId, java.lang.String className,
400                    long classPK)
401                    throws com.liferay.portal.kernel.exception.PortalException {
402                    _mbDiscussionLocalService.unsubscribeDiscussion(userId, className,
403                            classPK);
404            }
405    
406            /**
407            * Updates the message boards discussion in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
408            *
409            * @param mbDiscussion the message boards discussion
410            * @return the message boards discussion that was updated
411            */
412            @Override
413            public com.liferay.portlet.messageboards.model.MBDiscussion updateMBDiscussion(
414                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
415                    return _mbDiscussionLocalService.updateMBDiscussion(mbDiscussion);
416            }
417    
418            /**
419             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
420             */
421            @Deprecated
422            public MBDiscussionLocalService getWrappedMBDiscussionLocalService() {
423                    return _mbDiscussionLocalService;
424            }
425    
426            /**
427             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
428             */
429            @Deprecated
430            public void setWrappedMBDiscussionLocalService(
431                    MBDiscussionLocalService mbDiscussionLocalService) {
432                    _mbDiscussionLocalService = mbDiscussionLocalService;
433            }
434    
435            @Override
436            public MBDiscussionLocalService getWrappedService() {
437                    return _mbDiscussionLocalService;
438            }
439    
440            @Override
441            public void setWrappedService(
442                    MBDiscussionLocalService mbDiscussionLocalService) {
443                    _mbDiscussionLocalService = mbDiscussionLocalService;
444            }
445    
446            private MBDiscussionLocalService _mbDiscussionLocalService;
447    }