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 com.liferay.portlet.asset.service.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 com.liferay.portal.security.auth.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 com.liferay.portal.security.auth.HttpPrincipal
053     * @see com.liferay.portlet.asset.service.AssetTagServiceUtil
054     * @generated
055     */
056    @ProviderType
057    public class AssetTagServiceHttp {
058            public static com.liferay.portlet.asset.model.AssetTag addTag(
059                    HttpPrincipal httpPrincipal, java.lang.String name,
060                    java.lang.String[] tagProperties,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    try {
064                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
065                                            "addTag", _addTagParameterTypes0);
066    
067                            MethodHandler methodHandler = new MethodHandler(methodKey, name,
068                                            tagProperties, serviceContext);
069    
070                            Object returnObj = null;
071    
072                            try {
073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074                            }
075                            catch (Exception e) {
076                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
078                                    }
079    
080                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
081                            }
082    
083                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
084                    }
085                    catch (com.liferay.portal.kernel.exception.SystemException se) {
086                            _log.error(se, se);
087    
088                            throw se;
089                    }
090            }
091    
092            public static void deleteTag(HttpPrincipal httpPrincipal, long tagId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    try {
095                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
096                                            "deleteTag", _deleteTagParameterTypes1);
097    
098                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId);
099    
100                            try {
101                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
102                            }
103                            catch (Exception e) {
104                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
105                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
106                                    }
107    
108                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
109                            }
110                    }
111                    catch (com.liferay.portal.kernel.exception.SystemException se) {
112                            _log.error(se, se);
113    
114                            throw se;
115                    }
116            }
117    
118            public static void deleteTags(HttpPrincipal httpPrincipal, long[] tagIds)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    try {
121                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
122                                            "deleteTags", _deleteTagsParameterTypes2);
123    
124                            MethodHandler methodHandler = new MethodHandler(methodKey, tagIds);
125    
126                            try {
127                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
128                            }
129                            catch (Exception e) {
130                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
131                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
132                                    }
133    
134                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
135                            }
136                    }
137                    catch (com.liferay.portal.kernel.exception.SystemException se) {
138                            _log.error(se, se);
139    
140                            throw se;
141                    }
142            }
143    
144            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
145                    HttpPrincipal httpPrincipal, long[] groupIds) {
146                    try {
147                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
148                                            "getGroupsTags", _getGroupsTagsParameterTypes3);
149    
150                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
151    
152                            Object returnObj = null;
153    
154                            try {
155                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
156                            }
157                            catch (Exception e) {
158                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
159                            }
160    
161                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
162                    }
163                    catch (com.liferay.portal.kernel.exception.SystemException se) {
164                            _log.error(se, se);
165    
166                            throw se;
167                    }
168            }
169    
170            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
171                    HttpPrincipal httpPrincipal, long groupId) {
172                    try {
173                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
174                                            "getGroupTags", _getGroupTagsParameterTypes4);
175    
176                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
177    
178                            Object returnObj = null;
179    
180                            try {
181                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
182                            }
183                            catch (Exception e) {
184                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
185                            }
186    
187                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
188                    }
189                    catch (com.liferay.portal.kernel.exception.SystemException se) {
190                            _log.error(se, se);
191    
192                            throw se;
193                    }
194            }
195    
196            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
197                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
198                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
199                    try {
200                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
201                                            "getGroupTags", _getGroupTagsParameterTypes5);
202    
203                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
204                                            start, end, obc);
205    
206                            Object returnObj = null;
207    
208                            try {
209                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
210                            }
211                            catch (Exception e) {
212                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
213                            }
214    
215                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
216                    }
217                    catch (com.liferay.portal.kernel.exception.SystemException se) {
218                            _log.error(se, se);
219    
220                            throw se;
221                    }
222            }
223    
224            public static int getGroupTagsCount(HttpPrincipal httpPrincipal,
225                    long groupId) {
226                    try {
227                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
228                                            "getGroupTagsCount", _getGroupTagsCountParameterTypes6);
229    
230                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
231    
232                            Object returnObj = null;
233    
234                            try {
235                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
236                            }
237                            catch (Exception e) {
238                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
239                            }
240    
241                            return ((Integer)returnObj).intValue();
242                    }
243                    catch (com.liferay.portal.kernel.exception.SystemException se) {
244                            _log.error(se, se);
245    
246                            throw se;
247                    }
248            }
249    
250            public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
251                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
252                    int start, int end) {
253                    try {
254                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
255                                            "getGroupTagsDisplay", _getGroupTagsDisplayParameterTypes7);
256    
257                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
258                                            name, start, end);
259    
260                            Object returnObj = null;
261    
262                            try {
263                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
264                            }
265                            catch (Exception e) {
266                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
267                            }
268    
269                            return (com.liferay.portlet.asset.model.AssetTagDisplay)returnObj;
270                    }
271                    catch (com.liferay.portal.kernel.exception.SystemException se) {
272                            _log.error(se, se);
273    
274                            throw se;
275                    }
276            }
277    
278            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
279                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
280                    int start, int end)
281                    throws com.liferay.portal.kernel.exception.PortalException {
282                    try {
283                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
284                                            "getJSONGroupTags", _getJSONGroupTagsParameterTypes8);
285    
286                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
287                                            name, start, end);
288    
289                            Object returnObj = null;
290    
291                            try {
292                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
293                            }
294                            catch (Exception e) {
295                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
296                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
297                                    }
298    
299                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
300                            }
301    
302                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
303                    }
304                    catch (com.liferay.portal.kernel.exception.SystemException se) {
305                            _log.error(se, se);
306    
307                            throw se;
308                    }
309            }
310    
311            public static com.liferay.portlet.asset.model.AssetTag getTag(
312                    HttpPrincipal httpPrincipal, long tagId)
313                    throws com.liferay.portal.kernel.exception.PortalException {
314                    try {
315                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
316                                            "getTag", _getTagParameterTypes9);
317    
318                            MethodHandler methodHandler = new MethodHandler(methodKey, tagId);
319    
320                            Object returnObj = null;
321    
322                            try {
323                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
324                            }
325                            catch (Exception e) {
326                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
327                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
328                                    }
329    
330                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
331                            }
332    
333                            return (com.liferay.portlet.asset.model.AssetTag)returnObj;
334                    }
335                    catch (com.liferay.portal.kernel.exception.SystemException se) {
336                            _log.error(se, se);
337    
338                            throw se;
339                    }
340            }
341    
342            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
343                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
344                    java.lang.String name) {
345                    try {
346                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
347                                            "getTags", _getTagsParameterTypes10);
348    
349                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
350                                            classNameId, name);
351    
352                            Object returnObj = null;
353    
354                            try {
355                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
356                            }
357                            catch (Exception e) {
358                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
359                            }
360    
361                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
362                    }
363                    catch (com.liferay.portal.kernel.exception.SystemException se) {
364                            _log.error(se, se);
365    
366                            throw se;
367                    }
368            }
369    
370            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
371                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
372                    java.lang.String name, int start, int end,
373                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
374                    try {
375                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
376                                            "getTags", _getTagsParameterTypes11);
377    
378                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
379                                            classNameId, name, start, end, obc);
380    
381                            Object returnObj = null;
382    
383                            try {
384                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
385                            }
386                            catch (Exception e) {
387                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
388                            }
389    
390                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
391                    }
392                    catch (com.liferay.portal.kernel.exception.SystemException se) {
393                            _log.error(se, se);
394    
395                            throw se;
396                    }
397            }
398    
399            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
400                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
401                    java.lang.String[] tagProperties, int start, int end) {
402                    try {
403                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
404                                            "getTags", _getTagsParameterTypes12);
405    
406                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
407                                            name, tagProperties, start, end);
408    
409                            Object returnObj = null;
410    
411                            try {
412                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
413                            }
414                            catch (Exception e) {
415                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
416                            }
417    
418                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
419                    }
420                    catch (com.liferay.portal.kernel.exception.SystemException se) {
421                            _log.error(se, se);
422    
423                            throw se;
424                    }
425            }
426    
427            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
428                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
429                    java.lang.String[] tagProperties, int start, int end) {
430                    try {
431                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
432                                            "getTags", _getTagsParameterTypes13);
433    
434                            MethodHandler methodHandler = new MethodHandler(methodKey,
435                                            groupIds, name, tagProperties, start, end);
436    
437                            Object returnObj = null;
438    
439                            try {
440                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
441                            }
442                            catch (Exception e) {
443                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
444                            }
445    
446                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
447                    }
448                    catch (com.liferay.portal.kernel.exception.SystemException se) {
449                            _log.error(se, se);
450    
451                            throw se;
452                    }
453            }
454    
455            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
456                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
457                    throws com.liferay.portal.kernel.exception.PortalException {
458                    try {
459                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
460                                            "getTags", _getTagsParameterTypes14);
461    
462                            MethodHandler methodHandler = new MethodHandler(methodKey,
463                                            className, classPK);
464    
465                            Object returnObj = null;
466    
467                            try {
468                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
469                            }
470                            catch (Exception e) {
471                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
472                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
473                                    }
474    
475                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
476                            }
477    
478                            return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
479                    }
480                    catch (com.liferay.portal.kernel.exception.SystemException se) {
481                            _log.error(se, se);
482    
483                            throw se;
484                    }
485            }
486    
487            public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
488                    long classNameId, java.lang.String name) {
489                    try {
490                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
491                                            "getTagsCount", _getTagsCountParameterTypes15);
492    
493                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
494                                            classNameId, name);
495    
496                            Object returnObj = null;
497    
498                            try {
499                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
500                            }
501                            catch (Exception e) {
502                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
503                            }
504    
505                            return ((Integer)returnObj).intValue();
506                    }
507                    catch (com.liferay.portal.kernel.exception.SystemException se) {
508                            _log.error(se, se);
509    
510                            throw se;
511                    }
512            }
513    
514            public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
515                    java.lang.String name) {
516                    try {
517                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
518                                            "getTagsCount", _getTagsCountParameterTypes16);
519    
520                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
521                                            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 getTagsCount(HttpPrincipal httpPrincipal, long groupId,
542                    java.lang.String name, java.lang.String[] tagProperties) {
543                    try {
544                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
545                                            "getTagsCount", _getTagsCountParameterTypes17);
546    
547                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
548                                            name, tagProperties);
549    
550                            Object returnObj = null;
551    
552                            try {
553                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
554                            }
555                            catch (Exception e) {
556                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
557                            }
558    
559                            return ((Integer)returnObj).intValue();
560                    }
561                    catch (com.liferay.portal.kernel.exception.SystemException se) {
562                            _log.error(se, se);
563    
564                            throw se;
565                    }
566            }
567    
568            public static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId,
569                    long toTagId, boolean overrideProperties)
570                    throws com.liferay.portal.kernel.exception.PortalException {
571                    try {
572                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
573                                            "mergeTags", _mergeTagsParameterTypes18);
574    
575                            MethodHandler methodHandler = new MethodHandler(methodKey,
576                                            fromTagId, toTagId, overrideProperties);
577    
578                            try {
579                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
580                            }
581                            catch (Exception e) {
582                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
583                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
584                                    }
585    
586                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
587                            }
588                    }
589                    catch (com.liferay.portal.kernel.exception.SystemException se) {
590                            _log.error(se, se);
591    
592                            throw se;
593                    }
594            }
595    
596            public static void mergeTags(HttpPrincipal httpPrincipal,
597                    long[] fromTagIds, long toTagId, boolean overrideProperties)
598                    throws com.liferay.portal.kernel.exception.PortalException {
599                    try {
600                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
601                                            "mergeTags", _mergeTagsParameterTypes19);
602    
603                            MethodHandler methodHandler = new MethodHandler(methodKey,
604                                            fromTagIds, toTagId, overrideProperties);
605    
606                            try {
607                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
608                            }
609                            catch (Exception e) {
610                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
611                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
612                                    }
613    
614                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
615                            }
616                    }
617                    catch (com.liferay.portal.kernel.exception.SystemException se) {
618                            _log.error(se, se);
619    
620                            throw se;
621                    }
622            }
623    
624            public static com.liferay.portal.kernel.json.JSONArray search(
625                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
626                    java.lang.String[] tagProperties, int start, int end) {
627                    try {
628                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
629                                            "search", _searchParameterTypes20);
630    
631                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
632                                            name, tagProperties, start, end);
633    
634                            Object returnObj = null;
635    
636                            try {
637                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
638                            }
639                            catch (Exception e) {
640                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
641                            }
642    
643                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
644                    }
645                    catch (com.liferay.portal.kernel.exception.SystemException se) {
646                            _log.error(se, se);
647    
648                            throw se;
649                    }
650            }
651    
652            public static com.liferay.portal.kernel.json.JSONArray search(
653                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
654                    java.lang.String[] tagProperties, int start, int end) {
655                    try {
656                            MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class,
657                                            "search", _searchParameterTypes21);
658    
659                            MethodHandler methodHandler = new MethodHandler(methodKey,
660                                            groupIds, name, tagProperties, start, end);
661    
662                            Object returnObj = null;
663    
664                            try {
665                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
666                            }
667                            catch (Exception e) {
668                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
669                            }
670    
671                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
672                    }
673                    catch (com.liferay.portal.kernel.exception.SystemException se) {
674                            _log.error(se, se);
675    
676                            throw se;
677                    }
678            }
679    
680            public static com.liferay.portlet.asset.model.AssetTag updateTag(
681                    HttpPrincipal httpPrincipal, long tagId, java.lang.String name,
682                    java.lang.String[] tagProperties,
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, tagProperties, 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                            java.lang.String.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, java.lang.String[].class,
756                            int.class, int.class
757                    };
758            private static final Class<?>[] _getTagsParameterTypes13 = new Class[] {
759                            long[].class, java.lang.String.class, java.lang.String[].class,
760                            int.class, int.class
761                    };
762            private static final Class<?>[] _getTagsParameterTypes14 = new Class[] {
763                            java.lang.String.class, long.class
764                    };
765            private static final Class<?>[] _getTagsCountParameterTypes15 = new Class[] {
766                            long.class, long.class, java.lang.String.class
767                    };
768            private static final Class<?>[] _getTagsCountParameterTypes16 = new Class[] {
769                            long.class, java.lang.String.class
770                    };
771            private static final Class<?>[] _getTagsCountParameterTypes17 = new Class[] {
772                            long.class, java.lang.String.class, java.lang.String[].class
773                    };
774            private static final Class<?>[] _mergeTagsParameterTypes18 = new Class[] {
775                            long.class, long.class, boolean.class
776                    };
777            private static final Class<?>[] _mergeTagsParameterTypes19 = new Class[] {
778                            long[].class, long.class, boolean.class
779                    };
780            private static final Class<?>[] _searchParameterTypes20 = new Class[] {
781                            long.class, java.lang.String.class, java.lang.String[].class,
782                            int.class, int.class
783                    };
784            private static final Class<?>[] _searchParameterTypes21 = new Class[] {
785                            long[].class, java.lang.String.class, java.lang.String[].class,
786                            int.class, int.class
787                    };
788            private static final Class<?>[] _updateTagParameterTypes22 = new Class[] {
789                            long.class, java.lang.String.class, java.lang.String[].class,
790                            com.liferay.portal.service.ServiceContext.class
791                    };
792    }