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.AssetVocabularyServiceUtil;
025    
026    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.asset.service.AssetVocabularyServiceUtil} 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       AssetVocabularyServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.asset.service.AssetVocabularyServiceUtil
054     * @generated
055     */
056    public class AssetVocabularyServiceHttp {
057            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
058                    HttpPrincipal httpPrincipal,
059                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
060                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061                    java.lang.String settings,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    try {
066                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
067                                            "addVocabulary", _addVocabularyParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey,
070                                            titleMap, descriptionMap, settings, serviceContext);
071    
072                            Object returnObj = null;
073    
074                            try {
075                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
076                            }
077                            catch (Exception e) {
078                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
079                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
080                                    }
081    
082                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
083                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
084                                    }
085    
086                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
087                            }
088    
089                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
090                    }
091                    catch (com.liferay.portal.kernel.exception.SystemException se) {
092                            _log.error(se, se);
093    
094                            throw se;
095                    }
096            }
097    
098            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
099                    HttpPrincipal httpPrincipal, java.lang.String title,
100                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
101                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
102                    java.lang.String settings,
103                    com.liferay.portal.service.ServiceContext serviceContext)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    try {
107                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
108                                            "addVocabulary", _addVocabularyParameterTypes1);
109    
110                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
111                                            titleMap, descriptionMap, settings, serviceContext);
112    
113                            Object returnObj = null;
114    
115                            try {
116                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
117                            }
118                            catch (Exception e) {
119                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
120                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
121                                    }
122    
123                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
124                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
125                                    }
126    
127                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
128                            }
129    
130                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
131                    }
132                    catch (com.liferay.portal.kernel.exception.SystemException se) {
133                            _log.error(se, se);
134    
135                            throw se;
136                    }
137            }
138    
139            public static void deleteVocabularies(HttpPrincipal httpPrincipal,
140                    long[] vocabularyIds)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    try {
144                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
145                                            "deleteVocabularies", _deleteVocabulariesParameterTypes2);
146    
147                            MethodHandler methodHandler = new MethodHandler(methodKey,
148                                            vocabularyIds);
149    
150                            try {
151                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
152                            }
153                            catch (Exception e) {
154                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
155                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
156                                    }
157    
158                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
159                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
160                                    }
161    
162                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
163                            }
164                    }
165                    catch (com.liferay.portal.kernel.exception.SystemException se) {
166                            _log.error(se, se);
167    
168                            throw se;
169                    }
170            }
171    
172            public static void deleteVocabulary(HttpPrincipal httpPrincipal,
173                    long vocabularyId)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    try {
177                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
178                                            "deleteVocabulary", _deleteVocabularyParameterTypes3);
179    
180                            MethodHandler methodHandler = new MethodHandler(methodKey,
181                                            vocabularyId);
182    
183                            try {
184                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
185                            }
186                            catch (Exception e) {
187                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
188                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
189                                    }
190    
191                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
192                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
193                                    }
194    
195                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
196                            }
197                    }
198                    catch (com.liferay.portal.kernel.exception.SystemException se) {
199                            _log.error(se, se);
200    
201                            throw se;
202                    }
203            }
204    
205            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
206                    HttpPrincipal httpPrincipal, long companyId)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    try {
210                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
211                                            "getCompanyVocabularies",
212                                            _getCompanyVocabulariesParameterTypes4);
213    
214                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
215    
216                            Object returnObj = null;
217    
218                            try {
219                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
220                            }
221                            catch (Exception e) {
222                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
223                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
224                                    }
225    
226                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
227                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
228                                    }
229    
230                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
231                            }
232    
233                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
234                    }
235                    catch (com.liferay.portal.kernel.exception.SystemException se) {
236                            _log.error(se, se);
237    
238                            throw se;
239                    }
240            }
241    
242            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
243                    HttpPrincipal httpPrincipal, long[] groupIds)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    try {
247                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
248                                            "getGroupsVocabularies",
249                                            _getGroupsVocabulariesParameterTypes5);
250    
251                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
252    
253                            Object returnObj = null;
254    
255                            try {
256                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
257                            }
258                            catch (Exception e) {
259                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
260                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
261                                    }
262    
263                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
264                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
265                                    }
266    
267                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
268                            }
269    
270                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
271                    }
272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
273                            _log.error(se, se);
274    
275                            throw se;
276                    }
277            }
278    
279            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
280                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    try {
284                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
285                                            "getGroupsVocabularies",
286                                            _getGroupsVocabulariesParameterTypes6);
287    
288                            MethodHandler methodHandler = new MethodHandler(methodKey,
289                                            groupIds, className);
290    
291                            Object returnObj = null;
292    
293                            try {
294                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
295                            }
296                            catch (Exception e) {
297                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
298                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
299                                    }
300    
301                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
302                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
303                                    }
304    
305                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
306                            }
307    
308                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
309                    }
310                    catch (com.liferay.portal.kernel.exception.SystemException se) {
311                            _log.error(se, se);
312    
313                            throw se;
314                    }
315            }
316    
317            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
318                    HttpPrincipal httpPrincipal, long groupId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    try {
322                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
323                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes7);
324    
325                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
326    
327                            Object returnObj = null;
328    
329                            try {
330                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
331                            }
332                            catch (Exception e) {
333                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
334                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
335                                    }
336    
337                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
338                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
339                                    }
340    
341                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
342                            }
343    
344                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
345                    }
346                    catch (com.liferay.portal.kernel.exception.SystemException se) {
347                            _log.error(se, se);
348    
349                            throw se;
350                    }
351            }
352    
353            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
354                    HttpPrincipal httpPrincipal, long groupId,
355                    boolean createDefaultVocabulary)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    try {
359                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
360                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes8);
361    
362                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
363                                            createDefaultVocabulary);
364    
365                            Object returnObj = null;
366    
367                            try {
368                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
369                            }
370                            catch (Exception e) {
371                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
372                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
373                                    }
374    
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.AssetVocabulary>)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.AssetVocabulary> getGroupVocabularies(
392                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
393                    com.liferay.portal.kernel.util.OrderByComparator obc)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    try {
396                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
397                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
398    
399                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
400                                            start, end, obc);
401    
402                            Object returnObj = null;
403    
404                            try {
405                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
406                            }
407                            catch (Exception e) {
408                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
409                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
410                                    }
411    
412                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
413                            }
414    
415                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
416                    }
417                    catch (com.liferay.portal.kernel.exception.SystemException se) {
418                            _log.error(se, se);
419    
420                            throw se;
421                    }
422            }
423    
424            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
425                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
426                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    try {
429                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
430                                            "getGroupVocabularies",
431                                            _getGroupVocabulariesParameterTypes10);
432    
433                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
434                                            name, start, end, obc);
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.AssetVocabulary>)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 int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
459                    long groupId)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    try {
462                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
463                                            "getGroupVocabulariesCount",
464                                            _getGroupVocabulariesCountParameterTypes11);
465    
466                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
467    
468                            Object returnObj = null;
469    
470                            try {
471                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
472                            }
473                            catch (Exception e) {
474                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
475                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
476                                    }
477    
478                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
479                            }
480    
481                            return ((Integer)returnObj).intValue();
482                    }
483                    catch (com.liferay.portal.kernel.exception.SystemException se) {
484                            _log.error(se, se);
485    
486                            throw se;
487                    }
488            }
489    
490            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
491                    long groupId, java.lang.String name)
492                    throws com.liferay.portal.kernel.exception.SystemException {
493                    try {
494                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
495                                            "getGroupVocabulariesCount",
496                                            _getGroupVocabulariesCountParameterTypes12);
497    
498                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
499                                            name);
500    
501                            Object returnObj = null;
502    
503                            try {
504                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
505                            }
506                            catch (Exception e) {
507                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
508                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
509                                    }
510    
511                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
512                            }
513    
514                            return ((Integer)returnObj).intValue();
515                    }
516                    catch (com.liferay.portal.kernel.exception.SystemException se) {
517                            _log.error(se, se);
518    
519                            throw se;
520                    }
521            }
522    
523            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
524                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
525                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
526                    throws com.liferay.portal.kernel.exception.PortalException,
527                            com.liferay.portal.kernel.exception.SystemException {
528                    try {
529                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
530                                            "getJSONGroupVocabularies",
531                                            _getJSONGroupVocabulariesParameterTypes13);
532    
533                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
534                                            name, start, end, obc);
535    
536                            Object returnObj = null;
537    
538                            try {
539                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
540                            }
541                            catch (Exception e) {
542                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
543                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
544                                    }
545    
546                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
547                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
548                                    }
549    
550                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
551                            }
552    
553                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
554                    }
555                    catch (com.liferay.portal.kernel.exception.SystemException se) {
556                            _log.error(se, se);
557    
558                            throw se;
559                    }
560            }
561    
562            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
563                    HttpPrincipal httpPrincipal, long[] vocabularyIds)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException {
566                    try {
567                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
568                                            "getVocabularies", _getVocabulariesParameterTypes14);
569    
570                            MethodHandler methodHandler = new MethodHandler(methodKey,
571                                            vocabularyIds);
572    
573                            Object returnObj = null;
574    
575                            try {
576                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
577                            }
578                            catch (Exception e) {
579                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
580                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
581                                    }
582    
583                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
584                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
585                                    }
586    
587                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
588                            }
589    
590                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
591                    }
592                    catch (com.liferay.portal.kernel.exception.SystemException se) {
593                            _log.error(se, se);
594    
595                            throw se;
596                    }
597            }
598    
599            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
600                    HttpPrincipal httpPrincipal, long vocabularyId)
601                    throws com.liferay.portal.kernel.exception.PortalException,
602                            com.liferay.portal.kernel.exception.SystemException {
603                    try {
604                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
605                                            "getVocabulary", _getVocabularyParameterTypes15);
606    
607                            MethodHandler methodHandler = new MethodHandler(methodKey,
608                                            vocabularyId);
609    
610                            Object returnObj = null;
611    
612                            try {
613                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
614                            }
615                            catch (Exception e) {
616                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
617                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
618                                    }
619    
620                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
621                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
622                                    }
623    
624                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
625                            }
626    
627                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
628                    }
629                    catch (com.liferay.portal.kernel.exception.SystemException se) {
630                            _log.error(se, se);
631    
632                            throw se;
633                    }
634            }
635    
636            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
637                    HttpPrincipal httpPrincipal, long vocabularyId,
638                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
639                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
640                    java.lang.String settings,
641                    com.liferay.portal.service.ServiceContext serviceContext)
642                    throws com.liferay.portal.kernel.exception.PortalException,
643                            com.liferay.portal.kernel.exception.SystemException {
644                    try {
645                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
646                                            "updateVocabulary", _updateVocabularyParameterTypes16);
647    
648                            MethodHandler methodHandler = new MethodHandler(methodKey,
649                                            vocabularyId, titleMap, descriptionMap, settings,
650                                            serviceContext);
651    
652                            Object returnObj = null;
653    
654                            try {
655                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
656                            }
657                            catch (Exception e) {
658                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
659                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
660                                    }
661    
662                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
663                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
664                                    }
665    
666                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
667                            }
668    
669                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
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.portlet.asset.model.AssetVocabulary updateVocabulary(
679                    HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
680                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
681                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
682                    java.lang.String settings,
683                    com.liferay.portal.service.ServiceContext serviceContext)
684                    throws com.liferay.portal.kernel.exception.PortalException,
685                            com.liferay.portal.kernel.exception.SystemException {
686                    try {
687                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
688                                            "updateVocabulary", _updateVocabularyParameterTypes17);
689    
690                            MethodHandler methodHandler = new MethodHandler(methodKey,
691                                            vocabularyId, title, titleMap, descriptionMap, settings,
692                                            serviceContext);
693    
694                            Object returnObj = null;
695    
696                            try {
697                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
698                            }
699                            catch (Exception e) {
700                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
701                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
702                                    }
703    
704                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
705                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
706                                    }
707    
708                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
709                            }
710    
711                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
712                    }
713                    catch (com.liferay.portal.kernel.exception.SystemException se) {
714                            _log.error(se, se);
715    
716                            throw se;
717                    }
718            }
719    
720            private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
721            private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
722                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
723                            com.liferay.portal.service.ServiceContext.class
724                    };
725            private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
726                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
727                            java.lang.String.class,
728                            com.liferay.portal.service.ServiceContext.class
729                    };
730            private static final Class<?>[] _deleteVocabulariesParameterTypes2 = new Class[] {
731                            long[].class
732                    };
733            private static final Class<?>[] _deleteVocabularyParameterTypes3 = new Class[] {
734                            long.class
735                    };
736            private static final Class<?>[] _getCompanyVocabulariesParameterTypes4 = new Class[] {
737                            long.class
738                    };
739            private static final Class<?>[] _getGroupsVocabulariesParameterTypes5 = new Class[] {
740                            long[].class
741                    };
742            private static final Class<?>[] _getGroupsVocabulariesParameterTypes6 = new Class[] {
743                            long[].class, java.lang.String.class
744                    };
745            private static final Class<?>[] _getGroupVocabulariesParameterTypes7 = new Class[] {
746                            long.class
747                    };
748            private static final Class<?>[] _getGroupVocabulariesParameterTypes8 = new Class[] {
749                            long.class, boolean.class
750                    };
751            private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
752                            long.class, int.class, int.class,
753                            com.liferay.portal.kernel.util.OrderByComparator.class
754                    };
755            private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
756                            long.class, java.lang.String.class, int.class, int.class,
757                            com.liferay.portal.kernel.util.OrderByComparator.class
758                    };
759            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes11 = new Class[] {
760                            long.class
761                    };
762            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes12 = new Class[] {
763                            long.class, java.lang.String.class
764                    };
765            private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes13 = new Class[] {
766                            long.class, java.lang.String.class, int.class, int.class,
767                            com.liferay.portal.kernel.util.OrderByComparator.class
768                    };
769            private static final Class<?>[] _getVocabulariesParameterTypes14 = new Class[] {
770                            long[].class
771                    };
772            private static final Class<?>[] _getVocabularyParameterTypes15 = new Class[] {
773                            long.class
774                    };
775            private static final Class<?>[] _updateVocabularyParameterTypes16 = new Class[] {
776                            long.class, java.util.Map.class, java.util.Map.class,
777                            java.lang.String.class,
778                            com.liferay.portal.service.ServiceContext.class
779                    };
780            private static final Class<?>[] _updateVocabularyParameterTypes17 = new Class[] {
781                            long.class, java.lang.String.class, java.util.Map.class,
782                            java.util.Map.class, java.lang.String.class,
783                            com.liferay.portal.service.ServiceContext.class
784                    };
785    }