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 that match the dynamic query.
179            *
180            * @param dynamicQuery the dynamic query
181            * @return the number of rows that match 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 that match 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 that match 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            @Override
319            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussionsByUuidAndCompanyId(
320                    java.lang.String uuid, long companyId) {
321                    return _mbDiscussionLocalService.getMBDiscussionsByUuidAndCompanyId(uuid,
322                            companyId);
323            }
324    
325            @Override
326            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getMBDiscussionsByUuidAndCompanyId(
327                    java.lang.String uuid, long companyId, int start, int end,
328                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBDiscussion> orderByComparator) {
329                    return _mbDiscussionLocalService.getMBDiscussionsByUuidAndCompanyId(uuid,
330                            companyId, start, end, orderByComparator);
331            }
332    
333            /**
334            * Returns the number of message boards discussions.
335            *
336            * @return the number of message boards discussions
337            */
338            @Override
339            public int getMBDiscussionsCount() {
340                    return _mbDiscussionLocalService.getMBDiscussionsCount();
341            }
342    
343            @Override
344            public com.liferay.portal.model.PersistedModel getPersistedModel(
345                    java.io.Serializable primaryKeyObj)
346                    throws com.liferay.portal.kernel.exception.PortalException {
347                    return _mbDiscussionLocalService.getPersistedModel(primaryKeyObj);
348            }
349    
350            @Override
351            public com.liferay.portlet.messageboards.model.MBDiscussion getThreadDiscussion(
352                    long threadId)
353                    throws com.liferay.portal.kernel.exception.PortalException {
354                    return _mbDiscussionLocalService.getThreadDiscussion(threadId);
355            }
356    
357            /**
358            * Sets the Spring bean ID for this bean.
359            *
360            * @param beanIdentifier the Spring bean ID for this bean
361            */
362            @Override
363            public void setBeanIdentifier(java.lang.String beanIdentifier) {
364                    _mbDiscussionLocalService.setBeanIdentifier(beanIdentifier);
365            }
366    
367            @Override
368            public void subscribeDiscussion(long userId, long groupId,
369                    java.lang.String className, long classPK)
370                    throws com.liferay.portal.kernel.exception.PortalException {
371                    _mbDiscussionLocalService.subscribeDiscussion(userId, groupId,
372                            className, classPK);
373            }
374    
375            @Override
376            public void unsubscribeDiscussion(long userId, java.lang.String className,
377                    long classPK)
378                    throws com.liferay.portal.kernel.exception.PortalException {
379                    _mbDiscussionLocalService.unsubscribeDiscussion(userId, className,
380                            classPK);
381            }
382    
383            /**
384            * Updates the message boards discussion in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
385            *
386            * @param mbDiscussion the message boards discussion
387            * @return the message boards discussion that was updated
388            */
389            @Override
390            public com.liferay.portlet.messageboards.model.MBDiscussion updateMBDiscussion(
391                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
392                    return _mbDiscussionLocalService.updateMBDiscussion(mbDiscussion);
393            }
394    
395            /**
396             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
397             */
398            @Deprecated
399            public MBDiscussionLocalService getWrappedMBDiscussionLocalService() {
400                    return _mbDiscussionLocalService;
401            }
402    
403            /**
404             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
405             */
406            @Deprecated
407            public void setWrappedMBDiscussionLocalService(
408                    MBDiscussionLocalService mbDiscussionLocalService) {
409                    _mbDiscussionLocalService = mbDiscussionLocalService;
410            }
411    
412            @Override
413            public MBDiscussionLocalService getWrappedService() {
414                    return _mbDiscussionLocalService;
415            }
416    
417            @Override
418            public void setWrappedService(
419                    MBDiscussionLocalService mbDiscussionLocalService) {
420                    _mbDiscussionLocalService = mbDiscussionLocalService;
421            }
422    
423            private MBDiscussionLocalService _mbDiscussionLocalService;
424    }