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