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