001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
027     * Provides the HTTP utility for the
028     * {@link com.liferay.portlet.bookmarks.service.BookmarksEntryServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see BookmarksEntryServiceSoap
050     * @see com.liferay.portal.security.auth.HttpPrincipal
051     * @see com.liferay.portlet.bookmarks.service.BookmarksEntryServiceUtil
052     * @generated
053     */
054    public class BookmarksEntryServiceHttp {
055            public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
056                    HttpPrincipal httpPrincipal, long groupId, long folderId,
057                    java.lang.String name, java.lang.String url,
058                    java.lang.String description,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    try {
063                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
064                                            "addEntry", _addEntryParameterTypes0);
065    
066                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
067                                            folderId, name, url, description, serviceContext);
068    
069                            Object returnObj = null;
070    
071                            try {
072                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
073                            }
074                            catch (Exception e) {
075                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
076                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
077                                    }
078    
079                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
080                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
081                                    }
082    
083                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
084                            }
085    
086                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
087                    }
088                    catch (com.liferay.portal.kernel.exception.SystemException se) {
089                            _log.error(se, se);
090    
091                            throw se;
092                    }
093            }
094    
095            public static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    try {
099                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
100                                            "deleteEntry", _deleteEntryParameterTypes1);
101    
102                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
103    
104                            try {
105                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
106                            }
107                            catch (Exception e) {
108                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
109                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
110                                    }
111    
112                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
113                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
114                                    }
115    
116                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
117                            }
118                    }
119                    catch (com.liferay.portal.kernel.exception.SystemException se) {
120                            _log.error(se, se);
121    
122                            throw se;
123                    }
124            }
125    
126            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
127                    HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException {
129                    try {
130                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
131                                            "getEntries", _getEntriesParameterTypes2);
132    
133                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
134                                            folderId, start, end);
135    
136                            Object returnObj = null;
137    
138                            try {
139                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
140                            }
141                            catch (Exception e) {
142                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
143                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
144                                    }
145    
146                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
147                            }
148    
149                            return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry>)returnObj;
150                    }
151                    catch (com.liferay.portal.kernel.exception.SystemException se) {
152                            _log.error(se, se);
153    
154                            throw se;
155                    }
156            }
157    
158            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
159                    HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
160                    int end,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    try {
164                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
165                                            "getEntries", _getEntriesParameterTypes3);
166    
167                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
168                                            folderId, start, end, orderByComparator);
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.SystemException) {
177                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
178                                    }
179    
180                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
181                            }
182    
183                            return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry>)returnObj;
184                    }
185                    catch (com.liferay.portal.kernel.exception.SystemException se) {
186                            _log.error(se, se);
187    
188                            throw se;
189                    }
190            }
191    
192            public static int getEntriesCount(HttpPrincipal httpPrincipal,
193                    long groupId, long folderId)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    try {
196                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
197                                            "getEntriesCount", _getEntriesCountParameterTypes4);
198    
199                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
200                                            folderId);
201    
202                            Object returnObj = null;
203    
204                            try {
205                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
206                            }
207                            catch (Exception e) {
208                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
209                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
210                                    }
211    
212                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
213                            }
214    
215                            return ((Integer)returnObj).intValue();
216                    }
217                    catch (com.liferay.portal.kernel.exception.SystemException se) {
218                            _log.error(se, se);
219    
220                            throw se;
221                    }
222            }
223    
224            public static int getEntriesCount(HttpPrincipal httpPrincipal,
225                    long groupId, long folderId, int status)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    try {
228                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
229                                            "getEntriesCount", _getEntriesCountParameterTypes5);
230    
231                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
232                                            folderId, status);
233    
234                            Object returnObj = null;
235    
236                            try {
237                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
238                            }
239                            catch (Exception e) {
240                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
241                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
242                                    }
243    
244                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
245                            }
246    
247                            return ((Integer)returnObj).intValue();
248                    }
249                    catch (com.liferay.portal.kernel.exception.SystemException se) {
250                            _log.error(se, se);
251    
252                            throw se;
253                    }
254            }
255    
256            public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
257                    HttpPrincipal httpPrincipal, long entryId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    try {
261                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
262                                            "getEntry", _getEntryParameterTypes6);
263    
264                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
265    
266                            Object returnObj = null;
267    
268                            try {
269                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
270                            }
271                            catch (Exception e) {
272                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
273                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
274                                    }
275    
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 (com.liferay.portlet.bookmarks.model.BookmarksEntry)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 int getFoldersEntriesCount(HttpPrincipal httpPrincipal,
293                    long groupId, java.util.List<java.lang.Long> folderIds)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    try {
296                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
297                                            "getFoldersEntriesCount",
298                                            _getFoldersEntriesCountParameterTypes7);
299    
300                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
301                                            folderIds);
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 ((Integer)returnObj).intValue();
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<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
326                    HttpPrincipal httpPrincipal, long groupId, int start, int end)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    try {
330                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
331                                            "getGroupEntries", _getGroupEntriesParameterTypes8);
332    
333                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
334                                            start, end);
335    
336                            Object returnObj = null;
337    
338                            try {
339                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
340                            }
341                            catch (Exception e) {
342                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
343                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
344                                    }
345    
346                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
347                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
348                                    }
349    
350                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
351                            }
352    
353                            return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry>)returnObj;
354                    }
355                    catch (com.liferay.portal.kernel.exception.SystemException se) {
356                            _log.error(se, se);
357    
358                            throw se;
359                    }
360            }
361    
362            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
363                    HttpPrincipal httpPrincipal, long groupId, long userId, int start,
364                    int end)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    try {
368                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
369                                            "getGroupEntries", _getGroupEntriesParameterTypes9);
370    
371                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
372                                            userId, start, end);
373    
374                            Object returnObj = null;
375    
376                            try {
377                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
378                            }
379                            catch (Exception e) {
380                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
381                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
382                                    }
383    
384                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
385                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
386                                    }
387    
388                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
389                            }
390    
391                            return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry>)returnObj;
392                    }
393                    catch (com.liferay.portal.kernel.exception.SystemException se) {
394                            _log.error(se, se);
395    
396                            throw se;
397                    }
398            }
399    
400            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
401                    HttpPrincipal httpPrincipal, long groupId, long userId,
402                    long rootFolderId, int start, int end)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    try {
406                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
407                                            "getGroupEntries", _getGroupEntriesParameterTypes10);
408    
409                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
410                                            userId, rootFolderId, start, end);
411    
412                            Object returnObj = null;
413    
414                            try {
415                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
416                            }
417                            catch (Exception e) {
418                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
419                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
420                                    }
421    
422                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
423                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
424                                    }
425    
426                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
427                            }
428    
429                            return (java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry>)returnObj;
430                    }
431                    catch (com.liferay.portal.kernel.exception.SystemException se) {
432                            _log.error(se, se);
433    
434                            throw se;
435                    }
436            }
437    
438            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
439                    long groupId)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException {
442                    try {
443                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
444                                            "getGroupEntriesCount",
445                                            _getGroupEntriesCountParameterTypes11);
446    
447                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
448    
449                            Object returnObj = null;
450    
451                            try {
452                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
453                            }
454                            catch (Exception e) {
455                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
456                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
457                                    }
458    
459                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
460                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
461                                    }
462    
463                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
464                            }
465    
466                            return ((Integer)returnObj).intValue();
467                    }
468                    catch (com.liferay.portal.kernel.exception.SystemException se) {
469                            _log.error(se, se);
470    
471                            throw se;
472                    }
473            }
474    
475            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
476                    long groupId, long userId)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    try {
480                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
481                                            "getGroupEntriesCount",
482                                            _getGroupEntriesCountParameterTypes12);
483    
484                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
485                                            userId);
486    
487                            Object returnObj = null;
488    
489                            try {
490                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
491                            }
492                            catch (Exception e) {
493                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
494                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
495                                    }
496    
497                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
498                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
499                                    }
500    
501                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
502                            }
503    
504                            return ((Integer)returnObj).intValue();
505                    }
506                    catch (com.liferay.portal.kernel.exception.SystemException se) {
507                            _log.error(se, se);
508    
509                            throw se;
510                    }
511            }
512    
513            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
514                    long groupId, long userId, long rootFolderId)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException {
517                    try {
518                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
519                                            "getGroupEntriesCount",
520                                            _getGroupEntriesCountParameterTypes13);
521    
522                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
523                                            userId, rootFolderId);
524    
525                            Object returnObj = null;
526    
527                            try {
528                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
529                            }
530                            catch (Exception e) {
531                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
532                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
533                                    }
534    
535                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
536                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
537                                    }
538    
539                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
540                            }
541    
542                            return ((Integer)returnObj).intValue();
543                    }
544                    catch (com.liferay.portal.kernel.exception.SystemException se) {
545                            _log.error(se, se);
546    
547                            throw se;
548                    }
549            }
550    
551            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
552                    HttpPrincipal httpPrincipal, long entryId, long parentFolderId)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException {
555                    try {
556                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
557                                            "moveEntry", _moveEntryParameterTypes14);
558    
559                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
560                                            parentFolderId);
561    
562                            Object returnObj = null;
563    
564                            try {
565                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
566                            }
567                            catch (Exception e) {
568                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
569                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
570                                    }
571    
572                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
573                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
574                                    }
575    
576                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
577                            }
578    
579                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
580                    }
581                    catch (com.liferay.portal.kernel.exception.SystemException se) {
582                            _log.error(se, se);
583    
584                            throw se;
585                    }
586            }
587    
588            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
589                    HttpPrincipal httpPrincipal, long entryId, long parentFolderId)
590                    throws com.liferay.portal.kernel.exception.PortalException,
591                            com.liferay.portal.kernel.exception.SystemException {
592                    try {
593                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
594                                            "moveEntryFromTrash", _moveEntryFromTrashParameterTypes15);
595    
596                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
597                                            parentFolderId);
598    
599                            Object returnObj = null;
600    
601                            try {
602                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
603                            }
604                            catch (Exception e) {
605                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
606                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
607                                    }
608    
609                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
610                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
611                                    }
612    
613                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
614                            }
615    
616                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
617                    }
618                    catch (com.liferay.portal.kernel.exception.SystemException se) {
619                            _log.error(se, se);
620    
621                            throw se;
622                    }
623            }
624    
625            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
626                    HttpPrincipal httpPrincipal, long entryId)
627                    throws com.liferay.portal.kernel.exception.PortalException,
628                            com.liferay.portal.kernel.exception.SystemException {
629                    try {
630                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
631                                            "moveEntryToTrash", _moveEntryToTrashParameterTypes16);
632    
633                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
634    
635                            Object returnObj = null;
636    
637                            try {
638                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
639                            }
640                            catch (Exception e) {
641                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
642                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
643                                    }
644    
645                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
646                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
647                                    }
648    
649                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
650                            }
651    
652                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
653                    }
654                    catch (com.liferay.portal.kernel.exception.SystemException se) {
655                            _log.error(se, se);
656    
657                            throw se;
658                    }
659            }
660    
661            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
662                    HttpPrincipal httpPrincipal,
663                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException {
666                    try {
667                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
668                                            "openEntry", _openEntryParameterTypes17);
669    
670                            MethodHandler methodHandler = new MethodHandler(methodKey, entry);
671    
672                            Object returnObj = null;
673    
674                            try {
675                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
676                            }
677                            catch (Exception e) {
678                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
679                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
680                                    }
681    
682                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
683                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
684                                    }
685    
686                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
687                            }
688    
689                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
690                    }
691                    catch (com.liferay.portal.kernel.exception.SystemException se) {
692                            _log.error(se, se);
693    
694                            throw se;
695                    }
696            }
697    
698            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
699                    HttpPrincipal httpPrincipal, long entryId)
700                    throws com.liferay.portal.kernel.exception.PortalException,
701                            com.liferay.portal.kernel.exception.SystemException {
702                    try {
703                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
704                                            "openEntry", _openEntryParameterTypes18);
705    
706                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
707    
708                            Object returnObj = null;
709    
710                            try {
711                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
712                            }
713                            catch (Exception e) {
714                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
715                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
716                                    }
717    
718                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
719                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
720                                    }
721    
722                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
723                            }
724    
725                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
726                    }
727                    catch (com.liferay.portal.kernel.exception.SystemException se) {
728                            _log.error(se, se);
729    
730                            throw se;
731                    }
732            }
733    
734            public static void restoreEntryFromTrash(HttpPrincipal httpPrincipal,
735                    long entryId)
736                    throws com.liferay.portal.kernel.exception.PortalException,
737                            com.liferay.portal.kernel.exception.SystemException {
738                    try {
739                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
740                                            "restoreEntryFromTrash",
741                                            _restoreEntryFromTrashParameterTypes19);
742    
743                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
744    
745                            try {
746                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
747                            }
748                            catch (Exception e) {
749                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
750                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
751                                    }
752    
753                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
754                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
755                                    }
756    
757                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
758                            }
759                    }
760                    catch (com.liferay.portal.kernel.exception.SystemException se) {
761                            _log.error(se, se);
762    
763                            throw se;
764                    }
765            }
766    
767            public static com.liferay.portal.kernel.search.Hits search(
768                    HttpPrincipal httpPrincipal, long groupId, long creatorUserId,
769                    int status, int start, int end)
770                    throws com.liferay.portal.kernel.exception.PortalException,
771                            com.liferay.portal.kernel.exception.SystemException {
772                    try {
773                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
774                                            "search", _searchParameterTypes20);
775    
776                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
777                                            creatorUserId, status, start, end);
778    
779                            Object returnObj = null;
780    
781                            try {
782                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
783                            }
784                            catch (Exception e) {
785                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
786                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
787                                    }
788    
789                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
790                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
791                                    }
792    
793                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
794                            }
795    
796                            return (com.liferay.portal.kernel.search.Hits)returnObj;
797                    }
798                    catch (com.liferay.portal.kernel.exception.SystemException se) {
799                            _log.error(se, se);
800    
801                            throw se;
802                    }
803            }
804    
805            public static void subscribeEntry(HttpPrincipal httpPrincipal, long entryId)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException {
808                    try {
809                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
810                                            "subscribeEntry", _subscribeEntryParameterTypes21);
811    
812                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
813    
814                            try {
815                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
816                            }
817                            catch (Exception e) {
818                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
819                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
820                                    }
821    
822                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
823                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
824                                    }
825    
826                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
827                            }
828                    }
829                    catch (com.liferay.portal.kernel.exception.SystemException se) {
830                            _log.error(se, se);
831    
832                            throw se;
833                    }
834            }
835    
836            public static void unsubscribeEntry(HttpPrincipal httpPrincipal,
837                    long entryId)
838                    throws com.liferay.portal.kernel.exception.PortalException,
839                            com.liferay.portal.kernel.exception.SystemException {
840                    try {
841                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
842                                            "unsubscribeEntry", _unsubscribeEntryParameterTypes22);
843    
844                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
845    
846                            try {
847                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
848                            }
849                            catch (Exception e) {
850                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
851                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
852                                    }
853    
854                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
855                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
856                                    }
857    
858                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
859                            }
860                    }
861                    catch (com.liferay.portal.kernel.exception.SystemException se) {
862                            _log.error(se, se);
863    
864                            throw se;
865                    }
866            }
867    
868            public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
869                    HttpPrincipal httpPrincipal, long entryId, long groupId, long folderId,
870                    java.lang.String name, java.lang.String url,
871                    java.lang.String description,
872                    com.liferay.portal.service.ServiceContext serviceContext)
873                    throws com.liferay.portal.kernel.exception.PortalException,
874                            com.liferay.portal.kernel.exception.SystemException {
875                    try {
876                            MethodKey methodKey = new MethodKey(BookmarksEntryServiceUtil.class,
877                                            "updateEntry", _updateEntryParameterTypes23);
878    
879                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
880                                            groupId, folderId, name, url, description, serviceContext);
881    
882                            Object returnObj = null;
883    
884                            try {
885                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
886                            }
887                            catch (Exception e) {
888                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
889                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
890                                    }
891    
892                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
893                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
894                                    }
895    
896                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
897                            }
898    
899                            return (com.liferay.portlet.bookmarks.model.BookmarksEntry)returnObj;
900                    }
901                    catch (com.liferay.portal.kernel.exception.SystemException se) {
902                            _log.error(se, se);
903    
904                            throw se;
905                    }
906            }
907    
908            private static Log _log = LogFactoryUtil.getLog(BookmarksEntryServiceHttp.class);
909            private static final Class<?>[] _addEntryParameterTypes0 = new Class[] {
910                            long.class, long.class, java.lang.String.class,
911                            java.lang.String.class, java.lang.String.class,
912                            com.liferay.portal.service.ServiceContext.class
913                    };
914            private static final Class<?>[] _deleteEntryParameterTypes1 = new Class[] {
915                            long.class
916                    };
917            private static final Class<?>[] _getEntriesParameterTypes2 = new Class[] {
918                            long.class, long.class, int.class, int.class
919                    };
920            private static final Class<?>[] _getEntriesParameterTypes3 = new Class[] {
921                            long.class, long.class, int.class, int.class,
922                            com.liferay.portal.kernel.util.OrderByComparator.class
923                    };
924            private static final Class<?>[] _getEntriesCountParameterTypes4 = new Class[] {
925                            long.class, long.class
926                    };
927            private static final Class<?>[] _getEntriesCountParameterTypes5 = new Class[] {
928                            long.class, long.class, int.class
929                    };
930            private static final Class<?>[] _getEntryParameterTypes6 = new Class[] {
931                            long.class
932                    };
933            private static final Class<?>[] _getFoldersEntriesCountParameterTypes7 = new Class[] {
934                            long.class, java.util.List.class
935                    };
936            private static final Class<?>[] _getGroupEntriesParameterTypes8 = new Class[] {
937                            long.class, int.class, int.class
938                    };
939            private static final Class<?>[] _getGroupEntriesParameterTypes9 = new Class[] {
940                            long.class, long.class, int.class, int.class
941                    };
942            private static final Class<?>[] _getGroupEntriesParameterTypes10 = new Class[] {
943                            long.class, long.class, long.class, int.class, int.class
944                    };
945            private static final Class<?>[] _getGroupEntriesCountParameterTypes11 = new Class[] {
946                            long.class
947                    };
948            private static final Class<?>[] _getGroupEntriesCountParameterTypes12 = new Class[] {
949                            long.class, long.class
950                    };
951            private static final Class<?>[] _getGroupEntriesCountParameterTypes13 = new Class[] {
952                            long.class, long.class, long.class
953                    };
954            private static final Class<?>[] _moveEntryParameterTypes14 = new Class[] {
955                            long.class, long.class
956                    };
957            private static final Class<?>[] _moveEntryFromTrashParameterTypes15 = new Class[] {
958                            long.class, long.class
959                    };
960            private static final Class<?>[] _moveEntryToTrashParameterTypes16 = new Class[] {
961                            long.class
962                    };
963            private static final Class<?>[] _openEntryParameterTypes17 = new Class[] {
964                            com.liferay.portlet.bookmarks.model.BookmarksEntry.class
965                    };
966            private static final Class<?>[] _openEntryParameterTypes18 = new Class[] {
967                            long.class
968                    };
969            private static final Class<?>[] _restoreEntryFromTrashParameterTypes19 = new Class[] {
970                            long.class
971                    };
972            private static final Class<?>[] _searchParameterTypes20 = new Class[] {
973                            long.class, long.class, int.class, int.class, int.class
974                    };
975            private static final Class<?>[] _subscribeEntryParameterTypes21 = new Class[] {
976                            long.class
977                    };
978            private static final Class<?>[] _unsubscribeEntryParameterTypes22 = new Class[] {
979                            long.class
980                    };
981            private static final Class<?>[] _updateEntryParameterTypes23 = new Class[] {
982                            long.class, long.class, long.class, java.lang.String.class,
983                            java.lang.String.class, java.lang.String.class,
984                            com.liferay.portal.service.ServiceContext.class
985                    };
986    }