001
014
015 package com.liferay.portlet.messageboards.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.MethodHandler;
022 import com.liferay.portal.kernel.util.MethodKey;
023 import com.liferay.portal.security.auth.HttpPrincipal;
024 import com.liferay.portal.service.http.TunnelUtil;
025
026 import com.liferay.portlet.messageboards.service.MBCategoryServiceUtil;
027
028
056 @ProviderType
057 public class MBCategoryServiceHttp {
058 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
059 HttpPrincipal httpPrincipal, long userId, long parentCategoryId,
060 java.lang.String name, java.lang.String description,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException {
063 try {
064 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
065 "addCategory", _addCategoryParameterTypes0);
066
067 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
068 parentCategoryId, name, description, serviceContext);
069
070 Object returnObj = null;
071
072 try {
073 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074 }
075 catch (Exception e) {
076 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077 throw (com.liferay.portal.kernel.exception.PortalException)e;
078 }
079
080 throw new com.liferay.portal.kernel.exception.SystemException(e);
081 }
082
083 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
084 }
085 catch (com.liferay.portal.kernel.exception.SystemException se) {
086 _log.error(se, se);
087
088 throw se;
089 }
090 }
091
092 public static com.liferay.portlet.messageboards.model.MBCategory addCategory(
093 HttpPrincipal httpPrincipal, long parentCategoryId,
094 java.lang.String name, java.lang.String description,
095 java.lang.String displayStyle, java.lang.String emailAddress,
096 java.lang.String inProtocol, java.lang.String inServerName,
097 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
098 java.lang.String inPassword, int inReadInterval,
099 java.lang.String outEmailAddress, boolean outCustom,
100 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
101 java.lang.String outUserName, java.lang.String outPassword,
102 boolean mailingListActive, boolean allowAnonymousEmail,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.kernel.exception.PortalException {
105 try {
106 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
107 "addCategory", _addCategoryParameterTypes1);
108
109 MethodHandler methodHandler = new MethodHandler(methodKey,
110 parentCategoryId, name, description, displayStyle,
111 emailAddress, inProtocol, inServerName, inServerPort,
112 inUseSSL, inUserName, inPassword, inReadInterval,
113 outEmailAddress, outCustom, outServerName, outServerPort,
114 outUseSSL, outUserName, outPassword, mailingListActive,
115 allowAnonymousEmail, serviceContext);
116
117 Object returnObj = null;
118
119 try {
120 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
121 }
122 catch (Exception e) {
123 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
124 throw (com.liferay.portal.kernel.exception.PortalException)e;
125 }
126
127 throw new com.liferay.portal.kernel.exception.SystemException(e);
128 }
129
130 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
131 }
132 catch (com.liferay.portal.kernel.exception.SystemException se) {
133 _log.error(se, se);
134
135 throw se;
136 }
137 }
138
139 public static void deleteCategory(HttpPrincipal httpPrincipal,
140 long categoryId, boolean includeTrashedEntries)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 try {
143 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
144 "deleteCategory", _deleteCategoryParameterTypes2);
145
146 MethodHandler methodHandler = new MethodHandler(methodKey,
147 categoryId, includeTrashedEntries);
148
149 try {
150 TunnelUtil.invoke(httpPrincipal, methodHandler);
151 }
152 catch (Exception e) {
153 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
154 throw (com.liferay.portal.kernel.exception.PortalException)e;
155 }
156
157 throw new com.liferay.portal.kernel.exception.SystemException(e);
158 }
159 }
160 catch (com.liferay.portal.kernel.exception.SystemException se) {
161 _log.error(se, se);
162
163 throw se;
164 }
165 }
166
167 public static void deleteCategory(HttpPrincipal httpPrincipal,
168 long groupId, long categoryId)
169 throws com.liferay.portal.kernel.exception.PortalException {
170 try {
171 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
172 "deleteCategory", _deleteCategoryParameterTypes3);
173
174 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
175 categoryId);
176
177 try {
178 TunnelUtil.invoke(httpPrincipal, methodHandler);
179 }
180 catch (Exception e) {
181 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
182 throw (com.liferay.portal.kernel.exception.PortalException)e;
183 }
184
185 throw new com.liferay.portal.kernel.exception.SystemException(e);
186 }
187 }
188 catch (com.liferay.portal.kernel.exception.SystemException se) {
189 _log.error(se, se);
190
191 throw se;
192 }
193 }
194
195 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
196 HttpPrincipal httpPrincipal, long groupId) {
197 try {
198 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
199 "getCategories", _getCategoriesParameterTypes4);
200
201 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
202
203 Object returnObj = null;
204
205 try {
206 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
207 }
208 catch (Exception e) {
209 throw new com.liferay.portal.kernel.exception.SystemException(e);
210 }
211
212 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
213 }
214 catch (com.liferay.portal.kernel.exception.SystemException se) {
215 _log.error(se, se);
216
217 throw se;
218 }
219 }
220
221 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
222 HttpPrincipal httpPrincipal, long groupId, int status) {
223 try {
224 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
225 "getCategories", _getCategoriesParameterTypes5);
226
227 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
228 status);
229
230 Object returnObj = null;
231
232 try {
233 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
234 }
235 catch (Exception e) {
236 throw new com.liferay.portal.kernel.exception.SystemException(e);
237 }
238
239 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
240 }
241 catch (com.liferay.portal.kernel.exception.SystemException se) {
242 _log.error(se, se);
243
244 throw se;
245 }
246 }
247
248 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
249 HttpPrincipal httpPrincipal, long groupId, long parentCategoryId,
250 int start, int end) {
251 try {
252 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
253 "getCategories", _getCategoriesParameterTypes6);
254
255 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
256 parentCategoryId, start, end);
257
258 Object returnObj = null;
259
260 try {
261 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
262 }
263 catch (Exception e) {
264 throw new com.liferay.portal.kernel.exception.SystemException(e);
265 }
266
267 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
268 }
269 catch (com.liferay.portal.kernel.exception.SystemException se) {
270 _log.error(se, se);
271
272 throw se;
273 }
274 }
275
276 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
277 HttpPrincipal httpPrincipal, long groupId, long parentCategoryId,
278 int status, int start, int end) {
279 try {
280 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
281 "getCategories", _getCategoriesParameterTypes7);
282
283 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
284 parentCategoryId, status, start, end);
285
286 Object returnObj = null;
287
288 try {
289 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
290 }
291 catch (Exception e) {
292 throw new com.liferay.portal.kernel.exception.SystemException(e);
293 }
294
295 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
296 }
297 catch (com.liferay.portal.kernel.exception.SystemException se) {
298 _log.error(se, se);
299
300 throw se;
301 }
302 }
303
304 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
305 HttpPrincipal httpPrincipal, long groupId, long excludedCategoryId,
306 long parentCategoryId, int status, int start, int end) {
307 try {
308 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
309 "getCategories", _getCategoriesParameterTypes8);
310
311 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
312 excludedCategoryId, parentCategoryId, status, start, end);
313
314 Object returnObj = null;
315
316 try {
317 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
318 }
319 catch (Exception e) {
320 throw new com.liferay.portal.kernel.exception.SystemException(e);
321 }
322
323 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
324 }
325 catch (com.liferay.portal.kernel.exception.SystemException se) {
326 _log.error(se, se);
327
328 throw se;
329 }
330 }
331
332 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
333 HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds,
334 int start, int end) {
335 try {
336 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
337 "getCategories", _getCategoriesParameterTypes9);
338
339 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
340 parentCategoryIds, start, end);
341
342 Object returnObj = null;
343
344 try {
345 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
346 }
347 catch (Exception e) {
348 throw new com.liferay.portal.kernel.exception.SystemException(e);
349 }
350
351 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
352 }
353 catch (com.liferay.portal.kernel.exception.SystemException se) {
354 _log.error(se, se);
355
356 throw se;
357 }
358 }
359
360 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
361 HttpPrincipal httpPrincipal, long groupId, long[] parentCategoryIds,
362 int status, int start, int end) {
363 try {
364 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
365 "getCategories", _getCategoriesParameterTypes10);
366
367 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
368 parentCategoryIds, status, start, end);
369
370 Object returnObj = null;
371
372 try {
373 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
374 }
375 catch (Exception e) {
376 throw new com.liferay.portal.kernel.exception.SystemException(e);
377 }
378
379 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
380 }
381 catch (com.liferay.portal.kernel.exception.SystemException se) {
382 _log.error(se, se);
383
384 throw se;
385 }
386 }
387
388 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
389 HttpPrincipal httpPrincipal, long groupId, long[] excludedCategoryIds,
390 long[] parentCategoryIds, int status, int start, int end) {
391 try {
392 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
393 "getCategories", _getCategoriesParameterTypes11);
394
395 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
396 excludedCategoryIds, parentCategoryIds, status, start, end);
397
398 Object returnObj = null;
399
400 try {
401 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
402 }
403 catch (Exception e) {
404 throw new com.liferay.portal.kernel.exception.SystemException(e);
405 }
406
407 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
408 }
409 catch (com.liferay.portal.kernel.exception.SystemException se) {
410 _log.error(se, se);
411
412 throw se;
413 }
414 }
415
416 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
417 long groupId, long parentCategoryId) {
418 try {
419 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
420 "getCategoriesCount", _getCategoriesCountParameterTypes12);
421
422 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
423 parentCategoryId);
424
425 Object returnObj = null;
426
427 try {
428 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
429 }
430 catch (Exception e) {
431 throw new com.liferay.portal.kernel.exception.SystemException(e);
432 }
433
434 return ((Integer)returnObj).intValue();
435 }
436 catch (com.liferay.portal.kernel.exception.SystemException se) {
437 _log.error(se, se);
438
439 throw se;
440 }
441 }
442
443 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
444 long groupId, long parentCategoryId, int status) {
445 try {
446 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
447 "getCategoriesCount", _getCategoriesCountParameterTypes13);
448
449 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
450 parentCategoryId, status);
451
452 Object returnObj = null;
453
454 try {
455 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
456 }
457 catch (Exception e) {
458 throw new com.liferay.portal.kernel.exception.SystemException(e);
459 }
460
461 return ((Integer)returnObj).intValue();
462 }
463 catch (com.liferay.portal.kernel.exception.SystemException se) {
464 _log.error(se, se);
465
466 throw se;
467 }
468 }
469
470 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
471 long groupId, long excludedCategoryId, long parentCategoryId, int status) {
472 try {
473 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
474 "getCategoriesCount", _getCategoriesCountParameterTypes14);
475
476 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
477 excludedCategoryId, parentCategoryId, status);
478
479 Object returnObj = null;
480
481 try {
482 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
483 }
484 catch (Exception e) {
485 throw new com.liferay.portal.kernel.exception.SystemException(e);
486 }
487
488 return ((Integer)returnObj).intValue();
489 }
490 catch (com.liferay.portal.kernel.exception.SystemException se) {
491 _log.error(se, se);
492
493 throw se;
494 }
495 }
496
497 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
498 long groupId, long[] parentCategoryIds) {
499 try {
500 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
501 "getCategoriesCount", _getCategoriesCountParameterTypes15);
502
503 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
504 parentCategoryIds);
505
506 Object returnObj = null;
507
508 try {
509 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
510 }
511 catch (Exception e) {
512 throw new com.liferay.portal.kernel.exception.SystemException(e);
513 }
514
515 return ((Integer)returnObj).intValue();
516 }
517 catch (com.liferay.portal.kernel.exception.SystemException se) {
518 _log.error(se, se);
519
520 throw se;
521 }
522 }
523
524 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
525 long groupId, long[] parentCategoryIds, int status) {
526 try {
527 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
528 "getCategoriesCount", _getCategoriesCountParameterTypes16);
529
530 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
531 parentCategoryIds, status);
532
533 Object returnObj = null;
534
535 try {
536 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
537 }
538 catch (Exception e) {
539 throw new com.liferay.portal.kernel.exception.SystemException(e);
540 }
541
542 return ((Integer)returnObj).intValue();
543 }
544 catch (com.liferay.portal.kernel.exception.SystemException se) {
545 _log.error(se, se);
546
547 throw se;
548 }
549 }
550
551 public static int getCategoriesCount(HttpPrincipal httpPrincipal,
552 long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
553 int status) {
554 try {
555 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
556 "getCategoriesCount", _getCategoriesCountParameterTypes17);
557
558 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
559 excludedCategoryIds, parentCategoryIds, status);
560
561 Object returnObj = null;
562
563 try {
564 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
565 }
566 catch (Exception e) {
567 throw new com.liferay.portal.kernel.exception.SystemException(e);
568 }
569
570 return ((Integer)returnObj).intValue();
571 }
572 catch (com.liferay.portal.kernel.exception.SystemException se) {
573 _log.error(se, se);
574
575 throw se;
576 }
577 }
578
579 public static com.liferay.portlet.messageboards.model.MBCategory getCategory(
580 HttpPrincipal httpPrincipal, long categoryId)
581 throws com.liferay.portal.kernel.exception.PortalException {
582 try {
583 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
584 "getCategory", _getCategoryParameterTypes18);
585
586 MethodHandler methodHandler = new MethodHandler(methodKey,
587 categoryId);
588
589 Object returnObj = null;
590
591 try {
592 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
593 }
594 catch (Exception e) {
595 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
596 throw (com.liferay.portal.kernel.exception.PortalException)e;
597 }
598
599 throw new com.liferay.portal.kernel.exception.SystemException(e);
600 }
601
602 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
603 }
604 catch (com.liferay.portal.kernel.exception.SystemException se) {
605 _log.error(se, se);
606
607 throw se;
608 }
609 }
610
611 public static long[] getCategoryIds(HttpPrincipal httpPrincipal,
612 long groupId, long categoryId) {
613 try {
614 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
615 "getCategoryIds", _getCategoryIdsParameterTypes19);
616
617 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
618 categoryId);
619
620 Object returnObj = null;
621
622 try {
623 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
624 }
625 catch (Exception e) {
626 throw new com.liferay.portal.kernel.exception.SystemException(e);
627 }
628
629 return (long[])returnObj;
630 }
631 catch (com.liferay.portal.kernel.exception.SystemException se) {
632 _log.error(se, se);
633
634 throw se;
635 }
636 }
637
638 public static java.util.List<java.lang.Long> getSubcategoryIds(
639 HttpPrincipal httpPrincipal,
640 java.util.List<java.lang.Long> categoryIds, long groupId,
641 long categoryId) {
642 try {
643 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
644 "getSubcategoryIds", _getSubcategoryIdsParameterTypes20);
645
646 MethodHandler methodHandler = new MethodHandler(methodKey,
647 categoryIds, groupId, categoryId);
648
649 Object returnObj = null;
650
651 try {
652 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
653 }
654 catch (Exception e) {
655 throw new com.liferay.portal.kernel.exception.SystemException(e);
656 }
657
658 return (java.util.List<java.lang.Long>)returnObj;
659 }
660 catch (com.liferay.portal.kernel.exception.SystemException se) {
661 _log.error(se, se);
662
663 throw se;
664 }
665 }
666
667 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
668 HttpPrincipal httpPrincipal, long groupId, long userId, int start,
669 int end) {
670 try {
671 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
672 "getSubscribedCategories",
673 _getSubscribedCategoriesParameterTypes21);
674
675 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
676 userId, start, end);
677
678 Object returnObj = null;
679
680 try {
681 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
682 }
683 catch (Exception e) {
684 throw new com.liferay.portal.kernel.exception.SystemException(e);
685 }
686
687 return (java.util.List<com.liferay.portlet.messageboards.model.MBCategory>)returnObj;
688 }
689 catch (com.liferay.portal.kernel.exception.SystemException se) {
690 _log.error(se, se);
691
692 throw se;
693 }
694 }
695
696 public static int getSubscribedCategoriesCount(
697 HttpPrincipal httpPrincipal, long groupId, long userId) {
698 try {
699 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
700 "getSubscribedCategoriesCount",
701 _getSubscribedCategoriesCountParameterTypes22);
702
703 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
704 userId);
705
706 Object returnObj = null;
707
708 try {
709 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
710 }
711 catch (Exception e) {
712 throw new com.liferay.portal.kernel.exception.SystemException(e);
713 }
714
715 return ((Integer)returnObj).intValue();
716 }
717 catch (com.liferay.portal.kernel.exception.SystemException se) {
718 _log.error(se, se);
719
720 throw se;
721 }
722 }
723
724 public static com.liferay.portlet.messageboards.model.MBCategory moveCategory(
725 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
726 boolean mergeWithParentCategory)
727 throws com.liferay.portal.kernel.exception.PortalException {
728 try {
729 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
730 "moveCategory", _moveCategoryParameterTypes23);
731
732 MethodHandler methodHandler = new MethodHandler(methodKey,
733 categoryId, parentCategoryId, mergeWithParentCategory);
734
735 Object returnObj = null;
736
737 try {
738 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
739 }
740 catch (Exception e) {
741 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
742 throw (com.liferay.portal.kernel.exception.PortalException)e;
743 }
744
745 throw new com.liferay.portal.kernel.exception.SystemException(e);
746 }
747
748 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
749 }
750 catch (com.liferay.portal.kernel.exception.SystemException se) {
751 _log.error(se, se);
752
753 throw se;
754 }
755 }
756
757 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
758 HttpPrincipal httpPrincipal, long categoryId, long newCategoryId)
759 throws com.liferay.portal.kernel.exception.PortalException {
760 try {
761 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
762 "moveCategoryFromTrash",
763 _moveCategoryFromTrashParameterTypes24);
764
765 MethodHandler methodHandler = new MethodHandler(methodKey,
766 categoryId, newCategoryId);
767
768 Object returnObj = null;
769
770 try {
771 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
772 }
773 catch (Exception e) {
774 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
775 throw (com.liferay.portal.kernel.exception.PortalException)e;
776 }
777
778 throw new com.liferay.portal.kernel.exception.SystemException(e);
779 }
780
781 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
782 }
783 catch (com.liferay.portal.kernel.exception.SystemException se) {
784 _log.error(se, se);
785
786 throw se;
787 }
788 }
789
790 public static com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
791 HttpPrincipal httpPrincipal, long categoryId)
792 throws com.liferay.portal.kernel.exception.PortalException {
793 try {
794 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
795 "moveCategoryToTrash", _moveCategoryToTrashParameterTypes25);
796
797 MethodHandler methodHandler = new MethodHandler(methodKey,
798 categoryId);
799
800 Object returnObj = null;
801
802 try {
803 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
804 }
805 catch (Exception e) {
806 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
807 throw (com.liferay.portal.kernel.exception.PortalException)e;
808 }
809
810 throw new com.liferay.portal.kernel.exception.SystemException(e);
811 }
812
813 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
814 }
815 catch (com.liferay.portal.kernel.exception.SystemException se) {
816 _log.error(se, se);
817
818 throw se;
819 }
820 }
821
822 public static void restoreCategoryFromTrash(HttpPrincipal httpPrincipal,
823 long categoryId)
824 throws com.liferay.portal.kernel.exception.PortalException {
825 try {
826 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
827 "restoreCategoryFromTrash",
828 _restoreCategoryFromTrashParameterTypes26);
829
830 MethodHandler methodHandler = new MethodHandler(methodKey,
831 categoryId);
832
833 try {
834 TunnelUtil.invoke(httpPrincipal, methodHandler);
835 }
836 catch (Exception e) {
837 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
838 throw (com.liferay.portal.kernel.exception.PortalException)e;
839 }
840
841 throw new com.liferay.portal.kernel.exception.SystemException(e);
842 }
843 }
844 catch (com.liferay.portal.kernel.exception.SystemException se) {
845 _log.error(se, se);
846
847 throw se;
848 }
849 }
850
851 public static void subscribeCategory(HttpPrincipal httpPrincipal,
852 long groupId, long categoryId)
853 throws com.liferay.portal.kernel.exception.PortalException {
854 try {
855 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
856 "subscribeCategory", _subscribeCategoryParameterTypes27);
857
858 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
859 categoryId);
860
861 try {
862 TunnelUtil.invoke(httpPrincipal, methodHandler);
863 }
864 catch (Exception e) {
865 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
866 throw (com.liferay.portal.kernel.exception.PortalException)e;
867 }
868
869 throw new com.liferay.portal.kernel.exception.SystemException(e);
870 }
871 }
872 catch (com.liferay.portal.kernel.exception.SystemException se) {
873 _log.error(se, se);
874
875 throw se;
876 }
877 }
878
879 public static void unsubscribeCategory(HttpPrincipal httpPrincipal,
880 long groupId, long categoryId)
881 throws com.liferay.portal.kernel.exception.PortalException {
882 try {
883 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
884 "unsubscribeCategory", _unsubscribeCategoryParameterTypes28);
885
886 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
887 categoryId);
888
889 try {
890 TunnelUtil.invoke(httpPrincipal, methodHandler);
891 }
892 catch (Exception e) {
893 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
894 throw (com.liferay.portal.kernel.exception.PortalException)e;
895 }
896
897 throw new com.liferay.portal.kernel.exception.SystemException(e);
898 }
899 }
900 catch (com.liferay.portal.kernel.exception.SystemException se) {
901 _log.error(se, se);
902
903 throw se;
904 }
905 }
906
907 public static com.liferay.portlet.messageboards.model.MBCategory updateCategory(
908 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
909 java.lang.String name, java.lang.String description,
910 java.lang.String displayStyle, java.lang.String emailAddress,
911 java.lang.String inProtocol, java.lang.String inServerName,
912 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
913 java.lang.String inPassword, int inReadInterval,
914 java.lang.String outEmailAddress, boolean outCustom,
915 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
916 java.lang.String outUserName, java.lang.String outPassword,
917 boolean mailingListActive, boolean allowAnonymousEmail,
918 boolean mergeWithParentCategory,
919 com.liferay.portal.service.ServiceContext serviceContext)
920 throws com.liferay.portal.kernel.exception.PortalException {
921 try {
922 MethodKey methodKey = new MethodKey(MBCategoryServiceUtil.class,
923 "updateCategory", _updateCategoryParameterTypes29);
924
925 MethodHandler methodHandler = new MethodHandler(methodKey,
926 categoryId, parentCategoryId, name, description,
927 displayStyle, emailAddress, inProtocol, inServerName,
928 inServerPort, inUseSSL, inUserName, inPassword,
929 inReadInterval, outEmailAddress, outCustom, outServerName,
930 outServerPort, outUseSSL, outUserName, outPassword,
931 mailingListActive, allowAnonymousEmail,
932 mergeWithParentCategory, serviceContext);
933
934 Object returnObj = null;
935
936 try {
937 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
938 }
939 catch (Exception e) {
940 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
941 throw (com.liferay.portal.kernel.exception.PortalException)e;
942 }
943
944 throw new com.liferay.portal.kernel.exception.SystemException(e);
945 }
946
947 return (com.liferay.portlet.messageboards.model.MBCategory)returnObj;
948 }
949 catch (com.liferay.portal.kernel.exception.SystemException se) {
950 _log.error(se, se);
951
952 throw se;
953 }
954 }
955
956 private static Log _log = LogFactoryUtil.getLog(MBCategoryServiceHttp.class);
957 private static final Class<?>[] _addCategoryParameterTypes0 = new Class[] {
958 long.class, long.class, java.lang.String.class,
959 java.lang.String.class,
960 com.liferay.portal.service.ServiceContext.class
961 };
962 private static final Class<?>[] _addCategoryParameterTypes1 = new Class[] {
963 long.class, java.lang.String.class, java.lang.String.class,
964 java.lang.String.class, java.lang.String.class,
965 java.lang.String.class, java.lang.String.class, int.class,
966 boolean.class, java.lang.String.class, java.lang.String.class,
967 int.class, java.lang.String.class, boolean.class,
968 java.lang.String.class, int.class, boolean.class,
969 java.lang.String.class, java.lang.String.class, boolean.class,
970 boolean.class, com.liferay.portal.service.ServiceContext.class
971 };
972 private static final Class<?>[] _deleteCategoryParameterTypes2 = new Class[] {
973 long.class, boolean.class
974 };
975 private static final Class<?>[] _deleteCategoryParameterTypes3 = new Class[] {
976 long.class, long.class
977 };
978 private static final Class<?>[] _getCategoriesParameterTypes4 = new Class[] {
979 long.class
980 };
981 private static final Class<?>[] _getCategoriesParameterTypes5 = new Class[] {
982 long.class, int.class
983 };
984 private static final Class<?>[] _getCategoriesParameterTypes6 = new Class[] {
985 long.class, long.class, int.class, int.class
986 };
987 private static final Class<?>[] _getCategoriesParameterTypes7 = new Class[] {
988 long.class, long.class, int.class, int.class, int.class
989 };
990 private static final Class<?>[] _getCategoriesParameterTypes8 = new Class[] {
991 long.class, long.class, long.class, int.class, int.class, int.class
992 };
993 private static final Class<?>[] _getCategoriesParameterTypes9 = new Class[] {
994 long.class, long[].class, int.class, int.class
995 };
996 private static final Class<?>[] _getCategoriesParameterTypes10 = new Class[] {
997 long.class, long[].class, int.class, int.class, int.class
998 };
999 private static final Class<?>[] _getCategoriesParameterTypes11 = new Class[] {
1000 long.class, long[].class, long[].class, int.class, int.class,
1001 int.class
1002 };
1003 private static final Class<?>[] _getCategoriesCountParameterTypes12 = new Class[] {
1004 long.class, long.class
1005 };
1006 private static final Class<?>[] _getCategoriesCountParameterTypes13 = new Class[] {
1007 long.class, long.class, int.class
1008 };
1009 private static final Class<?>[] _getCategoriesCountParameterTypes14 = new Class[] {
1010 long.class, long.class, long.class, int.class
1011 };
1012 private static final Class<?>[] _getCategoriesCountParameterTypes15 = new Class[] {
1013 long.class, long[].class
1014 };
1015 private static final Class<?>[] _getCategoriesCountParameterTypes16 = new Class[] {
1016 long.class, long[].class, int.class
1017 };
1018 private static final Class<?>[] _getCategoriesCountParameterTypes17 = new Class[] {
1019 long.class, long[].class, long[].class, int.class
1020 };
1021 private static final Class<?>[] _getCategoryParameterTypes18 = new Class[] {
1022 long.class
1023 };
1024 private static final Class<?>[] _getCategoryIdsParameterTypes19 = new Class[] {
1025 long.class, long.class
1026 };
1027 private static final Class<?>[] _getSubcategoryIdsParameterTypes20 = new Class[] {
1028 java.util.List.class, long.class, long.class
1029 };
1030 private static final Class<?>[] _getSubscribedCategoriesParameterTypes21 = new Class[] {
1031 long.class, long.class, int.class, int.class
1032 };
1033 private static final Class<?>[] _getSubscribedCategoriesCountParameterTypes22 =
1034 new Class[] { long.class, long.class };
1035 private static final Class<?>[] _moveCategoryParameterTypes23 = new Class[] {
1036 long.class, long.class, boolean.class
1037 };
1038 private static final Class<?>[] _moveCategoryFromTrashParameterTypes24 = new Class[] {
1039 long.class, long.class
1040 };
1041 private static final Class<?>[] _moveCategoryToTrashParameterTypes25 = new Class[] {
1042 long.class
1043 };
1044 private static final Class<?>[] _restoreCategoryFromTrashParameterTypes26 = new Class[] {
1045 long.class
1046 };
1047 private static final Class<?>[] _subscribeCategoryParameterTypes27 = new Class[] {
1048 long.class, long.class
1049 };
1050 private static final Class<?>[] _unsubscribeCategoryParameterTypes28 = new Class[] {
1051 long.class, long.class
1052 };
1053 private static final Class<?>[] _updateCategoryParameterTypes29 = new Class[] {
1054 long.class, long.class, java.lang.String.class,
1055 java.lang.String.class, java.lang.String.class,
1056 java.lang.String.class, java.lang.String.class,
1057 java.lang.String.class, int.class, boolean.class,
1058 java.lang.String.class, java.lang.String.class, int.class,
1059 java.lang.String.class, boolean.class, java.lang.String.class,
1060 int.class, boolean.class, java.lang.String.class,
1061 java.lang.String.class, boolean.class, boolean.class, boolean.class,
1062 com.liferay.portal.service.ServiceContext.class
1063 };
1064 }