001
014
015 package com.liferay.portlet.messageboards.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.BooleanWrapper;
020 import com.liferay.portal.kernel.util.IntegerWrapper;
021 import com.liferay.portal.kernel.util.LongWrapper;
022 import com.liferay.portal.kernel.util.MethodWrapper;
023 import com.liferay.portal.kernel.util.NullWrapper;
024 import com.liferay.portal.security.auth.HttpPrincipal;
025 import com.liferay.portal.service.http.TunnelUtil;
026
027 import com.liferay.portlet.messageboards.service.MBCategoryServiceUtil;
028
029
059 public class MBCategoryServiceHttp {
060 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
061 HttpPrincipal httpPrincipal, long parentCategoryId,
062 java.lang.String name, java.lang.String description,
063 java.lang.String emailAddress, java.lang.String inProtocol,
064 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
065 java.lang.String inUserName, java.lang.String inPassword,
066 int inReadInterval, java.lang.String outEmailAddress,
067 boolean outCustom, java.lang.String outServerName, int outServerPort,
068 boolean outUseSSL, java.lang.String outUserName,
069 java.lang.String outPassword, boolean mailingListActive,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 try {
074 Object paramObj0 = new LongWrapper(parentCategoryId);
075
076 Object paramObj1 = name;
077
078 if (name == null) {
079 paramObj1 = new NullWrapper("java.lang.String");
080 }
081
082 Object paramObj2 = description;
083
084 if (description == null) {
085 paramObj2 = new NullWrapper("java.lang.String");
086 }
087
088 Object paramObj3 = emailAddress;
089
090 if (emailAddress == null) {
091 paramObj3 = new NullWrapper("java.lang.String");
092 }
093
094 Object paramObj4 = inProtocol;
095
096 if (inProtocol == null) {
097 paramObj4 = new NullWrapper("java.lang.String");
098 }
099
100 Object paramObj5 = inServerName;
101
102 if (inServerName == null) {
103 paramObj5 = new NullWrapper("java.lang.String");
104 }
105
106 Object paramObj6 = new IntegerWrapper(inServerPort);
107
108 Object paramObj7 = new BooleanWrapper(inUseSSL);
109
110 Object paramObj8 = inUserName;
111
112 if (inUserName == null) {
113 paramObj8 = new NullWrapper("java.lang.String");
114 }
115
116 Object paramObj9 = inPassword;
117
118 if (inPassword == null) {
119 paramObj9 = new NullWrapper("java.lang.String");
120 }
121
122 Object paramObj10 = new IntegerWrapper(inReadInterval);
123
124 Object paramObj11 = outEmailAddress;
125
126 if (outEmailAddress == null) {
127 paramObj11 = new NullWrapper("java.lang.String");
128 }
129
130 Object paramObj12 = new BooleanWrapper(outCustom);
131
132 Object paramObj13 = outServerName;
133
134 if (outServerName == null) {
135 paramObj13 = new NullWrapper("java.lang.String");
136 }
137
138 Object paramObj14 = new IntegerWrapper(outServerPort);
139
140 Object paramObj15 = new BooleanWrapper(outUseSSL);
141
142 Object paramObj16 = outUserName;
143
144 if (outUserName == null) {
145 paramObj16 = new NullWrapper("java.lang.String");
146 }
147
148 Object paramObj17 = outPassword;
149
150 if (outPassword == null) {
151 paramObj17 = new NullWrapper("java.lang.String");
152 }
153
154 Object paramObj18 = new BooleanWrapper(mailingListActive);
155
156 Object paramObj19 = serviceContext;
157
158 if (serviceContext == null) {
159 paramObj19 = new NullWrapper(
160 "com.liferay.portal.service.ServiceContext");
161 }
162
163 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
164 "addCategory",
165 new Object[] {
166 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
167 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
168 paramObj10, paramObj11, paramObj12, paramObj13,
169 paramObj14, paramObj15, paramObj16, paramObj17,
170 paramObj18, paramObj19
171 });
172
173 Object returnObj = null;
174
175 try {
176 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
177 }
178 catch (Exception e) {
179 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
180 throw (com.liferay.portal.kernel.exception.PortalException)e;
181 }
182
183 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
184 throw (com.liferay.portal.kernel.exception.SystemException)e;
185 }
186
187 throw new com.liferay.portal.kernel.exception.SystemException(e);
188 }
189
190 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
191 }
192 catch (com.liferay.portal.kernel.exception.SystemException se) {
193 _log.error(se, se);
194
195 throw se;
196 }
197 }
198
199 public static void deleteCategory(HttpPrincipal httpPrincipal,
200 long groupId, long categoryId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 try {
204 Object paramObj0 = new LongWrapper(groupId);
205
206 Object paramObj1 = new LongWrapper(categoryId);
207
208 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
209 "deleteCategory", new Object[] { paramObj0, paramObj1 });
210
211 try {
212 TunnelUtil.invoke(httpPrincipal, methodWrapper);
213 }
214 catch (Exception e) {
215 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
216 throw (com.liferay.portal.kernel.exception.PortalException)e;
217 }
218
219 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
220 throw (com.liferay.portal.kernel.exception.SystemException)e;
221 }
222
223 throw new com.liferay.portal.kernel.exception.SystemException(e);
224 }
225 }
226 catch (com.liferay.portal.kernel.exception.SystemException se) {
227 _log.error(se, se);
228
229 throw se;
230 }
231 }
232
233 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
234 HttpPrincipal httpPrincipal, long groupId, long parentCategoryId,
235 int start, int end)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 try {
238 Object paramObj0 = new LongWrapper(groupId);
239
240 Object paramObj1 = new LongWrapper(parentCategoryId);
241
242 Object paramObj2 = new IntegerWrapper(start);
243
244 Object paramObj3 = new IntegerWrapper(end);
245
246 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
247 "getCategories",
248 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
249
250 Object returnObj = null;
251
252 try {
253 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
254 }
255 catch (Exception e) {
256 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
257 throw (com.liferay.portal.kernel.exception.SystemException)e;
258 }
259
260 throw new com.liferay.portal.kernel.exception.SystemException(e);
261 }
262
263 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
264 }
265 catch (com.liferay.portal.kernel.exception.SystemException se) {
266 _log.error(se, se);
267
268 throw se;
269 }
270 }
271
272 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
273 HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds,
274 int start, int end)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 try {
277 Object paramObj0 = new LongWrapper(groupId);
278
279 Object paramObj1 = parentCategoryIds;
280
281 if (parentCategoryIds == null) {
282 paramObj1 = new NullWrapper("[J");
283 }
284
285 Object paramObj2 = new IntegerWrapper(start);
286
287 Object paramObj3 = new IntegerWrapper(end);
288
289 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
290 "getCategories",
291 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
292
293 Object returnObj = null;
294
295 try {
296 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
297 }
298 catch (Exception e) {
299 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
300 throw (com.liferay.portal.kernel.exception.SystemException)e;
301 }
302
303 throw new com.liferay.portal.kernel.exception.SystemException(e);
304 }
305
306 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
307 }
308 catch (com.liferay.portal.kernel.exception.SystemException se) {
309 _log.error(se, se);
310
311 throw se;
312 }
313 }
314
315 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
316 long groupId, long parentCategoryId)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 try {
319 Object paramObj0 = new LongWrapper(groupId);
320
321 Object paramObj1 = new LongWrapper(parentCategoryId);
322
323 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
324 "getCategoriesCount", new Object[] { paramObj0, paramObj1 });
325
326 Object returnObj = null;
327
328 try {
329 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
330 }
331 catch (Exception e) {
332 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
333 throw (com.liferay.portal.kernel.exception.SystemException)e;
334 }
335
336 throw new com.liferay.portal.kernel.exception.SystemException(e);
337 }
338
339 return ((Integer)returnObj).intValue();
340 }
341 catch (com.liferay.portal.kernel.exception.SystemException se) {
342 _log.error(se, se);
343
344 throw se;
345 }
346 }
347
348 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
349 long groupId, long[] parentCategoryIds)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 try {
352 Object paramObj0 = new LongWrapper(groupId);
353
354 Object paramObj1 = parentCategoryIds;
355
356 if (parentCategoryIds == null) {
357 paramObj1 = new NullWrapper("[J");
358 }
359
360 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
361 "getCategoriesCount", new Object[] { paramObj0, paramObj1 });
362
363 Object returnObj = null;
364
365 try {
366 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
367 }
368 catch (Exception e) {
369 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
370 throw (com.liferay.portal.kernel.exception.SystemException)e;
371 }
372
373 throw new com.liferay.portal.kernel.exception.SystemException(e);
374 }
375
376 return ((Integer)returnObj).intValue();
377 }
378 catch (com.liferay.portal.kernel.exception.SystemException se) {
379 _log.error(se, se);
380
381 throw se;
382 }
383 }
384
385 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
386 HttpPrincipal httpPrincipal, long categoryId)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 try {
390 Object paramObj0 = new LongWrapper(categoryId);
391
392 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
393 "getCategory", new Object[] { paramObj0 });
394
395 Object returnObj = null;
396
397 try {
398 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
399 }
400 catch (Exception e) {
401 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
402 throw (com.liferay.portal.kernel.exception.PortalException)e;
403 }
404
405 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
406 throw (com.liferay.portal.kernel.exception.SystemException)e;
407 }
408
409 throw new com.liferay.portal.kernel.exception.SystemException(e);
410 }
411
412 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
413 }
414 catch (com.liferay.portal.kernel.exception.SystemException se) {
415 _log.error(se, se);
416
417 throw se;
418 }
419 }
420
421 public static long[] getCategoryIds(HttpPrincipal httpPrincipal,
422 long groupId, long categoryId)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 try {
425 Object paramObj0 = new LongWrapper(groupId);
426
427 Object paramObj1 = new LongWrapper(categoryId);
428
429 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
430 "getCategoryIds", new Object[] { paramObj0, paramObj1 });
431
432 Object returnObj = null;
433
434 try {
435 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
436 }
437 catch (Exception e) {
438 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
439 throw (com.liferay.portal.kernel.exception.SystemException)e;
440 }
441
442 throw new com.liferay.portal.kernel.exception.SystemException(e);
443 }
444
445 return (long[])returnObj;
446 }
447 catch (com.liferay.portal.kernel.exception.SystemException se) {
448 _log.error(se, se);
449
450 throw se;
451 }
452 }
453
454 public static java.util.List<java.lang.Long> getSubcategoryIds(
455 HttpPrincipal httpPrincipal,
456 java.util.List<java.lang.Long> categoryIds, long groupId,
457 long categoryId)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 try {
460 Object paramObj0 = categoryIds;
461
462 if (categoryIds == null) {
463 paramObj0 = new NullWrapper("java.util.List");
464 }
465
466 Object paramObj1 = new LongWrapper(groupId);
467
468 Object paramObj2 = new LongWrapper(categoryId);
469
470 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
471 "getSubcategoryIds",
472 new Object[] { paramObj0, paramObj1, paramObj2 });
473
474 Object returnObj = null;
475
476 try {
477 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
478 }
479 catch (Exception e) {
480 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
481 throw (com.liferay.portal.kernel.exception.SystemException)e;
482 }
483
484 throw new com.liferay.portal.kernel.exception.SystemException(e);
485 }
486
487 return (java.util.List<java.lang.Long>)returnObj;
488 }
489 catch (com.liferay.portal.kernel.exception.SystemException se) {
490 _log.error(se, se);
491
492 throw se;
493 }
494 }
495
496 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
497 HttpPrincipal httpPrincipal, long groupId, long userId, int start,
498 int end) throws com.liferay.portal.kernel.exception.SystemException {
499 try {
500 Object paramObj0 = new LongWrapper(groupId);
501
502 Object paramObj1 = new LongWrapper(userId);
503
504 Object paramObj2 = new IntegerWrapper(start);
505
506 Object paramObj3 = new IntegerWrapper(end);
507
508 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
509 "getSubscribedCategories",
510 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
511
512 Object returnObj = null;
513
514 try {
515 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
516 }
517 catch (Exception e) {
518 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
519 throw (com.liferay.portal.kernel.exception.SystemException)e;
520 }
521
522 throw new com.liferay.portal.kernel.exception.SystemException(e);
523 }
524
525 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
526 }
527 catch (com.liferay.portal.kernel.exception.SystemException se) {
528 _log.error(se, se);
529
530 throw se;
531 }
532 }
533
534 public static int getSubscribedCategoriesCount(
535 HttpPrincipal httpPrincipal, long groupId, long userId)
536 throws com.liferay.portal.kernel.exception.SystemException {
537 try {
538 Object paramObj0 = new LongWrapper(groupId);
539
540 Object paramObj1 = new LongWrapper(userId);
541
542 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
543 "getSubscribedCategoriesCount",
544 new Object[] { paramObj0, paramObj1 });
545
546 Object returnObj = null;
547
548 try {
549 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
550 }
551 catch (Exception e) {
552 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
553 throw (com.liferay.portal.kernel.exception.SystemException)e;
554 }
555
556 throw new com.liferay.portal.kernel.exception.SystemException(e);
557 }
558
559 return ((Integer)returnObj).intValue();
560 }
561 catch (com.liferay.portal.kernel.exception.SystemException se) {
562 _log.error(se, se);
563
564 throw se;
565 }
566 }
567
568 public static void subscribeCategory(HttpPrincipal httpPrincipal,
569 long groupId, long categoryId)
570 throws com.liferay.portal.kernel.exception.PortalException,
571 com.liferay.portal.kernel.exception.SystemException {
572 try {
573 Object paramObj0 = new LongWrapper(groupId);
574
575 Object paramObj1 = new LongWrapper(categoryId);
576
577 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
578 "subscribeCategory", new Object[] { paramObj0, paramObj1 });
579
580 try {
581 TunnelUtil.invoke(httpPrincipal, methodWrapper);
582 }
583 catch (Exception e) {
584 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
585 throw (com.liferay.portal.kernel.exception.PortalException)e;
586 }
587
588 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
589 throw (com.liferay.portal.kernel.exception.SystemException)e;
590 }
591
592 throw new com.liferay.portal.kernel.exception.SystemException(e);
593 }
594 }
595 catch (com.liferay.portal.kernel.exception.SystemException se) {
596 _log.error(se, se);
597
598 throw se;
599 }
600 }
601
602 public static void unsubscribeCategory(HttpPrincipal httpPrincipal,
603 long groupId, long categoryId)
604 throws com.liferay.portal.kernel.exception.PortalException,
605 com.liferay.portal.kernel.exception.SystemException {
606 try {
607 Object paramObj0 = new LongWrapper(groupId);
608
609 Object paramObj1 = new LongWrapper(categoryId);
610
611 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
612 "unsubscribeCategory", new Object[] { paramObj0, paramObj1 });
613
614 try {
615 TunnelUtil.invoke(httpPrincipal, methodWrapper);
616 }
617 catch (Exception e) {
618 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
619 throw (com.liferay.portal.kernel.exception.PortalException)e;
620 }
621
622 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
623 throw (com.liferay.portal.kernel.exception.SystemException)e;
624 }
625
626 throw new com.liferay.portal.kernel.exception.SystemException(e);
627 }
628 }
629 catch (com.liferay.portal.kernel.exception.SystemException se) {
630 _log.error(se, se);
631
632 throw se;
633 }
634 }
635
636 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
637 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
638 java.lang.String name, java.lang.String description,
639 java.lang.String emailAddress, java.lang.String inProtocol,
640 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
641 java.lang.String inUserName, java.lang.String inPassword,
642 int inReadInterval, java.lang.String outEmailAddress,
643 boolean outCustom, java.lang.String outServerName, int outServerPort,
644 boolean outUseSSL, java.lang.String outUserName,
645 java.lang.String outPassword, boolean mailingListActive,
646 boolean mergeWithParentCategory,
647 com.liferay.portal.service.ServiceContext serviceContext)
648 throws com.liferay.portal.kernel.exception.PortalException,
649 com.liferay.portal.kernel.exception.SystemException {
650 try {
651 Object paramObj0 = new LongWrapper(categoryId);
652
653 Object paramObj1 = new LongWrapper(parentCategoryId);
654
655 Object paramObj2 = name;
656
657 if (name == null) {
658 paramObj2 = new NullWrapper("java.lang.String");
659 }
660
661 Object paramObj3 = description;
662
663 if (description == null) {
664 paramObj3 = new NullWrapper("java.lang.String");
665 }
666
667 Object paramObj4 = emailAddress;
668
669 if (emailAddress == null) {
670 paramObj4 = new NullWrapper("java.lang.String");
671 }
672
673 Object paramObj5 = inProtocol;
674
675 if (inProtocol == null) {
676 paramObj5 = new NullWrapper("java.lang.String");
677 }
678
679 Object paramObj6 = inServerName;
680
681 if (inServerName == null) {
682 paramObj6 = new NullWrapper("java.lang.String");
683 }
684
685 Object paramObj7 = new IntegerWrapper(inServerPort);
686
687 Object paramObj8 = new BooleanWrapper(inUseSSL);
688
689 Object paramObj9 = inUserName;
690
691 if (inUserName == null) {
692 paramObj9 = new NullWrapper("java.lang.String");
693 }
694
695 Object paramObj10 = inPassword;
696
697 if (inPassword == null) {
698 paramObj10 = new NullWrapper("java.lang.String");
699 }
700
701 Object paramObj11 = new IntegerWrapper(inReadInterval);
702
703 Object paramObj12 = outEmailAddress;
704
705 if (outEmailAddress == null) {
706 paramObj12 = new NullWrapper("java.lang.String");
707 }
708
709 Object paramObj13 = new BooleanWrapper(outCustom);
710
711 Object paramObj14 = outServerName;
712
713 if (outServerName == null) {
714 paramObj14 = new NullWrapper("java.lang.String");
715 }
716
717 Object paramObj15 = new IntegerWrapper(outServerPort);
718
719 Object paramObj16 = new BooleanWrapper(outUseSSL);
720
721 Object paramObj17 = outUserName;
722
723 if (outUserName == null) {
724 paramObj17 = new NullWrapper("java.lang.String");
725 }
726
727 Object paramObj18 = outPassword;
728
729 if (outPassword == null) {
730 paramObj18 = new NullWrapper("java.lang.String");
731 }
732
733 Object paramObj19 = new BooleanWrapper(mailingListActive);
734
735 Object paramObj20 = new BooleanWrapper(mergeWithParentCategory);
736
737 Object paramObj21 = serviceContext;
738
739 if (serviceContext == null) {
740 paramObj21 = new NullWrapper(
741 "com.liferay.portal.service.ServiceContext");
742 }
743
744 MethodWrapper methodWrapper = new MethodWrapper(MBCategoryServiceUtil.class.getName(),
745 "updateCategory",
746 new Object[] {
747 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
748 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
749 paramObj10, paramObj11, paramObj12, paramObj13,
750 paramObj14, paramObj15, paramObj16, paramObj17,
751 paramObj18, paramObj19, paramObj20, paramObj21
752 });
753
754 Object returnObj = null;
755
756 try {
757 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
758 }
759 catch (Exception e) {
760 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
761 throw (com.liferay.portal.kernel.exception.PortalException)e;
762 }
763
764 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
765 throw (com.liferay.portal.kernel.exception.SystemException)e;
766 }
767
768 throw new com.liferay.portal.kernel.exception.SystemException(e);
769 }
770
771 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
772 }
773 catch (com.liferay.portal.kernel.exception.SystemException se) {
774 _log.error(se, se);
775
776 throw se;
777 }
778 }
779
780 private static Log _log = LogFactoryUtil.getLog(MBCategoryServiceHttp.class);
781 }