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