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