1
22
23 package com.liferay.portlet.messageboards.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.kernel.util.BooleanWrapper;
28 import com.liferay.portal.kernel.util.DoubleWrapper;
29 import com.liferay.portal.kernel.util.IntegerWrapper;
30 import com.liferay.portal.kernel.util.LongWrapper;
31 import com.liferay.portal.kernel.util.MethodWrapper;
32 import com.liferay.portal.kernel.util.NullWrapper;
33 import com.liferay.portal.security.auth.HttpPrincipal;
34 import com.liferay.portal.service.http.TunnelUtil;
35
36 import com.liferay.portlet.messageboards.service.MBMessageServiceUtil;
37
38
77 public class MBMessageServiceHttp {
78 public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
79 HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
80 long classPK, long threadId, long parentMessageId,
81 java.lang.String subject, java.lang.String body,
82 com.liferay.portal.theme.ThemeDisplay themeDisplay)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException {
85 try {
86 Object paramObj0 = new LongWrapper(groupId);
87
88 Object paramObj1 = className;
89
90 if (className == null) {
91 paramObj1 = new NullWrapper("java.lang.String");
92 }
93
94 Object paramObj2 = new LongWrapper(classPK);
95
96 Object paramObj3 = new LongWrapper(threadId);
97
98 Object paramObj4 = new LongWrapper(parentMessageId);
99
100 Object paramObj5 = subject;
101
102 if (subject == null) {
103 paramObj5 = new NullWrapper("java.lang.String");
104 }
105
106 Object paramObj6 = body;
107
108 if (body == null) {
109 paramObj6 = new NullWrapper("java.lang.String");
110 }
111
112 Object paramObj7 = themeDisplay;
113
114 if (themeDisplay == null) {
115 paramObj7 = new NullWrapper(
116 "com.liferay.portal.theme.ThemeDisplay");
117 }
118
119 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
120 "addDiscussionMessage",
121 new Object[] {
122 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
123 paramObj5, paramObj6, paramObj7
124 });
125
126 Object returnObj = null;
127
128 try {
129 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
130 }
131 catch (Exception e) {
132 if (e instanceof com.liferay.portal.SystemException) {
133 throw (com.liferay.portal.SystemException)e;
134 }
135
136 if (e instanceof com.liferay.portal.PortalException) {
137 throw (com.liferay.portal.PortalException)e;
138 }
139
140 throw new com.liferay.portal.SystemException(e);
141 }
142
143 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
144 }
145 catch (com.liferay.portal.SystemException se) {
146 _log.error(se, se);
147
148 throw se;
149 }
150 }
151
152 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
153 HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
154 java.lang.String body, java.util.List files, boolean anonymous,
155 double priority, java.lang.String[] tagsEntries,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portal.PortalException {
159 try {
160 Object paramObj0 = new LongWrapper(categoryId);
161
162 Object paramObj1 = subject;
163
164 if (subject == null) {
165 paramObj1 = new NullWrapper("java.lang.String");
166 }
167
168 Object paramObj2 = body;
169
170 if (body == null) {
171 paramObj2 = new NullWrapper("java.lang.String");
172 }
173
174 Object paramObj3 = files;
175
176 if (files == null) {
177 paramObj3 = new NullWrapper("java.util.List");
178 }
179
180 Object paramObj4 = new BooleanWrapper(anonymous);
181
182 Object paramObj5 = new DoubleWrapper(priority);
183
184 Object paramObj6 = tagsEntries;
185
186 if (tagsEntries == null) {
187 paramObj6 = new NullWrapper("[Ljava.lang.String;");
188 }
189
190 Object paramObj7 = new BooleanWrapper(addCommunityPermissions);
191
192 Object paramObj8 = new BooleanWrapper(addGuestPermissions);
193
194 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
195 "addMessage",
196 new Object[] {
197 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
198 paramObj5, paramObj6, paramObj7, paramObj8
199 });
200
201 Object returnObj = null;
202
203 try {
204 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
205 }
206 catch (Exception e) {
207 if (e instanceof com.liferay.portal.SystemException) {
208 throw (com.liferay.portal.SystemException)e;
209 }
210
211 if (e instanceof com.liferay.portal.PortalException) {
212 throw (com.liferay.portal.PortalException)e;
213 }
214
215 throw new com.liferay.portal.SystemException(e);
216 }
217
218 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
219 }
220 catch (com.liferay.portal.SystemException se) {
221 _log.error(se, se);
222
223 throw se;
224 }
225 }
226
227 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
228 HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
229 java.lang.String body, java.util.List files, boolean anonymous,
230 double priority, java.lang.String[] tagsEntries,
231 java.lang.String[] communityPermissions,
232 java.lang.String[] guestPermissions)
233 throws com.liferay.portal.SystemException,
234 com.liferay.portal.PortalException {
235 try {
236 Object paramObj0 = new LongWrapper(categoryId);
237
238 Object paramObj1 = subject;
239
240 if (subject == null) {
241 paramObj1 = new NullWrapper("java.lang.String");
242 }
243
244 Object paramObj2 = body;
245
246 if (body == null) {
247 paramObj2 = new NullWrapper("java.lang.String");
248 }
249
250 Object paramObj3 = files;
251
252 if (files == null) {
253 paramObj3 = new NullWrapper("java.util.List");
254 }
255
256 Object paramObj4 = new BooleanWrapper(anonymous);
257
258 Object paramObj5 = new DoubleWrapper(priority);
259
260 Object paramObj6 = tagsEntries;
261
262 if (tagsEntries == null) {
263 paramObj6 = new NullWrapper("[Ljava.lang.String;");
264 }
265
266 Object paramObj7 = communityPermissions;
267
268 if (communityPermissions == null) {
269 paramObj7 = new NullWrapper("[Ljava.lang.String;");
270 }
271
272 Object paramObj8 = guestPermissions;
273
274 if (guestPermissions == null) {
275 paramObj8 = new NullWrapper("[Ljava.lang.String;");
276 }
277
278 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
279 "addMessage",
280 new Object[] {
281 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
282 paramObj5, paramObj6, paramObj7, paramObj8
283 });
284
285 Object returnObj = null;
286
287 try {
288 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
289 }
290 catch (Exception e) {
291 if (e instanceof com.liferay.portal.SystemException) {
292 throw (com.liferay.portal.SystemException)e;
293 }
294
295 if (e instanceof com.liferay.portal.PortalException) {
296 throw (com.liferay.portal.PortalException)e;
297 }
298
299 throw new com.liferay.portal.SystemException(e);
300 }
301
302 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
303 }
304 catch (com.liferay.portal.SystemException se) {
305 _log.error(se, se);
306
307 throw se;
308 }
309 }
310
311 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
312 HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
313 java.lang.String body, java.util.List files, boolean anonymous,
314 double priority, java.lang.String[] tagsEntries,
315 javax.portlet.PortletPreferences prefs,
316 boolean addCommunityPermissions, boolean addGuestPermissions,
317 com.liferay.portal.theme.ThemeDisplay themeDisplay)
318 throws com.liferay.portal.SystemException,
319 com.liferay.portal.PortalException {
320 try {
321 Object paramObj0 = new LongWrapper(categoryId);
322
323 Object paramObj1 = subject;
324
325 if (subject == null) {
326 paramObj1 = new NullWrapper("java.lang.String");
327 }
328
329 Object paramObj2 = body;
330
331 if (body == null) {
332 paramObj2 = new NullWrapper("java.lang.String");
333 }
334
335 Object paramObj3 = files;
336
337 if (files == null) {
338 paramObj3 = new NullWrapper("java.util.List");
339 }
340
341 Object paramObj4 = new BooleanWrapper(anonymous);
342
343 Object paramObj5 = new DoubleWrapper(priority);
344
345 Object paramObj6 = tagsEntries;
346
347 if (tagsEntries == null) {
348 paramObj6 = new NullWrapper("[Ljava.lang.String;");
349 }
350
351 Object paramObj7 = prefs;
352
353 if (prefs == null) {
354 paramObj7 = new NullWrapper("javax.portlet.PortletPreferences");
355 }
356
357 Object paramObj8 = new BooleanWrapper(addCommunityPermissions);
358
359 Object paramObj9 = new BooleanWrapper(addGuestPermissions);
360
361 Object paramObj10 = themeDisplay;
362
363 if (themeDisplay == null) {
364 paramObj10 = new NullWrapper(
365 "com.liferay.portal.theme.ThemeDisplay");
366 }
367
368 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
369 "addMessage",
370 new Object[] {
371 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
372 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
373 paramObj10
374 });
375
376 Object returnObj = null;
377
378 try {
379 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
380 }
381 catch (Exception e) {
382 if (e instanceof com.liferay.portal.SystemException) {
383 throw (com.liferay.portal.SystemException)e;
384 }
385
386 if (e instanceof com.liferay.portal.PortalException) {
387 throw (com.liferay.portal.PortalException)e;
388 }
389
390 throw new com.liferay.portal.SystemException(e);
391 }
392
393 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
394 }
395 catch (com.liferay.portal.SystemException se) {
396 _log.error(se, se);
397
398 throw se;
399 }
400 }
401
402 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
403 HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
404 java.lang.String body, java.util.List files, boolean anonymous,
405 double priority, java.lang.String[] tagsEntries,
406 javax.portlet.PortletPreferences prefs,
407 java.lang.String[] communityPermissions,
408 java.lang.String[] guestPermissions,
409 com.liferay.portal.theme.ThemeDisplay themeDisplay)
410 throws com.liferay.portal.SystemException,
411 com.liferay.portal.PortalException {
412 try {
413 Object paramObj0 = new LongWrapper(categoryId);
414
415 Object paramObj1 = subject;
416
417 if (subject == null) {
418 paramObj1 = new NullWrapper("java.lang.String");
419 }
420
421 Object paramObj2 = body;
422
423 if (body == null) {
424 paramObj2 = new NullWrapper("java.lang.String");
425 }
426
427 Object paramObj3 = files;
428
429 if (files == null) {
430 paramObj3 = new NullWrapper("java.util.List");
431 }
432
433 Object paramObj4 = new BooleanWrapper(anonymous);
434
435 Object paramObj5 = new DoubleWrapper(priority);
436
437 Object paramObj6 = tagsEntries;
438
439 if (tagsEntries == null) {
440 paramObj6 = new NullWrapper("[Ljava.lang.String;");
441 }
442
443 Object paramObj7 = prefs;
444
445 if (prefs == null) {
446 paramObj7 = new NullWrapper("javax.portlet.PortletPreferences");
447 }
448
449 Object paramObj8 = communityPermissions;
450
451 if (communityPermissions == null) {
452 paramObj8 = new NullWrapper("[Ljava.lang.String;");
453 }
454
455 Object paramObj9 = guestPermissions;
456
457 if (guestPermissions == null) {
458 paramObj9 = new NullWrapper("[Ljava.lang.String;");
459 }
460
461 Object paramObj10 = themeDisplay;
462
463 if (themeDisplay == null) {
464 paramObj10 = new NullWrapper(
465 "com.liferay.portal.theme.ThemeDisplay");
466 }
467
468 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
469 "addMessage",
470 new Object[] {
471 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
472 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
473 paramObj10
474 });
475
476 Object returnObj = null;
477
478 try {
479 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
480 }
481 catch (Exception e) {
482 if (e instanceof com.liferay.portal.SystemException) {
483 throw (com.liferay.portal.SystemException)e;
484 }
485
486 if (e instanceof com.liferay.portal.PortalException) {
487 throw (com.liferay.portal.PortalException)e;
488 }
489
490 throw new com.liferay.portal.SystemException(e);
491 }
492
493 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
494 }
495 catch (com.liferay.portal.SystemException se) {
496 _log.error(se, se);
497
498 throw se;
499 }
500 }
501
502 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
503 HttpPrincipal httpPrincipal, long categoryId, long threadId,
504 long parentMessageId, java.lang.String subject, java.lang.String body,
505 java.util.List files, boolean anonymous, double priority,
506 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
507 boolean addGuestPermissions)
508 throws com.liferay.portal.SystemException,
509 com.liferay.portal.PortalException {
510 try {
511 Object paramObj0 = new LongWrapper(categoryId);
512
513 Object paramObj1 = new LongWrapper(threadId);
514
515 Object paramObj2 = new LongWrapper(parentMessageId);
516
517 Object paramObj3 = subject;
518
519 if (subject == null) {
520 paramObj3 = new NullWrapper("java.lang.String");
521 }
522
523 Object paramObj4 = body;
524
525 if (body == null) {
526 paramObj4 = new NullWrapper("java.lang.String");
527 }
528
529 Object paramObj5 = files;
530
531 if (files == null) {
532 paramObj5 = new NullWrapper("java.util.List");
533 }
534
535 Object paramObj6 = new BooleanWrapper(anonymous);
536
537 Object paramObj7 = new DoubleWrapper(priority);
538
539 Object paramObj8 = tagsEntries;
540
541 if (tagsEntries == null) {
542 paramObj8 = new NullWrapper("[Ljava.lang.String;");
543 }
544
545 Object paramObj9 = new BooleanWrapper(addCommunityPermissions);
546
547 Object paramObj10 = new BooleanWrapper(addGuestPermissions);
548
549 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
550 "addMessage",
551 new Object[] {
552 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
553 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
554 paramObj10
555 });
556
557 Object returnObj = null;
558
559 try {
560 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
561 }
562 catch (Exception e) {
563 if (e instanceof com.liferay.portal.SystemException) {
564 throw (com.liferay.portal.SystemException)e;
565 }
566
567 if (e instanceof com.liferay.portal.PortalException) {
568 throw (com.liferay.portal.PortalException)e;
569 }
570
571 throw new com.liferay.portal.SystemException(e);
572 }
573
574 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
575 }
576 catch (com.liferay.portal.SystemException se) {
577 _log.error(se, se);
578
579 throw se;
580 }
581 }
582
583 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
584 HttpPrincipal httpPrincipal, long categoryId, long threadId,
585 long parentMessageId, java.lang.String subject, java.lang.String body,
586 java.util.List files, boolean anonymous, double priority,
587 java.lang.String[] tagsEntries,
588 java.lang.String[] communityPermissions,
589 java.lang.String[] guestPermissions)
590 throws com.liferay.portal.SystemException,
591 com.liferay.portal.PortalException {
592 try {
593 Object paramObj0 = new LongWrapper(categoryId);
594
595 Object paramObj1 = new LongWrapper(threadId);
596
597 Object paramObj2 = new LongWrapper(parentMessageId);
598
599 Object paramObj3 = subject;
600
601 if (subject == null) {
602 paramObj3 = new NullWrapper("java.lang.String");
603 }
604
605 Object paramObj4 = body;
606
607 if (body == null) {
608 paramObj4 = new NullWrapper("java.lang.String");
609 }
610
611 Object paramObj5 = files;
612
613 if (files == null) {
614 paramObj5 = new NullWrapper("java.util.List");
615 }
616
617 Object paramObj6 = new BooleanWrapper(anonymous);
618
619 Object paramObj7 = new DoubleWrapper(priority);
620
621 Object paramObj8 = tagsEntries;
622
623 if (tagsEntries == null) {
624 paramObj8 = new NullWrapper("[Ljava.lang.String;");
625 }
626
627 Object paramObj9 = communityPermissions;
628
629 if (communityPermissions == null) {
630 paramObj9 = new NullWrapper("[Ljava.lang.String;");
631 }
632
633 Object paramObj10 = guestPermissions;
634
635 if (guestPermissions == null) {
636 paramObj10 = new NullWrapper("[Ljava.lang.String;");
637 }
638
639 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
640 "addMessage",
641 new Object[] {
642 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
643 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
644 paramObj10
645 });
646
647 Object returnObj = null;
648
649 try {
650 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
651 }
652 catch (Exception e) {
653 if (e instanceof com.liferay.portal.SystemException) {
654 throw (com.liferay.portal.SystemException)e;
655 }
656
657 if (e instanceof com.liferay.portal.PortalException) {
658 throw (com.liferay.portal.PortalException)e;
659 }
660
661 throw new com.liferay.portal.SystemException(e);
662 }
663
664 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
665 }
666 catch (com.liferay.portal.SystemException se) {
667 _log.error(se, se);
668
669 throw se;
670 }
671 }
672
673 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
674 HttpPrincipal httpPrincipal, long categoryId, long threadId,
675 long parentMessageId, java.lang.String subject, java.lang.String body,
676 java.util.List files, boolean anonymous, double priority,
677 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
678 boolean addCommunityPermissions, boolean addGuestPermissions,
679 com.liferay.portal.theme.ThemeDisplay themeDisplay)
680 throws com.liferay.portal.SystemException,
681 com.liferay.portal.PortalException {
682 try {
683 Object paramObj0 = new LongWrapper(categoryId);
684
685 Object paramObj1 = new LongWrapper(threadId);
686
687 Object paramObj2 = new LongWrapper(parentMessageId);
688
689 Object paramObj3 = subject;
690
691 if (subject == null) {
692 paramObj3 = new NullWrapper("java.lang.String");
693 }
694
695 Object paramObj4 = body;
696
697 if (body == null) {
698 paramObj4 = new NullWrapper("java.lang.String");
699 }
700
701 Object paramObj5 = files;
702
703 if (files == null) {
704 paramObj5 = new NullWrapper("java.util.List");
705 }
706
707 Object paramObj6 = new BooleanWrapper(anonymous);
708
709 Object paramObj7 = new DoubleWrapper(priority);
710
711 Object paramObj8 = tagsEntries;
712
713 if (tagsEntries == null) {
714 paramObj8 = new NullWrapper("[Ljava.lang.String;");
715 }
716
717 Object paramObj9 = prefs;
718
719 if (prefs == null) {
720 paramObj9 = new NullWrapper("javax.portlet.PortletPreferences");
721 }
722
723 Object paramObj10 = new BooleanWrapper(addCommunityPermissions);
724
725 Object paramObj11 = new BooleanWrapper(addGuestPermissions);
726
727 Object paramObj12 = themeDisplay;
728
729 if (themeDisplay == null) {
730 paramObj12 = new NullWrapper(
731 "com.liferay.portal.theme.ThemeDisplay");
732 }
733
734 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
735 "addMessage",
736 new Object[] {
737 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
738 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
739 paramObj10, paramObj11, paramObj12
740 });
741
742 Object returnObj = null;
743
744 try {
745 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
746 }
747 catch (Exception e) {
748 if (e instanceof com.liferay.portal.SystemException) {
749 throw (com.liferay.portal.SystemException)e;
750 }
751
752 if (e instanceof com.liferay.portal.PortalException) {
753 throw (com.liferay.portal.PortalException)e;
754 }
755
756 throw new com.liferay.portal.SystemException(e);
757 }
758
759 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
760 }
761 catch (com.liferay.portal.SystemException se) {
762 _log.error(se, se);
763
764 throw se;
765 }
766 }
767
768 public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
769 HttpPrincipal httpPrincipal, long categoryId, long threadId,
770 long parentMessageId, java.lang.String subject, java.lang.String body,
771 java.util.List files, boolean anonymous, double priority,
772 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
773 java.lang.String[] communityPermissions,
774 java.lang.String[] guestPermissions,
775 com.liferay.portal.theme.ThemeDisplay themeDisplay)
776 throws com.liferay.portal.SystemException,
777 com.liferay.portal.PortalException {
778 try {
779 Object paramObj0 = new LongWrapper(categoryId);
780
781 Object paramObj1 = new LongWrapper(threadId);
782
783 Object paramObj2 = new LongWrapper(parentMessageId);
784
785 Object paramObj3 = subject;
786
787 if (subject == null) {
788 paramObj3 = new NullWrapper("java.lang.String");
789 }
790
791 Object paramObj4 = body;
792
793 if (body == null) {
794 paramObj4 = new NullWrapper("java.lang.String");
795 }
796
797 Object paramObj5 = files;
798
799 if (files == null) {
800 paramObj5 = new NullWrapper("java.util.List");
801 }
802
803 Object paramObj6 = new BooleanWrapper(anonymous);
804
805 Object paramObj7 = new DoubleWrapper(priority);
806
807 Object paramObj8 = tagsEntries;
808
809 if (tagsEntries == null) {
810 paramObj8 = new NullWrapper("[Ljava.lang.String;");
811 }
812
813 Object paramObj9 = prefs;
814
815 if (prefs == null) {
816 paramObj9 = new NullWrapper("javax.portlet.PortletPreferences");
817 }
818
819 Object paramObj10 = communityPermissions;
820
821 if (communityPermissions == null) {
822 paramObj10 = new NullWrapper("[Ljava.lang.String;");
823 }
824
825 Object paramObj11 = guestPermissions;
826
827 if (guestPermissions == null) {
828 paramObj11 = new NullWrapper("[Ljava.lang.String;");
829 }
830
831 Object paramObj12 = themeDisplay;
832
833 if (themeDisplay == null) {
834 paramObj12 = new NullWrapper(
835 "com.liferay.portal.theme.ThemeDisplay");
836 }
837
838 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
839 "addMessage",
840 new Object[] {
841 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
842 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
843 paramObj10, paramObj11, paramObj12
844 });
845
846 Object returnObj = null;
847
848 try {
849 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
850 }
851 catch (Exception e) {
852 if (e instanceof com.liferay.portal.SystemException) {
853 throw (com.liferay.portal.SystemException)e;
854 }
855
856 if (e instanceof com.liferay.portal.PortalException) {
857 throw (com.liferay.portal.PortalException)e;
858 }
859
860 throw new com.liferay.portal.SystemException(e);
861 }
862
863 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
864 }
865 catch (com.liferay.portal.SystemException se) {
866 _log.error(se, se);
867
868 throw se;
869 }
870 }
871
872 public static void deleteDiscussionMessage(HttpPrincipal httpPrincipal,
873 long groupId, java.lang.String className, long classPK, long messageId)
874 throws com.liferay.portal.SystemException,
875 com.liferay.portal.PortalException {
876 try {
877 Object paramObj0 = new LongWrapper(groupId);
878
879 Object paramObj1 = className;
880
881 if (className == null) {
882 paramObj1 = new NullWrapper("java.lang.String");
883 }
884
885 Object paramObj2 = new LongWrapper(classPK);
886
887 Object paramObj3 = new LongWrapper(messageId);
888
889 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
890 "deleteDiscussionMessage",
891 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
892
893 try {
894 TunnelUtil.invoke(httpPrincipal, methodWrapper);
895 }
896 catch (Exception e) {
897 if (e instanceof com.liferay.portal.SystemException) {
898 throw (com.liferay.portal.SystemException)e;
899 }
900
901 if (e instanceof com.liferay.portal.PortalException) {
902 throw (com.liferay.portal.PortalException)e;
903 }
904
905 throw new com.liferay.portal.SystemException(e);
906 }
907 }
908 catch (com.liferay.portal.SystemException se) {
909 _log.error(se, se);
910
911 throw se;
912 }
913 }
914
915 public static void deleteMessage(HttpPrincipal httpPrincipal, long messageId)
916 throws com.liferay.portal.SystemException,
917 com.liferay.portal.PortalException {
918 try {
919 Object paramObj0 = new LongWrapper(messageId);
920
921 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
922 "deleteMessage", new Object[] { paramObj0 });
923
924 try {
925 TunnelUtil.invoke(httpPrincipal, methodWrapper);
926 }
927 catch (Exception e) {
928 if (e instanceof com.liferay.portal.SystemException) {
929 throw (com.liferay.portal.SystemException)e;
930 }
931
932 if (e instanceof com.liferay.portal.PortalException) {
933 throw (com.liferay.portal.PortalException)e;
934 }
935
936 throw new com.liferay.portal.SystemException(e);
937 }
938 }
939 catch (com.liferay.portal.SystemException se) {
940 _log.error(se, se);
941
942 throw se;
943 }
944 }
945
946 public static java.util.List getCategoryMessages(
947 HttpPrincipal httpPrincipal, long categoryId, int begin, int end)
948 throws com.liferay.portal.SystemException,
949 com.liferay.portal.PortalException {
950 try {
951 Object paramObj0 = new LongWrapper(categoryId);
952
953 Object paramObj1 = new IntegerWrapper(begin);
954
955 Object paramObj2 = new IntegerWrapper(end);
956
957 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
958 "getCategoryMessages",
959 new Object[] { paramObj0, paramObj1, paramObj2 });
960
961 Object returnObj = null;
962
963 try {
964 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
965 }
966 catch (Exception e) {
967 if (e instanceof com.liferay.portal.SystemException) {
968 throw (com.liferay.portal.SystemException)e;
969 }
970
971 if (e instanceof com.liferay.portal.PortalException) {
972 throw (com.liferay.portal.PortalException)e;
973 }
974
975 throw new com.liferay.portal.SystemException(e);
976 }
977
978 return (java.util.List)returnObj;
979 }
980 catch (com.liferay.portal.SystemException se) {
981 _log.error(se, se);
982
983 throw se;
984 }
985 }
986
987 public static int getCategoryMessagesCount(HttpPrincipal httpPrincipal,
988 long categoryId)
989 throws com.liferay.portal.SystemException,
990 com.liferay.portal.PortalException {
991 try {
992 Object paramObj0 = new LongWrapper(categoryId);
993
994 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
995 "getCategoryMessagesCount", new Object[] { paramObj0 });
996
997 Object returnObj = null;
998
999 try {
1000 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1001 }
1002 catch (Exception e) {
1003 if (e instanceof com.liferay.portal.SystemException) {
1004 throw (com.liferay.portal.SystemException)e;
1005 }
1006
1007 if (e instanceof com.liferay.portal.PortalException) {
1008 throw (com.liferay.portal.PortalException)e;
1009 }
1010
1011 throw new com.liferay.portal.SystemException(e);
1012 }
1013
1014 return ((Integer)returnObj).intValue();
1015 }
1016 catch (com.liferay.portal.SystemException se) {
1017 _log.error(se, se);
1018
1019 throw se;
1020 }
1021 }
1022
1023 public static java.lang.String getCategoryMessagesRSS(
1024 HttpPrincipal httpPrincipal, long categoryId, int max,
1025 java.lang.String type, double version, java.lang.String displayStyle,
1026 java.lang.String feedURL, java.lang.String entryURL)
1027 throws com.liferay.portal.SystemException,
1028 com.liferay.portal.PortalException {
1029 try {
1030 Object paramObj0 = new LongWrapper(categoryId);
1031
1032 Object paramObj1 = new IntegerWrapper(max);
1033
1034 Object paramObj2 = type;
1035
1036 if (type == null) {
1037 paramObj2 = new NullWrapper("java.lang.String");
1038 }
1039
1040 Object paramObj3 = new DoubleWrapper(version);
1041
1042 Object paramObj4 = displayStyle;
1043
1044 if (displayStyle == null) {
1045 paramObj4 = new NullWrapper("java.lang.String");
1046 }
1047
1048 Object paramObj5 = feedURL;
1049
1050 if (feedURL == null) {
1051 paramObj5 = new NullWrapper("java.lang.String");
1052 }
1053
1054 Object paramObj6 = entryURL;
1055
1056 if (entryURL == null) {
1057 paramObj6 = new NullWrapper("java.lang.String");
1058 }
1059
1060 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1061 "getCategoryMessagesRSS",
1062 new Object[] {
1063 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1064 paramObj5, paramObj6
1065 });
1066
1067 Object returnObj = null;
1068
1069 try {
1070 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1071 }
1072 catch (Exception e) {
1073 if (e instanceof com.liferay.portal.SystemException) {
1074 throw (com.liferay.portal.SystemException)e;
1075 }
1076
1077 if (e instanceof com.liferay.portal.PortalException) {
1078 throw (com.liferay.portal.PortalException)e;
1079 }
1080
1081 throw new com.liferay.portal.SystemException(e);
1082 }
1083
1084 return (java.lang.String)returnObj;
1085 }
1086 catch (com.liferay.portal.SystemException se) {
1087 _log.error(se, se);
1088
1089 throw se;
1090 }
1091 }
1092
1093 public static java.lang.String getCompanyMessagesRSS(
1094 HttpPrincipal httpPrincipal, long companyId, int max,
1095 java.lang.String type, double version, java.lang.String displayStyle,
1096 java.lang.String feedURL, java.lang.String entryURL)
1097 throws com.liferay.portal.SystemException,
1098 com.liferay.portal.PortalException {
1099 try {
1100 Object paramObj0 = new LongWrapper(companyId);
1101
1102 Object paramObj1 = new IntegerWrapper(max);
1103
1104 Object paramObj2 = type;
1105
1106 if (type == null) {
1107 paramObj2 = new NullWrapper("java.lang.String");
1108 }
1109
1110 Object paramObj3 = new DoubleWrapper(version);
1111
1112 Object paramObj4 = displayStyle;
1113
1114 if (displayStyle == null) {
1115 paramObj4 = new NullWrapper("java.lang.String");
1116 }
1117
1118 Object paramObj5 = feedURL;
1119
1120 if (feedURL == null) {
1121 paramObj5 = new NullWrapper("java.lang.String");
1122 }
1123
1124 Object paramObj6 = entryURL;
1125
1126 if (entryURL == null) {
1127 paramObj6 = new NullWrapper("java.lang.String");
1128 }
1129
1130 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1131 "getCompanyMessagesRSS",
1132 new Object[] {
1133 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1134 paramObj5, paramObj6
1135 });
1136
1137 Object returnObj = null;
1138
1139 try {
1140 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1141 }
1142 catch (Exception e) {
1143 if (e instanceof com.liferay.portal.SystemException) {
1144 throw (com.liferay.portal.SystemException)e;
1145 }
1146
1147 if (e instanceof com.liferay.portal.PortalException) {
1148 throw (com.liferay.portal.PortalException)e;
1149 }
1150
1151 throw new com.liferay.portal.SystemException(e);
1152 }
1153
1154 return (java.lang.String)returnObj;
1155 }
1156 catch (com.liferay.portal.SystemException se) {
1157 _log.error(se, se);
1158
1159 throw se;
1160 }
1161 }
1162
1163 public static java.lang.String getGroupMessagesRSS(
1164 HttpPrincipal httpPrincipal, long groupId, int max,
1165 java.lang.String type, double version, java.lang.String displayStyle,
1166 java.lang.String feedURL, java.lang.String entryURL)
1167 throws com.liferay.portal.SystemException,
1168 com.liferay.portal.PortalException {
1169 try {
1170 Object paramObj0 = new LongWrapper(groupId);
1171
1172 Object paramObj1 = new IntegerWrapper(max);
1173
1174 Object paramObj2 = type;
1175
1176 if (type == null) {
1177 paramObj2 = new NullWrapper("java.lang.String");
1178 }
1179
1180 Object paramObj3 = new DoubleWrapper(version);
1181
1182 Object paramObj4 = displayStyle;
1183
1184 if (displayStyle == null) {
1185 paramObj4 = new NullWrapper("java.lang.String");
1186 }
1187
1188 Object paramObj5 = feedURL;
1189
1190 if (feedURL == null) {
1191 paramObj5 = new NullWrapper("java.lang.String");
1192 }
1193
1194 Object paramObj6 = entryURL;
1195
1196 if (entryURL == null) {
1197 paramObj6 = new NullWrapper("java.lang.String");
1198 }
1199
1200 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1201 "getGroupMessagesRSS",
1202 new Object[] {
1203 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1204 paramObj5, paramObj6
1205 });
1206
1207 Object returnObj = null;
1208
1209 try {
1210 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1211 }
1212 catch (Exception e) {
1213 if (e instanceof com.liferay.portal.SystemException) {
1214 throw (com.liferay.portal.SystemException)e;
1215 }
1216
1217 if (e instanceof com.liferay.portal.PortalException) {
1218 throw (com.liferay.portal.PortalException)e;
1219 }
1220
1221 throw new com.liferay.portal.SystemException(e);
1222 }
1223
1224 return (java.lang.String)returnObj;
1225 }
1226 catch (com.liferay.portal.SystemException se) {
1227 _log.error(se, se);
1228
1229 throw se;
1230 }
1231 }
1232
1233 public static java.lang.String getGroupMessagesRSS(
1234 HttpPrincipal httpPrincipal, long groupId, long userId, int max,
1235 java.lang.String type, double version, java.lang.String displayStyle,
1236 java.lang.String feedURL, java.lang.String entryURL)
1237 throws com.liferay.portal.SystemException,
1238 com.liferay.portal.PortalException {
1239 try {
1240 Object paramObj0 = new LongWrapper(groupId);
1241
1242 Object paramObj1 = new LongWrapper(userId);
1243
1244 Object paramObj2 = new IntegerWrapper(max);
1245
1246 Object paramObj3 = type;
1247
1248 if (type == null) {
1249 paramObj3 = new NullWrapper("java.lang.String");
1250 }
1251
1252 Object paramObj4 = new DoubleWrapper(version);
1253
1254 Object paramObj5 = displayStyle;
1255
1256 if (displayStyle == null) {
1257 paramObj5 = new NullWrapper("java.lang.String");
1258 }
1259
1260 Object paramObj6 = feedURL;
1261
1262 if (feedURL == null) {
1263 paramObj6 = new NullWrapper("java.lang.String");
1264 }
1265
1266 Object paramObj7 = entryURL;
1267
1268 if (entryURL == null) {
1269 paramObj7 = new NullWrapper("java.lang.String");
1270 }
1271
1272 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1273 "getGroupMessagesRSS",
1274 new Object[] {
1275 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1276 paramObj5, paramObj6, paramObj7
1277 });
1278
1279 Object returnObj = null;
1280
1281 try {
1282 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1283 }
1284 catch (Exception e) {
1285 if (e instanceof com.liferay.portal.SystemException) {
1286 throw (com.liferay.portal.SystemException)e;
1287 }
1288
1289 if (e instanceof com.liferay.portal.PortalException) {
1290 throw (com.liferay.portal.PortalException)e;
1291 }
1292
1293 throw new com.liferay.portal.SystemException(e);
1294 }
1295
1296 return (java.lang.String)returnObj;
1297 }
1298 catch (com.liferay.portal.SystemException se) {
1299 _log.error(se, se);
1300
1301 throw se;
1302 }
1303 }
1304
1305 public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
1306 HttpPrincipal httpPrincipal, long messageId)
1307 throws com.liferay.portal.SystemException,
1308 com.liferay.portal.PortalException {
1309 try {
1310 Object paramObj0 = new LongWrapper(messageId);
1311
1312 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1313 "getMessage", new Object[] { paramObj0 });
1314
1315 Object returnObj = null;
1316
1317 try {
1318 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1319 }
1320 catch (Exception e) {
1321 if (e instanceof com.liferay.portal.SystemException) {
1322 throw (com.liferay.portal.SystemException)e;
1323 }
1324
1325 if (e instanceof com.liferay.portal.PortalException) {
1326 throw (com.liferay.portal.PortalException)e;
1327 }
1328
1329 throw new com.liferay.portal.SystemException(e);
1330 }
1331
1332 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1333 }
1334 catch (com.liferay.portal.SystemException se) {
1335 _log.error(se, se);
1336
1337 throw se;
1338 }
1339 }
1340
1341 public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
1342 HttpPrincipal httpPrincipal, long messageId)
1343 throws com.liferay.portal.SystemException,
1344 com.liferay.portal.PortalException {
1345 try {
1346 Object paramObj0 = new LongWrapper(messageId);
1347
1348 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1349 "getMessageDisplay", new Object[] { paramObj0 });
1350
1351 Object returnObj = null;
1352
1353 try {
1354 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1355 }
1356 catch (Exception e) {
1357 if (e instanceof com.liferay.portal.SystemException) {
1358 throw (com.liferay.portal.SystemException)e;
1359 }
1360
1361 if (e instanceof com.liferay.portal.PortalException) {
1362 throw (com.liferay.portal.PortalException)e;
1363 }
1364
1365 throw new com.liferay.portal.SystemException(e);
1366 }
1367
1368 return (com.liferay.portlet.messageboards.model.MBMessageDisplay)returnObj;
1369 }
1370 catch (com.liferay.portal.SystemException se) {
1371 _log.error(se, se);
1372
1373 throw se;
1374 }
1375 }
1376
1377 public static java.lang.String getThreadMessagesRSS(
1378 HttpPrincipal httpPrincipal, long threadId, int max,
1379 java.lang.String type, double version, java.lang.String displayStyle,
1380 java.lang.String feedURL, java.lang.String entryURL)
1381 throws com.liferay.portal.SystemException,
1382 com.liferay.portal.PortalException {
1383 try {
1384 Object paramObj0 = new LongWrapper(threadId);
1385
1386 Object paramObj1 = new IntegerWrapper(max);
1387
1388 Object paramObj2 = type;
1389
1390 if (type == null) {
1391 paramObj2 = new NullWrapper("java.lang.String");
1392 }
1393
1394 Object paramObj3 = new DoubleWrapper(version);
1395
1396 Object paramObj4 = displayStyle;
1397
1398 if (displayStyle == null) {
1399 paramObj4 = new NullWrapper("java.lang.String");
1400 }
1401
1402 Object paramObj5 = feedURL;
1403
1404 if (feedURL == null) {
1405 paramObj5 = new NullWrapper("java.lang.String");
1406 }
1407
1408 Object paramObj6 = entryURL;
1409
1410 if (entryURL == null) {
1411 paramObj6 = new NullWrapper("java.lang.String");
1412 }
1413
1414 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1415 "getThreadMessagesRSS",
1416 new Object[] {
1417 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1418 paramObj5, paramObj6
1419 });
1420
1421 Object returnObj = null;
1422
1423 try {
1424 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1425 }
1426 catch (Exception e) {
1427 if (e instanceof com.liferay.portal.SystemException) {
1428 throw (com.liferay.portal.SystemException)e;
1429 }
1430
1431 if (e instanceof com.liferay.portal.PortalException) {
1432 throw (com.liferay.portal.PortalException)e;
1433 }
1434
1435 throw new com.liferay.portal.SystemException(e);
1436 }
1437
1438 return (java.lang.String)returnObj;
1439 }
1440 catch (com.liferay.portal.SystemException se) {
1441 _log.error(se, se);
1442
1443 throw se;
1444 }
1445 }
1446
1447 public static void subscribeMessage(HttpPrincipal httpPrincipal,
1448 long messageId)
1449 throws com.liferay.portal.SystemException,
1450 com.liferay.portal.PortalException {
1451 try {
1452 Object paramObj0 = new LongWrapper(messageId);
1453
1454 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1455 "subscribeMessage", new Object[] { paramObj0 });
1456
1457 try {
1458 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1459 }
1460 catch (Exception e) {
1461 if (e instanceof com.liferay.portal.SystemException) {
1462 throw (com.liferay.portal.SystemException)e;
1463 }
1464
1465 if (e instanceof com.liferay.portal.PortalException) {
1466 throw (com.liferay.portal.PortalException)e;
1467 }
1468
1469 throw new com.liferay.portal.SystemException(e);
1470 }
1471 }
1472 catch (com.liferay.portal.SystemException se) {
1473 _log.error(se, se);
1474
1475 throw se;
1476 }
1477 }
1478
1479 public static void unsubscribeMessage(HttpPrincipal httpPrincipal,
1480 long messageId)
1481 throws com.liferay.portal.SystemException,
1482 com.liferay.portal.PortalException {
1483 try {
1484 Object paramObj0 = new LongWrapper(messageId);
1485
1486 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1487 "unsubscribeMessage", new Object[] { paramObj0 });
1488
1489 try {
1490 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1491 }
1492 catch (Exception e) {
1493 if (e instanceof com.liferay.portal.SystemException) {
1494 throw (com.liferay.portal.SystemException)e;
1495 }
1496
1497 if (e instanceof com.liferay.portal.PortalException) {
1498 throw (com.liferay.portal.PortalException)e;
1499 }
1500
1501 throw new com.liferay.portal.SystemException(e);
1502 }
1503 }
1504 catch (com.liferay.portal.SystemException se) {
1505 _log.error(se, se);
1506
1507 throw se;
1508 }
1509 }
1510
1511 public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
1512 HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
1513 long classPK, long messageId, java.lang.String subject,
1514 java.lang.String body)
1515 throws com.liferay.portal.SystemException,
1516 com.liferay.portal.PortalException {
1517 try {
1518 Object paramObj0 = new LongWrapper(groupId);
1519
1520 Object paramObj1 = className;
1521
1522 if (className == null) {
1523 paramObj1 = new NullWrapper("java.lang.String");
1524 }
1525
1526 Object paramObj2 = new LongWrapper(classPK);
1527
1528 Object paramObj3 = new LongWrapper(messageId);
1529
1530 Object paramObj4 = subject;
1531
1532 if (subject == null) {
1533 paramObj4 = new NullWrapper("java.lang.String");
1534 }
1535
1536 Object paramObj5 = body;
1537
1538 if (body == null) {
1539 paramObj5 = new NullWrapper("java.lang.String");
1540 }
1541
1542 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1543 "updateDiscussionMessage",
1544 new Object[] {
1545 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1546 paramObj5
1547 });
1548
1549 Object returnObj = null;
1550
1551 try {
1552 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1553 }
1554 catch (Exception e) {
1555 if (e instanceof com.liferay.portal.SystemException) {
1556 throw (com.liferay.portal.SystemException)e;
1557 }
1558
1559 if (e instanceof com.liferay.portal.PortalException) {
1560 throw (com.liferay.portal.PortalException)e;
1561 }
1562
1563 throw new com.liferay.portal.SystemException(e);
1564 }
1565
1566 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1567 }
1568 catch (com.liferay.portal.SystemException se) {
1569 _log.error(se, se);
1570
1571 throw se;
1572 }
1573 }
1574
1575 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1576 HttpPrincipal httpPrincipal, long messageId, java.lang.String subject,
1577 java.lang.String body, java.util.List files, double priority,
1578 java.lang.String[] tagsEntries)
1579 throws com.liferay.portal.SystemException,
1580 com.liferay.portal.PortalException {
1581 try {
1582 Object paramObj0 = new LongWrapper(messageId);
1583
1584 Object paramObj1 = subject;
1585
1586 if (subject == null) {
1587 paramObj1 = new NullWrapper("java.lang.String");
1588 }
1589
1590 Object paramObj2 = body;
1591
1592 if (body == null) {
1593 paramObj2 = new NullWrapper("java.lang.String");
1594 }
1595
1596 Object paramObj3 = files;
1597
1598 if (files == null) {
1599 paramObj3 = new NullWrapper("java.util.List");
1600 }
1601
1602 Object paramObj4 = new DoubleWrapper(priority);
1603
1604 Object paramObj5 = tagsEntries;
1605
1606 if (tagsEntries == null) {
1607 paramObj5 = new NullWrapper("[Ljava.lang.String;");
1608 }
1609
1610 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1611 "updateMessage",
1612 new Object[] {
1613 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1614 paramObj5
1615 });
1616
1617 Object returnObj = null;
1618
1619 try {
1620 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1621 }
1622 catch (Exception e) {
1623 if (e instanceof com.liferay.portal.SystemException) {
1624 throw (com.liferay.portal.SystemException)e;
1625 }
1626
1627 if (e instanceof com.liferay.portal.PortalException) {
1628 throw (com.liferay.portal.PortalException)e;
1629 }
1630
1631 throw new com.liferay.portal.SystemException(e);
1632 }
1633
1634 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1635 }
1636 catch (com.liferay.portal.SystemException se) {
1637 _log.error(se, se);
1638
1639 throw se;
1640 }
1641 }
1642
1643 public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1644 HttpPrincipal httpPrincipal, long messageId, java.lang.String subject,
1645 java.lang.String body, java.util.List files, double priority,
1646 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
1647 com.liferay.portal.theme.ThemeDisplay themeDisplay)
1648 throws com.liferay.portal.SystemException,
1649 com.liferay.portal.PortalException {
1650 try {
1651 Object paramObj0 = new LongWrapper(messageId);
1652
1653 Object paramObj1 = subject;
1654
1655 if (subject == null) {
1656 paramObj1 = new NullWrapper("java.lang.String");
1657 }
1658
1659 Object paramObj2 = body;
1660
1661 if (body == null) {
1662 paramObj2 = new NullWrapper("java.lang.String");
1663 }
1664
1665 Object paramObj3 = files;
1666
1667 if (files == null) {
1668 paramObj3 = new NullWrapper("java.util.List");
1669 }
1670
1671 Object paramObj4 = new DoubleWrapper(priority);
1672
1673 Object paramObj5 = tagsEntries;
1674
1675 if (tagsEntries == null) {
1676 paramObj5 = new NullWrapper("[Ljava.lang.String;");
1677 }
1678
1679 Object paramObj6 = prefs;
1680
1681 if (prefs == null) {
1682 paramObj6 = new NullWrapper("javax.portlet.PortletPreferences");
1683 }
1684
1685 Object paramObj7 = themeDisplay;
1686
1687 if (themeDisplay == null) {
1688 paramObj7 = new NullWrapper(
1689 "com.liferay.portal.theme.ThemeDisplay");
1690 }
1691
1692 MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1693 "updateMessage",
1694 new Object[] {
1695 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1696 paramObj5, paramObj6, paramObj7
1697 });
1698
1699 Object returnObj = null;
1700
1701 try {
1702 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1703 }
1704 catch (Exception e) {
1705 if (e instanceof com.liferay.portal.SystemException) {
1706 throw (com.liferay.portal.SystemException)e;
1707 }
1708
1709 if (e instanceof com.liferay.portal.PortalException) {
1710 throw (com.liferay.portal.PortalException)e;
1711 }
1712
1713 throw new com.liferay.portal.SystemException(e);
1714 }
1715
1716 return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1717 }
1718 catch (com.liferay.portal.SystemException se) {
1719 _log.error(se, se);
1720
1721 throw se;
1722 }
1723 }
1724
1725 private static Log _log = LogFactoryUtil.getLog(MBMessageServiceHttp.class);
1726}