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