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.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
238                    return _mbDiscussionLocalService.getActionableDynamicQuery();
239            }
240    
241            /**
242            * Returns the Spring bean ID for this bean.
243            *
244            * @return the Spring bean ID for this bean
245            */
246            @Override
247            public java.lang.String getBeanIdentifier() {
248                    return _mbDiscussionLocalService.getBeanIdentifier();
249            }
250    
251            @Override
252            public com.liferay.portlet.messageboards.model.MBDiscussion getDiscussion(
253                    java.lang.String className, long classPK)
254                    throws com.liferay.portal.kernel.exception.PortalException {
255                    return _mbDiscussionLocalService.getDiscussion(className, classPK);
256            }
257    
258            @Override
259            public com.liferay.portlet.messageboards.model.MBDiscussion getDiscussion(
260                    long discussionId)
261                    throws com.liferay.portal.kernel.exception.PortalException {
262                    return _mbDiscussionLocalService.getDiscussion(discussionId);
263            }
264    
265            @Override
266            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
267                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
268                    return _mbDiscussionLocalService.getExportActionableDynamicQuery(portletDataContext);
269            }
270    
271            /**
272            * Returns the message boards discussion with the primary key.
273            *
274            * @param discussionId the primary key of the message boards discussion
275            * @return the message boards discussion
276            * @throws PortalException if a message boards discussion with the primary key could not be found
277            */
278            @Override
279            public com.liferay.portlet.messageboards.model.MBDiscussion getMBDiscussion(
280                    long discussionId)
281                    throws com.liferay.portal.kernel.exception.PortalException {
282                    return _mbDiscussionLocalService.getMBDiscussion(discussionId);
283            }
284    
285            /**
286            * Returns the message boards discussion matching the UUID and group.
287            *
288            * @param uuid the message boards discussion's UUID
289            * @param groupId the primary key of the group
290            * @return the matching message boards discussion
291            * @throws PortalException if a matching message boards discussion could not be found
292            */
293            @Override
294            public com.liferay.portlet.messageboards.model.MBDiscussion getMBDiscussionByUuidAndGroupId(
295                    java.lang.String uuid, long groupId)
296                    throws com.liferay.portal.kernel.exception.PortalException {
297                    return _mbDiscussionLocalService.getMBDiscussionByUuidAndGroupId(uuid,
298                            groupId);
299            }
300    
301            /**
302            * Returns a range of all the message boards discussions.
303            *
304            * <p>
305            * 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.
306            * </p>
307            *
308            * @param start the lower bound of the range of message boards discussions
309            * @param end the upper bound of the range of message boards discussions (not inclusive)
310            * @return the range of message boards discussions
311            */
312            @Override
313            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussions(
314                    int start, int end) {
315                    return _mbDiscussionLocalService.getMBDiscussions(start, end);
316            }
317    
318            /**
319            * Returns all the message boards discussions matching the UUID and company.
320            *
321            * @param uuid the UUID of the message boards discussions
322            * @param companyId the primary key of the company
323            * @return the matching message boards discussions, or an empty list if no matches were found
324            */
325            @Override
326            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussionsByUuidAndCompanyId(
327                    java.lang.String uuid, long companyId) {
328                    return _mbDiscussionLocalService.getMBDiscussionsByUuidAndCompanyId(uuid,
329                            companyId);
330            }
331    
332            /**
333            * Returns a range of message boards discussions matching the UUID and company.
334            *
335            * @param uuid the UUID of the message boards discussions
336            * @param companyId the primary key of the company
337            * @param start the lower bound of the range of message boards discussions
338            * @param end the upper bound of the range of message boards discussions (not inclusive)
339            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
340            * @return the range of matching message boards discussions, or an empty list if no matches were found
341            */
342            @Override
343            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussionsByUuidAndCompanyId(
344                    java.lang.String uuid, long companyId, int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBDiscussion> orderByComparator) {
346                    return _mbDiscussionLocalService.getMBDiscussionsByUuidAndCompanyId(uuid,
347                            companyId, start, end, orderByComparator);
348            }
349    
350            /**
351            * Returns the number of message boards discussions.
352            *
353            * @return the number of message boards discussions
354            */
355            @Override
356            public int getMBDiscussionsCount() {
357                    return _mbDiscussionLocalService.getMBDiscussionsCount();
358            }
359    
360            @Override
361            public com.liferay.portal.model.PersistedModel getPersistedModel(
362                    java.io.Serializable primaryKeyObj)
363                    throws com.liferay.portal.kernel.exception.PortalException {
364                    return _mbDiscussionLocalService.getPersistedModel(primaryKeyObj);
365            }
366    
367            @Override
368            public com.liferay.portlet.messageboards.model.MBDiscussion getThreadDiscussion(
369                    long threadId)
370                    throws com.liferay.portal.kernel.exception.PortalException {
371                    return _mbDiscussionLocalService.getThreadDiscussion(threadId);
372            }
373    
374            /**
375            * Sets the Spring bean ID for this bean.
376            *
377            * @param beanIdentifier the Spring bean ID for this bean
378            */
379            @Override
380            public void setBeanIdentifier(java.lang.String beanIdentifier) {
381                    _mbDiscussionLocalService.setBeanIdentifier(beanIdentifier);
382            }
383    
384            @Override
385            public void subscribeDiscussion(long userId, long groupId,
386                    java.lang.String className, long classPK)
387                    throws com.liferay.portal.kernel.exception.PortalException {
388                    _mbDiscussionLocalService.subscribeDiscussion(userId, groupId,
389                            className, classPK);
390            }
391    
392            @Override
393            public void unsubscribeDiscussion(long userId, java.lang.String className,
394                    long classPK)
395                    throws com.liferay.portal.kernel.exception.PortalException {
396                    _mbDiscussionLocalService.unsubscribeDiscussion(userId, className,
397                            classPK);
398            }
399    
400            /**
401            * Updates the message boards discussion in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
402            *
403            * @param mbDiscussion the message boards discussion
404            * @return the message boards discussion that was updated
405            */
406            @Override
407            public com.liferay.portlet.messageboards.model.MBDiscussion updateMBDiscussion(
408                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
409                    return _mbDiscussionLocalService.updateMBDiscussion(mbDiscussion);
410            }
411    
412            /**
413             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
414             */
415            @Deprecated
416            public MBDiscussionLocalService getWrappedMBDiscussionLocalService() {
417                    return _mbDiscussionLocalService;
418            }
419    
420            /**
421             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
422             */
423            @Deprecated
424            public void setWrappedMBDiscussionLocalService(
425                    MBDiscussionLocalService mbDiscussionLocalService) {
426                    _mbDiscussionLocalService = mbDiscussionLocalService;
427            }
428    
429            @Override
430            public MBDiscussionLocalService getWrappedService() {
431                    return _mbDiscussionLocalService;
432            }
433    
434            @Override
435            public void setWrappedService(
436                    MBDiscussionLocalService mbDiscussionLocalService) {
437                    _mbDiscussionLocalService = mbDiscussionLocalService;
438            }
439    
440            private MBDiscussionLocalService _mbDiscussionLocalService;
441    }