001
014
015 package com.liferay.portlet.bookmarks.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.bookmarks.service.BookmarksFolderServiceUtil;
027
028
056 @ProviderType
057 public class BookmarksFolderServiceHttp {
058 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
059 HttpPrincipal httpPrincipal, long parentFolderId,
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(BookmarksFolderServiceUtil.class,
065 "addFolder", _addFolderParameterTypes0);
066
067 MethodHandler methodHandler = new MethodHandler(methodKey,
068 parentFolderId, 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.bookmarks.model.BookmarksFolder)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 void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
093 throws com.liferay.portal.kernel.exception.PortalException {
094 try {
095 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
096 "deleteFolder", _deleteFolderParameterTypes1);
097
098 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
099
100 try {
101 TunnelUtil.invoke(httpPrincipal, methodHandler);
102 }
103 catch (Exception e) {
104 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
105 throw (com.liferay.portal.kernel.exception.PortalException)e;
106 }
107
108 throw new com.liferay.portal.kernel.exception.SystemException(e);
109 }
110 }
111 catch (com.liferay.portal.kernel.exception.SystemException se) {
112 _log.error(se, se);
113
114 throw se;
115 }
116 }
117
118 public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId,
119 boolean includeTrashedEntries)
120 throws com.liferay.portal.kernel.exception.PortalException {
121 try {
122 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
123 "deleteFolder", _deleteFolderParameterTypes2);
124
125 MethodHandler methodHandler = new MethodHandler(methodKey,
126 folderId, includeTrashedEntries);
127
128 try {
129 TunnelUtil.invoke(httpPrincipal, methodHandler);
130 }
131 catch (Exception e) {
132 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
133 throw (com.liferay.portal.kernel.exception.PortalException)e;
134 }
135
136 throw new com.liferay.portal.kernel.exception.SystemException(e);
137 }
138 }
139 catch (com.liferay.portal.kernel.exception.SystemException se) {
140 _log.error(se, se);
141
142 throw se;
143 }
144 }
145
146 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
147 HttpPrincipal httpPrincipal, long folderId)
148 throws com.liferay.portal.kernel.exception.PortalException {
149 try {
150 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
151 "getFolder", _getFolderParameterTypes3);
152
153 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
154
155 Object returnObj = null;
156
157 try {
158 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
159 }
160 catch (Exception e) {
161 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
162 throw (com.liferay.portal.kernel.exception.PortalException)e;
163 }
164
165 throw new com.liferay.portal.kernel.exception.SystemException(e);
166 }
167
168 return (com.liferay.portlet.bookmarks.model.BookmarksFolder)returnObj;
169 }
170 catch (com.liferay.portal.kernel.exception.SystemException se) {
171 _log.error(se, se);
172
173 throw se;
174 }
175 }
176
177 public static java.util.List<java.lang.Long> getFolderIds(
178 HttpPrincipal httpPrincipal, long groupId, long folderId)
179 throws com.liferay.portal.kernel.exception.PortalException {
180 try {
181 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
182 "getFolderIds", _getFolderIdsParameterTypes4);
183
184 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
185 folderId);
186
187 Object returnObj = null;
188
189 try {
190 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
191 }
192 catch (Exception e) {
193 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
194 throw (com.liferay.portal.kernel.exception.PortalException)e;
195 }
196
197 throw new com.liferay.portal.kernel.exception.SystemException(e);
198 }
199
200 return (java.util.List<java.lang.Long>)returnObj;
201 }
202 catch (com.liferay.portal.kernel.exception.SystemException se) {
203 _log.error(se, se);
204
205 throw se;
206 }
207 }
208
209 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
210 HttpPrincipal httpPrincipal, long groupId) {
211 try {
212 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
213 "getFolders", _getFoldersParameterTypes5);
214
215 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
216
217 Object returnObj = null;
218
219 try {
220 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
221 }
222 catch (Exception e) {
223 throw new com.liferay.portal.kernel.exception.SystemException(e);
224 }
225
226 return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder>)returnObj;
227 }
228 catch (com.liferay.portal.kernel.exception.SystemException se) {
229 _log.error(se, se);
230
231 throw se;
232 }
233 }
234
235 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
236 HttpPrincipal httpPrincipal, long groupId, long parentFolderId) {
237 try {
238 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
239 "getFolders", _getFoldersParameterTypes6);
240
241 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
242 parentFolderId);
243
244 Object returnObj = null;
245
246 try {
247 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
248 }
249 catch (Exception e) {
250 throw new com.liferay.portal.kernel.exception.SystemException(e);
251 }
252
253 return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder>)returnObj;
254 }
255 catch (com.liferay.portal.kernel.exception.SystemException se) {
256 _log.error(se, se);
257
258 throw se;
259 }
260 }
261
262 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
263 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
264 int start, int end) {
265 try {
266 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
267 "getFolders", _getFoldersParameterTypes7);
268
269 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
270 parentFolderId, start, end);
271
272 Object returnObj = null;
273
274 try {
275 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
276 }
277 catch (Exception e) {
278 throw new com.liferay.portal.kernel.exception.SystemException(e);
279 }
280
281 return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder>)returnObj;
282 }
283 catch (com.liferay.portal.kernel.exception.SystemException se) {
284 _log.error(se, se);
285
286 throw se;
287 }
288 }
289
290 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
291 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
292 int status, int start, int end) {
293 try {
294 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
295 "getFolders", _getFoldersParameterTypes8);
296
297 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
298 parentFolderId, status, start, end);
299
300 Object returnObj = null;
301
302 try {
303 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
304 }
305 catch (Exception e) {
306 throw new com.liferay.portal.kernel.exception.SystemException(e);
307 }
308
309 return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder>)returnObj;
310 }
311 catch (com.liferay.portal.kernel.exception.SystemException se) {
312 _log.error(se, se);
313
314 throw se;
315 }
316 }
317
318 public static java.util.List<java.lang.Object> getFoldersAndEntries(
319 HttpPrincipal httpPrincipal, long groupId, long folderId) {
320 try {
321 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
322 "getFoldersAndEntries", _getFoldersAndEntriesParameterTypes9);
323
324 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
325 folderId);
326
327 Object returnObj = null;
328
329 try {
330 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
331 }
332 catch (Exception e) {
333 throw new com.liferay.portal.kernel.exception.SystemException(e);
334 }
335
336 return (java.util.List<java.lang.Object>)returnObj;
337 }
338 catch (com.liferay.portal.kernel.exception.SystemException se) {
339 _log.error(se, se);
340
341 throw se;
342 }
343 }
344
345 public static java.util.List<java.lang.Object> getFoldersAndEntries(
346 HttpPrincipal httpPrincipal, long groupId, long folderId, int status) {
347 try {
348 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
349 "getFoldersAndEntries",
350 _getFoldersAndEntriesParameterTypes10);
351
352 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
353 folderId, status);
354
355 Object returnObj = null;
356
357 try {
358 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
359 }
360 catch (Exception e) {
361 throw new com.liferay.portal.kernel.exception.SystemException(e);
362 }
363
364 return (java.util.List<java.lang.Object>)returnObj;
365 }
366 catch (com.liferay.portal.kernel.exception.SystemException se) {
367 _log.error(se, se);
368
369 throw se;
370 }
371 }
372
373 public static java.util.List<java.lang.Object> getFoldersAndEntries(
374 HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
375 int start, int end) {
376 try {
377 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
378 "getFoldersAndEntries",
379 _getFoldersAndEntriesParameterTypes11);
380
381 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
382 folderId, status, start, end);
383
384 Object returnObj = null;
385
386 try {
387 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
388 }
389 catch (Exception e) {
390 throw new com.liferay.portal.kernel.exception.SystemException(e);
391 }
392
393 return (java.util.List<java.lang.Object>)returnObj;
394 }
395 catch (com.liferay.portal.kernel.exception.SystemException se) {
396 _log.error(se, se);
397
398 throw se;
399 }
400 }
401
402 public static int getFoldersAndEntriesCount(HttpPrincipal httpPrincipal,
403 long groupId, long folderId) {
404 try {
405 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
406 "getFoldersAndEntriesCount",
407 _getFoldersAndEntriesCountParameterTypes12);
408
409 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
410 folderId);
411
412 Object returnObj = null;
413
414 try {
415 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
416 }
417 catch (Exception e) {
418 throw new com.liferay.portal.kernel.exception.SystemException(e);
419 }
420
421 return ((Integer)returnObj).intValue();
422 }
423 catch (com.liferay.portal.kernel.exception.SystemException se) {
424 _log.error(se, se);
425
426 throw se;
427 }
428 }
429
430 public static int getFoldersAndEntriesCount(HttpPrincipal httpPrincipal,
431 long groupId, long folderId, int status) {
432 try {
433 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
434 "getFoldersAndEntriesCount",
435 _getFoldersAndEntriesCountParameterTypes13);
436
437 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
438 folderId, status);
439
440 Object returnObj = null;
441
442 try {
443 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
444 }
445 catch (Exception e) {
446 throw new com.liferay.portal.kernel.exception.SystemException(e);
447 }
448
449 return ((Integer)returnObj).intValue();
450 }
451 catch (com.liferay.portal.kernel.exception.SystemException se) {
452 _log.error(se, se);
453
454 throw se;
455 }
456 }
457
458 public static int getFoldersCount(HttpPrincipal httpPrincipal,
459 long groupId, long parentFolderId) {
460 try {
461 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
462 "getFoldersCount", _getFoldersCountParameterTypes14);
463
464 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
465 parentFolderId);
466
467 Object returnObj = null;
468
469 try {
470 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
471 }
472 catch (Exception e) {
473 throw new com.liferay.portal.kernel.exception.SystemException(e);
474 }
475
476 return ((Integer)returnObj).intValue();
477 }
478 catch (com.liferay.portal.kernel.exception.SystemException se) {
479 _log.error(se, se);
480
481 throw se;
482 }
483 }
484
485 public static int getFoldersCount(HttpPrincipal httpPrincipal,
486 long groupId, long parentFolderId, int status) {
487 try {
488 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
489 "getFoldersCount", _getFoldersCountParameterTypes15);
490
491 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
492 parentFolderId, status);
493
494 Object returnObj = null;
495
496 try {
497 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
498 }
499 catch (Exception e) {
500 throw new com.liferay.portal.kernel.exception.SystemException(e);
501 }
502
503 return ((Integer)returnObj).intValue();
504 }
505 catch (com.liferay.portal.kernel.exception.SystemException se) {
506 _log.error(se, se);
507
508 throw se;
509 }
510 }
511
512 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
513 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
514 try {
515 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
516 "getSubfolderIds", _getSubfolderIdsParameterTypes16);
517
518 MethodHandler methodHandler = new MethodHandler(methodKey,
519 folderIds, groupId, folderId);
520
521 try {
522 TunnelUtil.invoke(httpPrincipal, methodHandler);
523 }
524 catch (Exception e) {
525 throw new com.liferay.portal.kernel.exception.SystemException(e);
526 }
527 }
528 catch (com.liferay.portal.kernel.exception.SystemException se) {
529 _log.error(se, se);
530
531 throw se;
532 }
533 }
534
535 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
536 java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
537 boolean recurse) {
538 try {
539 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
540 "getSubfolderIds", _getSubfolderIdsParameterTypes17);
541
542 MethodHandler methodHandler = new MethodHandler(methodKey,
543 folderIds, groupId, folderId, recurse);
544
545 try {
546 TunnelUtil.invoke(httpPrincipal, methodHandler);
547 }
548 catch (Exception e) {
549 throw new com.liferay.portal.kernel.exception.SystemException(e);
550 }
551 }
552 catch (com.liferay.portal.kernel.exception.SystemException se) {
553 _log.error(se, se);
554
555 throw se;
556 }
557 }
558
559 public static java.util.List<java.lang.Long> getSubfolderIds(
560 HttpPrincipal httpPrincipal, long groupId, long folderId,
561 boolean recurse) {
562 try {
563 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
564 "getSubfolderIds", _getSubfolderIdsParameterTypes18);
565
566 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
567 folderId, recurse);
568
569 Object returnObj = null;
570
571 try {
572 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
573 }
574 catch (Exception e) {
575 throw new com.liferay.portal.kernel.exception.SystemException(e);
576 }
577
578 return (java.util.List<java.lang.Long>)returnObj;
579 }
580 catch (com.liferay.portal.kernel.exception.SystemException se) {
581 _log.error(se, se);
582
583 throw se;
584 }
585 }
586
587 public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolder(
588 HttpPrincipal httpPrincipal, long folderId, long parentFolderId)
589 throws com.liferay.portal.kernel.exception.PortalException {
590 try {
591 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
592 "moveFolder", _moveFolderParameterTypes19);
593
594 MethodHandler methodHandler = new MethodHandler(methodKey,
595 folderId, parentFolderId);
596
597 Object returnObj = null;
598
599 try {
600 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
601 }
602 catch (Exception e) {
603 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
604 throw (com.liferay.portal.kernel.exception.PortalException)e;
605 }
606
607 throw new com.liferay.portal.kernel.exception.SystemException(e);
608 }
609
610 return (com.liferay.portlet.bookmarks.model.BookmarksFolder)returnObj;
611 }
612 catch (com.liferay.portal.kernel.exception.SystemException se) {
613 _log.error(se, se);
614
615 throw se;
616 }
617 }
618
619 public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(
620 HttpPrincipal httpPrincipal, long folderId, long parentFolderId)
621 throws com.liferay.portal.kernel.exception.PortalException {
622 try {
623 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
624 "moveFolderFromTrash", _moveFolderFromTrashParameterTypes20);
625
626 MethodHandler methodHandler = new MethodHandler(methodKey,
627 folderId, parentFolderId);
628
629 Object returnObj = null;
630
631 try {
632 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
633 }
634 catch (Exception e) {
635 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
636 throw (com.liferay.portal.kernel.exception.PortalException)e;
637 }
638
639 throw new com.liferay.portal.kernel.exception.SystemException(e);
640 }
641
642 return (com.liferay.portlet.bookmarks.model.BookmarksFolder)returnObj;
643 }
644 catch (com.liferay.portal.kernel.exception.SystemException se) {
645 _log.error(se, se);
646
647 throw se;
648 }
649 }
650
651 public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(
652 HttpPrincipal httpPrincipal, long folderId)
653 throws com.liferay.portal.kernel.exception.PortalException {
654 try {
655 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
656 "moveFolderToTrash", _moveFolderToTrashParameterTypes21);
657
658 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
659
660 Object returnObj = null;
661
662 try {
663 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
664 }
665 catch (Exception e) {
666 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
667 throw (com.liferay.portal.kernel.exception.PortalException)e;
668 }
669
670 throw new com.liferay.portal.kernel.exception.SystemException(e);
671 }
672
673 return (com.liferay.portlet.bookmarks.model.BookmarksFolder)returnObj;
674 }
675 catch (com.liferay.portal.kernel.exception.SystemException se) {
676 _log.error(se, se);
677
678 throw se;
679 }
680 }
681
682 public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
683 long folderId)
684 throws com.liferay.portal.kernel.exception.PortalException {
685 try {
686 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
687 "restoreFolderFromTrash",
688 _restoreFolderFromTrashParameterTypes22);
689
690 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
691
692 try {
693 TunnelUtil.invoke(httpPrincipal, methodHandler);
694 }
695 catch (Exception e) {
696 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
697 throw (com.liferay.portal.kernel.exception.PortalException)e;
698 }
699
700 throw new com.liferay.portal.kernel.exception.SystemException(e);
701 }
702 }
703 catch (com.liferay.portal.kernel.exception.SystemException se) {
704 _log.error(se, se);
705
706 throw se;
707 }
708 }
709
710 public static void subscribeFolder(HttpPrincipal httpPrincipal,
711 long groupId, long folderId)
712 throws com.liferay.portal.kernel.exception.PortalException {
713 try {
714 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
715 "subscribeFolder", _subscribeFolderParameterTypes23);
716
717 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
718 folderId);
719
720 try {
721 TunnelUtil.invoke(httpPrincipal, methodHandler);
722 }
723 catch (Exception e) {
724 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
725 throw (com.liferay.portal.kernel.exception.PortalException)e;
726 }
727
728 throw new com.liferay.portal.kernel.exception.SystemException(e);
729 }
730 }
731 catch (com.liferay.portal.kernel.exception.SystemException se) {
732 _log.error(se, se);
733
734 throw se;
735 }
736 }
737
738 public static void unsubscribeFolder(HttpPrincipal httpPrincipal,
739 long groupId, long folderId)
740 throws com.liferay.portal.kernel.exception.PortalException {
741 try {
742 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
743 "unsubscribeFolder", _unsubscribeFolderParameterTypes24);
744
745 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
746 folderId);
747
748 try {
749 TunnelUtil.invoke(httpPrincipal, methodHandler);
750 }
751 catch (Exception e) {
752 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
753 throw (com.liferay.portal.kernel.exception.PortalException)e;
754 }
755
756 throw new com.liferay.portal.kernel.exception.SystemException(e);
757 }
758 }
759 catch (com.liferay.portal.kernel.exception.SystemException se) {
760 _log.error(se, se);
761
762 throw se;
763 }
764 }
765
766 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
767 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
768 java.lang.String name, java.lang.String description,
769 boolean mergeWithParentFolder,
770 com.liferay.portal.service.ServiceContext serviceContext)
771 throws com.liferay.portal.kernel.exception.PortalException {
772 try {
773 MethodKey methodKey = new MethodKey(BookmarksFolderServiceUtil.class,
774 "updateFolder", _updateFolderParameterTypes25);
775
776 MethodHandler methodHandler = new MethodHandler(methodKey,
777 folderId, parentFolderId, name, description,
778 mergeWithParentFolder, serviceContext);
779
780 Object returnObj = null;
781
782 try {
783 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
784 }
785 catch (Exception e) {
786 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
787 throw (com.liferay.portal.kernel.exception.PortalException)e;
788 }
789
790 throw new com.liferay.portal.kernel.exception.SystemException(e);
791 }
792
793 return (com.liferay.portlet.bookmarks.model.BookmarksFolder)returnObj;
794 }
795 catch (com.liferay.portal.kernel.exception.SystemException se) {
796 _log.error(se, se);
797
798 throw se;
799 }
800 }
801
802 private static Log _log = LogFactoryUtil.getLog(BookmarksFolderServiceHttp.class);
803 private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
804 long.class, java.lang.String.class, java.lang.String.class,
805 com.liferay.portal.service.ServiceContext.class
806 };
807 private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
808 long.class
809 };
810 private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
811 long.class, boolean.class
812 };
813 private static final Class<?>[] _getFolderParameterTypes3 = new Class[] {
814 long.class
815 };
816 private static final Class<?>[] _getFolderIdsParameterTypes4 = new Class[] {
817 long.class, long.class
818 };
819 private static final Class<?>[] _getFoldersParameterTypes5 = new Class[] {
820 long.class
821 };
822 private static final Class<?>[] _getFoldersParameterTypes6 = new Class[] {
823 long.class, long.class
824 };
825 private static final Class<?>[] _getFoldersParameterTypes7 = new Class[] {
826 long.class, long.class, int.class, int.class
827 };
828 private static final Class<?>[] _getFoldersParameterTypes8 = new Class[] {
829 long.class, long.class, int.class, int.class, int.class
830 };
831 private static final Class<?>[] _getFoldersAndEntriesParameterTypes9 = new Class[] {
832 long.class, long.class
833 };
834 private static final Class<?>[] _getFoldersAndEntriesParameterTypes10 = new Class[] {
835 long.class, long.class, int.class
836 };
837 private static final Class<?>[] _getFoldersAndEntriesParameterTypes11 = new Class[] {
838 long.class, long.class, int.class, int.class, int.class
839 };
840 private static final Class<?>[] _getFoldersAndEntriesCountParameterTypes12 = new Class[] {
841 long.class, long.class
842 };
843 private static final Class<?>[] _getFoldersAndEntriesCountParameterTypes13 = new Class[] {
844 long.class, long.class, int.class
845 };
846 private static final Class<?>[] _getFoldersCountParameterTypes14 = new Class[] {
847 long.class, long.class
848 };
849 private static final Class<?>[] _getFoldersCountParameterTypes15 = new Class[] {
850 long.class, long.class, int.class
851 };
852 private static final Class<?>[] _getSubfolderIdsParameterTypes16 = new Class[] {
853 java.util.List.class, long.class, long.class
854 };
855 private static final Class<?>[] _getSubfolderIdsParameterTypes17 = new Class[] {
856 java.util.List.class, long.class, long.class, boolean.class
857 };
858 private static final Class<?>[] _getSubfolderIdsParameterTypes18 = new Class[] {
859 long.class, long.class, boolean.class
860 };
861 private static final Class<?>[] _moveFolderParameterTypes19 = new Class[] {
862 long.class, long.class
863 };
864 private static final Class<?>[] _moveFolderFromTrashParameterTypes20 = new Class[] {
865 long.class, long.class
866 };
867 private static final Class<?>[] _moveFolderToTrashParameterTypes21 = new Class[] {
868 long.class
869 };
870 private static final Class<?>[] _restoreFolderFromTrashParameterTypes22 = new Class[] {
871 long.class
872 };
873 private static final Class<?>[] _subscribeFolderParameterTypes23 = new Class[] {
874 long.class, long.class
875 };
876 private static final Class<?>[] _unsubscribeFolderParameterTypes24 = new Class[] {
877 long.class, long.class
878 };
879 private static final Class<?>[] _updateFolderParameterTypes25 = new Class[] {
880 long.class, long.class, java.lang.String.class,
881 java.lang.String.class, boolean.class,
882 com.liferay.portal.service.ServiceContext.class
883 };
884 }