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     * Provides the HTTP utility for the
028     * {@link com.liferay.portlet.asset.service.AssetVocabularyServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see AssetVocabularyServiceSoap
050     * @see com.liferay.portal.security.auth.HttpPrincipal
051     * @see com.liferay.portlet.asset.service.AssetVocabularyServiceUtil
052     * @generated
053     */
054    public class AssetVocabularyServiceHttp {
055            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
056                    HttpPrincipal httpPrincipal,
057                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
058                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059                    java.lang.String settings,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    try {
064                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
065                                            "addVocabulary", _addVocabularyParameterTypes0);
066    
067                            MethodHandler methodHandler = new MethodHandler(methodKey,
068                                            titleMap, descriptionMap, settings, serviceContext);
069    
070                            Object returnObj = null;
071    
072                            try {
073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074                            }
075                            catch (Exception e) {
076                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
078                                    }
079    
080                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
081                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
082                                    }
083    
084                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
085                            }
086    
087                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
088                    }
089                    catch (com.liferay.portal.kernel.exception.SystemException se) {
090                            _log.error(se, se);
091    
092                            throw se;
093                    }
094            }
095    
096            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
097                    HttpPrincipal httpPrincipal, java.lang.String title,
098                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
099                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
100                    java.lang.String settings,
101                    com.liferay.portal.service.ServiceContext serviceContext)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    try {
105                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
106                                            "addVocabulary", _addVocabularyParameterTypes1);
107    
108                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
109                                            titleMap, descriptionMap, settings, serviceContext);
110    
111                            Object returnObj = null;
112    
113                            try {
114                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
115                            }
116                            catch (Exception e) {
117                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
118                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
119                                    }
120    
121                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
122                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
123                                    }
124    
125                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
126                            }
127    
128                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
129                    }
130                    catch (com.liferay.portal.kernel.exception.SystemException se) {
131                            _log.error(se, se);
132    
133                            throw se;
134                    }
135            }
136    
137            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
138                    HttpPrincipal httpPrincipal, java.lang.String title,
139                    com.liferay.portal.service.ServiceContext serviceContext)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    try {
143                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
144                                            "addVocabulary", _addVocabularyParameterTypes2);
145    
146                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
147                                            serviceContext);
148    
149                            Object returnObj = null;
150    
151                            try {
152                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
153                            }
154                            catch (Exception e) {
155                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
156                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
157                                    }
158    
159                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
160                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
161                                    }
162    
163                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
164                            }
165    
166                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
167                    }
168                    catch (com.liferay.portal.kernel.exception.SystemException se) {
169                            _log.error(se, se);
170    
171                            throw se;
172                    }
173            }
174    
175            public static void deleteVocabularies(HttpPrincipal httpPrincipal,
176                    long[] vocabularyIds)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    try {
180                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
181                                            "deleteVocabularies", _deleteVocabulariesParameterTypes3);
182    
183                            MethodHandler methodHandler = new MethodHandler(methodKey,
184                                            vocabularyIds);
185    
186                            try {
187                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
202                            _log.error(se, se);
203    
204                            throw se;
205                    }
206            }
207    
208            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
209                    HttpPrincipal httpPrincipal, long[] vocabularyIds,
210                    com.liferay.portal.service.ServiceContext serviceContext)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    try {
214                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
215                                            "deleteVocabularies", _deleteVocabulariesParameterTypes4);
216    
217                            MethodHandler methodHandler = new MethodHandler(methodKey,
218                                            vocabularyIds, serviceContext);
219    
220                            Object returnObj = null;
221    
222                            try {
223                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
224                            }
225                            catch (Exception e) {
226                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
227                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
228                                    }
229    
230                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
231                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
232                                    }
233    
234                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
235                            }
236    
237                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
238                    }
239                    catch (com.liferay.portal.kernel.exception.SystemException se) {
240                            _log.error(se, se);
241    
242                            throw se;
243                    }
244            }
245    
246            public static void deleteVocabulary(HttpPrincipal httpPrincipal,
247                    long vocabularyId)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    try {
251                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
252                                            "deleteVocabulary", _deleteVocabularyParameterTypes5);
253    
254                            MethodHandler methodHandler = new MethodHandler(methodKey,
255                                            vocabularyId);
256    
257                            try {
258                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
259                            }
260                            catch (Exception e) {
261                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
262                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
263                                    }
264    
265                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
266                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
267                                    }
268    
269                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
270                            }
271                    }
272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
273                            _log.error(se, se);
274    
275                            throw se;
276                    }
277            }
278    
279            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
280                    HttpPrincipal httpPrincipal, long companyId)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    try {
284                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
285                                            "getCompanyVocabularies",
286                                            _getCompanyVocabulariesParameterTypes6);
287    
288                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
289    
290                            Object returnObj = null;
291    
292                            try {
293                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
294                            }
295                            catch (Exception e) {
296                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
297                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
298                                    }
299    
300                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
301                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
302                                    }
303    
304                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
305                            }
306    
307                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
308                    }
309                    catch (com.liferay.portal.kernel.exception.SystemException se) {
310                            _log.error(se, se);
311    
312                            throw se;
313                    }
314            }
315    
316            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
317                    HttpPrincipal httpPrincipal, long[] groupIds)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    try {
321                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
322                                            "getGroupsVocabularies",
323                                            _getGroupsVocabulariesParameterTypes7);
324    
325                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
326    
327                            Object returnObj = null;
328    
329                            try {
330                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
331                            }
332                            catch (Exception e) {
333                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
334                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
335                                    }
336    
337                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
338                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
339                                    }
340    
341                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
342                            }
343    
344                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
345                    }
346                    catch (com.liferay.portal.kernel.exception.SystemException se) {
347                            _log.error(se, se);
348    
349                            throw se;
350                    }
351            }
352    
353            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
354                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    try {
358                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
359                                            "getGroupsVocabularies",
360                                            _getGroupsVocabulariesParameterTypes8);
361    
362                            MethodHandler methodHandler = new MethodHandler(methodKey,
363                                            groupIds, className);
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                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException {
395                    try {
396                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
397                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
398    
399                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
400    
401                            Object returnObj = null;
402    
403                            try {
404                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
405                            }
406                            catch (Exception e) {
407                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
408                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
409                                    }
410    
411                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
412                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
413                                    }
414    
415                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
416                            }
417    
418                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
419                    }
420                    catch (com.liferay.portal.kernel.exception.SystemException se) {
421                            _log.error(se, se);
422    
423                            throw se;
424                    }
425            }
426    
427            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
428                    HttpPrincipal httpPrincipal, long groupId,
429                    boolean createDefaultVocabulary)
430                    throws com.liferay.portal.kernel.exception.PortalException,
431                            com.liferay.portal.kernel.exception.SystemException {
432                    try {
433                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
434                                            "getGroupVocabularies",
435                                            _getGroupVocabulariesParameterTypes10);
436    
437                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
438                                            createDefaultVocabulary);
439    
440                            Object returnObj = null;
441    
442                            try {
443                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
444                            }
445                            catch (Exception e) {
446                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
447                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
448                                    }
449    
450                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
451                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
452                                    }
453    
454                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
455                            }
456    
457                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
458                    }
459                    catch (com.liferay.portal.kernel.exception.SystemException se) {
460                            _log.error(se, se);
461    
462                            throw se;
463                    }
464            }
465    
466            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
467                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
468                    com.liferay.portal.kernel.util.OrderByComparator obc)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    try {
471                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
472                                            "getGroupVocabularies",
473                                            _getGroupVocabulariesParameterTypes11);
474    
475                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
476                                            start, end, obc);
477    
478                            Object returnObj = null;
479    
480                            try {
481                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
482                            }
483                            catch (Exception e) {
484                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
485                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
486                                    }
487    
488                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
489                            }
490    
491                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
492                    }
493                    catch (com.liferay.portal.kernel.exception.SystemException se) {
494                            _log.error(se, se);
495    
496                            throw se;
497                    }
498            }
499    
500            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
501                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
502                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    try {
505                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
506                                            "getGroupVocabularies",
507                                            _getGroupVocabulariesParameterTypes12);
508    
509                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
510                                            name, start, end, obc);
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 (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
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)
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    
544                            Object returnObj = null;
545    
546                            try {
547                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
548                            }
549                            catch (Exception e) {
550                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
551                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
552                                    }
553    
554                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
555                            }
556    
557                            return ((Integer)returnObj).intValue();
558                    }
559                    catch (com.liferay.portal.kernel.exception.SystemException se) {
560                            _log.error(se, se);
561    
562                            throw se;
563                    }
564            }
565    
566            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
567                    long groupId, java.lang.String name)
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    try {
570                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
571                                            "getGroupVocabulariesCount",
572                                            _getGroupVocabulariesCountParameterTypes14);
573    
574                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
575                                            name);
576    
577                            Object returnObj = null;
578    
579                            try {
580                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
581                            }
582                            catch (Exception e) {
583                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
584                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
585                                    }
586    
587                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
588                            }
589    
590                            return ((Integer)returnObj).intValue();
591                    }
592                    catch (com.liferay.portal.kernel.exception.SystemException se) {
593                            _log.error(se, se);
594    
595                            throw se;
596                    }
597            }
598    
599            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
600                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
601                    int start, int end, boolean addDefaultVocabulary,
602                    com.liferay.portal.kernel.util.OrderByComparator obc)
603                    throws com.liferay.portal.kernel.exception.PortalException,
604                            com.liferay.portal.kernel.exception.SystemException {
605                    try {
606                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
607                                            "getGroupVocabulariesDisplay",
608                                            _getGroupVocabulariesDisplayParameterTypes15);
609    
610                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
611                                            title, start, end, addDefaultVocabulary, obc);
612    
613                            Object returnObj = null;
614    
615                            try {
616                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
617                            }
618                            catch (Exception e) {
619                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
620                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
621                                    }
622    
623                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
624                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
625                                    }
626    
627                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
628                            }
629    
630                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
631                    }
632                    catch (com.liferay.portal.kernel.exception.SystemException se) {
633                            _log.error(se, se);
634    
635                            throw se;
636                    }
637            }
638    
639            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
640                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
641                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
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                                            "getGroupVocabulariesDisplay",
647                                            _getGroupVocabulariesDisplayParameterTypes16);
648    
649                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
650                                            name, start, end, obc);
651    
652                            Object returnObj = null;
653    
654                            try {
655                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
656                            }
657                            catch (Exception e) {
658                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
659                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
660                                    }
661    
662                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
663                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
664                                    }
665    
666                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
667                            }
668    
669                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
670                    }
671                    catch (com.liferay.portal.kernel.exception.SystemException se) {
672                            _log.error(se, se);
673    
674                            throw se;
675                    }
676            }
677    
678            public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
679                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
680                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
681                    throws com.liferay.portal.kernel.exception.PortalException,
682                            com.liferay.portal.kernel.exception.SystemException {
683                    try {
684                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
685                                            "getJSONGroupVocabularies",
686                                            _getJSONGroupVocabulariesParameterTypes17);
687    
688                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
689                                            name, start, end, obc);
690    
691                            Object returnObj = null;
692    
693                            try {
694                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
695                            }
696                            catch (Exception e) {
697                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
698                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
699                                    }
700    
701                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
702                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
703                                    }
704    
705                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
706                            }
707    
708                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
709                    }
710                    catch (com.liferay.portal.kernel.exception.SystemException se) {
711                            _log.error(se, se);
712    
713                            throw se;
714                    }
715            }
716    
717            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
718                    HttpPrincipal httpPrincipal, long[] vocabularyIds)
719                    throws com.liferay.portal.kernel.exception.PortalException,
720                            com.liferay.portal.kernel.exception.SystemException {
721                    try {
722                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
723                                            "getVocabularies", _getVocabulariesParameterTypes18);
724    
725                            MethodHandler methodHandler = new MethodHandler(methodKey,
726                                            vocabularyIds);
727    
728                            Object returnObj = null;
729    
730                            try {
731                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
732                            }
733                            catch (Exception e) {
734                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
735                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
736                                    }
737    
738                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
739                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
740                                    }
741    
742                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
743                            }
744    
745                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
746                    }
747                    catch (com.liferay.portal.kernel.exception.SystemException se) {
748                            _log.error(se, se);
749    
750                            throw se;
751                    }
752            }
753    
754            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
755                    HttpPrincipal httpPrincipal, long vocabularyId)
756                    throws com.liferay.portal.kernel.exception.PortalException,
757                            com.liferay.portal.kernel.exception.SystemException {
758                    try {
759                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
760                                            "getVocabulary", _getVocabularyParameterTypes19);
761    
762                            MethodHandler methodHandler = new MethodHandler(methodKey,
763                                            vocabularyId);
764    
765                            Object returnObj = null;
766    
767                            try {
768                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
769                            }
770                            catch (Exception e) {
771                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
772                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
773                                    }
774    
775                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
776                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
777                                    }
778    
779                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
780                            }
781    
782                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
783                    }
784                    catch (com.liferay.portal.kernel.exception.SystemException se) {
785                            _log.error(se, se);
786    
787                            throw se;
788                    }
789            }
790    
791            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
792                    HttpPrincipal httpPrincipal, long vocabularyId,
793                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
794                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
795                    java.lang.String settings,
796                    com.liferay.portal.service.ServiceContext serviceContext)
797                    throws com.liferay.portal.kernel.exception.PortalException,
798                            com.liferay.portal.kernel.exception.SystemException {
799                    try {
800                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
801                                            "updateVocabulary", _updateVocabularyParameterTypes20);
802    
803                            MethodHandler methodHandler = new MethodHandler(methodKey,
804                                            vocabularyId, titleMap, descriptionMap, settings,
805                                            serviceContext);
806    
807                            Object returnObj = null;
808    
809                            try {
810                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
811                            }
812                            catch (Exception e) {
813                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
814                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
815                                    }
816    
817                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
818                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
819                                    }
820    
821                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
822                            }
823    
824                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
825                    }
826                    catch (com.liferay.portal.kernel.exception.SystemException se) {
827                            _log.error(se, se);
828    
829                            throw se;
830                    }
831            }
832    
833            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
834                    HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
835                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
836                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
837                    java.lang.String settings,
838                    com.liferay.portal.service.ServiceContext serviceContext)
839                    throws com.liferay.portal.kernel.exception.PortalException,
840                            com.liferay.portal.kernel.exception.SystemException {
841                    try {
842                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
843                                            "updateVocabulary", _updateVocabularyParameterTypes21);
844    
845                            MethodHandler methodHandler = new MethodHandler(methodKey,
846                                            vocabularyId, title, titleMap, descriptionMap, settings,
847                                            serviceContext);
848    
849                            Object returnObj = null;
850    
851                            try {
852                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
853                            }
854                            catch (Exception e) {
855                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
856                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
857                                    }
858    
859                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
860                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
861                                    }
862    
863                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
864                            }
865    
866                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
867                    }
868                    catch (com.liferay.portal.kernel.exception.SystemException se) {
869                            _log.error(se, se);
870    
871                            throw se;
872                    }
873            }
874    
875            private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
876            private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
877                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
878                            com.liferay.portal.service.ServiceContext.class
879                    };
880            private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
881                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
882                            java.lang.String.class,
883                            com.liferay.portal.service.ServiceContext.class
884                    };
885            private static final Class<?>[] _addVocabularyParameterTypes2 = new Class[] {
886                            java.lang.String.class,
887                            com.liferay.portal.service.ServiceContext.class
888                    };
889            private static final Class<?>[] _deleteVocabulariesParameterTypes3 = new Class[] {
890                            long[].class
891                    };
892            private static final Class<?>[] _deleteVocabulariesParameterTypes4 = new Class[] {
893                            long[].class, com.liferay.portal.service.ServiceContext.class
894                    };
895            private static final Class<?>[] _deleteVocabularyParameterTypes5 = new Class[] {
896                            long.class
897                    };
898            private static final Class<?>[] _getCompanyVocabulariesParameterTypes6 = new Class[] {
899                            long.class
900                    };
901            private static final Class<?>[] _getGroupsVocabulariesParameterTypes7 = new Class[] {
902                            long[].class
903                    };
904            private static final Class<?>[] _getGroupsVocabulariesParameterTypes8 = new Class[] {
905                            long[].class, java.lang.String.class
906                    };
907            private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
908                            long.class
909                    };
910            private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
911                            long.class, boolean.class
912                    };
913            private static final Class<?>[] _getGroupVocabulariesParameterTypes11 = new Class[] {
914                            long.class, int.class, int.class,
915                            com.liferay.portal.kernel.util.OrderByComparator.class
916                    };
917            private static final Class<?>[] _getGroupVocabulariesParameterTypes12 = new Class[] {
918                            long.class, java.lang.String.class, int.class, int.class,
919                            com.liferay.portal.kernel.util.OrderByComparator.class
920                    };
921            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes13 = new Class[] {
922                            long.class
923                    };
924            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes14 = new Class[] {
925                            long.class, java.lang.String.class
926                    };
927            private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes15 =
928                    new Class[] {
929                            long.class, java.lang.String.class, int.class, int.class,
930                            boolean.class,
931                            com.liferay.portal.kernel.util.OrderByComparator.class
932                    };
933            private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes16 =
934                    new Class[] {
935                            long.class, java.lang.String.class, int.class, int.class,
936                            com.liferay.portal.kernel.util.OrderByComparator.class
937                    };
938            private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes17 = new Class[] {
939                            long.class, java.lang.String.class, int.class, int.class,
940                            com.liferay.portal.kernel.util.OrderByComparator.class
941                    };
942            private static final Class<?>[] _getVocabulariesParameterTypes18 = new Class[] {
943                            long[].class
944                    };
945            private static final Class<?>[] _getVocabularyParameterTypes19 = new Class[] {
946                            long.class
947                    };
948            private static final Class<?>[] _updateVocabularyParameterTypes20 = new Class[] {
949                            long.class, java.util.Map.class, java.util.Map.class,
950                            java.lang.String.class,
951                            com.liferay.portal.service.ServiceContext.class
952                    };
953            private static final Class<?>[] _updateVocabularyParameterTypes21 = new Class[] {
954                            long.class, java.lang.String.class, java.util.Map.class,
955                            java.util.Map.class, java.lang.String.class,
956                            com.liferay.portal.service.ServiceContext.class
957                    };
958    }