001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
140                    HttpPrincipal httpPrincipal, java.lang.String title,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    try {
145                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
146                                            "addVocabulary", _addVocabularyParameterTypes2);
147    
148                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
149                                            serviceContext);
150    
151                            Object returnObj = null;
152    
153                            try {
154                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
155                            }
156                            catch (Exception e) {
157                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
158                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
159                                    }
160    
161                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
162                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
163                                    }
164    
165                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
166                            }
167    
168                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
169                    }
170                    catch (com.liferay.portal.kernel.exception.SystemException se) {
171                            _log.error(se, se);
172    
173                            throw se;
174                    }
175            }
176    
177            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
178                    HttpPrincipal httpPrincipal, long[] vocabularyIds,
179                    com.liferay.portal.service.ServiceContext serviceContext)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    try {
183                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
184                                            "deleteVocabularies", _deleteVocabulariesParameterTypes3);
185    
186                            MethodHandler methodHandler = new MethodHandler(methodKey,
187                                            vocabularyIds, serviceContext);
188    
189                            Object returnObj = null;
190    
191                            try {
192                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
193                            }
194                            catch (Exception e) {
195                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
196                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
197                                    }
198    
199                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
200                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
201                                    }
202    
203                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
204                            }
205    
206                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
207                    }
208                    catch (com.liferay.portal.kernel.exception.SystemException se) {
209                            _log.error(se, se);
210    
211                            throw se;
212                    }
213            }
214    
215            public static void deleteVocabulary(HttpPrincipal httpPrincipal,
216                    long vocabularyId)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    try {
220                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
221                                            "deleteVocabulary", _deleteVocabularyParameterTypes4);
222    
223                            MethodHandler methodHandler = new MethodHandler(methodKey,
224                                            vocabularyId);
225    
226                            try {
227                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
228                            }
229                            catch (Exception e) {
230                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
231                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
232                                    }
233    
234                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
235                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
236                                    }
237    
238                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
239                            }
240                    }
241                    catch (com.liferay.portal.kernel.exception.SystemException se) {
242                            _log.error(se, se);
243    
244                            throw se;
245                    }
246            }
247    
248            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
249                    HttpPrincipal httpPrincipal, long companyId)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    try {
253                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
254                                            "getCompanyVocabularies",
255                                            _getCompanyVocabulariesParameterTypes5);
256    
257                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
258    
259                            Object returnObj = null;
260    
261                            try {
262                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
263                            }
264                            catch (Exception e) {
265                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
266                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
267                                    }
268    
269                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
270                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
271                                    }
272    
273                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
274                            }
275    
276                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
277                    }
278                    catch (com.liferay.portal.kernel.exception.SystemException se) {
279                            _log.error(se, se);
280    
281                            throw se;
282                    }
283            }
284    
285            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
286                    HttpPrincipal httpPrincipal, long[] groupIds)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    try {
290                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
291                                            "getGroupsVocabularies",
292                                            _getGroupsVocabulariesParameterTypes6);
293    
294                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
295    
296                            Object returnObj = null;
297    
298                            try {
299                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
300                            }
301                            catch (Exception e) {
302                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
303                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
304                                    }
305    
306                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
307                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
308                                    }
309    
310                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
311                            }
312    
313                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
314                    }
315                    catch (com.liferay.portal.kernel.exception.SystemException se) {
316                            _log.error(se, se);
317    
318                            throw se;
319                    }
320            }
321    
322            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
323                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    try {
327                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
328                                            "getGroupsVocabularies",
329                                            _getGroupsVocabulariesParameterTypes7);
330    
331                            MethodHandler methodHandler = new MethodHandler(methodKey,
332                                            groupIds, className);
333    
334                            Object returnObj = null;
335    
336                            try {
337                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
338                            }
339                            catch (Exception e) {
340                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
341                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
342                                    }
343    
344                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
345                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
346                                    }
347    
348                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
349                            }
350    
351                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
352                    }
353                    catch (com.liferay.portal.kernel.exception.SystemException se) {
354                            _log.error(se, se);
355    
356                            throw se;
357                    }
358            }
359    
360            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
361                    HttpPrincipal httpPrincipal, long groupId)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    try {
365                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
366                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes8);
367    
368                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
369    
370                            Object returnObj = null;
371    
372                            try {
373                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
374                            }
375                            catch (Exception e) {
376                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
377                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
378                                    }
379    
380                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
381                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
382                                    }
383    
384                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
385                            }
386    
387                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
388                    }
389                    catch (com.liferay.portal.kernel.exception.SystemException se) {
390                            _log.error(se, se);
391    
392                            throw se;
393                    }
394            }
395    
396            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
397                    HttpPrincipal httpPrincipal, long groupId,
398                    boolean createDefaultVocabulary)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    try {
402                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
403                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
404    
405                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
406                                            createDefaultVocabulary);
407    
408                            Object returnObj = null;
409    
410                            try {
411                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
412                            }
413                            catch (Exception e) {
414                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
415                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
416                                    }
417    
418                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
419                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
420                                    }
421    
422                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
423                            }
424    
425                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
426                    }
427                    catch (com.liferay.portal.kernel.exception.SystemException se) {
428                            _log.error(se, se);
429    
430                            throw se;
431                    }
432            }
433    
434            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
435                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator obc)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    try {
439                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
440                                            "getGroupVocabularies",
441                                            _getGroupVocabulariesParameterTypes10);
442    
443                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
444                                            start, end, obc);
445    
446                            Object returnObj = null;
447    
448                            try {
449                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
450                            }
451                            catch (Exception e) {
452                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
453                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
454                                    }
455    
456                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
457                            }
458    
459                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
460                    }
461                    catch (com.liferay.portal.kernel.exception.SystemException se) {
462                            _log.error(se, se);
463    
464                            throw se;
465                    }
466            }
467    
468            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
469                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
470                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    try {
473                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
474                                            "getGroupVocabularies",
475                                            _getGroupVocabulariesParameterTypes11);
476    
477                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
478                                            name, start, end, obc);
479    
480                            Object returnObj = null;
481    
482                            try {
483                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
484                            }
485                            catch (Exception e) {
486                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
487                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
488                                    }
489    
490                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
491                            }
492    
493                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
494                    }
495                    catch (com.liferay.portal.kernel.exception.SystemException se) {
496                            _log.error(se, se);
497    
498                            throw se;
499                    }
500            }
501    
502            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
503                    long groupId)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    try {
506                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
507                                            "getGroupVocabulariesCount",
508                                            _getGroupVocabulariesCountParameterTypes12);
509    
510                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
511    
512                            Object returnObj = null;
513    
514                            try {
515                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
516                            }
517                            catch (Exception e) {
518                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
519                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
520                                    }
521    
522                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
523                            }
524    
525                            return ((Integer)returnObj).intValue();
526                    }
527                    catch (com.liferay.portal.kernel.exception.SystemException se) {
528                            _log.error(se, se);
529    
530                            throw se;
531                    }
532            }
533    
534            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
535                    long groupId, java.lang.String name)
536                    throws com.liferay.portal.kernel.exception.SystemException {
537                    try {
538                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
539                                            "getGroupVocabulariesCount",
540                                            _getGroupVocabulariesCountParameterTypes13);
541    
542                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
543                                            name);
544    
545                            Object returnObj = null;
546    
547                            try {
548                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
549                            }
550                            catch (Exception e) {
551                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
552                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
553                                    }
554    
555                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
556                            }
557    
558                            return ((Integer)returnObj).intValue();
559                    }
560                    catch (com.liferay.portal.kernel.exception.SystemException se) {
561                            _log.error(se, se);
562    
563                            throw se;
564                    }
565            }
566    
567            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
568                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
569                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    try {
572                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
573                                            "getGroupVocabulariesDisplay",
574                                            _getGroupVocabulariesDisplayParameterTypes14);
575    
576                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
577                                            name, start, end, obc);
578    
579                            Object returnObj = null;
580    
581                            try {
582                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
583                            }
584                            catch (Exception e) {
585                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
586                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
587                                    }
588    
589                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
590                            }
591    
592                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
593                    }
594                    catch (com.liferay.portal.kernel.exception.SystemException se) {
595                            _log.error(se, se);
596    
597                            throw se;
598                    }
599            }
600    
601            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
602                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
603                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
604                    throws com.liferay.portal.kernel.exception.PortalException,
605                            com.liferay.portal.kernel.exception.SystemException {
606                    try {
607                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
608                                            "getJSONGroupVocabularies",
609                                            _getJSONGroupVocabulariesParameterTypes15);
610    
611                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
612                                            name, start, end, obc);
613    
614                            Object returnObj = null;
615    
616                            try {
617                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
618                            }
619                            catch (Exception e) {
620                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
621                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
622                                    }
623    
624                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
625                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
626                                    }
627    
628                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
629                            }
630    
631                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
632                    }
633                    catch (com.liferay.portal.kernel.exception.SystemException se) {
634                            _log.error(se, se);
635    
636                            throw se;
637                    }
638            }
639    
640            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
641                    HttpPrincipal httpPrincipal, long[] vocabularyIds)
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                                            "getVocabularies", _getVocabulariesParameterTypes16);
647    
648                            MethodHandler methodHandler = new MethodHandler(methodKey,
649                                            vocabularyIds);
650    
651                            Object returnObj = null;
652    
653                            try {
654                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
655                            }
656                            catch (Exception e) {
657                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
658                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
659                                    }
660    
661                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
662                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
663                                    }
664    
665                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
666                            }
667    
668                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
669                    }
670                    catch (com.liferay.portal.kernel.exception.SystemException se) {
671                            _log.error(se, se);
672    
673                            throw se;
674                    }
675            }
676    
677            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
678                    HttpPrincipal httpPrincipal, long vocabularyId)
679                    throws com.liferay.portal.kernel.exception.PortalException,
680                            com.liferay.portal.kernel.exception.SystemException {
681                    try {
682                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
683                                            "getVocabulary", _getVocabularyParameterTypes17);
684    
685                            MethodHandler methodHandler = new MethodHandler(methodKey,
686                                            vocabularyId);
687    
688                            Object returnObj = null;
689    
690                            try {
691                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
692                            }
693                            catch (Exception e) {
694                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
695                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
696                                    }
697    
698                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
699                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
700                                    }
701    
702                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
703                            }
704    
705                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
706                    }
707                    catch (com.liferay.portal.kernel.exception.SystemException se) {
708                            _log.error(se, se);
709    
710                            throw se;
711                    }
712            }
713    
714            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
715                    HttpPrincipal httpPrincipal, long vocabularyId,
716                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
717                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
718                    java.lang.String settings,
719                    com.liferay.portal.service.ServiceContext serviceContext)
720                    throws com.liferay.portal.kernel.exception.PortalException,
721                            com.liferay.portal.kernel.exception.SystemException {
722                    try {
723                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
724                                            "updateVocabulary", _updateVocabularyParameterTypes18);
725    
726                            MethodHandler methodHandler = new MethodHandler(methodKey,
727                                            vocabularyId, titleMap, descriptionMap, settings,
728                                            serviceContext);
729    
730                            Object returnObj = null;
731    
732                            try {
733                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
734                            }
735                            catch (Exception e) {
736                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
737                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
738                                    }
739    
740                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
741                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
742                                    }
743    
744                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
745                            }
746    
747                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
748                    }
749                    catch (com.liferay.portal.kernel.exception.SystemException se) {
750                            _log.error(se, se);
751    
752                            throw se;
753                    }
754            }
755    
756            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
757                    HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
758                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
759                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
760                    java.lang.String settings,
761                    com.liferay.portal.service.ServiceContext serviceContext)
762                    throws com.liferay.portal.kernel.exception.PortalException,
763                            com.liferay.portal.kernel.exception.SystemException {
764                    try {
765                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
766                                            "updateVocabulary", _updateVocabularyParameterTypes19);
767    
768                            MethodHandler methodHandler = new MethodHandler(methodKey,
769                                            vocabularyId, title, titleMap, descriptionMap, settings,
770                                            serviceContext);
771    
772                            Object returnObj = null;
773    
774                            try {
775                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
776                            }
777                            catch (Exception e) {
778                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
779                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
780                                    }
781    
782                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
783                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
784                                    }
785    
786                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
787                            }
788    
789                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
790                    }
791                    catch (com.liferay.portal.kernel.exception.SystemException se) {
792                            _log.error(se, se);
793    
794                            throw se;
795                    }
796            }
797    
798            private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
799            private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
800                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
801                            com.liferay.portal.service.ServiceContext.class
802                    };
803            private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
804                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
805                            java.lang.String.class,
806                            com.liferay.portal.service.ServiceContext.class
807                    };
808            private static final Class<?>[] _addVocabularyParameterTypes2 = new Class[] {
809                            java.lang.String.class,
810                            com.liferay.portal.service.ServiceContext.class
811                    };
812            private static final Class<?>[] _deleteVocabulariesParameterTypes3 = new Class[] {
813                            long[].class, com.liferay.portal.service.ServiceContext.class
814                    };
815            private static final Class<?>[] _deleteVocabularyParameterTypes4 = new Class[] {
816                            long.class
817                    };
818            private static final Class<?>[] _getCompanyVocabulariesParameterTypes5 = new Class[] {
819                            long.class
820                    };
821            private static final Class<?>[] _getGroupsVocabulariesParameterTypes6 = new Class[] {
822                            long[].class
823                    };
824            private static final Class<?>[] _getGroupsVocabulariesParameterTypes7 = new Class[] {
825                            long[].class, java.lang.String.class
826                    };
827            private static final Class<?>[] _getGroupVocabulariesParameterTypes8 = new Class[] {
828                            long.class
829                    };
830            private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
831                            long.class, boolean.class
832                    };
833            private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
834                            long.class, int.class, int.class,
835                            com.liferay.portal.kernel.util.OrderByComparator.class
836                    };
837            private static final Class<?>[] _getGroupVocabulariesParameterTypes11 = new Class[] {
838                            long.class, java.lang.String.class, int.class, int.class,
839                            com.liferay.portal.kernel.util.OrderByComparator.class
840                    };
841            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes12 = new Class[] {
842                            long.class
843                    };
844            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes13 = new Class[] {
845                            long.class, java.lang.String.class
846                    };
847            private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes14 =
848                    new Class[] {
849                            long.class, java.lang.String.class, int.class, int.class,
850                            com.liferay.portal.kernel.util.OrderByComparator.class
851                    };
852            private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes15 = new Class[] {
853                            long.class, java.lang.String.class, int.class, int.class,
854                            com.liferay.portal.kernel.util.OrderByComparator.class
855                    };
856            private static final Class<?>[] _getVocabulariesParameterTypes16 = new Class[] {
857                            long[].class
858                    };
859            private static final Class<?>[] _getVocabularyParameterTypes17 = new Class[] {
860                            long.class
861                    };
862            private static final Class<?>[] _updateVocabularyParameterTypes18 = new Class[] {
863                            long.class, java.util.Map.class, java.util.Map.class,
864                            java.lang.String.class,
865                            com.liferay.portal.service.ServiceContext.class
866                    };
867            private static final Class<?>[] _updateVocabularyParameterTypes19 = new Class[] {
868                            long.class, java.lang.String.class, java.util.Map.class,
869                            java.util.Map.class, java.lang.String.class,
870                            com.liferay.portal.service.ServiceContext.class
871                    };
872    }