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                    try {
457                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
458                                            "getTags", _getTagsParameterTypes14);
459    
460                            MethodHandler methodHandler = new MethodHandler(methodKey,
461                                            className, classPK);
462    
463                            Object returnObj = null;
464    
465                            try {
466                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
467                            }
468                            catch (Exception e) {
469                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
470                            }
471    
472                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
473                    }
474                    catch (com.liferay.portal.kernel.exception.SystemException se) {
475                            _log.error(se, se);
476    
477                            throw se;
478                    }
479            }
480    
481            public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
482                    java.lang.String name) {
483                    try {
484                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
485                                            "getTagsCount", _getTagsCountParameterTypes15);
486    
487                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
488                                            name);
489    
490                            Object returnObj = null;
491    
492                            try {
493                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
494                            }
495                            catch (Exception e) {
496                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
497                            }
498    
499                            return ((Integer)returnObj).intValue();
500                    }
501                    catch (com.liferay.portal.kernel.exception.SystemException se) {
502                            _log.error(se, se);
503    
504                            throw se;
505                    }
506            }
507    
508            public static int getVisibleAssetsTagsCount(HttpPrincipal httpPrincipal,
509                    long groupId, long classNameId, java.lang.String name) {
510                    try {
511                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
512                                            "getVisibleAssetsTagsCount",
513                                            _getVisibleAssetsTagsCountParameterTypes16);
514    
515                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
516                                            classNameId, name);
517    
518                            Object returnObj = null;
519    
520                            try {
521                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
522                            }
523                            catch (Exception e) {
524                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
525                            }
526    
527                            return ((Integer)returnObj).intValue();
528                    }
529                    catch (com.liferay.portal.kernel.exception.SystemException se) {
530                            _log.error(se, se);
531    
532                            throw se;
533                    }
534            }
535    
536            public static int getVisibleAssetsTagsCount(HttpPrincipal httpPrincipal,
537                    long groupId, java.lang.String name) {
538                    try {
539                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
540                                            "getVisibleAssetsTagsCount",
541                                            _getVisibleAssetsTagsCountParameterTypes17);
542    
543                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
544                                            name);
545    
546                            Object returnObj = null;
547    
548                            try {
549                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
550                            }
551                            catch (Exception e) {
552                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
553                            }
554    
555                            return ((Integer)returnObj).intValue();
556                    }
557                    catch (com.liferay.portal.kernel.exception.SystemException se) {
558                            _log.error(se, se);
559    
560                            throw se;
561                    }
562            }
563    
564            public static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId,
565                    long toTagId)
566                    throws com.liferay.portal.kernel.exception.PortalException {
567                    try {
568                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
569                                            "mergeTags", _mergeTagsParameterTypes18);
570    
571                            MethodHandler methodHandler = new MethodHandler(methodKey,
572                                            fromTagId, toTagId);
573    
574                            try {
575                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
576                            }
577                            catch (Exception e) {
578                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
579                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
580                                    }
581    
582                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
583                            }
584                    }
585                    catch (com.liferay.portal.kernel.exception.SystemException se) {
586                            _log.error(se, se);
587    
588                            throw se;
589                    }
590            }
591    
592            public static void mergeTags(HttpPrincipal httpPrincipal,
593                    long[] fromTagIds, long toTagId)
594                    throws com.liferay.portal.kernel.exception.PortalException {
595                    try {
596                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
597                                            "mergeTags", _mergeTagsParameterTypes19);
598    
599                            MethodHandler methodHandler = new MethodHandler(methodKey,
600                                            fromTagIds, toTagId);
601    
602                            try {
603                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
604                            }
605                            catch (Exception e) {
606                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
607                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
608                                    }
609    
610                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
611                            }
612                    }
613                    catch (com.liferay.portal.kernel.exception.SystemException se) {
614                            _log.error(se, se);
615    
616                            throw se;
617                    }
618            }
619    
620            public static com.liferay.portal.kernel.json.JSONArray search(
621                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
622                    int start, int end) {
623                    try {
624                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
625                                            "search", _searchParameterTypes20);
626    
627                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
628                                            name, start, end);
629    
630                            Object returnObj = null;
631    
632                            try {
633                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
634                            }
635                            catch (Exception e) {
636                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
637                            }
638    
639                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
640                    }
641                    catch (com.liferay.portal.kernel.exception.SystemException se) {
642                            _log.error(se, se);
643    
644                            throw se;
645                    }
646            }
647    
648            public static com.liferay.portal.kernel.json.JSONArray search(
649                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
650                    int start, int end) {
651                    try {
652                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
653                                            "search", _searchParameterTypes21);
654    
655                            MethodHandler methodHandler = new MethodHandler(methodKey,
656                                            groupIds, name, start, end);
657    
658                            Object returnObj = null;
659    
660                            try {
661                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
662                            }
663                            catch (Exception e) {
664                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
665                            }
666    
667                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
668                    }
669                    catch (com.liferay.portal.kernel.exception.SystemException se) {
670                            _log.error(se, se);
671    
672                            throw se;
673                    }
674            }
675    
676            public static com.liferay.portlet.asset.model.AssetTag updateTag(
677                    HttpPrincipal httpPrincipal, long tagId, java.lang.String name,
678                    com.liferay.portal.service.ServiceContext serviceContext)
679                    throws com.liferay.portal.kernel.exception.PortalException {
680                    try {
681                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
682                                            "updateTag", _updateTagParameterTypes22);
683    
684                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId,
685                                            name, serviceContext);
686    
687                            Object returnObj = null;
688    
689                            try {
690                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
691                            }
692                            catch (Exception e) {
693                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
694                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
695                                    }
696    
697                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
698                            }
699    
700                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
701                    }
702                    catch (com.liferay.portal.kernel.exception.SystemException se) {
703                            _log.error(se, se);
704    
705                            throw se;
706                    }
707            }
708    
709            private static Log _log = LogFactoryUtil.getLog(AssetTagServiceHttp.class);
710            private static final Class<?>[] _addTagParameterTypes0 = new Class[] {
711                            long.class, java.lang.String.class,
712                            com.liferay.portal.service.ServiceContext.class
713                    };
714            private static final Class<?>[] _deleteTagParameterTypes1 = new Class[] {
715                            long.class
716                    };
717            private static final Class<?>[] _deleteTagsParameterTypes2 = new Class[] {
718                            long[].class
719                    };
720            private static final Class<?>[] _getGroupsTagsParameterTypes3 = new Class[] {
721                            long[].class
722                    };
723            private static final Class<?>[] _getGroupTagsParameterTypes4 = new Class[] {
724                            long.class
725                    };
726            private static final Class<?>[] _getGroupTagsParameterTypes5 = new Class[] {
727                            long.class, int.class, int.class,
728                            com.liferay.portal.kernel.util.OrderByComparator.class
729                    };
730            private static final Class<?>[] _getGroupTagsCountParameterTypes6 = new Class[] {
731                            long.class
732                    };
733            private static final Class<?>[] _getGroupTagsDisplayParameterTypes7 = new Class[] {
734                            long.class, java.lang.String.class, int.class, int.class
735                    };
736            private static final Class<?>[] _getJSONGroupTagsParameterTypes8 = new Class[] {
737                            long.class, java.lang.String.class, int.class, int.class
738                    };
739            private static final Class<?>[] _getTagParameterTypes9 = new Class[] {
740                            long.class
741                    };
742            private static final Class<?>[] _getTagsParameterTypes10 = new Class[] {
743                            long.class, long.class, java.lang.String.class
744                    };
745            private static final Class<?>[] _getTagsParameterTypes11 = new Class[] {
746                            long.class, long.class, java.lang.String.class, int.class, int.class,
747                            com.liferay.portal.kernel.util.OrderByComparator.class
748                    };
749            private static final Class<?>[] _getTagsParameterTypes12 = new Class[] {
750                            long.class, java.lang.String.class, int.class, int.class
751                    };
752            private static final Class<?>[] _getTagsParameterTypes13 = new Class[] {
753                            long[].class, java.lang.String.class, int.class, int.class
754                    };
755            private static final Class<?>[] _getTagsParameterTypes14 = new Class[] {
756                            java.lang.String.class, long.class
757                    };
758            private static final Class<?>[] _getTagsCountParameterTypes15 = new Class[] {
759                            long.class, java.lang.String.class
760                    };
761            private static final Class<?>[] _getVisibleAssetsTagsCountParameterTypes16 = new Class[] {
762                            long.class, long.class, java.lang.String.class
763                    };
764            private static final Class<?>[] _getVisibleAssetsTagsCountParameterTypes17 = new Class[] {
765                            long.class, java.lang.String.class
766                    };
767            private static final Class<?>[] _mergeTagsParameterTypes18 = new Class[] {
768                            long.class, long.class
769                    };
770            private static final Class<?>[] _mergeTagsParameterTypes19 = new Class[] {
771                            long[].class, long.class
772                    };
773            private static final Class<?>[] _searchParameterTypes20 = new Class[] {
774                            long.class, java.lang.String.class, int.class, int.class
775                    };
776            private static final Class<?>[] _searchParameterTypes21 = new Class[] {
777                            long[].class, java.lang.String.class, int.class, int.class
778                    };
779            private static final Class<?>[] _updateTagParameterTypes22 = new Class[] {
780                            long.class, java.lang.String.class,
781                            com.liferay.portal.service.ServiceContext.class
782                    };
783    }