001    /**
002     * Copyright (c) 2000-present 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.asset.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.security.auth.HttpPrincipal;
022    import com.liferay.portal.kernel.util.MethodHandler;
023    import com.liferay.portal.kernel.util.MethodKey;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.asset.service.AssetTagServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link AssetTagServiceUtil} service utility. The
031     * static methods of this class calls the same methods of the service utility.
032     * However, the signatures are different because it requires an additional
033     * {@link HttpPrincipal} parameter.
034     *
035     * <p>
036     * The benefits of using the HTTP utility is that it is fast and allows for
037     * tunneling without the cost of serializing to text. The drawback is that it
038     * only works with Java.
039     * </p>
040     *
041     * <p>
042     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
043     * configure security.
044     * </p>
045     *
046     * <p>
047     * The HTTP utility is only generated for remote services.
048     * </p>
049     *
050     * @author Brian Wing Shun Chan
051     * @see AssetTagServiceSoap
052     * @see HttpPrincipal
053     * @see AssetTagServiceUtil
054     * @generated
055     */
056    @ProviderType
057    public class AssetTagServiceHttp {
058            public static com.liferay.portlet.asset.model.AssetTag addTag(
059                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    try {
063                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
064                                            "addTag", _addTagParameterTypes0);
065    
066                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
067                                            name, 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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
080                            }
081    
082                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
083                    }
084                    catch (com.liferay.portal.kernel.exception.SystemException se) {
085                            _log.error(se, se);
086    
087                            throw se;
088                    }
089            }
090    
091            public static void deleteTag(HttpPrincipal httpPrincipal, long tagId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    try {
094                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
095                                            "deleteTag", _deleteTagParameterTypes1);
096    
097                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId);
098    
099                            try {
100                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
101                            }
102                            catch (Exception e) {
103                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
104                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
105                                    }
106    
107                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
108                            }
109                    }
110                    catch (com.liferay.portal.kernel.exception.SystemException se) {
111                            _log.error(se, se);
112    
113                            throw se;
114                    }
115            }
116    
117            public static void deleteTags(HttpPrincipal httpPrincipal, long[] tagIds)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    try {
120                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
121                                            "deleteTags", _deleteTagsParameterTypes2);
122    
123                            MethodHandler methodHandler = new MethodHandler(methodKey, tagIds);
124    
125                            try {
126                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
127                            }
128                            catch (Exception e) {
129                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
130                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
131                                    }
132    
133                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
134                            }
135                    }
136                    catch (com.liferay.portal.kernel.exception.SystemException se) {
137                            _log.error(se, se);
138    
139                            throw se;
140                    }
141            }
142    
143            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
144                    HttpPrincipal httpPrincipal, long[] groupIds) {
145                    try {
146                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
147                                            "getGroupsTags", _getGroupsTagsParameterTypes3);
148    
149                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
150    
151                            Object returnObj = null;
152    
153                            try {
154                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
155                            }
156                            catch (Exception e) {
157                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
158                            }
159    
160                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
161                    }
162                    catch (com.liferay.portal.kernel.exception.SystemException se) {
163                            _log.error(se, se);
164    
165                            throw se;
166                    }
167            }
168    
169            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
170                    HttpPrincipal httpPrincipal, long groupId) {
171                    try {
172                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
173                                            "getGroupTags", _getGroupTagsParameterTypes4);
174    
175                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
176    
177                            Object returnObj = null;
178    
179                            try {
180                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
181                            }
182                            catch (Exception e) {
183                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
184                            }
185    
186                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
187                    }
188                    catch (com.liferay.portal.kernel.exception.SystemException se) {
189                            _log.error(se, se);
190    
191                            throw se;
192                    }
193            }
194    
195            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
196                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
197                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
198                    try {
199                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
200                                            "getGroupTags", _getGroupTagsParameterTypes5);
201    
202                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
203                                            start, end, obc);
204    
205                            Object returnObj = null;
206    
207                            try {
208                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
209                            }
210                            catch (Exception e) {
211                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
212                            }
213    
214                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
215                    }
216                    catch (com.liferay.portal.kernel.exception.SystemException se) {
217                            _log.error(se, se);
218    
219                            throw se;
220                    }
221            }
222    
223            public static int getGroupTagsCount(HttpPrincipal httpPrincipal,
224                    long groupId) {
225                    try {
226                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
227                                            "getGroupTagsCount", _getGroupTagsCountParameterTypes6);
228    
229                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
230    
231                            Object returnObj = null;
232    
233                            try {
234                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
235                            }
236                            catch (Exception e) {
237                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
238                            }
239    
240                            return ((Integer)returnObj).intValue();
241                    }
242                    catch (com.liferay.portal.kernel.exception.SystemException se) {
243                            _log.error(se, se);
244    
245                            throw se;
246                    }
247            }
248    
249            public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
250                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
251                    int start, int end) {
252                    try {
253                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
254                                            "getGroupTagsDisplay", _getGroupTagsDisplayParameterTypes7);
255    
256                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
257                                            name, start, end);
258    
259                            Object returnObj = null;
260    
261                            try {
262                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
263                            }
264                            catch (Exception e) {
265                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
266                            }
267    
268                            return (com.liferay.portlet.asset.model.AssetTagDisplay)returnObj;
269                    }
270                    catch (com.liferay.portal.kernel.exception.SystemException se) {
271                            _log.error(se, se);
272    
273                            throw se;
274                    }
275            }
276    
277            public static com.liferay.portlet.asset.model.AssetTag getTag(
278                    HttpPrincipal httpPrincipal, long tagId)
279                    throws com.liferay.portal.kernel.exception.PortalException {
280                    try {
281                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
282                                            "getTag", _getTagParameterTypes8);
283    
284                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId);
285    
286                            Object returnObj = null;
287    
288                            try {
289                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
290                            }
291                            catch (Exception e) {
292                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
293                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
294                                    }
295    
296                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
297                            }
298    
299                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
300                    }
301                    catch (com.liferay.portal.kernel.exception.SystemException se) {
302                            _log.error(se, se);
303    
304                            throw se;
305                    }
306            }
307    
308            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
309                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
310                    java.lang.String name) {
311                    try {
312                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
313                                            "getTags", _getTagsParameterTypes9);
314    
315                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
316                                            classNameId, name);
317    
318                            Object returnObj = null;
319    
320                            try {
321                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
322                            }
323                            catch (Exception e) {
324                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
325                            }
326    
327                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
328                    }
329                    catch (com.liferay.portal.kernel.exception.SystemException se) {
330                            _log.error(se, se);
331    
332                            throw se;
333                    }
334            }
335    
336            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
337                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
338                    java.lang.String name, int start, int end,
339                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
340                    try {
341                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
342                                            "getTags", _getTagsParameterTypes10);
343    
344                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
345                                            classNameId, name, start, end, obc);
346    
347                            Object returnObj = null;
348    
349                            try {
350                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
351                            }
352                            catch (Exception e) {
353                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
354                            }
355    
356                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
357                    }
358                    catch (com.liferay.portal.kernel.exception.SystemException se) {
359                            _log.error(se, se);
360    
361                            throw se;
362                    }
363            }
364    
365            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
366                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
367                    int start, int end) {
368                    try {
369                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
370                                            "getTags", _getTagsParameterTypes11);
371    
372                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
373                                            name, start, end);
374    
375                            Object returnObj = null;
376    
377                            try {
378                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
379                            }
380                            catch (Exception e) {
381                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
382                            }
383    
384                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
385                    }
386                    catch (com.liferay.portal.kernel.exception.SystemException se) {
387                            _log.error(se, se);
388    
389                            throw se;
390                    }
391            }
392    
393            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
394                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
395                    int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
397                    try {
398                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
399                                            "getTags", _getTagsParameterTypes12);
400    
401                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
402                                            name, start, end, obc);
403    
404                            Object returnObj = null;
405    
406                            try {
407                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
408                            }
409                            catch (Exception e) {
410                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
411                            }
412    
413                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
414                    }
415                    catch (com.liferay.portal.kernel.exception.SystemException se) {
416                            _log.error(se, se);
417    
418                            throw se;
419                    }
420            }
421    
422            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
423                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
424                    int start, int end) {
425                    try {
426                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
427                                            "getTags", _getTagsParameterTypes13);
428    
429                            MethodHandler methodHandler = new MethodHandler(methodKey,
430                                            groupIds, name, start, end);
431    
432                            Object returnObj = null;
433    
434                            try {
435                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
436                            }
437                            catch (Exception e) {
438                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
439                            }
440    
441                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
442                    }
443                    catch (com.liferay.portal.kernel.exception.SystemException se) {
444                            _log.error(se, se);
445    
446                            throw se;
447                    }
448            }
449    
450            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
451                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
452                    int start, int end,
453                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
454                    try {
455                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
456                                            "getTags", _getTagsParameterTypes14);
457    
458                            MethodHandler methodHandler = new MethodHandler(methodKey,
459                                            groupIds, name, start, end, obc);
460    
461                            Object returnObj = null;
462    
463                            try {
464                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
465                            }
466                            catch (Exception e) {
467                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
468                            }
469    
470                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
471                    }
472                    catch (com.liferay.portal.kernel.exception.SystemException se) {
473                            _log.error(se, se);
474    
475                            throw se;
476                    }
477            }
478    
479            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
480                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK) {
481                    try {
482                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
483                                            "getTags", _getTagsParameterTypes15);
484    
485                            MethodHandler methodHandler = new MethodHandler(methodKey,
486                                            className, classPK);
487    
488                            Object returnObj = null;
489    
490                            try {
491                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
492                            }
493                            catch (Exception e) {
494                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
495                            }
496    
497                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
498                    }
499                    catch (com.liferay.portal.kernel.exception.SystemException se) {
500                            _log.error(se, se);
501    
502                            throw se;
503                    }
504            }
505    
506            public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
507                    java.lang.String name) {
508                    try {
509                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
510                                            "getTagsCount", _getTagsCountParameterTypes16);
511    
512                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
513                                            name);
514    
515                            Object returnObj = null;
516    
517                            try {
518                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
519                            }
520                            catch (Exception e) {
521                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
522                            }
523    
524                            return ((Integer)returnObj).intValue();
525                    }
526                    catch (com.liferay.portal.kernel.exception.SystemException se) {
527                            _log.error(se, se);
528    
529                            throw se;
530                    }
531            }
532    
533            public static int getVisibleAssetsTagsCount(HttpPrincipal httpPrincipal,
534                    long groupId, long classNameId, java.lang.String name) {
535                    try {
536                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
537                                            "getVisibleAssetsTagsCount",
538                                            _getVisibleAssetsTagsCountParameterTypes17);
539    
540                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
541                                            classNameId, name);
542    
543                            Object returnObj = null;
544    
545                            try {
546                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
547                            }
548                            catch (Exception e) {
549                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
550                            }
551    
552                            return ((Integer)returnObj).intValue();
553                    }
554                    catch (com.liferay.portal.kernel.exception.SystemException se) {
555                            _log.error(se, se);
556    
557                            throw se;
558                    }
559            }
560    
561            public static int getVisibleAssetsTagsCount(HttpPrincipal httpPrincipal,
562                    long groupId, java.lang.String name) {
563                    try {
564                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
565                                            "getVisibleAssetsTagsCount",
566                                            _getVisibleAssetsTagsCountParameterTypes18);
567    
568                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
569                                            name);
570    
571                            Object returnObj = null;
572    
573                            try {
574                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
575                            }
576                            catch (Exception e) {
577                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
578                            }
579    
580                            return ((Integer)returnObj).intValue();
581                    }
582                    catch (com.liferay.portal.kernel.exception.SystemException se) {
583                            _log.error(se, se);
584    
585                            throw se;
586                    }
587            }
588    
589            public static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId,
590                    long toTagId)
591                    throws com.liferay.portal.kernel.exception.PortalException {
592                    try {
593                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
594                                            "mergeTags", _mergeTagsParameterTypes19);
595    
596                            MethodHandler methodHandler = new MethodHandler(methodKey,
597                                            fromTagId, toTagId);
598    
599                            try {
600                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
601                            }
602                            catch (Exception e) {
603                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
604                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
605                                    }
606    
607                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
608                            }
609                    }
610                    catch (com.liferay.portal.kernel.exception.SystemException se) {
611                            _log.error(se, se);
612    
613                            throw se;
614                    }
615            }
616    
617            public static void mergeTags(HttpPrincipal httpPrincipal,
618                    long[] fromTagIds, long toTagId)
619                    throws com.liferay.portal.kernel.exception.PortalException {
620                    try {
621                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
622                                            "mergeTags", _mergeTagsParameterTypes20);
623    
624                            MethodHandler methodHandler = new MethodHandler(methodKey,
625                                            fromTagIds, toTagId);
626    
627                            try {
628                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
629                            }
630                            catch (Exception e) {
631                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
632                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
633                                    }
634    
635                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
636                            }
637                    }
638                    catch (com.liferay.portal.kernel.exception.SystemException se) {
639                            _log.error(se, se);
640    
641                            throw se;
642                    }
643            }
644    
645            public static com.liferay.portal.kernel.json.JSONArray search(
646                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
647                    int start, int end) {
648                    try {
649                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
650                                            "search", _searchParameterTypes21);
651    
652                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
653                                            name, start, end);
654    
655                            Object returnObj = null;
656    
657                            try {
658                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
659                            }
660                            catch (Exception e) {
661                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
662                            }
663    
664                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
665                    }
666                    catch (com.liferay.portal.kernel.exception.SystemException se) {
667                            _log.error(se, se);
668    
669                            throw se;
670                    }
671            }
672    
673            public static com.liferay.portal.kernel.json.JSONArray search(
674                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
675                    int start, int end) {
676                    try {
677                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
678                                            "search", _searchParameterTypes22);
679    
680                            MethodHandler methodHandler = new MethodHandler(methodKey,
681                                            groupIds, name, start, end);
682    
683                            Object returnObj = null;
684    
685                            try {
686                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
687                            }
688                            catch (Exception e) {
689                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
690                            }
691    
692                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
693                    }
694                    catch (com.liferay.portal.kernel.exception.SystemException se) {
695                            _log.error(se, se);
696    
697                            throw se;
698                    }
699            }
700    
701            public static com.liferay.portlet.asset.model.AssetTag updateTag(
702                    HttpPrincipal httpPrincipal, long tagId, java.lang.String name,
703                    com.liferay.portal.service.ServiceContext serviceContext)
704                    throws com.liferay.portal.kernel.exception.PortalException {
705                    try {
706                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
707                                            "updateTag", _updateTagParameterTypes23);
708    
709                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId,
710                                            name, serviceContext);
711    
712                            Object returnObj = null;
713    
714                            try {
715                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
716                            }
717                            catch (Exception e) {
718                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
719                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
720                                    }
721    
722                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
723                            }
724    
725                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
726                    }
727                    catch (com.liferay.portal.kernel.exception.SystemException se) {
728                            _log.error(se, se);
729    
730                            throw se;
731                    }
732            }
733    
734            private static Log _log = LogFactoryUtil.getLog(AssetTagServiceHttp.class);
735            private static final Class<?>[] _addTagParameterTypes0 = new Class[] {
736                            long.class, java.lang.String.class,
737                            com.liferay.portal.service.ServiceContext.class
738                    };
739            private static final Class<?>[] _deleteTagParameterTypes1 = new Class[] {
740                            long.class
741                    };
742            private static final Class<?>[] _deleteTagsParameterTypes2 = new Class[] {
743                            long[].class
744                    };
745            private static final Class<?>[] _getGroupsTagsParameterTypes3 = new Class[] {
746                            long[].class
747                    };
748            private static final Class<?>[] _getGroupTagsParameterTypes4 = new Class[] {
749                            long.class
750                    };
751            private static final Class<?>[] _getGroupTagsParameterTypes5 = new Class[] {
752                            long.class, int.class, int.class,
753                            com.liferay.portal.kernel.util.OrderByComparator.class
754                    };
755            private static final Class<?>[] _getGroupTagsCountParameterTypes6 = new Class[] {
756                            long.class
757                    };
758            private static final Class<?>[] _getGroupTagsDisplayParameterTypes7 = new Class[] {
759                            long.class, java.lang.String.class, int.class, int.class
760                    };
761            private static final Class<?>[] _getTagParameterTypes8 = new Class[] {
762                            long.class
763                    };
764            private static final Class<?>[] _getTagsParameterTypes9 = new Class[] {
765                            long.class, long.class, java.lang.String.class
766                    };
767            private static final Class<?>[] _getTagsParameterTypes10 = new Class[] {
768                            long.class, long.class, java.lang.String.class, int.class, int.class,
769                            com.liferay.portal.kernel.util.OrderByComparator.class
770                    };
771            private static final Class<?>[] _getTagsParameterTypes11 = new Class[] {
772                            long.class, java.lang.String.class, int.class, int.class
773                    };
774            private static final Class<?>[] _getTagsParameterTypes12 = new Class[] {
775                            long.class, java.lang.String.class, int.class, int.class,
776                            com.liferay.portal.kernel.util.OrderByComparator.class
777                    };
778            private static final Class<?>[] _getTagsParameterTypes13 = new Class[] {
779                            long[].class, java.lang.String.class, int.class, int.class
780                    };
781            private static final Class<?>[] _getTagsParameterTypes14 = new Class[] {
782                            long[].class, java.lang.String.class, int.class, int.class,
783                            com.liferay.portal.kernel.util.OrderByComparator.class
784                    };
785            private static final Class<?>[] _getTagsParameterTypes15 = new Class[] {
786                            java.lang.String.class, long.class
787                    };
788            private static final Class<?>[] _getTagsCountParameterTypes16 = new Class[] {
789                            long.class, java.lang.String.class
790                    };
791            private static final Class<?>[] _getVisibleAssetsTagsCountParameterTypes17 = new Class[] {
792                            long.class, long.class, java.lang.String.class
793                    };
794            private static final Class<?>[] _getVisibleAssetsTagsCountParameterTypes18 = new Class[] {
795                            long.class, java.lang.String.class
796                    };
797            private static final Class<?>[] _mergeTagsParameterTypes19 = new Class[] {
798                            long.class, long.class
799                    };
800            private static final Class<?>[] _mergeTagsParameterTypes20 = new Class[] {
801                            long[].class, long.class
802                    };
803            private static final Class<?>[] _searchParameterTypes21 = new Class[] {
804                            long.class, java.lang.String.class, int.class, int.class
805                    };
806            private static final Class<?>[] _searchParameterTypes22 = new Class[] {
807                            long[].class, java.lang.String.class, int.class, int.class
808                    };
809            private static final Class<?>[] _updateTagParameterTypes23 = new Class[] {
810                            long.class, java.lang.String.class,
811                            com.liferay.portal.service.ServiceContext.class
812                    };
813    }