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