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 MBThreadLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBThreadLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MBThreadLocalServiceWrapper implements MBThreadLocalService,
030            ServiceWrapper<MBThreadLocalService> {
031            public MBThreadLocalServiceWrapper(
032                    MBThreadLocalService mbThreadLocalService) {
033                    _mbThreadLocalService = mbThreadLocalService;
034            }
035    
036            /**
037            * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
038            *
039            * @param mbThread the message boards thread
040            * @return the message boards thread that was added
041            */
042            @Override
043            public com.liferay.portlet.messageboards.model.MBThread addMBThread(
044                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
045                    return _mbThreadLocalService.addMBThread(mbThread);
046            }
047    
048            @Override
049            public com.liferay.portlet.messageboards.model.MBThread addThread(
050                    long categoryId,
051                    com.liferay.portlet.messageboards.model.MBMessage message,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _mbThreadLocalService.addThread(categoryId, message,
055                            serviceContext);
056            }
057    
058            /**
059            * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
060            *
061            * @param threadId the primary key for the new message boards thread
062            * @return the new message boards thread
063            */
064            @Override
065            public com.liferay.portlet.messageboards.model.MBThread createMBThread(
066                    long threadId) {
067                    return _mbThreadLocalService.createMBThread(threadId);
068            }
069    
070            /**
071            * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
072            *
073            * @param mbThread the message boards thread
074            * @return the message boards thread that was removed
075            */
076            @Override
077            public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
078                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
079                    return _mbThreadLocalService.deleteMBThread(mbThread);
080            }
081    
082            /**
083            * Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
084            *
085            * @param threadId the primary key of the message boards thread
086            * @return the message boards thread that was removed
087            * @throws PortalException if a message boards thread with the primary key could not be found
088            */
089            @Override
090            public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
091                    long threadId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return _mbThreadLocalService.deleteMBThread(threadId);
094            }
095    
096            /**
097            * @throws PortalException
098            */
099            @Override
100            public com.liferay.portal.model.PersistedModel deletePersistedModel(
101                    com.liferay.portal.model.PersistedModel persistedModel)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return _mbThreadLocalService.deletePersistedModel(persistedModel);
104            }
105    
106            @Override
107            public void deleteThread(
108                    com.liferay.portlet.messageboards.model.MBThread thread)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    _mbThreadLocalService.deleteThread(thread);
111            }
112    
113            @Override
114            public void deleteThread(long threadId)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    _mbThreadLocalService.deleteThread(threadId);
117            }
118    
119            @Override
120            public void deleteThreads(long groupId, long categoryId)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    _mbThreadLocalService.deleteThreads(groupId, categoryId);
123            }
124    
125            @Override
126            public void deleteThreads(long groupId, long categoryId,
127                    boolean includeTrashedEntries)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    _mbThreadLocalService.deleteThreads(groupId, categoryId,
130                            includeTrashedEntries);
131            }
132    
133            @Override
134            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
135                    return _mbThreadLocalService.dynamicQuery();
136            }
137    
138            /**
139            * Performs a dynamic query on the database and returns the matching rows.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the matching rows
143            */
144            @Override
145            public <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
147                    return _mbThreadLocalService.dynamicQuery(dynamicQuery);
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns a range of the matching rows.
152            *
153            * <p>
154            * 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.MBThreadModelImpl}. 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.
155            * </p>
156            *
157            * @param dynamicQuery the dynamic query
158            * @param start the lower bound of the range of model instances
159            * @param end the upper bound of the range of model instances (not inclusive)
160            * @return the range of matching rows
161            */
162            @Override
163            public <T> java.util.List<T> dynamicQuery(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return _mbThreadLocalService.dynamicQuery(dynamicQuery, start, end);
167            }
168    
169            /**
170            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171            *
172            * <p>
173            * 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.MBThreadModelImpl}. 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.
174            * </p>
175            *
176            * @param dynamicQuery the dynamic query
177            * @param start the lower bound of the range of model instances
178            * @param end the upper bound of the range of model instances (not inclusive)
179            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180            * @return the ordered range of matching rows
181            */
182            @Override
183            public <T> java.util.List<T> dynamicQuery(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185                    int end,
186                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
187                    return _mbThreadLocalService.dynamicQuery(dynamicQuery, start, end,
188                            orderByComparator);
189            }
190    
191            /**
192            * Returns the number of rows matching the dynamic query.
193            *
194            * @param dynamicQuery the dynamic 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                    return _mbThreadLocalService.dynamicQueryCount(dynamicQuery);
201            }
202    
203            /**
204            * Returns the number of rows matching the dynamic query.
205            *
206            * @param dynamicQuery the dynamic query
207            * @param projection the projection to apply to the query
208            * @return the number of rows matching the dynamic query
209            */
210            @Override
211            public long dynamicQueryCount(
212                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
213                    com.liferay.portal.kernel.dao.orm.Projection projection) {
214                    return _mbThreadLocalService.dynamicQueryCount(dynamicQuery, projection);
215            }
216    
217            @Override
218            public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
219                    long threadId) {
220                    return _mbThreadLocalService.fetchMBThread(threadId);
221            }
222    
223            /**
224            * Returns the message boards thread matching the UUID and group.
225            *
226            * @param uuid the message boards thread's UUID
227            * @param groupId the primary key of the group
228            * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
229            */
230            @Override
231            public com.liferay.portlet.messageboards.model.MBThread fetchMBThreadByUuidAndGroupId(
232                    java.lang.String uuid, long groupId) {
233                    return _mbThreadLocalService.fetchMBThreadByUuidAndGroupId(uuid, groupId);
234            }
235    
236            @Override
237            public com.liferay.portlet.messageboards.model.MBThread fetchThread(
238                    long threadId) {
239                    return _mbThreadLocalService.fetchThread(threadId);
240            }
241    
242            @Override
243            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
244                    return _mbThreadLocalService.getActionableDynamicQuery();
245            }
246    
247            @Override
248            public int getCategoryThreadsCount(long groupId, long categoryId, int status) {
249                    return _mbThreadLocalService.getCategoryThreadsCount(groupId,
250                            categoryId, status);
251            }
252    
253            @Override
254            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
255                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
256                    return _mbThreadLocalService.getExportActionableDynamicQuery(portletDataContext);
257            }
258    
259            @Override
260            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
261                    long groupId,
262                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
263                    return _mbThreadLocalService.getGroupThreads(groupId, queryDefinition);
264            }
265    
266            /**
267            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long,
268            QueryDefinition)}
269            */
270            @Deprecated
271            @Override
272            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
273                    long groupId, int status, int start, int end) {
274                    return _mbThreadLocalService.getGroupThreads(groupId, status, start, end);
275            }
276    
277            @Override
278            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
279                    long groupId, long userId,
280                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
281                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
282                            queryDefinition);
283            }
284    
285            /**
286            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
287            QueryDefinition)}
288            */
289            @Deprecated
290            @Override
291            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
292                    long groupId, long userId, int status, int start, int end) {
293                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
294                            start, end);
295            }
296    
297            /**
298            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
299            boolean, boolean, QueryDefinition)}
300            */
301            @Deprecated
302            @Override
303            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
304                    long groupId, long userId, int status, boolean subscribed,
305                    boolean includeAnonymous, int start, int end) {
306                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
307                            subscribed, includeAnonymous, start, end);
308            }
309    
310            /**
311            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
312            boolean, QueryDefinition)}
313            */
314            @Deprecated
315            @Override
316            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
317                    long groupId, long userId, int status, boolean subscribed, int start,
318                    int end) {
319                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
320                            subscribed, start, end);
321            }
322    
323            @Override
324            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
325                    long groupId, long userId, boolean subscribed,
326                    boolean includeAnonymous,
327                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
328                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
329                            subscribed, includeAnonymous, queryDefinition);
330            }
331    
332            @Override
333            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
334                    long groupId, long userId, boolean subscribed,
335                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
336                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
337                            subscribed, queryDefinition);
338            }
339    
340            @Override
341            public int getGroupThreadsCount(long groupId,
342                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
343                    return _mbThreadLocalService.getGroupThreadsCount(groupId,
344                            queryDefinition);
345            }
346    
347            /**
348            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
349            QueryDefinition)}
350            */
351            @Deprecated
352            @Override
353            public int getGroupThreadsCount(long groupId, int status) {
354                    return _mbThreadLocalService.getGroupThreadsCount(groupId, status);
355            }
356    
357            @Override
358            public int getGroupThreadsCount(long groupId, long userId,
359                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
360                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
361                            queryDefinition);
362            }
363    
364            /**
365            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
366            long, QueryDefinition)}
367            */
368            @Deprecated
369            @Override
370            public int getGroupThreadsCount(long groupId, long userId, int status) {
371                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
372                            status);
373            }
374    
375            /**
376            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
377            long, boolean, QueryDefinition)}
378            */
379            @Deprecated
380            @Override
381            public int getGroupThreadsCount(long groupId, long userId, int status,
382                    boolean subscribed) {
383                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
384                            status, subscribed);
385            }
386    
387            /**
388            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
389            long, boolean, boolean, QueryDefinition)}
390            */
391            @Deprecated
392            @Override
393            public int getGroupThreadsCount(long groupId, long userId, int status,
394                    boolean subscribed, boolean includeAnonymous) {
395                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
396                            status, subscribed, includeAnonymous);
397            }
398    
399            @Override
400            public int getGroupThreadsCount(long groupId, long userId,
401                    boolean subscribed, boolean includeAnonymous,
402                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
403                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
404                            subscribed, includeAnonymous, queryDefinition);
405            }
406    
407            @Override
408            public int getGroupThreadsCount(long groupId, long userId,
409                    boolean subscribed,
410                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
411                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
412                            subscribed, queryDefinition);
413            }
414    
415            @Override
416            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
417                    return _mbThreadLocalService.getIndexableActionableDynamicQuery();
418            }
419    
420            /**
421            * Returns the message boards thread with the primary key.
422            *
423            * @param threadId the primary key of the message boards thread
424            * @return the message boards thread
425            * @throws PortalException if a message boards thread with the primary key could not be found
426            */
427            @Override
428            public com.liferay.portlet.messageboards.model.MBThread getMBThread(
429                    long threadId)
430                    throws com.liferay.portal.kernel.exception.PortalException {
431                    return _mbThreadLocalService.getMBThread(threadId);
432            }
433    
434            /**
435            * Returns the message boards thread matching the UUID and group.
436            *
437            * @param uuid the message boards thread's UUID
438            * @param groupId the primary key of the group
439            * @return the matching message boards thread
440            * @throws PortalException if a matching message boards thread could not be found
441            */
442            @Override
443            public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
444                    java.lang.String uuid, long groupId)
445                    throws com.liferay.portal.kernel.exception.PortalException {
446                    return _mbThreadLocalService.getMBThreadByUuidAndGroupId(uuid, groupId);
447            }
448    
449            /**
450            * Returns a range of all the message boards threads.
451            *
452            * <p>
453            * 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.MBThreadModelImpl}. 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.
454            * </p>
455            *
456            * @param start the lower bound of the range of message boards threads
457            * @param end the upper bound of the range of message boards threads (not inclusive)
458            * @return the range of message boards threads
459            */
460            @Override
461            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
462                    int start, int end) {
463                    return _mbThreadLocalService.getMBThreads(start, end);
464            }
465    
466            /**
467            * Returns all the message boards threads matching the UUID and company.
468            *
469            * @param uuid the UUID of the message boards threads
470            * @param companyId the primary key of the company
471            * @return the matching message boards threads, or an empty list if no matches were found
472            */
473            @Override
474            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
475                    java.lang.String uuid, long companyId) {
476                    return _mbThreadLocalService.getMBThreadsByUuidAndCompanyId(uuid,
477                            companyId);
478            }
479    
480            /**
481            * Returns a range of message boards threads matching the UUID and company.
482            *
483            * @param uuid the UUID of the message boards threads
484            * @param companyId the primary key of the company
485            * @param start the lower bound of the range of message boards threads
486            * @param end the upper bound of the range of message boards threads (not inclusive)
487            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
488            * @return the range of matching message boards threads, or an empty list if no matches were found
489            */
490            @Override
491            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
492                    java.lang.String uuid, long companyId, int start, int end,
493                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBThread> orderByComparator) {
494                    return _mbThreadLocalService.getMBThreadsByUuidAndCompanyId(uuid,
495                            companyId, start, end, orderByComparator);
496            }
497    
498            /**
499            * Returns the number of message boards threads.
500            *
501            * @return the number of message boards threads
502            */
503            @Override
504            public int getMBThreadsCount() {
505                    return _mbThreadLocalService.getMBThreadsCount();
506            }
507    
508            @Override
509            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads() {
510                    return _mbThreadLocalService.getNoAssetThreads();
511            }
512    
513            /**
514            * Returns the OSGi service identifier.
515            *
516            * @return the OSGi service identifier
517            */
518            @Override
519            public java.lang.String getOSGiServiceIdentifier() {
520                    return _mbThreadLocalService.getOSGiServiceIdentifier();
521            }
522    
523            @Override
524            public com.liferay.portal.model.PersistedModel getPersistedModel(
525                    java.io.Serializable primaryKeyObj)
526                    throws com.liferay.portal.kernel.exception.PortalException {
527                    return _mbThreadLocalService.getPersistedModel(primaryKeyObj);
528            }
529    
530            @Override
531            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
532                    long categoryId, double priority)
533                    throws com.liferay.portal.kernel.exception.PortalException {
534                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority);
535            }
536    
537            @Override
538            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
539                    long categoryId, double priority, boolean inherit)
540                    throws com.liferay.portal.kernel.exception.PortalException {
541                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority,
542                            inherit);
543            }
544    
545            @Override
546            public com.liferay.portlet.messageboards.model.MBThread getThread(
547                    long threadId)
548                    throws com.liferay.portal.kernel.exception.PortalException {
549                    return _mbThreadLocalService.getThread(threadId);
550            }
551    
552            @Override
553            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
554                    long groupId, long categoryId, int status, int start, int end) {
555                    return _mbThreadLocalService.getThreads(groupId, categoryId, status,
556                            start, end);
557            }
558    
559            @Override
560            public int getThreadsCount(long groupId, long categoryId, int status) {
561                    return _mbThreadLocalService.getThreadsCount(groupId, categoryId, status);
562            }
563    
564            @Override
565            public boolean hasAnswerMessage(long threadId) {
566                    return _mbThreadLocalService.hasAnswerMessage(threadId);
567            }
568    
569            @Override
570            public void incrementViewCounter(long threadId, int increment)
571                    throws com.liferay.portal.kernel.exception.PortalException {
572                    _mbThreadLocalService.incrementViewCounter(threadId, increment);
573            }
574    
575            @Override
576            public void moveDependentsToTrash(long groupId, long threadId,
577                    long trashEntryId)
578                    throws com.liferay.portal.kernel.exception.PortalException {
579                    _mbThreadLocalService.moveDependentsToTrash(groupId, threadId,
580                            trashEntryId);
581            }
582    
583            @Override
584            public com.liferay.portlet.messageboards.model.MBThread moveThread(
585                    long groupId, long categoryId, long threadId)
586                    throws com.liferay.portal.kernel.exception.PortalException {
587                    return _mbThreadLocalService.moveThread(groupId, categoryId, threadId);
588            }
589    
590            @Override
591            public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
592                    long userId, long categoryId, long threadId)
593                    throws com.liferay.portal.kernel.exception.PortalException {
594                    return _mbThreadLocalService.moveThreadFromTrash(userId, categoryId,
595                            threadId);
596            }
597    
598            @Override
599            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
600                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
601                    throws com.liferay.portal.kernel.exception.PortalException {
602                    return _mbThreadLocalService.moveThreadToTrash(userId, thread);
603            }
604    
605            @Override
606            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
607                    long userId, long threadId)
608                    throws com.liferay.portal.kernel.exception.PortalException {
609                    return _mbThreadLocalService.moveThreadToTrash(userId, threadId);
610            }
611    
612            @Override
613            public void moveThreadsToTrash(long groupId, long userId)
614                    throws com.liferay.portal.kernel.exception.PortalException {
615                    _mbThreadLocalService.moveThreadsToTrash(groupId, userId);
616            }
617    
618            @Override
619            public void restoreDependentsFromTrash(long groupId, long threadId)
620                    throws com.liferay.portal.kernel.exception.PortalException {
621                    _mbThreadLocalService.restoreDependentsFromTrash(groupId, threadId);
622            }
623    
624            /**
625            * @deprecated As of 7.0.0, replaced by {@link
626            #restoreDependentsFromTrash(long, long)}
627            */
628            @Deprecated
629            @Override
630            public void restoreDependentsFromTrash(long groupId, long threadId,
631                    long trashEntryId)
632                    throws com.liferay.portal.kernel.exception.PortalException {
633                    _mbThreadLocalService.restoreDependentsFromTrash(groupId, threadId,
634                            trashEntryId);
635            }
636    
637            @Override
638            public void restoreThreadFromTrash(long userId, long threadId)
639                    throws com.liferay.portal.kernel.exception.PortalException {
640                    _mbThreadLocalService.restoreThreadFromTrash(userId, threadId);
641            }
642    
643            @Override
644            public com.liferay.portal.kernel.search.Hits search(long groupId,
645                    long userId, long creatorUserId, long startDate, long endDate,
646                    int status, int start, int end)
647                    throws com.liferay.portal.kernel.exception.PortalException {
648                    return _mbThreadLocalService.search(groupId, userId, creatorUserId,
649                            startDate, endDate, status, start, end);
650            }
651    
652            @Override
653            public com.liferay.portal.kernel.search.Hits search(long groupId,
654                    long userId, long creatorUserId, int status, int start, int end)
655                    throws com.liferay.portal.kernel.exception.PortalException {
656                    return _mbThreadLocalService.search(groupId, userId, creatorUserId,
657                            status, start, end);
658            }
659    
660            @Override
661            public com.liferay.portlet.messageboards.model.MBThread splitThread(
662                    long userId, long messageId, java.lang.String subject,
663                    com.liferay.portal.service.ServiceContext serviceContext)
664                    throws com.liferay.portal.kernel.exception.PortalException {
665                    return _mbThreadLocalService.splitThread(userId, messageId, subject,
666                            serviceContext);
667            }
668    
669            /**
670            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
671            *
672            * @param mbThread the message boards thread
673            * @return the message boards thread that was updated
674            */
675            @Override
676            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
677                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
678                    return _mbThreadLocalService.updateMBThread(mbThread);
679            }
680    
681            @Override
682            public com.liferay.portlet.messageboards.model.MBThread updateMessageCount(
683                    long threadId) {
684                    return _mbThreadLocalService.updateMessageCount(threadId);
685            }
686    
687            @Override
688            public void updateQuestion(long threadId, boolean question)
689                    throws com.liferay.portal.kernel.exception.PortalException {
690                    _mbThreadLocalService.updateQuestion(threadId, question);
691            }
692    
693            @Override
694            public com.liferay.portlet.messageboards.model.MBThread updateStatus(
695                    long userId, long threadId, int status)
696                    throws com.liferay.portal.kernel.exception.PortalException {
697                    return _mbThreadLocalService.updateStatus(userId, threadId, status);
698            }
699    
700            /**
701            * @deprecated As of 6.2.0, replaced by {@link #incrementViewCounter(long,
702            int)}
703            */
704            @Deprecated
705            @Override
706            public com.liferay.portlet.messageboards.model.MBThread updateThread(
707                    long threadId, int viewCount)
708                    throws com.liferay.portal.kernel.exception.PortalException {
709                    return _mbThreadLocalService.updateThread(threadId, viewCount);
710            }
711    
712            @Override
713            public MBThreadLocalService getWrappedService() {
714                    return _mbThreadLocalService;
715            }
716    
717            @Override
718            public void setWrappedService(MBThreadLocalService mbThreadLocalService) {
719                    _mbThreadLocalService = mbThreadLocalService;
720            }
721    
722            private MBThreadLocalService _mbThreadLocalService;
723    }