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