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     * The utility for the message-boards message local service. This utility wraps {@link com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
022     *
023     * <p>
024     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see MBMessageLocalService
029     * @see com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
030     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
031     * @generated
032     */
033    public class MBMessageLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
042            *
043            * @param mbMessage the message-boards message
044            * @return the message-boards message that was added
045            * @throws SystemException if a system exception occurred
046            */
047            public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
048                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getService().addMBMessage(mbMessage);
051            }
052    
053            /**
054            * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
055            *
056            * @param messageId the primary key for the new message-boards message
057            * @return the new message-boards message
058            */
059            public static com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
060                    long messageId) {
061                    return getService().createMBMessage(messageId);
062            }
063    
064            /**
065            * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param messageId the primary key of the message-boards message
068            * @return the message-boards message that was removed
069            * @throws PortalException if a message-boards message with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
073                    long messageId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().deleteMBMessage(messageId);
077            }
078    
079            /**
080            * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
081            *
082            * @param mbMessage the message-boards message
083            * @return the message-boards message that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public static com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
087                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getService().deleteMBMessage(mbMessage);
090            }
091    
092            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return getService().dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public static java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * 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.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @SuppressWarnings("rawtypes")
124            public static java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService().dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public static java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            public static long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getService().dynamicQueryCount(dynamicQuery);
165            }
166    
167            public static com.liferay.portlet.messageboards.model.MBMessage fetchMBMessage(
168                    long messageId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().fetchMBMessage(messageId);
171            }
172    
173            /**
174            * Returns the message-boards message with the primary key.
175            *
176            * @param messageId the primary key of the message-boards message
177            * @return the message-boards message
178            * @throws PortalException if a message-boards message with the primary key could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public static com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
182                    long messageId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getMBMessage(messageId);
186            }
187    
188            public static com.liferay.portal.model.PersistedModel getPersistedModel(
189                    java.io.Serializable primaryKeyObj)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getService().getPersistedModel(primaryKeyObj);
193            }
194    
195            /**
196            * Returns the message-boards message with the UUID in the group.
197            *
198            * @param uuid the UUID of message-boards message
199            * @param groupId the group id of the message-boards message
200            * @return the message-boards message
201            * @throws PortalException if a message-boards message with the UUID in the group could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public static com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
205                    java.lang.String uuid, long groupId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getMBMessageByUuidAndGroupId(uuid, groupId);
209            }
210    
211            /**
212            * Returns a range of all the message-boards messages.
213            *
214            * <p>
215            * 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.
216            * </p>
217            *
218            * @param start the lower bound of the range of message-boards messages
219            * @param end the upper bound of the range of message-boards messages (not inclusive)
220            * @return the range of message-boards messages
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
224                    int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getMBMessages(start, end);
227            }
228    
229            /**
230            * Returns the number of message-boards messages.
231            *
232            * @return the number of message-boards messages
233            * @throws SystemException if a system exception occurred
234            */
235            public static int getMBMessagesCount()
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getMBMessagesCount();
238            }
239    
240            /**
241            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
242            *
243            * @param mbMessage the message-boards message
244            * @return the message-boards message that was updated
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
248                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService().updateMBMessage(mbMessage);
251            }
252    
253            /**
254            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
255            *
256            * @param mbMessage the message-boards message
257            * @param merge whether to merge the message-boards message with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
258            * @return the message-boards message that was updated
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
262                    com.liferay.portlet.messageboards.model.MBMessage mbMessage,
263                    boolean merge)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getService().updateMBMessage(mbMessage, merge);
266            }
267    
268            /**
269            * Returns the Spring bean ID for this bean.
270            *
271            * @return the Spring bean ID for this bean
272            */
273            public static java.lang.String getBeanIdentifier() {
274                    return getService().getBeanIdentifier();
275            }
276    
277            /**
278            * Sets the Spring bean ID for this bean.
279            *
280            * @param beanIdentifier the Spring bean ID for this bean
281            */
282            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
283                    getService().setBeanIdentifier(beanIdentifier);
284            }
285    
286            public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
287                    long userId, java.lang.String userName, long groupId,
288                    java.lang.String className, long classPK, int workflowAction)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return getService()
292                                       .addDiscussionMessage(userId, userName, groupId, className,
293                            classPK, workflowAction);
294            }
295    
296            public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
297                    long userId, java.lang.String userName, long groupId,
298                    java.lang.String className, long classPK, long threadId,
299                    long parentMessageId, java.lang.String subject, java.lang.String body,
300                    com.liferay.portal.service.ServiceContext serviceContext)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return getService()
304                                       .addDiscussionMessage(userId, userName, groupId, className,
305                            classPK, threadId, parentMessageId, subject, body, serviceContext);
306            }
307    
308            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
309                    long userId, java.lang.String userName, long groupId, long categoryId,
310                    long threadId, long parentMessageId, java.lang.String subject,
311                    java.lang.String body, java.lang.String format,
312                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
313                    boolean anonymous, double priority, boolean allowPingbacks,
314                    com.liferay.portal.service.ServiceContext serviceContext)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    return getService()
318                                       .addMessage(userId, userName, groupId, categoryId, threadId,
319                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
320                            priority, allowPingbacks, serviceContext);
321            }
322    
323            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
324                    long userId, java.lang.String userName, long groupId, long categoryId,
325                    java.lang.String subject, java.lang.String body,
326                    java.lang.String format,
327                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
328                    boolean anonymous, double priority, boolean allowPingbacks,
329                    com.liferay.portal.service.ServiceContext serviceContext)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return getService()
333                                       .addMessage(userId, userName, groupId, categoryId, subject,
334                            body, format, inputStreamOVPs, anonymous, priority, allowPingbacks,
335                            serviceContext);
336            }
337    
338            public static void addMessageResources(long messageId,
339                    boolean addGroupPermissions, boolean addGuestPermissions)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    getService()
343                            .addMessageResources(messageId, addGroupPermissions,
344                            addGuestPermissions);
345            }
346    
347            public static void addMessageResources(long messageId,
348                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    getService()
352                            .addMessageResources(messageId, groupPermissions, guestPermissions);
353            }
354    
355            public static void addMessageResources(
356                    com.liferay.portlet.messageboards.model.MBMessage message,
357                    boolean addGroupPermissions, boolean addGuestPermissions)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    getService()
361                            .addMessageResources(message, addGroupPermissions,
362                            addGuestPermissions);
363            }
364    
365            public static void addMessageResources(
366                    com.liferay.portlet.messageboards.model.MBMessage message,
367                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    getService()
371                            .addMessageResources(message, groupPermissions, guestPermissions);
372            }
373    
374            public static void deleteDiscussionMessage(long messageId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    getService().deleteDiscussionMessage(messageId);
378            }
379    
380            public static void deleteDiscussionMessages(java.lang.String className,
381                    long classPK)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    getService().deleteDiscussionMessages(className, classPK);
385            }
386    
387            public static void deleteMessage(long messageId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    getService().deleteMessage(messageId);
391            }
392    
393            public static void deleteMessage(
394                    com.liferay.portlet.messageboards.model.MBMessage message)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    getService().deleteMessage(message);
398            }
399    
400            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
401                    long groupId, long categoryId, int status, int start, int end)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return getService()
404                                       .getCategoryMessages(groupId, categoryId, status, start, end);
405            }
406    
407            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
408                    long groupId, long categoryId, int status, int start, int end,
409                    com.liferay.portal.kernel.util.OrderByComparator obc)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return getService()
412                                       .getCategoryMessages(groupId, categoryId, status, start,
413                            end, obc);
414            }
415    
416            public static int getCategoryMessagesCount(long groupId, long categoryId,
417                    int status) throws com.liferay.portal.kernel.exception.SystemException {
418                    return getService().getCategoryMessagesCount(groupId, categoryId, status);
419            }
420    
421            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
422                    long companyId, int status, int start, int end)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return getService().getCompanyMessages(companyId, status, start, end);
425            }
426    
427            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
428                    long companyId, int status, int start, int end,
429                    com.liferay.portal.kernel.util.OrderByComparator obc)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return getService()
432                                       .getCompanyMessages(companyId, status, start, end, obc);
433            }
434    
435            public static int getCompanyMessagesCount(long companyId, int status)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getService().getCompanyMessagesCount(companyId, status);
438            }
439    
440            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
441                    long userId, long groupId, java.lang.String className, long classPK,
442                    int status)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return getService()
446                                       .getDiscussionMessageDisplay(userId, groupId, className,
447                            classPK, status);
448            }
449    
450            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
451                    long userId, long groupId, java.lang.String className, long classPK,
452                    int status, java.lang.String threadView)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return getService()
456                                       .getDiscussionMessageDisplay(userId, groupId, className,
457                            classPK, status, threadView);
458            }
459    
460            public static int getDiscussionMessagesCount(long classNameId,
461                    long classPK, int status)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getService()
464                                       .getDiscussionMessagesCount(classNameId, classPK, status);
465            }
466    
467            public static int getDiscussionMessagesCount(java.lang.String className,
468                    long classPK, int status)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getService()
471                                       .getDiscussionMessagesCount(className, classPK, status);
472            }
473    
474            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
475                    java.lang.String className)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return getService().getDiscussions(className);
478            }
479    
480            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
481                    long groupId, int status, int start, int end)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return getService().getGroupMessages(groupId, status, start, end);
484            }
485    
486            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
487                    long groupId, int status, int start, int end,
488                    com.liferay.portal.kernel.util.OrderByComparator obc)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getService().getGroupMessages(groupId, status, start, end, obc);
491            }
492    
493            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
494                    long groupId, long userId, int status, int start, int end)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getService().getGroupMessages(groupId, userId, status, start, end);
497            }
498    
499            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
500                    long groupId, long userId, int status, int start, int end,
501                    com.liferay.portal.kernel.util.OrderByComparator obc)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getService()
504                                       .getGroupMessages(groupId, userId, status, start, end, obc);
505            }
506    
507            public static int getGroupMessagesCount(long groupId, int status)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getService().getGroupMessagesCount(groupId, status);
510            }
511    
512            public static int getGroupMessagesCount(long groupId, long userId,
513                    int status) throws com.liferay.portal.kernel.exception.SystemException {
514                    return getService().getGroupMessagesCount(groupId, userId, status);
515            }
516    
517            public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
518                    long messageId)
519                    throws com.liferay.portal.kernel.exception.PortalException,
520                            com.liferay.portal.kernel.exception.SystemException {
521                    return getService().getMessage(messageId);
522            }
523    
524            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
525                    long userId, long messageId, int status, java.lang.String threadView,
526                    boolean includePrevAndNext)
527                    throws com.liferay.portal.kernel.exception.PortalException,
528                            com.liferay.portal.kernel.exception.SystemException {
529                    return getService()
530                                       .getMessageDisplay(userId, messageId, status, threadView,
531                            includePrevAndNext);
532            }
533    
534            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
535                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
536                    int status, java.lang.String threadView, boolean includePrevAndNext)
537                    throws com.liferay.portal.kernel.exception.PortalException,
538                            com.liferay.portal.kernel.exception.SystemException {
539                    return getService()
540                                       .getMessageDisplay(userId, message, status, threadView,
541                            includePrevAndNext);
542            }
543    
544            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
545                    java.lang.String className, long classPK, int status)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getService().getMessages(className, classPK, status);
548            }
549    
550            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getService().getNoAssetMessages();
553            }
554    
555            public static int getPositionInThread(long messageId)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return getService().getPositionInThread(messageId);
559            }
560    
561            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
562                    long threadId, int status)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    return getService().getThreadMessages(threadId, status);
565            }
566    
567            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
568                    long threadId, int status,
569                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getService().getThreadMessages(threadId, status, comparator);
572            }
573    
574            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
575                    long threadId, int status, int start, int end)
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    return getService().getThreadMessages(threadId, status, start, end);
578            }
579    
580            public static int getThreadMessagesCount(long threadId, int status)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getService().getThreadMessagesCount(threadId, status);
583            }
584    
585            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
586                    long threadId, int status, int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getService()
589                                       .getThreadRepliesMessages(threadId, status, start, end);
590            }
591    
592            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
593                    long userId, long classNameId, long classPK, int status, int start,
594                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    return getService()
597                                       .getUserDiscussionMessages(userId, classNameId, classPK,
598                            status, start, end, obc);
599            }
600    
601            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
602                    long userId, long[] classNameIds, int status, int start, int end,
603                    com.liferay.portal.kernel.util.OrderByComparator obc)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getService()
606                                       .getUserDiscussionMessages(userId, classNameIds, status,
607                            start, end, obc);
608            }
609    
610            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
611                    long userId, java.lang.String className, long classPK, int status,
612                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return getService()
615                                       .getUserDiscussionMessages(userId, className, classPK,
616                            status, start, end, obc);
617            }
618    
619            public static int getUserDiscussionMessagesCount(long userId,
620                    long classNameId, long classPK, int status)
621                    throws com.liferay.portal.kernel.exception.SystemException {
622                    return getService()
623                                       .getUserDiscussionMessagesCount(userId, classNameId,
624                            classPK, status);
625            }
626    
627            public static int getUserDiscussionMessagesCount(long userId,
628                    long[] classNameIds, int status)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return getService()
631                                       .getUserDiscussionMessagesCount(userId, classNameIds, status);
632            }
633    
634            public static int getUserDiscussionMessagesCount(long userId,
635                    java.lang.String className, long classPK, int status)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getService()
638                                       .getUserDiscussionMessagesCount(userId, className, classPK,
639                            status);
640            }
641    
642            public static void subscribeMessage(long userId, long messageId)
643                    throws com.liferay.portal.kernel.exception.PortalException,
644                            com.liferay.portal.kernel.exception.SystemException {
645                    getService().subscribeMessage(userId, messageId);
646            }
647    
648            public static void unsubscribeMessage(long userId, long messageId)
649                    throws com.liferay.portal.kernel.exception.PortalException,
650                            com.liferay.portal.kernel.exception.SystemException {
651                    getService().unsubscribeMessage(userId, messageId);
652            }
653    
654            public static void updateAnswer(long messageId, boolean answer,
655                    boolean cascade)
656                    throws com.liferay.portal.kernel.exception.PortalException,
657                            com.liferay.portal.kernel.exception.SystemException {
658                    getService().updateAnswer(messageId, answer, cascade);
659            }
660    
661            public static void updateAnswer(
662                    com.liferay.portlet.messageboards.model.MBMessage message,
663                    boolean answer, boolean cascade)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException {
666                    getService().updateAnswer(message, answer, cascade);
667            }
668    
669            public static void updateAsset(long userId,
670                    com.liferay.portlet.messageboards.model.MBMessage message,
671                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
672                    long[] assetLinkEntryIds)
673                    throws com.liferay.portal.kernel.exception.PortalException,
674                            com.liferay.portal.kernel.exception.SystemException {
675                    getService()
676                            .updateAsset(userId, message, assetCategoryIds, assetTagNames,
677                            assetLinkEntryIds);
678            }
679    
680            public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
681                    long userId, long messageId, java.lang.String className, long classPK,
682                    java.lang.String subject, java.lang.String body,
683                    com.liferay.portal.service.ServiceContext serviceContext)
684                    throws com.liferay.portal.kernel.exception.PortalException,
685                            com.liferay.portal.kernel.exception.SystemException {
686                    return getService()
687                                       .updateDiscussionMessage(userId, messageId, className,
688                            classPK, subject, body, serviceContext);
689            }
690    
691            public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
692                    long userId, long messageId, java.lang.String subject,
693                    java.lang.String body,
694                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
695                    java.util.List<java.lang.String> existingFiles, double priority,
696                    boolean allowPingbacks,
697                    com.liferay.portal.service.ServiceContext serviceContext)
698                    throws com.liferay.portal.kernel.exception.PortalException,
699                            com.liferay.portal.kernel.exception.SystemException {
700                    return getService()
701                                       .updateMessage(userId, messageId, subject, body,
702                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
703                            serviceContext);
704            }
705    
706            public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
707                    long messageId, java.lang.String body)
708                    throws com.liferay.portal.kernel.exception.PortalException,
709                            com.liferay.portal.kernel.exception.SystemException {
710                    return getService().updateMessage(messageId, body);
711            }
712    
713            public static com.liferay.portlet.messageboards.model.MBMessage updateStatus(
714                    long userId, long messageId, int status,
715                    com.liferay.portal.service.ServiceContext serviceContext)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    return getService()
719                                       .updateStatus(userId, messageId, status, serviceContext);
720            }
721    
722            public static void updateUserName(long userId, java.lang.String userName)
723                    throws com.liferay.portal.kernel.exception.SystemException {
724                    getService().updateUserName(userId, userName);
725            }
726    
727            public static MBMessageLocalService getService() {
728                    if (_service == null) {
729                            _service = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName());
730    
731                            ReferenceRegistry.registerReference(MBMessageLocalServiceUtil.class,
732                                    "_service");
733                    }
734    
735                    return _service;
736            }
737    
738            /**
739             * @deprecated
740             */
741            public void setService(MBMessageLocalService service) {
742            }
743    
744            private static MBMessageLocalService _service;
745    }