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.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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
173                    HttpPrincipal httpPrincipal, long[] vocabularyIds,
174                    com.liferay.portal.service.ServiceContext serviceContext)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    try {
178                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
179                                            "deleteVocabularies", _deleteVocabulariesParameterTypes3);
180    
181                            MethodHandler methodHandler = new MethodHandler(methodKey,
182                                            vocabularyIds, serviceContext);
183    
184                            Object returnObj = null;
185    
186                            try {
187                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
188                            }
189                            catch (Exception e) {
190                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
191                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
192                                    }
193    
194                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
195                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
196                                    }
197    
198                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
199                            }
200    
201                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
202                    }
203                    catch (com.liferay.portal.kernel.exception.SystemException se) {
204                            _log.error(se, se);
205    
206                            throw se;
207                    }
208            }
209    
210            public static void deleteVocabulary(HttpPrincipal httpPrincipal,
211                    long vocabularyId)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    try {
215                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
216                                            "deleteVocabulary", _deleteVocabularyParameterTypes4);
217    
218                            MethodHandler methodHandler = new MethodHandler(methodKey,
219                                            vocabularyId);
220    
221                            try {
222                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
223                            }
224                            catch (Exception e) {
225                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
226                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
227                                    }
228    
229                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
230                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
231                                    }
232    
233                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
234                            }
235                    }
236                    catch (com.liferay.portal.kernel.exception.SystemException se) {
237                            _log.error(se, se);
238    
239                            throw se;
240                    }
241            }
242    
243            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
244                    HttpPrincipal httpPrincipal, long companyId)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    try {
248                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
249                                            "getCompanyVocabularies",
250                                            _getCompanyVocabulariesParameterTypes5);
251    
252                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
253    
254                            Object returnObj = null;
255    
256                            try {
257                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
258                            }
259                            catch (Exception e) {
260                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
261                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
262                                    }
263    
264                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
265                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
266                                    }
267    
268                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
269                            }
270    
271                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
272                    }
273                    catch (com.liferay.portal.kernel.exception.SystemException se) {
274                            _log.error(se, se);
275    
276                            throw se;
277                    }
278            }
279    
280            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
281                    HttpPrincipal httpPrincipal, long[] groupIds)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    try {
285                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
286                                            "getGroupsVocabularies",
287                                            _getGroupsVocabulariesParameterTypes6);
288    
289                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
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> getGroupsVocabularies(
318                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className)
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                                            "getGroupsVocabularies",
324                                            _getGroupsVocabulariesParameterTypes7);
325    
326                            MethodHandler methodHandler = new MethodHandler(methodKey,
327                                            groupIds, className);
328    
329                            Object returnObj = null;
330    
331                            try {
332                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
333                            }
334                            catch (Exception e) {
335                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
336                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
337                                    }
338    
339                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
340                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
341                                    }
342    
343                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
344                            }
345    
346                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
347                    }
348                    catch (com.liferay.portal.kernel.exception.SystemException se) {
349                            _log.error(se, se);
350    
351                            throw se;
352                    }
353            }
354    
355            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
356                    HttpPrincipal httpPrincipal, long groupId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    try {
360                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
361                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes8);
362    
363                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
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,
393                    boolean createDefaultVocabulary)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    try {
397                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
398                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
399    
400                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
401                                            createDefaultVocabulary);
402    
403                            Object returnObj = null;
404    
405                            try {
406                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
407                            }
408                            catch (Exception e) {
409                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
410                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
411                                    }
412    
413                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
414                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
415                                    }
416    
417                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
418                            }
419    
420                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
421                    }
422                    catch (com.liferay.portal.kernel.exception.SystemException se) {
423                            _log.error(se, se);
424    
425                            throw se;
426                    }
427            }
428    
429            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
430                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
431                    com.liferay.portal.kernel.util.OrderByComparator obc)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    try {
434                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
435                                            "getGroupVocabularies",
436                                            _getGroupVocabulariesParameterTypes10);
437    
438                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
439                                            start, end, obc);
440    
441                            Object returnObj = null;
442    
443                            try {
444                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
445                            }
446                            catch (Exception e) {
447                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
448                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
449                                    }
450    
451                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
452                            }
453    
454                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
455                    }
456                    catch (com.liferay.portal.kernel.exception.SystemException se) {
457                            _log.error(se, se);
458    
459                            throw se;
460                    }
461            }
462    
463            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
464                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
465                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    try {
468                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
469                                            "getGroupVocabularies",
470                                            _getGroupVocabulariesParameterTypes11);
471    
472                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
473                                            name, start, end, obc);
474    
475                            Object returnObj = null;
476    
477                            try {
478                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
479                            }
480                            catch (Exception e) {
481                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
482                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
483                                    }
484    
485                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
486                            }
487    
488                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
489                    }
490                    catch (com.liferay.portal.kernel.exception.SystemException se) {
491                            _log.error(se, se);
492    
493                            throw se;
494                    }
495            }
496    
497            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
498                    long groupId)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    try {
501                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
502                                            "getGroupVocabulariesCount",
503                                            _getGroupVocabulariesCountParameterTypes12);
504    
505                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
506    
507                            Object returnObj = null;
508    
509                            try {
510                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
511                            }
512                            catch (Exception e) {
513                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
514                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
515                                    }
516    
517                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
518                            }
519    
520                            return ((Integer)returnObj).intValue();
521                    }
522                    catch (com.liferay.portal.kernel.exception.SystemException se) {
523                            _log.error(se, se);
524    
525                            throw se;
526                    }
527            }
528    
529            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
530                    long groupId, java.lang.String name)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    try {
533                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
534                                            "getGroupVocabulariesCount",
535                                            _getGroupVocabulariesCountParameterTypes13);
536    
537                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
538                                            name);
539    
540                            Object returnObj = null;
541    
542                            try {
543                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
544                            }
545                            catch (Exception e) {
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 ((Integer)returnObj).intValue();
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 com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
563                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
564                    int start, int end, boolean addDefaultVocabulary,
565                    com.liferay.portal.kernel.util.OrderByComparator obc)
566                    throws com.liferay.portal.kernel.exception.PortalException,
567                            com.liferay.portal.kernel.exception.SystemException {
568                    try {
569                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
570                                            "getGroupVocabulariesDisplay",
571                                            _getGroupVocabulariesDisplayParameterTypes14);
572    
573                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
574                                            name, start, end, addDefaultVocabulary, obc);
575    
576                            Object returnObj = null;
577    
578                            try {
579                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
580                            }
581                            catch (Exception e) {
582                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
583                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
584                                    }
585    
586                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
587                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
588                                    }
589    
590                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
591                            }
592    
593                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
594                    }
595                    catch (com.liferay.portal.kernel.exception.SystemException se) {
596                            _log.error(se, se);
597    
598                            throw se;
599                    }
600            }
601    
602            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
603                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
604                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
605                    throws com.liferay.portal.kernel.exception.PortalException,
606                            com.liferay.portal.kernel.exception.SystemException {
607                    try {
608                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
609                                            "getJSONGroupVocabularies",
610                                            _getJSONGroupVocabulariesParameterTypes15);
611    
612                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
613                                            name, start, end, obc);
614    
615                            Object returnObj = null;
616    
617                            try {
618                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
619                            }
620                            catch (Exception e) {
621                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
622                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
623                                    }
624    
625                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
626                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
627                                    }
628    
629                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
630                            }
631    
632                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
633                    }
634                    catch (com.liferay.portal.kernel.exception.SystemException se) {
635                            _log.error(se, se);
636    
637                            throw se;
638                    }
639            }
640    
641            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabulariesDisplay(
642                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
643                    int start, int end, boolean addDefaultVocabulary,
644                    com.liferay.portal.kernel.util.OrderByComparator obc)
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                                            "getJSONGroupVocabulariesDisplay",
650                                            _getJSONGroupVocabulariesDisplayParameterTypes16);
651    
652                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
653                                            name, start, end, addDefaultVocabulary, obc);
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.portal.kernel.json.JSONObject)returnObj;
673                    }
674                    catch (com.liferay.portal.kernel.exception.SystemException se) {
675                            _log.error(se, se);
676    
677                            throw se;
678                    }
679            }
680    
681            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
682                    HttpPrincipal httpPrincipal, long[] vocabularyIds)
683                    throws com.liferay.portal.kernel.exception.PortalException,
684                            com.liferay.portal.kernel.exception.SystemException {
685                    try {
686                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
687                                            "getVocabularies", _getVocabulariesParameterTypes17);
688    
689                            MethodHandler methodHandler = new MethodHandler(methodKey,
690                                            vocabularyIds);
691    
692                            Object returnObj = null;
693    
694                            try {
695                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
696                            }
697                            catch (Exception e) {
698                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
699                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
700                                    }
701    
702                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
703                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
704                                    }
705    
706                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
707                            }
708    
709                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
710                    }
711                    catch (com.liferay.portal.kernel.exception.SystemException se) {
712                            _log.error(se, se);
713    
714                            throw se;
715                    }
716            }
717    
718            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
719                    HttpPrincipal httpPrincipal, long vocabularyId)
720                    throws com.liferay.portal.kernel.exception.PortalException,
721                            com.liferay.portal.kernel.exception.SystemException {
722                    try {
723                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
724                                            "getVocabulary", _getVocabularyParameterTypes18);
725    
726                            MethodHandler methodHandler = new MethodHandler(methodKey,
727                                            vocabularyId);
728    
729                            Object returnObj = null;
730    
731                            try {
732                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
733                            }
734                            catch (Exception e) {
735                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
736                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
737                                    }
738    
739                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
740                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
741                                    }
742    
743                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
744                            }
745    
746                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
747                    }
748                    catch (com.liferay.portal.kernel.exception.SystemException se) {
749                            _log.error(se, se);
750    
751                            throw se;
752                    }
753            }
754    
755            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
756                    HttpPrincipal httpPrincipal, long vocabularyId,
757                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
758                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
759                    java.lang.String settings,
760                    com.liferay.portal.service.ServiceContext serviceContext)
761                    throws com.liferay.portal.kernel.exception.PortalException,
762                            com.liferay.portal.kernel.exception.SystemException {
763                    try {
764                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
765                                            "updateVocabulary", _updateVocabularyParameterTypes19);
766    
767                            MethodHandler methodHandler = new MethodHandler(methodKey,
768                                            vocabularyId, titleMap, descriptionMap, settings,
769                                            serviceContext);
770    
771                            Object returnObj = null;
772    
773                            try {
774                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
775                            }
776                            catch (Exception e) {
777                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
778                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
779                                    }
780    
781                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
782                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
783                                    }
784    
785                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
786                            }
787    
788                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
789                    }
790                    catch (com.liferay.portal.kernel.exception.SystemException se) {
791                            _log.error(se, se);
792    
793                            throw se;
794                    }
795            }
796    
797            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
798                    HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
799                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
800                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
801                    java.lang.String settings,
802                    com.liferay.portal.service.ServiceContext serviceContext)
803                    throws com.liferay.portal.kernel.exception.PortalException,
804                            com.liferay.portal.kernel.exception.SystemException {
805                    try {
806                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class.getName(),
807                                            "updateVocabulary", _updateVocabularyParameterTypes20);
808    
809                            MethodHandler methodHandler = new MethodHandler(methodKey,
810                                            vocabularyId, title, titleMap, descriptionMap, settings,
811                                            serviceContext);
812    
813                            Object returnObj = null;
814    
815                            try {
816                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
817                            }
818                            catch (Exception e) {
819                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
820                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
821                                    }
822    
823                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
824                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
825                                    }
826    
827                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
828                            }
829    
830                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
831                    }
832                    catch (com.liferay.portal.kernel.exception.SystemException se) {
833                            _log.error(se, se);
834    
835                            throw se;
836                    }
837            }
838    
839            private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
840            private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
841                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
842                            com.liferay.portal.service.ServiceContext.class
843                    };
844            private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
845                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
846                            java.lang.String.class,
847                            com.liferay.portal.service.ServiceContext.class
848                    };
849            private static final Class<?>[] _deleteVocabulariesParameterTypes2 = new Class[] {
850                            long[].class
851                    };
852            private static final Class<?>[] _deleteVocabulariesParameterTypes3 = new Class[] {
853                            long[].class, com.liferay.portal.service.ServiceContext.class
854                    };
855            private static final Class<?>[] _deleteVocabularyParameterTypes4 = new Class[] {
856                            long.class
857                    };
858            private static final Class<?>[] _getCompanyVocabulariesParameterTypes5 = new Class[] {
859                            long.class
860                    };
861            private static final Class<?>[] _getGroupsVocabulariesParameterTypes6 = new Class[] {
862                            long[].class
863                    };
864            private static final Class<?>[] _getGroupsVocabulariesParameterTypes7 = new Class[] {
865                            long[].class, java.lang.String.class
866                    };
867            private static final Class<?>[] _getGroupVocabulariesParameterTypes8 = new Class[] {
868                            long.class
869                    };
870            private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
871                            long.class, boolean.class
872                    };
873            private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
874                            long.class, int.class, int.class,
875                            com.liferay.portal.kernel.util.OrderByComparator.class
876                    };
877            private static final Class<?>[] _getGroupVocabulariesParameterTypes11 = new Class[] {
878                            long.class, java.lang.String.class, int.class, int.class,
879                            com.liferay.portal.kernel.util.OrderByComparator.class
880                    };
881            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes12 = new Class[] {
882                            long.class
883                    };
884            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes13 = new Class[] {
885                            long.class, java.lang.String.class
886                    };
887            private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes14 =
888                    new Class[] {
889                            long.class, java.lang.String.class, int.class, int.class,
890                            boolean.class,
891                            com.liferay.portal.kernel.util.OrderByComparator.class
892                    };
893            private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes15 = new Class[] {
894                            long.class, java.lang.String.class, int.class, int.class,
895                            com.liferay.portal.kernel.util.OrderByComparator.class
896                    };
897            private static final Class<?>[] _getJSONGroupVocabulariesDisplayParameterTypes16 =
898                    new Class[] {
899                            long.class, java.lang.String.class, int.class, int.class,
900                            boolean.class,
901                            com.liferay.portal.kernel.util.OrderByComparator.class
902                    };
903            private static final Class<?>[] _getVocabulariesParameterTypes17 = new Class[] {
904                            long[].class
905                    };
906            private static final Class<?>[] _getVocabularyParameterTypes18 = new Class[] {
907                            long.class
908                    };
909            private static final Class<?>[] _updateVocabularyParameterTypes19 = new Class[] {
910                            long.class, java.util.Map.class, java.util.Map.class,
911                            java.lang.String.class,
912                            com.liferay.portal.service.ServiceContext.class
913                    };
914            private static final Class<?>[] _updateVocabularyParameterTypes20 = new Class[] {
915                            long.class, java.lang.String.class, java.util.Map.class,
916                            java.util.Map.class, java.lang.String.class,
917                            com.liferay.portal.service.ServiceContext.class
918                    };
919    }