001
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
033 public class MBMessageLocalServiceUtil {
034
039
040
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
059 public static com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
060 long messageId) {
061 return getService().createMBMessage(messageId);
062 }
063
064
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
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
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
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
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
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
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
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
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
235 public static int getMBMessagesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getMBMessagesCount();
238 }
239
240
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
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
272 long userId, java.lang.String userName, long groupId,
273 java.lang.String className, long classPK, int workflowAction)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 return getService()
277 .addDiscussionMessage(userId, userName, groupId, className,
278 classPK, workflowAction);
279 }
280
281 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
282 long userId, java.lang.String userName, long groupId,
283 java.lang.String className, long classPK, long threadId,
284 long parentMessageId, java.lang.String subject, java.lang.String body,
285 com.liferay.portal.service.ServiceContext serviceContext)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException {
288 return getService()
289 .addDiscussionMessage(userId, userName, groupId, className,
290 classPK, threadId, parentMessageId, subject, body, serviceContext);
291 }
292
293 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
294 long userId, java.lang.String userName, long groupId, long categoryId,
295 long threadId, long parentMessageId, java.lang.String subject,
296 java.lang.String body, java.lang.String format,
297 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
298 boolean anonymous, double priority, boolean allowPingbacks,
299 com.liferay.portal.service.ServiceContext serviceContext)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException {
302 return getService()
303 .addMessage(userId, userName, groupId, categoryId, threadId,
304 parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
305 priority, allowPingbacks, 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 java.lang.String subject, java.lang.String body,
311 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, subject,
319 body, format, inputStreamOVPs, anonymous, priority, allowPingbacks,
320 serviceContext);
321 }
322
323 public static void addMessageResources(long messageId,
324 boolean addGroupPermissions, boolean addGuestPermissions)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 getService()
328 .addMessageResources(messageId, addGroupPermissions,
329 addGuestPermissions);
330 }
331
332 public static void addMessageResources(long messageId,
333 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException {
336 getService()
337 .addMessageResources(messageId, groupPermissions, guestPermissions);
338 }
339
340 public static void addMessageResources(
341 com.liferay.portlet.messageboards.model.MBMessage message,
342 boolean addGroupPermissions, boolean addGuestPermissions)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 getService()
346 .addMessageResources(message, addGroupPermissions,
347 addGuestPermissions);
348 }
349
350 public static void addMessageResources(
351 com.liferay.portlet.messageboards.model.MBMessage message,
352 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException {
355 getService()
356 .addMessageResources(message, groupPermissions, guestPermissions);
357 }
358
359 public static com.liferay.portlet.messageboards.model.MBMessage deleteDiscussionMessage(
360 long messageId)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 return getService().deleteDiscussionMessage(messageId);
364 }
365
366 public static void deleteDiscussionMessages(java.lang.String className,
367 long classPK)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException {
370 getService().deleteDiscussionMessages(className, classPK);
371 }
372
373 public static com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
374 long messageId)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException {
377 return getService().deleteMessage(messageId);
378 }
379
380 public static com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
381 com.liferay.portlet.messageboards.model.MBMessage message)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException {
384 return getService().deleteMessage(message);
385 }
386
387 public static void deleteMessageAttachment(long messageId,
388 java.lang.String fileName)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException {
391 getService().deleteMessageAttachment(messageId, fileName);
392 }
393
394 public static void deleteMessageAttachments(long messageId)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException {
397 getService().deleteMessageAttachments(messageId);
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 moveMessageAttachmentFromTrash(long messageId,
643 java.lang.String deletedFileName)
644 throws com.liferay.portal.kernel.exception.PortalException,
645 com.liferay.portal.kernel.exception.SystemException {
646 getService().moveMessageAttachmentFromTrash(messageId, deletedFileName);
647 }
648
649 public static java.lang.String moveMessageAttachmentToTrash(
650 long messageId, java.lang.String fileName)
651 throws com.liferay.portal.kernel.exception.PortalException,
652 com.liferay.portal.kernel.exception.SystemException {
653 return getService().moveMessageAttachmentToTrash(messageId, fileName);
654 }
655
656 public static void subscribeMessage(long userId, long messageId)
657 throws com.liferay.portal.kernel.exception.PortalException,
658 com.liferay.portal.kernel.exception.SystemException {
659 getService().subscribeMessage(userId, messageId);
660 }
661
662 public static void unsubscribeMessage(long userId, long messageId)
663 throws com.liferay.portal.kernel.exception.PortalException,
664 com.liferay.portal.kernel.exception.SystemException {
665 getService().unsubscribeMessage(userId, messageId);
666 }
667
668 public static void updateAnswer(long messageId, boolean answer,
669 boolean cascade)
670 throws com.liferay.portal.kernel.exception.PortalException,
671 com.liferay.portal.kernel.exception.SystemException {
672 getService().updateAnswer(messageId, answer, cascade);
673 }
674
675 public static void updateAnswer(
676 com.liferay.portlet.messageboards.model.MBMessage message,
677 boolean answer, boolean cascade)
678 throws com.liferay.portal.kernel.exception.PortalException,
679 com.liferay.portal.kernel.exception.SystemException {
680 getService().updateAnswer(message, answer, cascade);
681 }
682
683 public static void updateAsset(long userId,
684 com.liferay.portlet.messageboards.model.MBMessage message,
685 long[] assetCategoryIds, java.lang.String[] assetTagNames,
686 long[] assetLinkEntryIds)
687 throws com.liferay.portal.kernel.exception.PortalException,
688 com.liferay.portal.kernel.exception.SystemException {
689 getService()
690 .updateAsset(userId, message, assetCategoryIds, assetTagNames,
691 assetLinkEntryIds);
692 }
693
694 public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
695 long userId, long messageId, java.lang.String className, long classPK,
696 java.lang.String subject, java.lang.String body,
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 .updateDiscussionMessage(userId, messageId, className,
702 classPK, subject, body, serviceContext);
703 }
704
705 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
706 long userId, long messageId, java.lang.String subject,
707 java.lang.String body,
708 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
709 java.util.List<java.lang.String> existingFiles, double priority,
710 boolean allowPingbacks,
711 com.liferay.portal.service.ServiceContext serviceContext)
712 throws com.liferay.portal.kernel.exception.PortalException,
713 com.liferay.portal.kernel.exception.SystemException {
714 return getService()
715 .updateMessage(userId, messageId, subject, body,
716 inputStreamOVPs, existingFiles, priority, allowPingbacks,
717 serviceContext);
718 }
719
720 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
721 long messageId, java.lang.String body)
722 throws com.liferay.portal.kernel.exception.PortalException,
723 com.liferay.portal.kernel.exception.SystemException {
724 return getService().updateMessage(messageId, body);
725 }
726
727 public static com.liferay.portlet.messageboards.model.MBMessage updateStatus(
728 long userId, long messageId, int status,
729 com.liferay.portal.service.ServiceContext serviceContext)
730 throws com.liferay.portal.kernel.exception.PortalException,
731 com.liferay.portal.kernel.exception.SystemException {
732 return getService()
733 .updateStatus(userId, messageId, status, serviceContext);
734 }
735
736 public static void updateUserName(long userId, java.lang.String userName)
737 throws com.liferay.portal.kernel.exception.SystemException {
738 getService().updateUserName(userId, userName);
739 }
740
741 public static MBMessageLocalService getService() {
742 if (_service == null) {
743 _service = (MBMessageLocalService)PortalBeanLocatorUtil.locate(MBMessageLocalService.class.getName());
744
745 ReferenceRegistry.registerReference(MBMessageLocalServiceUtil.class,
746 "_service");
747 }
748
749 return _service;
750 }
751
752
755 public void setService(MBMessageLocalService service) {
756 }
757
758 private static MBMessageLocalService _service;
759 }