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