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     * <p>
021     * This class is a wrapper for {@link MBThreadLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBThreadLocalService
026     * @generated
027     */
028    public class MBThreadLocalServiceWrapper implements MBThreadLocalService,
029            ServiceWrapper<MBThreadLocalService> {
030            public MBThreadLocalServiceWrapper(
031                    MBThreadLocalService mbThreadLocalService) {
032                    _mbThreadLocalService = mbThreadLocalService;
033            }
034    
035            /**
036            * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
037            *
038            * @param mbThread the message boards thread
039            * @return the message boards thread that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.messageboards.model.MBThread addMBThread(
043                    com.liferay.portlet.messageboards.model.MBThread mbThread)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _mbThreadLocalService.addMBThread(mbThread);
046            }
047    
048            /**
049            * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
050            *
051            * @param threadId the primary key for the new message boards thread
052            * @return the new message boards thread
053            */
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            public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
068                    long threadId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _mbThreadLocalService.deleteMBThread(threadId);
072            }
073    
074            /**
075            * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
076            *
077            * @param mbThread the message boards thread
078            * @return the message boards thread that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
082                    com.liferay.portlet.messageboards.model.MBThread mbThread)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _mbThreadLocalService.deleteMBThread(mbThread);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _mbThreadLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _mbThreadLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _mbThreadLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _mbThreadLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _mbThreadLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
163                    long threadId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _mbThreadLocalService.fetchMBThread(threadId);
166            }
167    
168            /**
169            * Returns the message boards thread with the primary key.
170            *
171            * @param threadId the primary key of the message boards thread
172            * @return the message boards thread
173            * @throws PortalException if a message boards thread with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.messageboards.model.MBThread getMBThread(
177                    long threadId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _mbThreadLocalService.getMBThread(threadId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _mbThreadLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the message boards thread matching the UUID and group.
192            *
193            * @param uuid the message boards thread's UUID
194            * @param groupId the primary key of the group
195            * @return the matching message boards thread
196            * @throws PortalException if a matching message boards thread could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _mbThreadLocalService.getMBThreadByUuidAndGroupId(uuid, groupId);
204            }
205    
206            /**
207            * Returns a range of all the message boards threads.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param start the lower bound of the range of message boards threads
214            * @param end the upper bound of the range of message boards threads (not inclusive)
215            * @return the range of message boards threads
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
219                    int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _mbThreadLocalService.getMBThreads(start, end);
222            }
223    
224            /**
225            * Returns the number of message boards threads.
226            *
227            * @return the number of message boards threads
228            * @throws SystemException if a system exception occurred
229            */
230            public int getMBThreadsCount()
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _mbThreadLocalService.getMBThreadsCount();
233            }
234    
235            /**
236            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param mbThread the message boards thread
239            * @return the message boards thread that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
243                    com.liferay.portlet.messageboards.model.MBThread mbThread)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mbThreadLocalService.updateMBThread(mbThread);
246            }
247    
248            /**
249            * Returns the Spring bean ID for this bean.
250            *
251            * @return the Spring bean ID for this bean
252            */
253            public java.lang.String getBeanIdentifier() {
254                    return _mbThreadLocalService.getBeanIdentifier();
255            }
256    
257            /**
258            * Sets the Spring bean ID for this bean.
259            *
260            * @param beanIdentifier the Spring bean ID for this bean
261            */
262            public void setBeanIdentifier(java.lang.String beanIdentifier) {
263                    _mbThreadLocalService.setBeanIdentifier(beanIdentifier);
264            }
265    
266            public com.liferay.portlet.messageboards.model.MBThread addThread(
267                    long categoryId,
268                    com.liferay.portlet.messageboards.model.MBMessage message,
269                    com.liferay.portal.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _mbThreadLocalService.addThread(categoryId, message,
273                            serviceContext);
274            }
275    
276            public void deleteThread(long threadId)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _mbThreadLocalService.deleteThread(threadId);
280            }
281    
282            public void deleteThread(
283                    com.liferay.portlet.messageboards.model.MBThread thread)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    _mbThreadLocalService.deleteThread(thread);
287            }
288    
289            public void deleteThreads(long groupId, long categoryId)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _mbThreadLocalService.deleteThreads(groupId, categoryId);
293            }
294    
295            public void deleteThreads(long groupId, long categoryId,
296                    boolean includeTrashedEntries)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _mbThreadLocalService.deleteThreads(groupId, categoryId,
300                            includeTrashedEntries);
301            }
302    
303            public com.liferay.portlet.messageboards.model.MBThread fetchThread(
304                    long threadId)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _mbThreadLocalService.fetchThread(threadId);
307            }
308    
309            public int getCategoryThreadsCount(long groupId, long categoryId, int status)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _mbThreadLocalService.getCategoryThreadsCount(groupId,
312                            categoryId, status);
313            }
314    
315            /**
316            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long,
317            QueryDefinition)}
318            */
319            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
320                    long groupId, int status, int start, int end)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _mbThreadLocalService.getGroupThreads(groupId, status, start, end);
323            }
324    
325            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
326                    long groupId, long userId, boolean subscribed,
327                    boolean includeAnonymous,
328                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
331                            subscribed, includeAnonymous, queryDefinition);
332            }
333    
334            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
335                    long groupId, long userId, boolean subscribed,
336                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
339                            subscribed, queryDefinition);
340            }
341    
342            /**
343            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
344            boolean, boolean, QueryDefinition)}
345            */
346            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
347                    long groupId, long userId, int status, boolean subscribed,
348                    boolean includeAnonymous, int start, int end)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
351                            subscribed, includeAnonymous, start, end);
352            }
353    
354            /**
355            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
356            boolean, QueryDefinition)}
357            */
358            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
359                    long groupId, long userId, int status, boolean subscribed, int start,
360                    int end) throws com.liferay.portal.kernel.exception.SystemException {
361                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
362                            subscribed, start, end);
363            }
364    
365            /**
366            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreads(long, long,
367            QueryDefinition)}
368            */
369            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
370                    long groupId, long userId, int status, int start, int end)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
373                            start, end);
374            }
375    
376            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
377                    long groupId, long userId,
378                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
381                            queryDefinition);
382            }
383    
384            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
385                    long groupId,
386                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _mbThreadLocalService.getGroupThreads(groupId, queryDefinition);
389            }
390    
391            /**
392            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
393            QueryDefinition)}
394            */
395            public int getGroupThreadsCount(long groupId, int status)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return _mbThreadLocalService.getGroupThreadsCount(groupId, status);
398            }
399    
400            public int getGroupThreadsCount(long groupId, long userId,
401                    boolean subscribed, boolean includeAnonymous,
402                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
405                            subscribed, includeAnonymous, queryDefinition);
406            }
407    
408            public int getGroupThreadsCount(long groupId, long userId,
409                    boolean subscribed,
410                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
413                            subscribed, queryDefinition);
414            }
415    
416            /**
417            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
418            long, QueryDefinition)}
419            */
420            public int getGroupThreadsCount(long groupId, long userId, int status)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
423                            status);
424            }
425    
426            /**
427            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
428            long, boolean, QueryDefinition)}
429            */
430            public int getGroupThreadsCount(long groupId, long userId, int status,
431                    boolean subscribed)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
434                            status, subscribed);
435            }
436    
437            /**
438            * @deprecated As of 6.2.0, replaced by {@link #getGroupThreadsCount(long,
439            long, boolean, boolean, QueryDefinition)}
440            */
441            public int getGroupThreadsCount(long groupId, long userId, int status,
442                    boolean subscribed, boolean includeAnonymous)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
445                            status, subscribed, includeAnonymous);
446            }
447    
448            public int getGroupThreadsCount(long groupId, long userId,
449                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
452                            queryDefinition);
453            }
454    
455            public int getGroupThreadsCount(long groupId,
456                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return _mbThreadLocalService.getGroupThreadsCount(groupId,
459                            queryDefinition);
460            }
461    
462            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads()
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return _mbThreadLocalService.getNoAssetThreads();
465            }
466    
467            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
468                    long categoryId, double priority)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority);
472            }
473    
474            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
475                    long categoryId, double priority, boolean inherit)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException {
478                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority,
479                            inherit);
480            }
481    
482            public com.liferay.portlet.messageboards.model.MBThread getThread(
483                    long threadId)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    return _mbThreadLocalService.getThread(threadId);
487            }
488    
489            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
490                    long groupId, long categoryId, int status, int start, int end)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return _mbThreadLocalService.getThreads(groupId, categoryId, status,
493                            start, end);
494            }
495    
496            public int getThreadsCount(long groupId, long categoryId, int status)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    return _mbThreadLocalService.getThreadsCount(groupId, categoryId, status);
499            }
500    
501            public boolean hasAnswerMessage(long threadId)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return _mbThreadLocalService.hasAnswerMessage(threadId);
504            }
505    
506            public com.liferay.portlet.messageboards.model.MBThread incrementViewCounter(
507                    long threadId, int increment)
508                    throws com.liferay.portal.kernel.exception.PortalException,
509                            com.liferay.portal.kernel.exception.SystemException {
510                    return _mbThreadLocalService.incrementViewCounter(threadId, increment);
511            }
512    
513            public com.liferay.portlet.messageboards.model.MBThread moveThread(
514                    long groupId, long categoryId, long threadId)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException {
517                    return _mbThreadLocalService.moveThread(groupId, categoryId, threadId);
518            }
519    
520            public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
521                    long userId, long categoryId, long threadId)
522                    throws com.liferay.portal.kernel.exception.PortalException,
523                            com.liferay.portal.kernel.exception.SystemException {
524                    return _mbThreadLocalService.moveThreadFromTrash(userId, categoryId,
525                            threadId);
526            }
527    
528            public void moveThreadsToTrash(long groupId, long userId)
529                    throws com.liferay.portal.kernel.exception.PortalException,
530                            com.liferay.portal.kernel.exception.SystemException {
531                    _mbThreadLocalService.moveThreadsToTrash(groupId, userId);
532            }
533    
534            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
535                    long userId, long entryId)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException {
538                    return _mbThreadLocalService.moveThreadToTrash(userId, entryId);
539            }
540    
541            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
542                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException {
545                    return _mbThreadLocalService.moveThreadToTrash(userId, thread);
546            }
547    
548            public void restoreThreadFromTrash(long userId, long threadId)
549                    throws com.liferay.portal.kernel.exception.PortalException,
550                            com.liferay.portal.kernel.exception.SystemException {
551                    _mbThreadLocalService.restoreThreadFromTrash(userId, threadId);
552            }
553    
554            public com.liferay.portlet.messageboards.model.MBThread splitThread(
555                    long messageId, java.lang.String subject,
556                    com.liferay.portal.service.ServiceContext serviceContext)
557                    throws com.liferay.portal.kernel.exception.PortalException,
558                            com.liferay.portal.kernel.exception.SystemException {
559                    return _mbThreadLocalService.splitThread(messageId, subject,
560                            serviceContext);
561            }
562    
563            public void updateQuestion(long threadId, boolean question)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException {
566                    _mbThreadLocalService.updateQuestion(threadId, question);
567            }
568    
569            public com.liferay.portlet.messageboards.model.MBThread updateStatus(
570                    long userId, long threadId, int status, int categoryStatus)
571                    throws com.liferay.portal.kernel.exception.PortalException,
572                            com.liferay.portal.kernel.exception.SystemException {
573                    return _mbThreadLocalService.updateStatus(userId, threadId, status,
574                            categoryStatus);
575            }
576    
577            /**
578            * @deprecated As of 6.2.0, replaced by {@link #incrementViewCounter(long,
579            int)}
580            */
581            public com.liferay.portlet.messageboards.model.MBThread updateThread(
582                    long threadId, int viewCount)
583                    throws com.liferay.portal.kernel.exception.PortalException,
584                            com.liferay.portal.kernel.exception.SystemException {
585                    return _mbThreadLocalService.updateThread(threadId, viewCount);
586            }
587    
588            /**
589             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
590             */
591            public MBThreadLocalService getWrappedMBThreadLocalService() {
592                    return _mbThreadLocalService;
593            }
594    
595            /**
596             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
597             */
598            public void setWrappedMBThreadLocalService(
599                    MBThreadLocalService mbThreadLocalService) {
600                    _mbThreadLocalService = mbThreadLocalService;
601            }
602    
603            public MBThreadLocalService getWrappedService() {
604                    return _mbThreadLocalService;
605            }
606    
607            public void setWrappedService(MBThreadLocalService mbThreadLocalService) {
608                    _mbThreadLocalService = mbThreadLocalService;
609            }
610    
611            private MBThreadLocalService _mbThreadLocalService;
612    }