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 that match the dynamic query.
193            *
194            * @param dynamicQuery the dynamic query
195            * @return the number of rows that match 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 that match 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 that match 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            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            @Override
253            public java.lang.String getBeanIdentifier() {
254                    return _mbThreadLocalService.getBeanIdentifier();
255            }
256    
257            @Override
258            public int getCategoryThreadsCount(long groupId, long categoryId, int status) {
259                    return _mbThreadLocalService.getCategoryThreadsCount(groupId,
260                            categoryId, status);
261            }
262    
263            @Override
264            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
265                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
266                    return _mbThreadLocalService.getExportActionableDynamicQuery(portletDataContext);
267            }
268    
269            @Override
270            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
271                    long groupId,
272                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
273                    return _mbThreadLocalService.getGroupThreads(groupId, queryDefinition);
274            }
275    
276            /**
277            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long,
278            QueryDefinition)}
279            */
280            @Deprecated
281            @Override
282            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
283                    long groupId, int status, int start, int end) {
284                    return _mbThreadLocalService.getGroupThreads(groupId, status, start, end);
285            }
286    
287            @Override
288            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
289                    long groupId, long userId,
290                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
291                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
292                            queryDefinition);
293            }
294    
295            /**
296            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
297            QueryDefinition)}
298            */
299            @Deprecated
300            @Override
301            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
302                    long groupId, long userId, int status, int start, int end) {
303                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
304                            start, end);
305            }
306    
307            /**
308            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
309            boolean, boolean, QueryDefinition)}
310            */
311            @Deprecated
312            @Override
313            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
314                    long groupId, long userId, int status, boolean subscribed,
315                    boolean includeAnonymous, int start, int end) {
316                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
317                            subscribed, includeAnonymous, start, end);
318            }
319    
320            /**
321            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
322            boolean, QueryDefinition)}
323            */
324            @Deprecated
325            @Override
326            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
327                    long groupId, long userId, int status, boolean subscribed, int start,
328                    int end) {
329                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
330                            subscribed, start, end);
331            }
332    
333            @Override
334            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
335                    long groupId, long userId, boolean subscribed,
336                    boolean includeAnonymous,
337                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
338                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
339                            subscribed, includeAnonymous, queryDefinition);
340            }
341    
342            @Override
343            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
344                    long groupId, long userId, boolean subscribed,
345                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
346                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
347                            subscribed, queryDefinition);
348            }
349    
350            @Override
351            public int getGroupThreadsCount(long groupId,
352                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
353                    return _mbThreadLocalService.getGroupThreadsCount(groupId,
354                            queryDefinition);
355            }
356    
357            /**
358            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
359            QueryDefinition)}
360            */
361            @Deprecated
362            @Override
363            public int getGroupThreadsCount(long groupId, int status) {
364                    return _mbThreadLocalService.getGroupThreadsCount(groupId, status);
365            }
366    
367            @Override
368            public int getGroupThreadsCount(long groupId, long userId,
369                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
370                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
371                            queryDefinition);
372            }
373    
374            /**
375            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
376            long, QueryDefinition)}
377            */
378            @Deprecated
379            @Override
380            public int getGroupThreadsCount(long groupId, long userId, int status) {
381                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
382                            status);
383            }
384    
385            /**
386            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
387            long, boolean, QueryDefinition)}
388            */
389            @Deprecated
390            @Override
391            public int getGroupThreadsCount(long groupId, long userId, int status,
392                    boolean subscribed) {
393                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
394                            status, subscribed);
395            }
396    
397            /**
398            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
399            long, boolean, boolean, QueryDefinition)}
400            */
401            @Deprecated
402            @Override
403            public int getGroupThreadsCount(long groupId, long userId, int status,
404                    boolean subscribed, boolean includeAnonymous) {
405                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
406                            status, subscribed, includeAnonymous);
407            }
408    
409            @Override
410            public int getGroupThreadsCount(long groupId, long userId,
411                    boolean subscribed, boolean includeAnonymous,
412                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
413                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
414                            subscribed, includeAnonymous, queryDefinition);
415            }
416    
417            @Override
418            public int getGroupThreadsCount(long groupId, long userId,
419                    boolean subscribed,
420                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
421                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
422                            subscribed, queryDefinition);
423            }
424    
425            /**
426            * Returns the message boards thread with the primary key.
427            *
428            * @param threadId the primary key of the message boards thread
429            * @return the message boards thread
430            * @throws PortalException if a message boards thread with the primary key could not be found
431            */
432            @Override
433            public com.liferay.portlet.messageboards.model.MBThread getMBThread(
434                    long threadId)
435                    throws com.liferay.portal.kernel.exception.PortalException {
436                    return _mbThreadLocalService.getMBThread(threadId);
437            }
438    
439            /**
440            * Returns the message boards thread matching the UUID and group.
441            *
442            * @param uuid the message boards thread's UUID
443            * @param groupId the primary key of the group
444            * @return the matching message boards thread
445            * @throws PortalException if a matching message boards thread could not be found
446            */
447            @Override
448            public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
449                    java.lang.String uuid, long groupId)
450                    throws com.liferay.portal.kernel.exception.PortalException {
451                    return _mbThreadLocalService.getMBThreadByUuidAndGroupId(uuid, groupId);
452            }
453    
454            /**
455            * Returns a range of all the message boards threads.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param start the lower bound of the range of message boards threads
462            * @param end the upper bound of the range of message boards threads (not inclusive)
463            * @return the range of message boards threads
464            */
465            @Override
466            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
467                    int start, int end) {
468                    return _mbThreadLocalService.getMBThreads(start, end);
469            }
470    
471            @Override
472            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
473                    java.lang.String uuid, long companyId) {
474                    return _mbThreadLocalService.getMBThreadsByUuidAndCompanyId(uuid,
475                            companyId);
476            }
477    
478            @Override
479            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
480                    java.lang.String uuid, long companyId, int start, int end,
481                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBThread> orderByComparator) {
482                    return _mbThreadLocalService.getMBThreadsByUuidAndCompanyId(uuid,
483                            companyId, start, end, orderByComparator);
484            }
485    
486            /**
487            * Returns the number of message boards threads.
488            *
489            * @return the number of message boards threads
490            */
491            @Override
492            public int getMBThreadsCount() {
493                    return _mbThreadLocalService.getMBThreadsCount();
494            }
495    
496            @Override
497            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads() {
498                    return _mbThreadLocalService.getNoAssetThreads();
499            }
500    
501            @Override
502            public com.liferay.portal.model.PersistedModel getPersistedModel(
503                    java.io.Serializable primaryKeyObj)
504                    throws com.liferay.portal.kernel.exception.PortalException {
505                    return _mbThreadLocalService.getPersistedModel(primaryKeyObj);
506            }
507    
508            @Override
509            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
510                    long categoryId, double priority)
511                    throws com.liferay.portal.kernel.exception.PortalException {
512                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority);
513            }
514    
515            @Override
516            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
517                    long categoryId, double priority, boolean inherit)
518                    throws com.liferay.portal.kernel.exception.PortalException {
519                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority,
520                            inherit);
521            }
522    
523            @Override
524            public com.liferay.portlet.messageboards.model.MBThread getThread(
525                    long threadId)
526                    throws com.liferay.portal.kernel.exception.PortalException {
527                    return _mbThreadLocalService.getThread(threadId);
528            }
529    
530            @Override
531            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
532                    long groupId, long categoryId, int status, int start, int end) {
533                    return _mbThreadLocalService.getThreads(groupId, categoryId, status,
534                            start, end);
535            }
536    
537            @Override
538            public int getThreadsCount(long groupId, long categoryId, int status) {
539                    return _mbThreadLocalService.getThreadsCount(groupId, categoryId, status);
540            }
541    
542            @Override
543            public boolean hasAnswerMessage(long threadId) {
544                    return _mbThreadLocalService.hasAnswerMessage(threadId);
545            }
546    
547            @Override
548            public void incrementViewCounter(long threadId, int increment)
549                    throws com.liferay.portal.kernel.exception.PortalException {
550                    _mbThreadLocalService.incrementViewCounter(threadId, increment);
551            }
552    
553            @Override
554            public void moveDependentsToTrash(long groupId, long threadId,
555                    long trashEntryId)
556                    throws com.liferay.portal.kernel.exception.PortalException {
557                    _mbThreadLocalService.moveDependentsToTrash(groupId, threadId,
558                            trashEntryId);
559            }
560    
561            @Override
562            public com.liferay.portlet.messageboards.model.MBThread moveThread(
563                    long groupId, long categoryId, long threadId)
564                    throws com.liferay.portal.kernel.exception.PortalException {
565                    return _mbThreadLocalService.moveThread(groupId, categoryId, threadId);
566            }
567    
568            @Override
569            public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
570                    long userId, long categoryId, long threadId)
571                    throws com.liferay.portal.kernel.exception.PortalException {
572                    return _mbThreadLocalService.moveThreadFromTrash(userId, categoryId,
573                            threadId);
574            }
575    
576            @Override
577            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
578                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
579                    throws com.liferay.portal.kernel.exception.PortalException {
580                    return _mbThreadLocalService.moveThreadToTrash(userId, thread);
581            }
582    
583            @Override
584            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
585                    long userId, long threadId)
586                    throws com.liferay.portal.kernel.exception.PortalException {
587                    return _mbThreadLocalService.moveThreadToTrash(userId, threadId);
588            }
589    
590            @Override
591            public void moveThreadsToTrash(long groupId, long userId)
592                    throws com.liferay.portal.kernel.exception.PortalException {
593                    _mbThreadLocalService.moveThreadsToTrash(groupId, userId);
594            }
595    
596            @Override
597            public void restoreDependentsFromTrash(long groupId, long threadId)
598                    throws com.liferay.portal.kernel.exception.PortalException {
599                    _mbThreadLocalService.restoreDependentsFromTrash(groupId, threadId);
600            }
601    
602            /**
603            * @deprecated As of 7.0.0, replaced by {@link
604            #restoreDependentsFromTrash(long, long)}
605            */
606            @Deprecated
607            @Override
608            public void restoreDependentsFromTrash(long groupId, long threadId,
609                    long trashEntryId)
610                    throws com.liferay.portal.kernel.exception.PortalException {
611                    _mbThreadLocalService.restoreDependentsFromTrash(groupId, threadId,
612                            trashEntryId);
613            }
614    
615            @Override
616            public void restoreThreadFromTrash(long userId, long threadId)
617                    throws com.liferay.portal.kernel.exception.PortalException {
618                    _mbThreadLocalService.restoreThreadFromTrash(userId, threadId);
619            }
620    
621            @Override
622            public com.liferay.portal.kernel.search.Hits search(long groupId,
623                    long userId, long creatorUserId, long startDate, long endDate,
624                    int status, int start, int end)
625                    throws com.liferay.portal.kernel.exception.PortalException {
626                    return _mbThreadLocalService.search(groupId, userId, creatorUserId,
627                            startDate, endDate, status, start, end);
628            }
629    
630            @Override
631            public com.liferay.portal.kernel.search.Hits search(long groupId,
632                    long userId, long creatorUserId, int status, int start, int end)
633                    throws com.liferay.portal.kernel.exception.PortalException {
634                    return _mbThreadLocalService.search(groupId, userId, creatorUserId,
635                            status, start, end);
636            }
637    
638            /**
639            * Sets the Spring bean ID for this bean.
640            *
641            * @param beanIdentifier the Spring bean ID for this bean
642            */
643            @Override
644            public void setBeanIdentifier(java.lang.String beanIdentifier) {
645                    _mbThreadLocalService.setBeanIdentifier(beanIdentifier);
646            }
647    
648            @Override
649            public com.liferay.portlet.messageboards.model.MBThread splitThread(
650                    long messageId, java.lang.String subject,
651                    com.liferay.portal.service.ServiceContext serviceContext)
652                    throws com.liferay.portal.kernel.exception.PortalException {
653                    return _mbThreadLocalService.splitThread(messageId, subject,
654                            serviceContext);
655            }
656    
657            /**
658            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
659            *
660            * @param mbThread the message boards thread
661            * @return the message boards thread that was updated
662            */
663            @Override
664            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
665                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
666                    return _mbThreadLocalService.updateMBThread(mbThread);
667            }
668    
669            @Override
670            public void updateQuestion(long threadId, boolean question)
671                    throws com.liferay.portal.kernel.exception.PortalException {
672                    _mbThreadLocalService.updateQuestion(threadId, question);
673            }
674    
675            @Override
676            public com.liferay.portlet.messageboards.model.MBThread updateStatus(
677                    long userId, long threadId, int status)
678                    throws com.liferay.portal.kernel.exception.PortalException {
679                    return _mbThreadLocalService.updateStatus(userId, threadId, status);
680            }
681    
682            /**
683            * @deprecated As of 6.2.0, replaced by {@link #incrementViewCounter(long,
684            int)}
685            */
686            @Deprecated
687            @Override
688            public com.liferay.portlet.messageboards.model.MBThread updateThread(
689                    long threadId, int viewCount)
690                    throws com.liferay.portal.kernel.exception.PortalException {
691                    return _mbThreadLocalService.updateThread(threadId, viewCount);
692            }
693    
694            /**
695             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
696             */
697            @Deprecated
698            public MBThreadLocalService getWrappedMBThreadLocalService() {
699                    return _mbThreadLocalService;
700            }
701    
702            /**
703             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
704             */
705            @Deprecated
706            public void setWrappedMBThreadLocalService(
707                    MBThreadLocalService mbThreadLocalService) {
708                    _mbThreadLocalService = mbThreadLocalService;
709            }
710    
711            @Override
712            public MBThreadLocalService getWrappedService() {
713                    return _mbThreadLocalService;
714            }
715    
716            @Override
717            public void setWrappedService(MBThreadLocalService mbThreadLocalService) {
718                    _mbThreadLocalService = mbThreadLocalService;
719            }
720    
721            private MBThreadLocalService _mbThreadLocalService;
722    }