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 MBMessage. This utility wraps
022     * {@link com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl} 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 MBMessageLocalService
030     * @see com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
031     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
032     * @generated
033     */
034    public class MBMessageLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
043            *
044            * @param mbMessage the message-boards message
045            * @return the message-boards message that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
049                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addMBMessage(mbMessage);
052            }
053    
054            /**
055            * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
056            *
057            * @param messageId the primary key for the new message-boards message
058            * @return the new message-boards message
059            */
060            public static com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
061                    long messageId) {
062                    return getService().createMBMessage(messageId);
063            }
064    
065            /**
066            * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param messageId the primary key of the message-boards message
069            * @return the message-boards message that was removed
070            * @throws PortalException if a message-boards message 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.MBMessage deleteMBMessage(
074                    long messageId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().deleteMBMessage(messageId);
078            }
079    
080            /**
081            * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
082            *
083            * @param mbMessage the message-boards message
084            * @return the message-boards message that was removed
085            * @throws SystemException if a system exception occurred
086            */
087            public static com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
088                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService().deleteMBMessage(mbMessage);
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.MBMessageModelImpl}. 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.MBMessageModelImpl}. 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.MBMessage fetchMBMessage(
184                    long messageId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getService().fetchMBMessage(messageId);
187            }
188    
189            /**
190            * Returns the message-boards message with the matching UUID and company.
191            *
192            * @param uuid the message-boards message's UUID
193            * @param companyId the primary key of the company
194            * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public static com.liferay.portlet.messageboards.model.MBMessage fetchMBMessageByUuidAndCompanyId(
198                    java.lang.String uuid, long companyId)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getService().fetchMBMessageByUuidAndCompanyId(uuid, companyId);
201            }
202    
203            /**
204            * Returns the message-boards message matching the UUID and group.
205            *
206            * @param uuid the message-boards message's UUID
207            * @param groupId the primary key of the group
208            * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public static com.liferay.portlet.messageboards.model.MBMessage fetchMBMessageByUuidAndGroupId(
212                    java.lang.String uuid, long groupId)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().fetchMBMessageByUuidAndGroupId(uuid, groupId);
215            }
216    
217            /**
218            * Returns the message-boards message with the primary key.
219            *
220            * @param messageId the primary key of the message-boards message
221            * @return the message-boards message
222            * @throws PortalException if a message-boards message 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.MBMessage getMBMessage(
226                    long messageId)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    return getService().getMBMessage(messageId);
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 message with the matching UUID and company.
241            *
242            * @param uuid the message-boards message's UUID
243            * @param companyId the primary key of the company
244            * @return the matching message-boards message
245            * @throws PortalException if a matching message-boards message could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public static com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndCompanyId(
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().getMBMessageByUuidAndCompanyId(uuid, companyId);
253            }
254    
255            /**
256            * Returns the message-boards message matching the UUID and group.
257            *
258            * @param uuid the message-boards message's UUID
259            * @param groupId the primary key of the group
260            * @return the matching message-boards message
261            * @throws PortalException if a matching message-boards message could not be found
262            * @throws SystemException if a system exception occurred
263            */
264            public static com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
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().getMBMessageByUuidAndGroupId(uuid, groupId);
269            }
270    
271            /**
272            * Returns a range of all the message-boards messages.
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.MBMessageModelImpl}. 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 messages
279            * @param end the upper bound of the range of message-boards messages (not inclusive)
280            * @return the range of message-boards messages
281            * @throws SystemException if a system exception occurred
282            */
283            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
284                    int start, int end)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return getService().getMBMessages(start, end);
287            }
288    
289            /**
290            * Returns the number of message-boards messages.
291            *
292            * @return the number of message-boards messages
293            * @throws SystemException if a system exception occurred
294            */
295            public static int getMBMessagesCount()
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return getService().getMBMessagesCount();
298            }
299    
300            /**
301            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
302            *
303            * @param mbMessage the message-boards message
304            * @return the message-boards message that was updated
305            * @throws SystemException if a system exception occurred
306            */
307            public static com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
308                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return getService().updateMBMessage(mbMessage);
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.MBMessage addDiscussionMessage(
332                    long userId, java.lang.String userName, long groupId,
333                    java.lang.String className, long classPK, int workflowAction)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    return getService()
337                                       .addDiscussionMessage(userId, userName, groupId, className,
338                            classPK, workflowAction);
339            }
340    
341            public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
342                    long userId, java.lang.String userName, long groupId,
343                    java.lang.String className, long classPK, long threadId,
344                    long parentMessageId, java.lang.String subject, java.lang.String body,
345                    com.liferay.portal.service.ServiceContext serviceContext)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    return getService()
349                                       .addDiscussionMessage(userId, userName, groupId, className,
350                            classPK, threadId, parentMessageId, subject, body, serviceContext);
351            }
352    
353            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
354                    long userId, java.lang.String userName, long groupId, long categoryId,
355                    long threadId, long parentMessageId, java.lang.String subject,
356                    java.lang.String body, java.lang.String format,
357                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
358                    boolean anonymous, double priority, boolean allowPingbacks,
359                    com.liferay.portal.service.ServiceContext serviceContext)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    return getService()
363                                       .addMessage(userId, userName, groupId, categoryId, threadId,
364                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
365                            priority, allowPingbacks, serviceContext);
366            }
367    
368            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
369                    long userId, java.lang.String userName, long groupId, long categoryId,
370                    java.lang.String subject, java.lang.String body,
371                    java.lang.String format,
372                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
373                    boolean anonymous, double priority, boolean allowPingbacks,
374                    com.liferay.portal.service.ServiceContext serviceContext)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return getService()
378                                       .addMessage(userId, userName, groupId, categoryId, subject,
379                            body, format, inputStreamOVPs, anonymous, priority, allowPingbacks,
380                            serviceContext);
381            }
382    
383            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
384                    long userId, java.lang.String userName, long categoryId,
385                    java.lang.String subject, java.lang.String body,
386                    com.liferay.portal.service.ServiceContext serviceContext)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    return getService()
390                                       .addMessage(userId, userName, categoryId, subject, body,
391                            serviceContext);
392            }
393    
394            public static void addMessageResources(long messageId,
395                    boolean addGroupPermissions, boolean addGuestPermissions)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    getService()
399                            .addMessageResources(messageId, addGroupPermissions,
400                            addGuestPermissions);
401            }
402    
403            public static void addMessageResources(long messageId,
404                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    getService()
408                            .addMessageResources(messageId, groupPermissions, guestPermissions);
409            }
410    
411            public static void addMessageResources(
412                    com.liferay.portlet.messageboards.model.MBMessage message,
413                    boolean addGroupPermissions, boolean addGuestPermissions)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    getService()
417                            .addMessageResources(message, addGroupPermissions,
418                            addGuestPermissions);
419            }
420    
421            public static void addMessageResources(
422                    com.liferay.portlet.messageboards.model.MBMessage message,
423                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    getService()
427                            .addMessageResources(message, groupPermissions, guestPermissions);
428            }
429    
430            public static com.liferay.portlet.messageboards.model.MBMessage deleteDiscussionMessage(
431                    long messageId)
432                    throws com.liferay.portal.kernel.exception.PortalException,
433                            com.liferay.portal.kernel.exception.SystemException {
434                    return getService().deleteDiscussionMessage(messageId);
435            }
436    
437            public static void deleteDiscussionMessages(java.lang.String className,
438                    long classPK)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    getService().deleteDiscussionMessages(className, classPK);
442            }
443    
444            public static com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
445                    long messageId)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    return getService().deleteMessage(messageId);
449            }
450    
451            public static com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
452                    com.liferay.portlet.messageboards.model.MBMessage message)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return getService().deleteMessage(message);
456            }
457    
458            public static void deleteMessageAttachment(long messageId,
459                    java.lang.String fileName)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    getService().deleteMessageAttachment(messageId, fileName);
463            }
464    
465            public static void deleteMessageAttachments(long messageId)
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    getService().deleteMessageAttachments(messageId);
469            }
470    
471            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
472                    long groupId, long categoryId, int status, int start, int end)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getService()
475                                       .getCategoryMessages(groupId, categoryId, status, start, end);
476            }
477    
478            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
479                    long groupId, long categoryId, int status, int start, int end,
480                    com.liferay.portal.kernel.util.OrderByComparator obc)
481                    throws com.liferay.portal.kernel.exception.SystemException {
482                    return getService()
483                                       .getCategoryMessages(groupId, categoryId, status, start,
484                            end, obc);
485            }
486    
487            public static int getCategoryMessagesCount(long groupId, long categoryId,
488                    int status) throws com.liferay.portal.kernel.exception.SystemException {
489                    return getService().getCategoryMessagesCount(groupId, categoryId, status);
490            }
491    
492            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
493                    long companyId, int status, int start, int end)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    return getService().getCompanyMessages(companyId, status, start, end);
496            }
497    
498            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
499                    long companyId, int status, int start, int end,
500                    com.liferay.portal.kernel.util.OrderByComparator obc)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getService()
503                                       .getCompanyMessages(companyId, status, start, end, obc);
504            }
505    
506            public static int getCompanyMessagesCount(long companyId, int status)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return getService().getCompanyMessagesCount(companyId, status);
509            }
510    
511            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
512                    long userId, long groupId, java.lang.String className, long classPK,
513                    int status)
514                    throws com.liferay.portal.kernel.exception.PortalException,
515                            com.liferay.portal.kernel.exception.SystemException {
516                    return getService()
517                                       .getDiscussionMessageDisplay(userId, groupId, className,
518                            classPK, status);
519            }
520    
521            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
522                    long userId, long groupId, java.lang.String className, long classPK,
523                    int status, java.lang.String threadView)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    return getService()
527                                       .getDiscussionMessageDisplay(userId, groupId, className,
528                            classPK, status, threadView);
529            }
530    
531            public static int getDiscussionMessagesCount(long classNameId,
532                    long classPK, int status)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getService()
535                                       .getDiscussionMessagesCount(classNameId, classPK, status);
536            }
537    
538            public static int getDiscussionMessagesCount(java.lang.String className,
539                    long classPK, int status)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getService()
542                                       .getDiscussionMessagesCount(className, classPK, status);
543            }
544    
545            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
546                    java.lang.String className)
547                    throws com.liferay.portal.kernel.exception.SystemException {
548                    return getService().getDiscussions(className);
549            }
550    
551            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
552                    long groupId, int status, int start, int end)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    return getService().getGroupMessages(groupId, status, start, end);
555            }
556    
557            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
558                    long groupId, int status, int start, int end,
559                    com.liferay.portal.kernel.util.OrderByComparator obc)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    return getService().getGroupMessages(groupId, status, start, end, obc);
562            }
563    
564            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
565                    long groupId, long userId, int status, int start, int end)
566                    throws com.liferay.portal.kernel.exception.SystemException {
567                    return getService().getGroupMessages(groupId, userId, status, start, end);
568            }
569    
570            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
571                    long groupId, long userId, int status, int start, int end,
572                    com.liferay.portal.kernel.util.OrderByComparator obc)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getService()
575                                       .getGroupMessages(groupId, userId, status, start, end, obc);
576            }
577    
578            public static int getGroupMessagesCount(long groupId, int status)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    return getService().getGroupMessagesCount(groupId, status);
581            }
582    
583            public static int getGroupMessagesCount(long groupId, long userId,
584                    int status) throws com.liferay.portal.kernel.exception.SystemException {
585                    return getService().getGroupMessagesCount(groupId, userId, status);
586            }
587    
588            public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
589                    long messageId)
590                    throws com.liferay.portal.kernel.exception.PortalException,
591                            com.liferay.portal.kernel.exception.SystemException {
592                    return getService().getMessage(messageId);
593            }
594    
595            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
596                    long userId, long messageId, int status, java.lang.String threadView,
597                    boolean includePrevAndNext)
598                    throws com.liferay.portal.kernel.exception.PortalException,
599                            com.liferay.portal.kernel.exception.SystemException {
600                    return getService()
601                                       .getMessageDisplay(userId, messageId, status, threadView,
602                            includePrevAndNext);
603            }
604    
605            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
606                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
607                    int status, java.lang.String threadView, boolean includePrevAndNext)
608                    throws com.liferay.portal.kernel.exception.PortalException,
609                            com.liferay.portal.kernel.exception.SystemException {
610                    return getService()
611                                       .getMessageDisplay(userId, message, status, threadView,
612                            includePrevAndNext);
613            }
614    
615            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
616                    java.lang.String className, long classPK, int status)
617                    throws com.liferay.portal.kernel.exception.SystemException {
618                    return getService().getMessages(className, classPK, status);
619            }
620    
621            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return getService().getNoAssetMessages();
624            }
625    
626            public static int getPositionInThread(long messageId)
627                    throws com.liferay.portal.kernel.exception.PortalException,
628                            com.liferay.portal.kernel.exception.SystemException {
629                    return getService().getPositionInThread(messageId);
630            }
631    
632            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
633                    long threadId, int status)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getService().getThreadMessages(threadId, status);
636            }
637    
638            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
639                    long threadId, int status,
640                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getService().getThreadMessages(threadId, status, comparator);
643            }
644    
645            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
646                    long threadId, int status, int start, int end)
647                    throws com.liferay.portal.kernel.exception.SystemException {
648                    return getService().getThreadMessages(threadId, status, start, end);
649            }
650    
651            public static int getThreadMessagesCount(long threadId, int status)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getService().getThreadMessagesCount(threadId, status);
654            }
655    
656            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
657                    long threadId, int status, int start, int end)
658                    throws com.liferay.portal.kernel.exception.SystemException {
659                    return getService()
660                                       .getThreadRepliesMessages(threadId, status, start, end);
661            }
662    
663            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
664                    long userId, long classNameId, long classPK, int status, int start,
665                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
666                    throws com.liferay.portal.kernel.exception.SystemException {
667                    return getService()
668                                       .getUserDiscussionMessages(userId, classNameId, classPK,
669                            status, start, end, obc);
670            }
671    
672            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
673                    long userId, long[] classNameIds, int status, int start, int end,
674                    com.liferay.portal.kernel.util.OrderByComparator obc)
675                    throws com.liferay.portal.kernel.exception.SystemException {
676                    return getService()
677                                       .getUserDiscussionMessages(userId, classNameIds, status,
678                            start, end, obc);
679            }
680    
681            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
682                    long userId, java.lang.String className, long classPK, int status,
683                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
684                    throws com.liferay.portal.kernel.exception.SystemException {
685                    return getService()
686                                       .getUserDiscussionMessages(userId, className, classPK,
687                            status, start, end, obc);
688            }
689    
690            public static int getUserDiscussionMessagesCount(long userId,
691                    long classNameId, long classPK, int status)
692                    throws com.liferay.portal.kernel.exception.SystemException {
693                    return getService()
694                                       .getUserDiscussionMessagesCount(userId, classNameId,
695                            classPK, status);
696            }
697    
698            public static int getUserDiscussionMessagesCount(long userId,
699                    long[] classNameIds, int status)
700                    throws com.liferay.portal.kernel.exception.SystemException {
701                    return getService()
702                                       .getUserDiscussionMessagesCount(userId, classNameIds, status);
703            }
704    
705            public static int getUserDiscussionMessagesCount(long userId,
706                    java.lang.String className, long classPK, int status)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return getService()
709                                       .getUserDiscussionMessagesCount(userId, className, classPK,
710                            status);
711            }
712    
713            public static long moveMessageAttachmentToTrash(long userId,
714                    long messageId, java.lang.String fileName)
715                    throws com.liferay.portal.kernel.exception.PortalException,
716                            com.liferay.portal.kernel.exception.SystemException {
717                    return getService()
718                                       .moveMessageAttachmentToTrash(userId, messageId, fileName);
719            }
720    
721            public static void restoreMessageAttachmentFromTrash(long userId,
722                    long messageId, java.lang.String deletedFileName)
723                    throws com.liferay.portal.kernel.exception.PortalException,
724                            com.liferay.portal.kernel.exception.SystemException {
725                    getService()
726                            .restoreMessageAttachmentFromTrash(userId, messageId,
727                            deletedFileName);
728            }
729    
730            public static void subscribeMessage(long userId, long messageId)
731                    throws com.liferay.portal.kernel.exception.PortalException,
732                            com.liferay.portal.kernel.exception.SystemException {
733                    getService().subscribeMessage(userId, messageId);
734            }
735    
736            public static void unsubscribeMessage(long userId, long messageId)
737                    throws com.liferay.portal.kernel.exception.PortalException,
738                            com.liferay.portal.kernel.exception.SystemException {
739                    getService().unsubscribeMessage(userId, messageId);
740            }
741    
742            public static void updateAnswer(long messageId, boolean answer,
743                    boolean cascade)
744                    throws com.liferay.portal.kernel.exception.PortalException,
745                            com.liferay.portal.kernel.exception.SystemException {
746                    getService().updateAnswer(messageId, answer, cascade);
747            }
748    
749            public static void updateAnswer(
750                    com.liferay.portlet.messageboards.model.MBMessage message,
751                    boolean answer, boolean cascade)
752                    throws com.liferay.portal.kernel.exception.PortalException,
753                            com.liferay.portal.kernel.exception.SystemException {
754                    getService().updateAnswer(message, answer, cascade);
755            }
756    
757            public static void updateAsset(long userId,
758                    com.liferay.portlet.messageboards.model.MBMessage message,
759                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
760                    long[] assetLinkEntryIds)
761                    throws com.liferay.portal.kernel.exception.PortalException,
762                            com.liferay.portal.kernel.exception.SystemException {
763                    getService()
764                            .updateAsset(userId, message, assetCategoryIds, assetTagNames,
765                            assetLinkEntryIds);
766            }
767    
768            public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
769                    long userId, long messageId, java.lang.String className, long classPK,
770                    java.lang.String subject, java.lang.String body,
771                    com.liferay.portal.service.ServiceContext serviceContext)
772                    throws com.liferay.portal.kernel.exception.PortalException,
773                            com.liferay.portal.kernel.exception.SystemException {
774                    return getService()
775                                       .updateDiscussionMessage(userId, messageId, className,
776                            classPK, subject, body, serviceContext);
777            }
778    
779            public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
780                    long userId, long messageId, java.lang.String subject,
781                    java.lang.String body,
782                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
783                    java.util.List<java.lang.String> existingFiles, double priority,
784                    boolean allowPingbacks,
785                    com.liferay.portal.service.ServiceContext serviceContext)
786                    throws com.liferay.portal.kernel.exception.PortalException,
787                            com.liferay.portal.kernel.exception.SystemException {
788                    return getService()
789                                       .updateMessage(userId, messageId, subject, body,
790                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
791                            serviceContext);
792            }
793    
794            public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
795                    long messageId, java.lang.String body)
796                    throws com.liferay.portal.kernel.exception.PortalException,
797                            com.liferay.portal.kernel.exception.SystemException {
798                    return getService().updateMessage(messageId, body);
799            }
800    
801            public static com.liferay.portlet.messageboards.model.MBMessage updateStatus(
802                    long userId, long messageId, int status,
803                    com.liferay.portal.service.ServiceContext serviceContext)
804                    throws com.liferay.portal.kernel.exception.PortalException,
805                            com.liferay.portal.kernel.exception.SystemException {
806                    return getService()
807                                       .updateStatus(userId, messageId, status, serviceContext);
808            }
809    
810            public static void updateUserName(long userId, java.lang.String userName)
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    getService().updateUserName(userId, userName);
813            }
814    
815            public static MBMessageLocalService getService() {
816                    if (_service == null) {
817                            _service = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName());
818    
819                            ReferenceRegistry.registerReference(MBMessageLocalServiceUtil.class,
820                                    "_service");
821                    }
822    
823                    return _service;
824            }
825    
826            /**
827             * @deprecated As of 6.2.0
828             */
829            public void setService(MBMessageLocalService service) {
830            }
831    
832            private static MBMessageLocalService _service;
833    }