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