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