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