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