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