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