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.util.MethodHandler;
022    import com.liferay.portal.kernel.util.MethodKey;
023    import com.liferay.portal.security.auth.HttpPrincipal;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.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.portal.kernel.json.JSONObject getJSONGroupTags(
278                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
279                    int start, int end)
280                    throws com.liferay.portal.kernel.exception.PortalException {
281                    try {
282                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
283                                            "getJSONGroupTags", _getJSONGroupTagsParameterTypes8);
284    
285                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
286                                            name, start, end);
287    
288                            Object returnObj = null;
289    
290                            try {
291                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
292                            }
293                            catch (Exception e) {
294                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
295                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
296                                    }
297    
298                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
299                            }
300    
301                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
302                    }
303                    catch (com.liferay.portal.kernel.exception.SystemException se) {
304                            _log.error(se, se);
305    
306                            throw se;
307                    }
308            }
309    
310            public static com.liferay.portlet.asset.model.AssetTag getTag(
311                    HttpPrincipal httpPrincipal, long tagId)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    try {
314                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
315                                            "getTag", _getTagParameterTypes9);
316    
317                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId);
318    
319                            Object returnObj = null;
320    
321                            try {
322                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
323                            }
324                            catch (Exception e) {
325                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
326                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
327                                    }
328    
329                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
330                            }
331    
332                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
333                    }
334                    catch (com.liferay.portal.kernel.exception.SystemException se) {
335                            _log.error(se, se);
336    
337                            throw se;
338                    }
339            }
340    
341            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
342                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
343                    java.lang.String name) {
344                    try {
345                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
346                                            "getTags", _getTagsParameterTypes10);
347    
348                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
349                                            classNameId, name);
350    
351                            Object returnObj = null;
352    
353                            try {
354                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
355                            }
356                            catch (Exception e) {
357                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
358                            }
359    
360                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
361                    }
362                    catch (com.liferay.portal.kernel.exception.SystemException se) {
363                            _log.error(se, se);
364    
365                            throw se;
366                    }
367            }
368    
369            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
370                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
371                    java.lang.String name, int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
373                    try {
374                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
375                                            "getTags", _getTagsParameterTypes11);
376    
377                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
378                                            classNameId, name, start, end, obc);
379    
380                            Object returnObj = null;
381    
382                            try {
383                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
384                            }
385                            catch (Exception e) {
386                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
387                            }
388    
389                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
390                    }
391                    catch (com.liferay.portal.kernel.exception.SystemException se) {
392                            _log.error(se, se);
393    
394                            throw se;
395                    }
396            }
397    
398            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
399                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
400                    int start, int end) {
401                    try {
402                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
403                                            "getTags", _getTagsParameterTypes12);
404    
405                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
406                                            name, start, end);
407    
408                            Object returnObj = null;
409    
410                            try {
411                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
412                            }
413                            catch (Exception e) {
414                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
415                            }
416    
417                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
418                    }
419                    catch (com.liferay.portal.kernel.exception.SystemException se) {
420                            _log.error(se, se);
421    
422                            throw se;
423                    }
424            }
425    
426            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
427                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
428                    int start, int end) {
429                    try {
430                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
431                                            "getTags", _getTagsParameterTypes13);
432    
433                            MethodHandler methodHandler = new MethodHandler(methodKey,
434                                            groupIds, name, start, end);
435    
436                            Object returnObj = null;
437    
438                            try {
439                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
440                            }
441                            catch (Exception e) {
442                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
443                            }
444    
445                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
446                    }
447                    catch (com.liferay.portal.kernel.exception.SystemException se) {
448                            _log.error(se, se);
449    
450                            throw se;
451                    }
452            }
453    
454            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
455                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
456                    throws com.liferay.portal.kernel.exception.PortalException {
457                    try {
458                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
459                                            "getTags", _getTagsParameterTypes14);
460    
461                            MethodHandler methodHandler = new MethodHandler(methodKey,
462                                            className, classPK);
463    
464                            Object returnObj = null;
465    
466                            try {
467                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
468                            }
469                            catch (Exception e) {
470                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
471                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
472                                    }
473    
474                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
475                            }
476    
477                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
478                    }
479                    catch (com.liferay.portal.kernel.exception.SystemException se) {
480                            _log.error(se, se);
481    
482                            throw se;
483                    }
484            }
485    
486            public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
487                    java.lang.String name) {
488                    try {
489                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
490                                            "getTagsCount", _getTagsCountParameterTypes15);
491    
492                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
493                                            name);
494    
495                            Object returnObj = null;
496    
497                            try {
498                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
499                            }
500                            catch (Exception e) {
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 getVisibleAssetsTagsCount(HttpPrincipal httpPrincipal,
514                    long groupId, long classNameId, java.lang.String name) {
515                    try {
516                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
517                                            "getVisibleAssetsTagsCount",
518                                            _getVisibleAssetsTagsCountParameterTypes16);
519    
520                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
521                                            classNameId, name);
522    
523                            Object returnObj = null;
524    
525                            try {
526                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
527                            }
528                            catch (Exception e) {
529                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
530                            }
531    
532                            return ((Integer)returnObj).intValue();
533                    }
534                    catch (com.liferay.portal.kernel.exception.SystemException se) {
535                            _log.error(se, se);
536    
537                            throw se;
538                    }
539            }
540    
541            public static int getVisibleAssetsTagsCount(HttpPrincipal httpPrincipal,
542                    long groupId, java.lang.String name) {
543                    try {
544                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
545                                            "getVisibleAssetsTagsCount",
546                                            _getVisibleAssetsTagsCountParameterTypes17);
547    
548                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
549                                            name);
550    
551                            Object returnObj = null;
552    
553                            try {
554                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
555                            }
556                            catch (Exception e) {
557                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
558                            }
559    
560                            return ((Integer)returnObj).intValue();
561                    }
562                    catch (com.liferay.portal.kernel.exception.SystemException se) {
563                            _log.error(se, se);
564    
565                            throw se;
566                    }
567            }
568    
569            public static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId,
570                    long toTagId)
571                    throws com.liferay.portal.kernel.exception.PortalException {
572                    try {
573                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
574                                            "mergeTags", _mergeTagsParameterTypes18);
575    
576                            MethodHandler methodHandler = new MethodHandler(methodKey,
577                                            fromTagId, toTagId);
578    
579                            try {
580                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
581                            }
582                            catch (Exception e) {
583                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
584                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
585                                    }
586    
587                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
588                            }
589                    }
590                    catch (com.liferay.portal.kernel.exception.SystemException se) {
591                            _log.error(se, se);
592    
593                            throw se;
594                    }
595            }
596    
597            public static void mergeTags(HttpPrincipal httpPrincipal,
598                    long[] fromTagIds, long toTagId)
599                    throws com.liferay.portal.kernel.exception.PortalException {
600                    try {
601                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
602                                            "mergeTags", _mergeTagsParameterTypes19);
603    
604                            MethodHandler methodHandler = new MethodHandler(methodKey,
605                                            fromTagIds, toTagId);
606    
607                            try {
608                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
609                            }
610                            catch (Exception e) {
611                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
612                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
613                                    }
614    
615                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
616                            }
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.portal.kernel.json.JSONArray search(
626                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
627                    int start, int end) {
628                    try {
629                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
630                                            "search", _searchParameterTypes20);
631    
632                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
633                                            name, start, end);
634    
635                            Object returnObj = null;
636    
637                            try {
638                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
639                            }
640                            catch (Exception e) {
641                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
642                            }
643    
644                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
645                    }
646                    catch (com.liferay.portal.kernel.exception.SystemException se) {
647                            _log.error(se, se);
648    
649                            throw se;
650                    }
651            }
652    
653            public static com.liferay.portal.kernel.json.JSONArray search(
654                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
655                    int start, int end) {
656                    try {
657                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
658                                            "search", _searchParameterTypes21);
659    
660                            MethodHandler methodHandler = new MethodHandler(methodKey,
661                                            groupIds, name, start, end);
662    
663                            Object returnObj = null;
664    
665                            try {
666                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
667                            }
668                            catch (Exception e) {
669                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
670                            }
671    
672                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
673                    }
674                    catch (com.liferay.portal.kernel.exception.SystemException se) {
675                            _log.error(se, se);
676    
677                            throw se;
678                    }
679            }
680    
681            public static com.liferay.portlet.asset.model.AssetTag updateTag(
682                    HttpPrincipal httpPrincipal, long tagId, java.lang.String name,
683                    com.liferay.portal.service.ServiceContext serviceContext)
684                    throws com.liferay.portal.kernel.exception.PortalException {
685                    try {
686                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
687                                            "updateTag", _updateTagParameterTypes22);
688    
689                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId,
690                                            name, serviceContext);
691    
692                            Object returnObj = null;
693    
694                            try {
695                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
696                            }
697                            catch (Exception e) {
698                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
699                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
700                                    }
701    
702                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
703                            }
704    
705                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
706                    }
707                    catch (com.liferay.portal.kernel.exception.SystemException se) {
708                            _log.error(se, se);
709    
710                            throw se;
711                    }
712            }
713    
714            private static Log _log = LogFactoryUtil.getLog(AssetTagServiceHttp.class);
715            private static final Class<?>[] _addTagParameterTypes0 = new Class[] {
716                            long.class, java.lang.String.class,
717                            com.liferay.portal.service.ServiceContext.class
718                    };
719            private static final Class<?>[] _deleteTagParameterTypes1 = new Class[] {
720                            long.class
721                    };
722            private static final Class<?>[] _deleteTagsParameterTypes2 = new Class[] {
723                            long[].class
724                    };
725            private static final Class<?>[] _getGroupsTagsParameterTypes3 = new Class[] {
726                            long[].class
727                    };
728            private static final Class<?>[] _getGroupTagsParameterTypes4 = new Class[] {
729                            long.class
730                    };
731            private static final Class<?>[] _getGroupTagsParameterTypes5 = new Class[] {
732                            long.class, int.class, int.class,
733                            com.liferay.portal.kernel.util.OrderByComparator.class
734                    };
735            private static final Class<?>[] _getGroupTagsCountParameterTypes6 = new Class[] {
736                            long.class
737                    };
738            private static final Class<?>[] _getGroupTagsDisplayParameterTypes7 = new Class[] {
739                            long.class, java.lang.String.class, int.class, int.class
740                    };
741            private static final Class<?>[] _getJSONGroupTagsParameterTypes8 = new Class[] {
742                            long.class, java.lang.String.class, int.class, int.class
743                    };
744            private static final Class<?>[] _getTagParameterTypes9 = new Class[] {
745                            long.class
746                    };
747            private static final Class<?>[] _getTagsParameterTypes10 = new Class[] {
748                            long.class, long.class, java.lang.String.class
749                    };
750            private static final Class<?>[] _getTagsParameterTypes11 = new Class[] {
751                            long.class, long.class, java.lang.String.class, int.class, int.class,
752                            com.liferay.portal.kernel.util.OrderByComparator.class
753                    };
754            private static final Class<?>[] _getTagsParameterTypes12 = new Class[] {
755                            long.class, java.lang.String.class, int.class, int.class
756                    };
757            private static final Class<?>[] _getTagsParameterTypes13 = new Class[] {
758                            long[].class, java.lang.String.class, int.class, int.class
759                    };
760            private static final Class<?>[] _getTagsParameterTypes14 = new Class[] {
761                            java.lang.String.class, long.class
762                    };
763            private static final Class<?>[] _getTagsCountParameterTypes15 = new Class[] {
764                            long.class, java.lang.String.class
765                    };
766            private static final Class<?>[] _getVisibleAssetsTagsCountParameterTypes16 = new Class[] {
767                            long.class, long.class, java.lang.String.class
768                    };
769            private static final Class<?>[] _getVisibleAssetsTagsCountParameterTypes17 = new Class[] {
770                            long.class, java.lang.String.class
771                    };
772            private static final Class<?>[] _mergeTagsParameterTypes18 = new Class[] {
773                            long.class, long.class
774                    };
775            private static final Class<?>[] _mergeTagsParameterTypes19 = new Class[] {
776                            long[].class, long.class
777                    };
778            private static final Class<?>[] _searchParameterTypes20 = new Class[] {
779                            long.class, java.lang.String.class, int.class, int.class
780                    };
781            private static final Class<?>[] _searchParameterTypes21 = new Class[] {
782                            long[].class, java.lang.String.class, int.class, int.class
783                    };
784            private static final Class<?>[] _updateTagParameterTypes22 = new Class[] {
785                            long.class, java.lang.String.class,
786                            com.liferay.portal.service.ServiceContext.class
787                    };
788    }