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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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, int start, int end,
355                    com.liferay.portal.kernel.util.OrderByComparator obc)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    try {
358                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
359                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes8);
360    
361                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
362                                            start, end, obc);
363    
364                            Object returnObj = null;
365    
366                            try {
367                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
368                            }
369                            catch (Exception e) {
370                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
371                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
372                                    }
373    
374                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
375                            }
376    
377                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
378                    }
379                    catch (com.liferay.portal.kernel.exception.SystemException se) {
380                            _log.error(se, se);
381    
382                            throw se;
383                    }
384            }
385    
386            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
387                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
388                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    try {
391                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
392                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
393    
394                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
395                                            name, start, end, obc);
396    
397                            Object returnObj = null;
398    
399                            try {
400                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
401                            }
402                            catch (Exception e) {
403                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
404                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
405                                    }
406    
407                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
408                            }
409    
410                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
411                    }
412                    catch (com.liferay.portal.kernel.exception.SystemException se) {
413                            _log.error(se, se);
414    
415                            throw se;
416                    }
417            }
418    
419            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
420                    long groupId)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    try {
423                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
424                                            "getGroupVocabulariesCount",
425                                            _getGroupVocabulariesCountParameterTypes10);
426    
427                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
428    
429                            Object returnObj = null;
430    
431                            try {
432                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
433                            }
434                            catch (Exception e) {
435                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
436                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
437                                    }
438    
439                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
440                            }
441    
442                            return ((Integer)returnObj).intValue();
443                    }
444                    catch (com.liferay.portal.kernel.exception.SystemException se) {
445                            _log.error(se, se);
446    
447                            throw se;
448                    }
449            }
450    
451            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
452                    long groupId, java.lang.String name)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    try {
455                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
456                                            "getGroupVocabulariesCount",
457                                            _getGroupVocabulariesCountParameterTypes11);
458    
459                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
460                                            name);
461    
462                            Object returnObj = null;
463    
464                            try {
465                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
466                            }
467                            catch (Exception e) {
468                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
469                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
470                                    }
471    
472                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
473                            }
474    
475                            return ((Integer)returnObj).intValue();
476                    }
477                    catch (com.liferay.portal.kernel.exception.SystemException se) {
478                            _log.error(se, se);
479    
480                            throw se;
481                    }
482            }
483    
484            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
485                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
486                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
487                    throws com.liferay.portal.kernel.exception.PortalException,
488                            com.liferay.portal.kernel.exception.SystemException {
489                    try {
490                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
491                                            "getJSONGroupVocabularies",
492                                            _getJSONGroupVocabulariesParameterTypes12);
493    
494                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
495                                            name, start, end, obc);
496    
497                            Object returnObj = null;
498    
499                            try {
500                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
501                            }
502                            catch (Exception e) {
503                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
504                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
505                                    }
506    
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 (com.liferay.portal.kernel.json.JSONObject)returnObj;
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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
524                    HttpPrincipal httpPrincipal, long[] vocabularyIds)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException {
527                    try {
528                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
529                                            "getVocabularies", _getVocabulariesParameterTypes13);
530    
531                            MethodHandler methodHandler = new MethodHandler(methodKey,
532                                            vocabularyIds);
533    
534                            Object returnObj = null;
535    
536                            try {
537                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
538                            }
539                            catch (Exception e) {
540                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
541                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
542                                    }
543    
544                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
545                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
546                                    }
547    
548                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
549                            }
550    
551                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
552                    }
553                    catch (com.liferay.portal.kernel.exception.SystemException se) {
554                            _log.error(se, se);
555    
556                            throw se;
557                    }
558            }
559    
560            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
561                    HttpPrincipal httpPrincipal, long vocabularyId)
562                    throws com.liferay.portal.kernel.exception.PortalException,
563                            com.liferay.portal.kernel.exception.SystemException {
564                    try {
565                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
566                                            "getVocabulary", _getVocabularyParameterTypes14);
567    
568                            MethodHandler methodHandler = new MethodHandler(methodKey,
569                                            vocabularyId);
570    
571                            Object returnObj = null;
572    
573                            try {
574                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
575                            }
576                            catch (Exception e) {
577                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
578                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
579                                    }
580    
581                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
582                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
583                                    }
584    
585                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
586                            }
587    
588                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
589                    }
590                    catch (com.liferay.portal.kernel.exception.SystemException se) {
591                            _log.error(se, se);
592    
593                            throw se;
594                    }
595            }
596    
597            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
598                    HttpPrincipal httpPrincipal, long vocabularyId,
599                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
600                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
601                    java.lang.String settings,
602                    com.liferay.portal.service.ServiceContext serviceContext)
603                    throws com.liferay.portal.kernel.exception.PortalException,
604                            com.liferay.portal.kernel.exception.SystemException {
605                    try {
606                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
607                                            "updateVocabulary", _updateVocabularyParameterTypes15);
608    
609                            MethodHandler methodHandler = new MethodHandler(methodKey,
610                                            vocabularyId, titleMap, descriptionMap, settings,
611                                            serviceContext);
612    
613                            Object returnObj = null;
614    
615                            try {
616                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
617                            }
618                            catch (Exception e) {
619                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
620                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
621                                    }
622    
623                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
624                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
625                                    }
626    
627                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
628                            }
629    
630                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
631                    }
632                    catch (com.liferay.portal.kernel.exception.SystemException se) {
633                            _log.error(se, se);
634    
635                            throw se;
636                    }
637            }
638    
639            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
640                    HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
641                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
642                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
643                    java.lang.String settings,
644                    com.liferay.portal.service.ServiceContext serviceContext)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException {
647                    try {
648                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
649                                            "updateVocabulary", _updateVocabularyParameterTypes16);
650    
651                            MethodHandler methodHandler = new MethodHandler(methodKey,
652                                            vocabularyId, title, titleMap, descriptionMap, settings,
653                                            serviceContext);
654    
655                            Object returnObj = null;
656    
657                            try {
658                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
659                            }
660                            catch (Exception e) {
661                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
662                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
663                                    }
664    
665                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
666                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
667                                    }
668    
669                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
670                            }
671    
672                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
673                    }
674                    catch (com.liferay.portal.kernel.exception.SystemException se) {
675                            _log.error(se, se);
676    
677                            throw se;
678                    }
679            }
680    
681            private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
682            private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
683                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
684                            com.liferay.portal.service.ServiceContext.class
685                    };
686            private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
687                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
688                            java.lang.String.class,
689                            com.liferay.portal.service.ServiceContext.class
690                    };
691            private static final Class<?>[] _deleteVocabulariesParameterTypes2 = new Class[] {
692                            long[].class
693                    };
694            private static final Class<?>[] _deleteVocabularyParameterTypes3 = new Class[] {
695                            long.class
696                    };
697            private static final Class<?>[] _getCompanyVocabulariesParameterTypes4 = new Class[] {
698                            long.class
699                    };
700            private static final Class<?>[] _getGroupsVocabulariesParameterTypes5 = new Class[] {
701                            long[].class
702                    };
703            private static final Class<?>[] _getGroupsVocabulariesParameterTypes6 = new Class[] {
704                            long[].class, java.lang.String.class
705                    };
706            private static final Class<?>[] _getGroupVocabulariesParameterTypes7 = new Class[] {
707                            long.class
708                    };
709            private static final Class<?>[] _getGroupVocabulariesParameterTypes8 = new Class[] {
710                            long.class, int.class, int.class,
711                            com.liferay.portal.kernel.util.OrderByComparator.class
712                    };
713            private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
714                            long.class, java.lang.String.class, int.class, int.class,
715                            com.liferay.portal.kernel.util.OrderByComparator.class
716                    };
717            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes10 = new Class[] {
718                            long.class
719                    };
720            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes11 = new Class[] {
721                            long.class, java.lang.String.class
722                    };
723            private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes12 = new Class[] {
724                            long.class, java.lang.String.class, int.class, int.class,
725                            com.liferay.portal.kernel.util.OrderByComparator.class
726                    };
727            private static final Class<?>[] _getVocabulariesParameterTypes13 = new Class[] {
728                            long[].class
729                    };
730            private static final Class<?>[] _getVocabularyParameterTypes14 = new Class[] {
731                            long.class
732                    };
733            private static final Class<?>[] _updateVocabularyParameterTypes15 = new Class[] {
734                            long.class, java.util.Map.class, java.util.Map.class,
735                            java.lang.String.class,
736                            com.liferay.portal.service.ServiceContext.class
737                    };
738            private static final Class<?>[] _updateVocabularyParameterTypes16 = new Class[] {
739                            long.class, java.lang.String.class, java.util.Map.class,
740                            java.util.Map.class, java.lang.String.class,
741                            com.liferay.portal.service.ServiceContext.class
742                    };
743    }