1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service.http;
24  
25  import com.liferay.portal.kernel.log.Log;
26  import com.liferay.portal.kernel.log.LogFactoryUtil;
27  import com.liferay.portal.kernel.util.BooleanWrapper;
28  import com.liferay.portal.kernel.util.DoubleWrapper;
29  import com.liferay.portal.kernel.util.IntegerWrapper;
30  import com.liferay.portal.kernel.util.LongWrapper;
31  import com.liferay.portal.kernel.util.MethodWrapper;
32  import com.liferay.portal.kernel.util.NullWrapper;
33  import com.liferay.portal.security.auth.HttpPrincipal;
34  import com.liferay.portal.service.http.TunnelUtil;
35  
36  import com.liferay.portlet.messageboards.service.MBMessageServiceUtil;
37  
38  /**
39   * <a href="MBMessageServiceHttp.java.html"><b><i>View Source</i></b></a>
40   *
41   * <p>
42   * ServiceBuilder generated this class. Modifications in this class will be overwritten
43   * the next time is generated.
44   * </p>
45   *
46   * <p>
47   * This class provides a HTTP utility for the <code>com.liferay.portlet.messageboards.service.MBMessageServiceUtil</code>
48   * service utility. The static methods of this class calls the same methods of the
49   * service utility. However, the signatures are different because it requires an
50   * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code> parameter.
51   * </p>
52   *
53   * <p>
54   * The benefits of using the HTTP utility is that it is fast and allows for tunneling
55   * without the cost of serializing to text. The drawback is that it only works with
56   * Java.
57   * </p>
58   *
59   * <p>
60   * Set the property <code>tunnel.servlet.hosts.allowed</code> in portal.properties
61   * to configure security.
62   * </p>
63   *
64   * <p>
65   * The HTTP utility is only generated for remote services.
66   * </p>
67   *
68   * @author Brian Wing Shun Chan
69   *
70   * @see com.liferay.portal.security.auth.HttpPrincipal
71   * @see com.liferay.portlet.messageboards.service.MBMessageServiceUtil
72   * @see com.liferay.portlet.messageboards.service.http.MBMessageServiceSoap
73   *
74   */
75  public class MBMessageServiceHttp {
76      public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
77          HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
78          long classPK, long threadId, long parentMessageId,
79          java.lang.String subject, java.lang.String body,
80          com.liferay.portal.theme.ThemeDisplay themeDisplay)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portal.PortalException {
83          try {
84              Object paramObj0 = new LongWrapper(groupId);
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              Object paramObj3 = new LongWrapper(threadId);
93              Object paramObj4 = new LongWrapper(parentMessageId);
94              Object paramObj5 = subject;
95  
96              if (subject == null) {
97                  paramObj5 = new NullWrapper("java.lang.String");
98              }
99  
100             Object paramObj6 = body;
101 
102             if (body == null) {
103                 paramObj6 = new NullWrapper("java.lang.String");
104             }
105 
106             Object paramObj7 = themeDisplay;
107 
108             if (themeDisplay == null) {
109                 paramObj7 = new NullWrapper(
110                         "com.liferay.portal.theme.ThemeDisplay");
111             }
112 
113             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
114                     "addDiscussionMessage",
115                     new Object[] {
116                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
117                         paramObj5, paramObj6, paramObj7
118                     });
119             Object returnObj = null;
120 
121             try {
122                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
123             }
124             catch (Exception e) {
125                 if (e instanceof com.liferay.portal.SystemException) {
126                     throw (com.liferay.portal.SystemException)e;
127                 }
128 
129                 if (e instanceof com.liferay.portal.PortalException) {
130                     throw (com.liferay.portal.PortalException)e;
131                 }
132 
133                 throw new com.liferay.portal.SystemException(e);
134             }
135 
136             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
137         }
138         catch (com.liferay.portal.SystemException se) {
139             _log.error(se, se);
140             throw se;
141         }
142     }
143 
144     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
145         HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
146         java.lang.String body, java.util.List files, boolean anonymous,
147         double priority, java.lang.String[] tagsEntries,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portal.PortalException {
151         try {
152             Object paramObj0 = new LongWrapper(categoryId);
153             Object paramObj1 = subject;
154 
155             if (subject == null) {
156                 paramObj1 = new NullWrapper("java.lang.String");
157             }
158 
159             Object paramObj2 = body;
160 
161             if (body == null) {
162                 paramObj2 = new NullWrapper("java.lang.String");
163             }
164 
165             Object paramObj3 = files;
166 
167             if (files == null) {
168                 paramObj3 = new NullWrapper("java.util.List");
169             }
170 
171             Object paramObj4 = new BooleanWrapper(anonymous);
172             Object paramObj5 = new DoubleWrapper(priority);
173             Object paramObj6 = tagsEntries;
174 
175             if (tagsEntries == null) {
176                 paramObj6 = new NullWrapper("[Ljava.lang.String;");
177             }
178 
179             Object paramObj7 = new BooleanWrapper(addCommunityPermissions);
180             Object paramObj8 = new BooleanWrapper(addGuestPermissions);
181             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
182                     "addMessage",
183                     new Object[] {
184                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
185                         paramObj5, paramObj6, paramObj7, paramObj8
186                     });
187             Object returnObj = null;
188 
189             try {
190                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
191             }
192             catch (Exception e) {
193                 if (e instanceof com.liferay.portal.SystemException) {
194                     throw (com.liferay.portal.SystemException)e;
195                 }
196 
197                 if (e instanceof com.liferay.portal.PortalException) {
198                     throw (com.liferay.portal.PortalException)e;
199                 }
200 
201                 throw new com.liferay.portal.SystemException(e);
202             }
203 
204             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
205         }
206         catch (com.liferay.portal.SystemException se) {
207             _log.error(se, se);
208             throw se;
209         }
210     }
211 
212     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
213         HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
214         java.lang.String body, java.util.List files, boolean anonymous,
215         double priority, java.lang.String[] tagsEntries,
216         javax.portlet.PortletPreferences prefs,
217         boolean addCommunityPermissions, boolean addGuestPermissions)
218         throws com.liferay.portal.SystemException, 
219             com.liferay.portal.PortalException {
220         try {
221             Object paramObj0 = new LongWrapper(categoryId);
222             Object paramObj1 = subject;
223 
224             if (subject == null) {
225                 paramObj1 = new NullWrapper("java.lang.String");
226             }
227 
228             Object paramObj2 = body;
229 
230             if (body == null) {
231                 paramObj2 = new NullWrapper("java.lang.String");
232             }
233 
234             Object paramObj3 = files;
235 
236             if (files == null) {
237                 paramObj3 = new NullWrapper("java.util.List");
238             }
239 
240             Object paramObj4 = new BooleanWrapper(anonymous);
241             Object paramObj5 = new DoubleWrapper(priority);
242             Object paramObj6 = tagsEntries;
243 
244             if (tagsEntries == null) {
245                 paramObj6 = new NullWrapper("[Ljava.lang.String;");
246             }
247 
248             Object paramObj7 = prefs;
249 
250             if (prefs == null) {
251                 paramObj7 = new NullWrapper("javax.portlet.PortletPreferences");
252             }
253 
254             Object paramObj8 = new BooleanWrapper(addCommunityPermissions);
255             Object paramObj9 = new BooleanWrapper(addGuestPermissions);
256             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
257                     "addMessage",
258                     new Object[] {
259                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
260                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
261                     });
262             Object returnObj = null;
263 
264             try {
265                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
266             }
267             catch (Exception e) {
268                 if (e instanceof com.liferay.portal.SystemException) {
269                     throw (com.liferay.portal.SystemException)e;
270                 }
271 
272                 if (e instanceof com.liferay.portal.PortalException) {
273                     throw (com.liferay.portal.PortalException)e;
274                 }
275 
276                 throw new com.liferay.portal.SystemException(e);
277             }
278 
279             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
280         }
281         catch (com.liferay.portal.SystemException se) {
282             _log.error(se, se);
283             throw se;
284         }
285     }
286 
287     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
288         HttpPrincipal httpPrincipal, long categoryId, long threadId,
289         long parentMessageId, java.lang.String subject, java.lang.String body,
290         java.util.List files, boolean anonymous, double priority,
291         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
292         boolean addGuestPermissions)
293         throws com.liferay.portal.SystemException, 
294             com.liferay.portal.PortalException {
295         try {
296             Object paramObj0 = new LongWrapper(categoryId);
297             Object paramObj1 = new LongWrapper(threadId);
298             Object paramObj2 = new LongWrapper(parentMessageId);
299             Object paramObj3 = subject;
300 
301             if (subject == null) {
302                 paramObj3 = new NullWrapper("java.lang.String");
303             }
304 
305             Object paramObj4 = body;
306 
307             if (body == null) {
308                 paramObj4 = new NullWrapper("java.lang.String");
309             }
310 
311             Object paramObj5 = files;
312 
313             if (files == null) {
314                 paramObj5 = new NullWrapper("java.util.List");
315             }
316 
317             Object paramObj6 = new BooleanWrapper(anonymous);
318             Object paramObj7 = new DoubleWrapper(priority);
319             Object paramObj8 = tagsEntries;
320 
321             if (tagsEntries == null) {
322                 paramObj8 = new NullWrapper("[Ljava.lang.String;");
323             }
324 
325             Object paramObj9 = new BooleanWrapper(addCommunityPermissions);
326             Object paramObj10 = new BooleanWrapper(addGuestPermissions);
327             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
328                     "addMessage",
329                     new Object[] {
330                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
331                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
332                         paramObj10
333                     });
334             Object returnObj = null;
335 
336             try {
337                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
338             }
339             catch (Exception e) {
340                 if (e instanceof com.liferay.portal.SystemException) {
341                     throw (com.liferay.portal.SystemException)e;
342                 }
343 
344                 if (e instanceof com.liferay.portal.PortalException) {
345                     throw (com.liferay.portal.PortalException)e;
346                 }
347 
348                 throw new com.liferay.portal.SystemException(e);
349             }
350 
351             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
352         }
353         catch (com.liferay.portal.SystemException se) {
354             _log.error(se, se);
355             throw se;
356         }
357     }
358 
359     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
360         HttpPrincipal httpPrincipal, long categoryId, long threadId,
361         long parentMessageId, java.lang.String subject, java.lang.String body,
362         java.util.List files, boolean anonymous, double priority,
363         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
364         boolean addCommunityPermissions, boolean addGuestPermissions)
365         throws com.liferay.portal.SystemException, 
366             com.liferay.portal.PortalException {
367         try {
368             Object paramObj0 = new LongWrapper(categoryId);
369             Object paramObj1 = new LongWrapper(threadId);
370             Object paramObj2 = new LongWrapper(parentMessageId);
371             Object paramObj3 = subject;
372 
373             if (subject == null) {
374                 paramObj3 = new NullWrapper("java.lang.String");
375             }
376 
377             Object paramObj4 = body;
378 
379             if (body == null) {
380                 paramObj4 = new NullWrapper("java.lang.String");
381             }
382 
383             Object paramObj5 = files;
384 
385             if (files == null) {
386                 paramObj5 = new NullWrapper("java.util.List");
387             }
388 
389             Object paramObj6 = new BooleanWrapper(anonymous);
390             Object paramObj7 = new DoubleWrapper(priority);
391             Object paramObj8 = tagsEntries;
392 
393             if (tagsEntries == null) {
394                 paramObj8 = new NullWrapper("[Ljava.lang.String;");
395             }
396 
397             Object paramObj9 = prefs;
398 
399             if (prefs == null) {
400                 paramObj9 = new NullWrapper("javax.portlet.PortletPreferences");
401             }
402 
403             Object paramObj10 = new BooleanWrapper(addCommunityPermissions);
404             Object paramObj11 = new BooleanWrapper(addGuestPermissions);
405             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
406                     "addMessage",
407                     new Object[] {
408                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
409                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
410                         paramObj10, paramObj11
411                     });
412             Object returnObj = null;
413 
414             try {
415                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
416             }
417             catch (Exception e) {
418                 if (e instanceof com.liferay.portal.SystemException) {
419                     throw (com.liferay.portal.SystemException)e;
420                 }
421 
422                 if (e instanceof com.liferay.portal.PortalException) {
423                     throw (com.liferay.portal.PortalException)e;
424                 }
425 
426                 throw new com.liferay.portal.SystemException(e);
427             }
428 
429             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
430         }
431         catch (com.liferay.portal.SystemException se) {
432             _log.error(se, se);
433             throw se;
434         }
435     }
436 
437     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
438         HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
439         java.lang.String body, java.util.List files, boolean anonymous,
440         double priority, java.lang.String[] tagsEntries,
441         java.lang.String[] communityPermissions,
442         java.lang.String[] guestPermissions)
443         throws com.liferay.portal.SystemException, 
444             com.liferay.portal.PortalException {
445         try {
446             Object paramObj0 = new LongWrapper(categoryId);
447             Object paramObj1 = subject;
448 
449             if (subject == null) {
450                 paramObj1 = new NullWrapper("java.lang.String");
451             }
452 
453             Object paramObj2 = body;
454 
455             if (body == null) {
456                 paramObj2 = new NullWrapper("java.lang.String");
457             }
458 
459             Object paramObj3 = files;
460 
461             if (files == null) {
462                 paramObj3 = new NullWrapper("java.util.List");
463             }
464 
465             Object paramObj4 = new BooleanWrapper(anonymous);
466             Object paramObj5 = new DoubleWrapper(priority);
467             Object paramObj6 = tagsEntries;
468 
469             if (tagsEntries == null) {
470                 paramObj6 = new NullWrapper("[Ljava.lang.String;");
471             }
472 
473             Object paramObj7 = communityPermissions;
474 
475             if (communityPermissions == null) {
476                 paramObj7 = new NullWrapper("[Ljava.lang.String;");
477             }
478 
479             Object paramObj8 = guestPermissions;
480 
481             if (guestPermissions == null) {
482                 paramObj8 = new NullWrapper("[Ljava.lang.String;");
483             }
484 
485             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
486                     "addMessage",
487                     new Object[] {
488                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
489                         paramObj5, paramObj6, paramObj7, paramObj8
490                     });
491             Object returnObj = null;
492 
493             try {
494                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
495             }
496             catch (Exception e) {
497                 if (e instanceof com.liferay.portal.SystemException) {
498                     throw (com.liferay.portal.SystemException)e;
499                 }
500 
501                 if (e instanceof com.liferay.portal.PortalException) {
502                     throw (com.liferay.portal.PortalException)e;
503                 }
504 
505                 throw new com.liferay.portal.SystemException(e);
506             }
507 
508             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
509         }
510         catch (com.liferay.portal.SystemException se) {
511             _log.error(se, se);
512             throw se;
513         }
514     }
515 
516     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
517         HttpPrincipal httpPrincipal, long categoryId, java.lang.String subject,
518         java.lang.String body, java.util.List files, boolean anonymous,
519         double priority, java.lang.String[] tagsEntries,
520         javax.portlet.PortletPreferences prefs,
521         java.lang.String[] communityPermissions,
522         java.lang.String[] guestPermissions)
523         throws com.liferay.portal.SystemException, 
524             com.liferay.portal.PortalException {
525         try {
526             Object paramObj0 = new LongWrapper(categoryId);
527             Object paramObj1 = subject;
528 
529             if (subject == null) {
530                 paramObj1 = new NullWrapper("java.lang.String");
531             }
532 
533             Object paramObj2 = body;
534 
535             if (body == null) {
536                 paramObj2 = new NullWrapper("java.lang.String");
537             }
538 
539             Object paramObj3 = files;
540 
541             if (files == null) {
542                 paramObj3 = new NullWrapper("java.util.List");
543             }
544 
545             Object paramObj4 = new BooleanWrapper(anonymous);
546             Object paramObj5 = new DoubleWrapper(priority);
547             Object paramObj6 = tagsEntries;
548 
549             if (tagsEntries == null) {
550                 paramObj6 = new NullWrapper("[Ljava.lang.String;");
551             }
552 
553             Object paramObj7 = prefs;
554 
555             if (prefs == null) {
556                 paramObj7 = new NullWrapper("javax.portlet.PortletPreferences");
557             }
558 
559             Object paramObj8 = communityPermissions;
560 
561             if (communityPermissions == null) {
562                 paramObj8 = new NullWrapper("[Ljava.lang.String;");
563             }
564 
565             Object paramObj9 = guestPermissions;
566 
567             if (guestPermissions == null) {
568                 paramObj9 = new NullWrapper("[Ljava.lang.String;");
569             }
570 
571             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
572                     "addMessage",
573                     new Object[] {
574                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
575                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
576                     });
577             Object returnObj = null;
578 
579             try {
580                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
581             }
582             catch (Exception e) {
583                 if (e instanceof com.liferay.portal.SystemException) {
584                     throw (com.liferay.portal.SystemException)e;
585                 }
586 
587                 if (e instanceof com.liferay.portal.PortalException) {
588                     throw (com.liferay.portal.PortalException)e;
589                 }
590 
591                 throw new com.liferay.portal.SystemException(e);
592             }
593 
594             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
595         }
596         catch (com.liferay.portal.SystemException se) {
597             _log.error(se, se);
598             throw se;
599         }
600     }
601 
602     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
603         HttpPrincipal httpPrincipal, long categoryId, long threadId,
604         long parentMessageId, java.lang.String subject, java.lang.String body,
605         java.util.List files, boolean anonymous, double priority,
606         java.lang.String[] tagsEntries,
607         java.lang.String[] communityPermissions,
608         java.lang.String[] guestPermissions)
609         throws com.liferay.portal.SystemException, 
610             com.liferay.portal.PortalException {
611         try {
612             Object paramObj0 = new LongWrapper(categoryId);
613             Object paramObj1 = new LongWrapper(threadId);
614             Object paramObj2 = new LongWrapper(parentMessageId);
615             Object paramObj3 = subject;
616 
617             if (subject == null) {
618                 paramObj3 = new NullWrapper("java.lang.String");
619             }
620 
621             Object paramObj4 = body;
622 
623             if (body == null) {
624                 paramObj4 = new NullWrapper("java.lang.String");
625             }
626 
627             Object paramObj5 = files;
628 
629             if (files == null) {
630                 paramObj5 = new NullWrapper("java.util.List");
631             }
632 
633             Object paramObj6 = new BooleanWrapper(anonymous);
634             Object paramObj7 = new DoubleWrapper(priority);
635             Object paramObj8 = tagsEntries;
636 
637             if (tagsEntries == null) {
638                 paramObj8 = new NullWrapper("[Ljava.lang.String;");
639             }
640 
641             Object paramObj9 = communityPermissions;
642 
643             if (communityPermissions == null) {
644                 paramObj9 = new NullWrapper("[Ljava.lang.String;");
645             }
646 
647             Object paramObj10 = guestPermissions;
648 
649             if (guestPermissions == null) {
650                 paramObj10 = new NullWrapper("[Ljava.lang.String;");
651             }
652 
653             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
654                     "addMessage",
655                     new Object[] {
656                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
657                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
658                         paramObj10
659                     });
660             Object returnObj = null;
661 
662             try {
663                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
664             }
665             catch (Exception e) {
666                 if (e instanceof com.liferay.portal.SystemException) {
667                     throw (com.liferay.portal.SystemException)e;
668                 }
669 
670                 if (e instanceof com.liferay.portal.PortalException) {
671                     throw (com.liferay.portal.PortalException)e;
672                 }
673 
674                 throw new com.liferay.portal.SystemException(e);
675             }
676 
677             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
678         }
679         catch (com.liferay.portal.SystemException se) {
680             _log.error(se, se);
681             throw se;
682         }
683     }
684 
685     public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
686         HttpPrincipal httpPrincipal, long categoryId, long threadId,
687         long parentMessageId, java.lang.String subject, java.lang.String body,
688         java.util.List files, boolean anonymous, double priority,
689         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
690         java.lang.String[] communityPermissions,
691         java.lang.String[] guestPermissions)
692         throws com.liferay.portal.SystemException, 
693             com.liferay.portal.PortalException {
694         try {
695             Object paramObj0 = new LongWrapper(categoryId);
696             Object paramObj1 = new LongWrapper(threadId);
697             Object paramObj2 = new LongWrapper(parentMessageId);
698             Object paramObj3 = subject;
699 
700             if (subject == null) {
701                 paramObj3 = new NullWrapper("java.lang.String");
702             }
703 
704             Object paramObj4 = body;
705 
706             if (body == null) {
707                 paramObj4 = new NullWrapper("java.lang.String");
708             }
709 
710             Object paramObj5 = files;
711 
712             if (files == null) {
713                 paramObj5 = new NullWrapper("java.util.List");
714             }
715 
716             Object paramObj6 = new BooleanWrapper(anonymous);
717             Object paramObj7 = new DoubleWrapper(priority);
718             Object paramObj8 = tagsEntries;
719 
720             if (tagsEntries == null) {
721                 paramObj8 = new NullWrapper("[Ljava.lang.String;");
722             }
723 
724             Object paramObj9 = prefs;
725 
726             if (prefs == null) {
727                 paramObj9 = new NullWrapper("javax.portlet.PortletPreferences");
728             }
729 
730             Object paramObj10 = communityPermissions;
731 
732             if (communityPermissions == null) {
733                 paramObj10 = new NullWrapper("[Ljava.lang.String;");
734             }
735 
736             Object paramObj11 = guestPermissions;
737 
738             if (guestPermissions == null) {
739                 paramObj11 = new NullWrapper("[Ljava.lang.String;");
740             }
741 
742             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
743                     "addMessage",
744                     new Object[] {
745                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
746                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
747                         paramObj10, paramObj11
748                     });
749             Object returnObj = null;
750 
751             try {
752                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
753             }
754             catch (Exception e) {
755                 if (e instanceof com.liferay.portal.SystemException) {
756                     throw (com.liferay.portal.SystemException)e;
757                 }
758 
759                 if (e instanceof com.liferay.portal.PortalException) {
760                     throw (com.liferay.portal.PortalException)e;
761                 }
762 
763                 throw new com.liferay.portal.SystemException(e);
764             }
765 
766             return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
767         }
768         catch (com.liferay.portal.SystemException se) {
769             _log.error(se, se);
770             throw se;
771         }
772     }
773 
774     public static void deleteDiscussionMessage(HttpPrincipal httpPrincipal,
775         long groupId, java.lang.String className, long classPK, long messageId)
776         throws com.liferay.portal.SystemException, 
777             com.liferay.portal.PortalException {
778         try {
779             Object paramObj0 = new LongWrapper(groupId);
780             Object paramObj1 = className;
781 
782             if (className == null) {
783                 paramObj1 = new NullWrapper("java.lang.String");
784             }
785 
786             Object paramObj2 = new LongWrapper(classPK);
787             Object paramObj3 = new LongWrapper(messageId);
788             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
789                     "deleteDiscussionMessage",
790                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
791 
792             try {
793                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
794             }
795             catch (Exception e) {
796                 if (e instanceof com.liferay.portal.SystemException) {
797                     throw (com.liferay.portal.SystemException)e;
798                 }
799 
800                 if (e instanceof com.liferay.portal.PortalException) {
801                     throw (com.liferay.portal.PortalException)e;
802                 }
803 
804                 throw new com.liferay.portal.SystemException(e);
805             }
806         }
807         catch (com.liferay.portal.SystemException se) {
808             _log.error(se, se);
809             throw se;
810         }
811     }
812 
813     public static void deleteMessage(HttpPrincipal httpPrincipal, long messageId)
814         throws com.liferay.portal.SystemException, 
815             com.liferay.portal.PortalException {
816         try {
817             Object paramObj0 = new LongWrapper(messageId);
818             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
819                     "deleteMessage", new Object[] { paramObj0 });
820 
821             try {
822                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
823             }
824             catch (Exception e) {
825                 if (e instanceof com.liferay.portal.SystemException) {
826                     throw (com.liferay.portal.SystemException)e;
827                 }
828 
829                 if (e instanceof com.liferay.portal.PortalException) {
830                     throw (com.liferay.portal.PortalException)e;
831                 }
832 
833                 throw new com.liferay.portal.SystemException(e);
834             }
835         }
836         catch (com.liferay.portal.SystemException se) {
837             _log.error(se, se);
838             throw se;
839         }
840     }
841 
842     public static java.lang.String getCategoryMessagesRSS(
843         HttpPrincipal httpPrincipal, long categoryId, int max,
844         java.lang.String type, double version, java.lang.String feedURL,
845         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
846         throws com.liferay.portal.SystemException, 
847             com.liferay.portal.PortalException {
848         try {
849             Object paramObj0 = new LongWrapper(categoryId);
850             Object paramObj1 = new IntegerWrapper(max);
851             Object paramObj2 = type;
852 
853             if (type == null) {
854                 paramObj2 = new NullWrapper("java.lang.String");
855             }
856 
857             Object paramObj3 = new DoubleWrapper(version);
858             Object paramObj4 = feedURL;
859 
860             if (feedURL == null) {
861                 paramObj4 = new NullWrapper("java.lang.String");
862             }
863 
864             Object paramObj5 = entryURL;
865 
866             if (entryURL == null) {
867                 paramObj5 = new NullWrapper("java.lang.String");
868             }
869 
870             Object paramObj6 = prefs;
871 
872             if (prefs == null) {
873                 paramObj6 = new NullWrapper("javax.portlet.PortletPreferences");
874             }
875 
876             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
877                     "getCategoryMessagesRSS",
878                     new Object[] {
879                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
880                         paramObj5, paramObj6
881                     });
882             Object returnObj = null;
883 
884             try {
885                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
886             }
887             catch (Exception e) {
888                 if (e instanceof com.liferay.portal.SystemException) {
889                     throw (com.liferay.portal.SystemException)e;
890                 }
891 
892                 if (e instanceof com.liferay.portal.PortalException) {
893                     throw (com.liferay.portal.PortalException)e;
894                 }
895 
896                 throw new com.liferay.portal.SystemException(e);
897             }
898 
899             return (java.lang.String)returnObj;
900         }
901         catch (com.liferay.portal.SystemException se) {
902             _log.error(se, se);
903             throw se;
904         }
905     }
906 
907     public static java.lang.String getCompanyMessagesRSS(
908         HttpPrincipal httpPrincipal, long companyId, int max,
909         java.lang.String type, double version, java.lang.String feedURL,
910         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
911         throws com.liferay.portal.SystemException, 
912             com.liferay.portal.PortalException {
913         try {
914             Object paramObj0 = new LongWrapper(companyId);
915             Object paramObj1 = new IntegerWrapper(max);
916             Object paramObj2 = type;
917 
918             if (type == null) {
919                 paramObj2 = new NullWrapper("java.lang.String");
920             }
921 
922             Object paramObj3 = new DoubleWrapper(version);
923             Object paramObj4 = feedURL;
924 
925             if (feedURL == null) {
926                 paramObj4 = new NullWrapper("java.lang.String");
927             }
928 
929             Object paramObj5 = entryURL;
930 
931             if (entryURL == null) {
932                 paramObj5 = new NullWrapper("java.lang.String");
933             }
934 
935             Object paramObj6 = prefs;
936 
937             if (prefs == null) {
938                 paramObj6 = new NullWrapper("javax.portlet.PortletPreferences");
939             }
940 
941             MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
942                     "getCompanyMessagesRSS",
943                     new Object[] {
944                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
945                         paramObj5, paramObj6
946                     });
947             Object returnObj = null;
948 
949             try {
950                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
951             }
952             catch (Exception e) {
953                 if (e instanceof com.liferay.portal.SystemException) {
954                     throw (com.liferay.portal.SystemException)e;
955                 }
956 
957                 if (e instanceof com.liferay.portal.PortalException) {
958                     throw (com.liferay.portal.PortalException)e;
959                 }
960 
961                 throw new com.liferay.portal.SystemException(e);
962             }
963 
964             return (java.lang.String)returnObj;
965         }
966         catch (com.liferay.portal.SystemException se) {
967             _log.error(se, se);
968             throw se;
969         }
970     }
971 
972     public static java.lang.String getGroupMessagesRSS(
973         HttpPrincipal httpPrincipal, long groupId, int max,
974         java.lang.String type, double version, java.lang.String feedURL,
975         java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
976         throws com.liferay.portal.SystemException, 
977             com.liferay.portal.PortalException {
978         try {
979             Object paramObj0 = new LongWrapper(groupId);
980             Object paramObj1 = new IntegerWrapper(max);
981             Object paramObj2 = type;
982 
983             if (type == null) {
984                 paramObj2 = new NullWrapper("java.lang.String");
985             }
986 
987             Object paramObj3 = new DoubleWrapper(version);
988             Object paramObj4 = feedURL;
989 
990             if (feedURL == null) {
991                 paramObj4 = new NullWrapper("java.lang.String");
992             }
993 
994             Object paramObj5 = entryURL;
995 
996             if (entryURL == null) {
997                 paramObj5 = new NullWrapper("java.lang.String");
998             }
999 
1000            Object paramObj6 = prefs;
1001
1002            if (prefs == null) {
1003                paramObj6 = new NullWrapper("javax.portlet.PortletPreferences");
1004            }
1005
1006            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1007                    "getGroupMessagesRSS",
1008                    new Object[] {
1009                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1010                        paramObj5, paramObj6
1011                    });
1012            Object returnObj = null;
1013
1014            try {
1015                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1016            }
1017            catch (Exception e) {
1018                if (e instanceof com.liferay.portal.SystemException) {
1019                    throw (com.liferay.portal.SystemException)e;
1020                }
1021
1022                if (e instanceof com.liferay.portal.PortalException) {
1023                    throw (com.liferay.portal.PortalException)e;
1024                }
1025
1026                throw new com.liferay.portal.SystemException(e);
1027            }
1028
1029            return (java.lang.String)returnObj;
1030        }
1031        catch (com.liferay.portal.SystemException se) {
1032            _log.error(se, se);
1033            throw se;
1034        }
1035    }
1036
1037    public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
1038        HttpPrincipal httpPrincipal, long messageId)
1039        throws com.liferay.portal.SystemException, 
1040            com.liferay.portal.PortalException {
1041        try {
1042            Object paramObj0 = new LongWrapper(messageId);
1043            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1044                    "getMessage", new Object[] { paramObj0 });
1045            Object returnObj = null;
1046
1047            try {
1048                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1049            }
1050            catch (Exception e) {
1051                if (e instanceof com.liferay.portal.SystemException) {
1052                    throw (com.liferay.portal.SystemException)e;
1053                }
1054
1055                if (e instanceof com.liferay.portal.PortalException) {
1056                    throw (com.liferay.portal.PortalException)e;
1057                }
1058
1059                throw new com.liferay.portal.SystemException(e);
1060            }
1061
1062            return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1063        }
1064        catch (com.liferay.portal.SystemException se) {
1065            _log.error(se, se);
1066            throw se;
1067        }
1068    }
1069
1070    public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
1071        HttpPrincipal httpPrincipal, long messageId)
1072        throws com.liferay.portal.SystemException, 
1073            com.liferay.portal.PortalException {
1074        try {
1075            Object paramObj0 = new LongWrapper(messageId);
1076            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1077                    "getMessageDisplay", new Object[] { paramObj0 });
1078            Object returnObj = null;
1079
1080            try {
1081                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1082            }
1083            catch (Exception e) {
1084                if (e instanceof com.liferay.portal.SystemException) {
1085                    throw (com.liferay.portal.SystemException)e;
1086                }
1087
1088                if (e instanceof com.liferay.portal.PortalException) {
1089                    throw (com.liferay.portal.PortalException)e;
1090                }
1091
1092                throw new com.liferay.portal.SystemException(e);
1093            }
1094
1095            return (com.liferay.portlet.messageboards.model.MBMessageDisplay)returnObj;
1096        }
1097        catch (com.liferay.portal.SystemException se) {
1098            _log.error(se, se);
1099            throw se;
1100        }
1101    }
1102
1103    public static java.lang.String getThreadMessagesRSS(
1104        HttpPrincipal httpPrincipal, long threadId, int max,
1105        java.lang.String type, double version, java.lang.String feedURL,
1106        java.lang.String entryURL, javax.portlet.PortletPreferences prefs)
1107        throws com.liferay.portal.SystemException, 
1108            com.liferay.portal.PortalException {
1109        try {
1110            Object paramObj0 = new LongWrapper(threadId);
1111            Object paramObj1 = new IntegerWrapper(max);
1112            Object paramObj2 = type;
1113
1114            if (type == null) {
1115                paramObj2 = new NullWrapper("java.lang.String");
1116            }
1117
1118            Object paramObj3 = new DoubleWrapper(version);
1119            Object paramObj4 = feedURL;
1120
1121            if (feedURL == null) {
1122                paramObj4 = new NullWrapper("java.lang.String");
1123            }
1124
1125            Object paramObj5 = entryURL;
1126
1127            if (entryURL == null) {
1128                paramObj5 = new NullWrapper("java.lang.String");
1129            }
1130
1131            Object paramObj6 = prefs;
1132
1133            if (prefs == null) {
1134                paramObj6 = new NullWrapper("javax.portlet.PortletPreferences");
1135            }
1136
1137            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1138                    "getThreadMessagesRSS",
1139                    new Object[] {
1140                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1141                        paramObj5, paramObj6
1142                    });
1143            Object returnObj = null;
1144
1145            try {
1146                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1147            }
1148            catch (Exception e) {
1149                if (e instanceof com.liferay.portal.SystemException) {
1150                    throw (com.liferay.portal.SystemException)e;
1151                }
1152
1153                if (e instanceof com.liferay.portal.PortalException) {
1154                    throw (com.liferay.portal.PortalException)e;
1155                }
1156
1157                throw new com.liferay.portal.SystemException(e);
1158            }
1159
1160            return (java.lang.String)returnObj;
1161        }
1162        catch (com.liferay.portal.SystemException se) {
1163            _log.error(se, se);
1164            throw se;
1165        }
1166    }
1167
1168    public static void subscribeMessage(HttpPrincipal httpPrincipal,
1169        long messageId)
1170        throws com.liferay.portal.SystemException, 
1171            com.liferay.portal.PortalException {
1172        try {
1173            Object paramObj0 = new LongWrapper(messageId);
1174            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1175                    "subscribeMessage", new Object[] { paramObj0 });
1176
1177            try {
1178                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1179            }
1180            catch (Exception e) {
1181                if (e instanceof com.liferay.portal.SystemException) {
1182                    throw (com.liferay.portal.SystemException)e;
1183                }
1184
1185                if (e instanceof com.liferay.portal.PortalException) {
1186                    throw (com.liferay.portal.PortalException)e;
1187                }
1188
1189                throw new com.liferay.portal.SystemException(e);
1190            }
1191        }
1192        catch (com.liferay.portal.SystemException se) {
1193            _log.error(se, se);
1194            throw se;
1195        }
1196    }
1197
1198    public static void unsubscribeMessage(HttpPrincipal httpPrincipal,
1199        long messageId)
1200        throws com.liferay.portal.SystemException, 
1201            com.liferay.portal.PortalException {
1202        try {
1203            Object paramObj0 = new LongWrapper(messageId);
1204            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1205                    "unsubscribeMessage", new Object[] { paramObj0 });
1206
1207            try {
1208                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1209            }
1210            catch (Exception e) {
1211                if (e instanceof com.liferay.portal.SystemException) {
1212                    throw (com.liferay.portal.SystemException)e;
1213                }
1214
1215                if (e instanceof com.liferay.portal.PortalException) {
1216                    throw (com.liferay.portal.PortalException)e;
1217                }
1218
1219                throw new com.liferay.portal.SystemException(e);
1220            }
1221        }
1222        catch (com.liferay.portal.SystemException se) {
1223            _log.error(se, se);
1224            throw se;
1225        }
1226    }
1227
1228    public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
1229        HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
1230        long classPK, long messageId, java.lang.String subject,
1231        java.lang.String body)
1232        throws com.liferay.portal.SystemException, 
1233            com.liferay.portal.PortalException {
1234        try {
1235            Object paramObj0 = new LongWrapper(groupId);
1236            Object paramObj1 = className;
1237
1238            if (className == null) {
1239                paramObj1 = new NullWrapper("java.lang.String");
1240            }
1241
1242            Object paramObj2 = new LongWrapper(classPK);
1243            Object paramObj3 = new LongWrapper(messageId);
1244            Object paramObj4 = subject;
1245
1246            if (subject == null) {
1247                paramObj4 = new NullWrapper("java.lang.String");
1248            }
1249
1250            Object paramObj5 = body;
1251
1252            if (body == null) {
1253                paramObj5 = new NullWrapper("java.lang.String");
1254            }
1255
1256            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1257                    "updateDiscussionMessage",
1258                    new Object[] {
1259                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1260                        paramObj5
1261                    });
1262            Object returnObj = null;
1263
1264            try {
1265                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1266            }
1267            catch (Exception e) {
1268                if (e instanceof com.liferay.portal.SystemException) {
1269                    throw (com.liferay.portal.SystemException)e;
1270                }
1271
1272                if (e instanceof com.liferay.portal.PortalException) {
1273                    throw (com.liferay.portal.PortalException)e;
1274                }
1275
1276                throw new com.liferay.portal.SystemException(e);
1277            }
1278
1279            return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1280        }
1281        catch (com.liferay.portal.SystemException se) {
1282            _log.error(se, se);
1283            throw se;
1284        }
1285    }
1286
1287    public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1288        HttpPrincipal httpPrincipal, long messageId, long categoryId,
1289        java.lang.String subject, java.lang.String body, java.util.List files,
1290        double priority, java.lang.String[] tagsEntries)
1291        throws com.liferay.portal.SystemException, 
1292            com.liferay.portal.PortalException {
1293        try {
1294            Object paramObj0 = new LongWrapper(messageId);
1295            Object paramObj1 = new LongWrapper(categoryId);
1296            Object paramObj2 = subject;
1297
1298            if (subject == null) {
1299                paramObj2 = new NullWrapper("java.lang.String");
1300            }
1301
1302            Object paramObj3 = body;
1303
1304            if (body == null) {
1305                paramObj3 = new NullWrapper("java.lang.String");
1306            }
1307
1308            Object paramObj4 = files;
1309
1310            if (files == null) {
1311                paramObj4 = new NullWrapper("java.util.List");
1312            }
1313
1314            Object paramObj5 = new DoubleWrapper(priority);
1315            Object paramObj6 = tagsEntries;
1316
1317            if (tagsEntries == null) {
1318                paramObj6 = new NullWrapper("[Ljava.lang.String;");
1319            }
1320
1321            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1322                    "updateMessage",
1323                    new Object[] {
1324                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1325                        paramObj5, paramObj6
1326                    });
1327            Object returnObj = null;
1328
1329            try {
1330                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1331            }
1332            catch (Exception e) {
1333                if (e instanceof com.liferay.portal.SystemException) {
1334                    throw (com.liferay.portal.SystemException)e;
1335                }
1336
1337                if (e instanceof com.liferay.portal.PortalException) {
1338                    throw (com.liferay.portal.PortalException)e;
1339                }
1340
1341                throw new com.liferay.portal.SystemException(e);
1342            }
1343
1344            return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1345        }
1346        catch (com.liferay.portal.SystemException se) {
1347            _log.error(se, se);
1348            throw se;
1349        }
1350    }
1351
1352    public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1353        HttpPrincipal httpPrincipal, long messageId, long categoryId,
1354        java.lang.String subject, java.lang.String body, java.util.List files,
1355        double priority, java.lang.String[] tagsEntries,
1356        javax.portlet.PortletPreferences prefs)
1357        throws com.liferay.portal.SystemException, 
1358            com.liferay.portal.PortalException {
1359        try {
1360            Object paramObj0 = new LongWrapper(messageId);
1361            Object paramObj1 = new LongWrapper(categoryId);
1362            Object paramObj2 = subject;
1363
1364            if (subject == null) {
1365                paramObj2 = new NullWrapper("java.lang.String");
1366            }
1367
1368            Object paramObj3 = body;
1369
1370            if (body == null) {
1371                paramObj3 = new NullWrapper("java.lang.String");
1372            }
1373
1374            Object paramObj4 = files;
1375
1376            if (files == null) {
1377                paramObj4 = new NullWrapper("java.util.List");
1378            }
1379
1380            Object paramObj5 = new DoubleWrapper(priority);
1381            Object paramObj6 = tagsEntries;
1382
1383            if (tagsEntries == null) {
1384                paramObj6 = new NullWrapper("[Ljava.lang.String;");
1385            }
1386
1387            Object paramObj7 = prefs;
1388
1389            if (prefs == null) {
1390                paramObj7 = new NullWrapper("javax.portlet.PortletPreferences");
1391            }
1392
1393            MethodWrapper methodWrapper = new MethodWrapper(MBMessageServiceUtil.class.getName(),
1394                    "updateMessage",
1395                    new Object[] {
1396                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1397                        paramObj5, paramObj6, paramObj7
1398                    });
1399            Object returnObj = null;
1400
1401            try {
1402                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1403            }
1404            catch (Exception e) {
1405                if (e instanceof com.liferay.portal.SystemException) {
1406                    throw (com.liferay.portal.SystemException)e;
1407                }
1408
1409                if (e instanceof com.liferay.portal.PortalException) {
1410                    throw (com.liferay.portal.PortalException)e;
1411                }
1412
1413                throw new com.liferay.portal.SystemException(e);
1414            }
1415
1416            return (com.liferay.portlet.messageboards.model.MBMessage)returnObj;
1417        }
1418        catch (com.liferay.portal.SystemException se) {
1419            _log.error(se, se);
1420            throw se;
1421        }
1422    }
1423
1424    private static Log _log = LogFactoryUtil.getLog(MBMessageServiceHttp.class);
1425}