001    /**
002     * Copyright (c) 2000-2012 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 a range of all the message boards threads.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of message boards threads
198            * @param end the upper bound of the range of message boards threads (not inclusive)
199            * @return the range of message boards threads
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _mbThreadLocalService.getMBThreads(start, end);
206            }
207    
208            /**
209            * Returns the number of message boards threads.
210            *
211            * @return the number of message boards threads
212            * @throws SystemException if a system exception occurred
213            */
214            public int getMBThreadsCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _mbThreadLocalService.getMBThreadsCount();
217            }
218    
219            /**
220            * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param mbThread the message boards thread
223            * @return the message boards thread that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
227                    com.liferay.portlet.messageboards.model.MBThread mbThread)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _mbThreadLocalService.updateMBThread(mbThread);
230            }
231    
232            /**
233            * Returns the Spring bean ID for this bean.
234            *
235            * @return the Spring bean ID for this bean
236            */
237            public java.lang.String getBeanIdentifier() {
238                    return _mbThreadLocalService.getBeanIdentifier();
239            }
240    
241            /**
242            * Sets the Spring bean ID for this bean.
243            *
244            * @param beanIdentifier the Spring bean ID for this bean
245            */
246            public void setBeanIdentifier(java.lang.String beanIdentifier) {
247                    _mbThreadLocalService.setBeanIdentifier(beanIdentifier);
248            }
249    
250            public com.liferay.portlet.messageboards.model.MBThread addThread(
251                    long categoryId,
252                    com.liferay.portlet.messageboards.model.MBMessage message)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _mbThreadLocalService.addThread(categoryId, message);
256            }
257    
258            public void deleteThread(long threadId)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    _mbThreadLocalService.deleteThread(threadId);
262            }
263    
264            public void deleteThread(
265                    com.liferay.portlet.messageboards.model.MBThread thread)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _mbThreadLocalService.deleteThread(thread);
269            }
270    
271            public void deleteThreads(long groupId, long categoryId)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    _mbThreadLocalService.deleteThreads(groupId, categoryId);
275            }
276    
277            public void deleteThreads(long groupId, long categoryId,
278                    boolean includeTrashedEntries)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _mbThreadLocalService.deleteThreads(groupId, categoryId,
282                            includeTrashedEntries);
283            }
284    
285            public com.liferay.portlet.messageboards.model.MBThread fetchThread(
286                    long threadId)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _mbThreadLocalService.fetchThread(threadId);
289            }
290    
291            public int getCategoryThreadsCount(long groupId, long categoryId, int status)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return _mbThreadLocalService.getCategoryThreadsCount(groupId,
294                            categoryId, status);
295            }
296    
297            /**
298            * @deprecated {@link #getGroupThreads(long, QueryDefinition)}
299            */
300            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
301                    long groupId, int status, int start, int end)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return _mbThreadLocalService.getGroupThreads(groupId, status, start, end);
304            }
305    
306            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
307                    long groupId, long userId, boolean subscribed,
308                    boolean includeAnonymous,
309                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
312                            subscribed, includeAnonymous, queryDefinition);
313            }
314    
315            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
316                    long groupId, long userId, boolean subscribed,
317                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
320                            subscribed, queryDefinition);
321            }
322    
323            /**
324            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreads( long, long,
325            boolean, boolean, QueryDefinition)}
326            */
327            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
328                    long groupId, long userId, int status, boolean subscribed,
329                    boolean includeAnonymous, int start, int end)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
332                            subscribed, includeAnonymous, start, end);
333            }
334    
335            /**
336            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreads( long, long,
337            boolean, QueryDefinition)}
338            */
339            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
340                    long groupId, long userId, int status, boolean subscribed, int start,
341                    int end) throws com.liferay.portal.kernel.exception.SystemException {
342                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
343                            subscribed, start, end);
344            }
345    
346            /**
347            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreads( long, long,
348            QueryDefinition)}
349            */
350            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
351                    long groupId, long userId, int status, int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _mbThreadLocalService.getGroupThreads(groupId, userId, status,
354                            start, end);
355            }
356    
357            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
358                    long groupId, long userId,
359                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _mbThreadLocalService.getGroupThreads(groupId, userId,
362                            queryDefinition);
363            }
364    
365            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
366                    long groupId,
367                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _mbThreadLocalService.getGroupThreads(groupId, queryDefinition);
370            }
371    
372            /**
373            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreadsCount( long,
374            QueryDefinition)}
375            */
376            public int getGroupThreadsCount(long groupId, int status)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _mbThreadLocalService.getGroupThreadsCount(groupId, status);
379            }
380    
381            public int getGroupThreadsCount(long groupId, long userId,
382                    boolean subscribed, boolean includeAnonymous,
383                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
386                            subscribed, includeAnonymous, queryDefinition);
387            }
388    
389            public int getGroupThreadsCount(long groupId, long userId,
390                    boolean subscribed,
391                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
394                            subscribed, queryDefinition);
395            }
396    
397            /**
398            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreadsCount( long,
399            long, QueryDefinition)}
400            */
401            public int getGroupThreadsCount(long groupId, long userId, int status)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
404                            status);
405            }
406    
407            /**
408            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreadsCount( long,
409            long, boolean, QueryDefinition)}
410            */
411            public int getGroupThreadsCount(long groupId, long userId, int status,
412                    boolean subscribed)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
415                            status, subscribed);
416            }
417    
418            /**
419            * @deprecated {As of 6.2.0, replaced by @link #getGroupThreadsCount( long,
420            long, boolean, boolean, QueryDefinition)}
421            */
422            public int getGroupThreadsCount(long groupId, long userId, int status,
423                    boolean subscribed, boolean includeAnonymous)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
426                            status, subscribed, includeAnonymous);
427            }
428    
429            public int getGroupThreadsCount(long groupId, long userId,
430                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return _mbThreadLocalService.getGroupThreadsCount(groupId, userId,
433                            queryDefinition);
434            }
435    
436            public int getGroupThreadsCount(long groupId,
437                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _mbThreadLocalService.getGroupThreadsCount(groupId,
440                            queryDefinition);
441            }
442    
443            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads()
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return _mbThreadLocalService.getNoAssetThreads();
446            }
447    
448            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
449                    long categoryId, double priority)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority);
453            }
454    
455            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
456                    long categoryId, double priority, boolean inherit)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return _mbThreadLocalService.getPriorityThreads(categoryId, priority,
460                            inherit);
461            }
462    
463            public com.liferay.portlet.messageboards.model.MBThread getThread(
464                    long threadId)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    return _mbThreadLocalService.getThread(threadId);
468            }
469    
470            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
471                    long groupId, long categoryId, int status, int start, int end)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return _mbThreadLocalService.getThreads(groupId, categoryId, status,
474                            start, end);
475            }
476    
477            public int getThreadsCount(long groupId, long categoryId, int status)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    return _mbThreadLocalService.getThreadsCount(groupId, categoryId, status);
480            }
481    
482            public boolean hasAnswerMessage(long threadId)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    return _mbThreadLocalService.hasAnswerMessage(threadId);
485            }
486    
487            public com.liferay.portlet.messageboards.model.MBThread incrementViewCounter(
488                    long threadId, int increment)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return _mbThreadLocalService.incrementViewCounter(threadId, increment);
492            }
493    
494            public com.liferay.portlet.messageboards.model.MBThread moveThread(
495                    long groupId, long categoryId, long threadId)
496                    throws com.liferay.portal.kernel.exception.PortalException,
497                            com.liferay.portal.kernel.exception.SystemException {
498                    return _mbThreadLocalService.moveThread(groupId, categoryId, threadId);
499            }
500    
501            public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
502                    long userId, long categoryId, long threadId)
503                    throws com.liferay.portal.kernel.exception.PortalException,
504                            com.liferay.portal.kernel.exception.SystemException {
505                    return _mbThreadLocalService.moveThreadFromTrash(userId, categoryId,
506                            threadId);
507            }
508    
509            public void moveThreadsToTrash(long groupId, long userId)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    _mbThreadLocalService.moveThreadsToTrash(groupId, userId);
513            }
514    
515            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
516                    long userId, long entryId)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException {
519                    return _mbThreadLocalService.moveThreadToTrash(userId, entryId);
520            }
521    
522            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
523                    long userId, com.liferay.portlet.messageboards.model.MBThread thread)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    return _mbThreadLocalService.moveThreadToTrash(userId, thread);
527            }
528    
529            public void restoreThreadFromTrash(long userId, long threadId)
530                    throws com.liferay.portal.kernel.exception.PortalException,
531                            com.liferay.portal.kernel.exception.SystemException {
532                    _mbThreadLocalService.restoreThreadFromTrash(userId, threadId);
533            }
534    
535            public com.liferay.portlet.messageboards.model.MBThread splitThread(
536                    long messageId, java.lang.String subject,
537                    com.liferay.portal.service.ServiceContext serviceContext)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    return _mbThreadLocalService.splitThread(messageId, subject,
541                            serviceContext);
542            }
543    
544            public void updateQuestion(long threadId, boolean question)
545                    throws com.liferay.portal.kernel.exception.PortalException,
546                            com.liferay.portal.kernel.exception.SystemException {
547                    _mbThreadLocalService.updateQuestion(threadId, question);
548            }
549    
550            public com.liferay.portlet.messageboards.model.MBThread updateStatus(
551                    long userId, long threadId, int status, int categoryStatus)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException {
554                    return _mbThreadLocalService.updateStatus(userId, threadId, status,
555                            categoryStatus);
556            }
557    
558            /**
559            * @deprecated {@link #incrementViewCounter(long, int)}
560            */
561            public com.liferay.portlet.messageboards.model.MBThread updateThread(
562                    long threadId, int viewCount)
563                    throws com.liferay.portal.kernel.exception.PortalException,
564                            com.liferay.portal.kernel.exception.SystemException {
565                    return _mbThreadLocalService.updateThread(threadId, viewCount);
566            }
567    
568            /**
569             * @deprecated Renamed to {@link #getWrappedService}
570             */
571            public MBThreadLocalService getWrappedMBThreadLocalService() {
572                    return _mbThreadLocalService;
573            }
574    
575            /**
576             * @deprecated Renamed to {@link #setWrappedService}
577             */
578            public void setWrappedMBThreadLocalService(
579                    MBThreadLocalService mbThreadLocalService) {
580                    _mbThreadLocalService = mbThreadLocalService;
581            }
582    
583            public MBThreadLocalService getWrappedService() {
584                    return _mbThreadLocalService;
585            }
586    
587            public void setWrappedService(MBThreadLocalService mbThreadLocalService) {
588                    _mbThreadLocalService = mbThreadLocalService;
589            }
590    
591            private MBThreadLocalService _mbThreadLocalService;
592    }