001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.security.auth.HttpPrincipal;
022    import com.liferay.portal.kernel.util.MethodHandler;
023    import com.liferay.portal.kernel.util.MethodKey;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.asset.service.AssetVocabularyServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link AssetVocabularyServiceUtil} service utility. The
031     * static methods of this class calls the same methods of the service utility.
032     * However, the signatures are different because it requires an additional
033     * {@link HttpPrincipal} parameter.
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 HttpPrincipal
053     * @see AssetVocabularyServiceUtil
054     * @generated
055     */
056    @ProviderType
057    public class AssetVocabularyServiceHttp {
058            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
059                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
060                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    java.lang.String settings,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    try {
066                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
067                                            "addVocabulary", _addVocabularyParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
070                                            title, 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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
083                            }
084    
085                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
086                    }
087                    catch (com.liferay.portal.kernel.exception.SystemException se) {
088                            _log.error(se, se);
089    
090                            throw se;
091                    }
092            }
093    
094            public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
095                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
096                    com.liferay.portal.service.ServiceContext serviceContext)
097                    throws com.liferay.portal.kernel.exception.PortalException {
098                    try {
099                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
100                                            "addVocabulary", _addVocabularyParameterTypes1);
101    
102                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
103                                            title, serviceContext);
104    
105                            Object returnObj = null;
106    
107                            try {
108                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
109                            }
110                            catch (Exception e) {
111                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
112                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
113                                    }
114    
115                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
116                            }
117    
118                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
119                    }
120                    catch (com.liferay.portal.kernel.exception.SystemException se) {
121                            _log.error(se, se);
122    
123                            throw se;
124                    }
125            }
126    
127            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
128                    HttpPrincipal httpPrincipal, long[] vocabularyIds,
129                    com.liferay.portal.service.ServiceContext serviceContext)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    try {
132                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
133                                            "deleteVocabularies", _deleteVocabulariesParameterTypes2);
134    
135                            MethodHandler methodHandler = new MethodHandler(methodKey,
136                                            vocabularyIds, serviceContext);
137    
138                            Object returnObj = null;
139    
140                            try {
141                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
142                            }
143                            catch (Exception e) {
144                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
145                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
146                                    }
147    
148                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
149                            }
150    
151                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
152                    }
153                    catch (com.liferay.portal.kernel.exception.SystemException se) {
154                            _log.error(se, se);
155    
156                            throw se;
157                    }
158            }
159    
160            public static void deleteVocabulary(HttpPrincipal httpPrincipal,
161                    long vocabularyId)
162                    throws com.liferay.portal.kernel.exception.PortalException {
163                    try {
164                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
165                                            "deleteVocabulary", _deleteVocabularyParameterTypes3);
166    
167                            MethodHandler methodHandler = new MethodHandler(methodKey,
168                                            vocabularyId);
169    
170                            try {
171                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
172                            }
173                            catch (Exception e) {
174                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
175                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
176                                    }
177    
178                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
179                            }
180                    }
181                    catch (com.liferay.portal.kernel.exception.SystemException se) {
182                            _log.error(se, se);
183    
184                            throw se;
185                    }
186            }
187    
188            public static com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
189                    HttpPrincipal httpPrincipal, long vocabularyId)
190                    throws com.liferay.portal.kernel.exception.PortalException {
191                    try {
192                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
193                                            "fetchVocabulary", _fetchVocabularyParameterTypes4);
194    
195                            MethodHandler methodHandler = new MethodHandler(methodKey,
196                                            vocabularyId);
197    
198                            Object returnObj = null;
199    
200                            try {
201                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
202                            }
203                            catch (Exception e) {
204                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
205                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
206                                    }
207    
208                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
209                            }
210    
211                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
212                    }
213                    catch (com.liferay.portal.kernel.exception.SystemException se) {
214                            _log.error(se, se);
215    
216                            throw se;
217                    }
218            }
219    
220            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
221                    HttpPrincipal httpPrincipal, long companyId)
222                    throws com.liferay.portal.kernel.exception.PortalException {
223                    try {
224                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
225                                            "getCompanyVocabularies",
226                                            _getCompanyVocabulariesParameterTypes5);
227    
228                            MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
229    
230                            Object returnObj = null;
231    
232                            try {
233                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
234                            }
235                            catch (Exception e) {
236                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
237                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
238                                    }
239    
240                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
241                            }
242    
243                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
244                    }
245                    catch (com.liferay.portal.kernel.exception.SystemException se) {
246                            _log.error(se, se);
247    
248                            throw se;
249                    }
250            }
251    
252            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
253                    HttpPrincipal httpPrincipal, long[] groupIds) {
254                    try {
255                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
256                                            "getGroupsVocabularies",
257                                            _getGroupsVocabulariesParameterTypes6);
258    
259                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
260    
261                            Object returnObj = null;
262    
263                            try {
264                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
265                            }
266                            catch (Exception e) {
267                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
268                            }
269    
270                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
271                    }
272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
273                            _log.error(se, se);
274    
275                            throw se;
276                    }
277            }
278    
279            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
280                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className) {
281                    try {
282                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
283                                            "getGroupsVocabularies",
284                                            _getGroupsVocabulariesParameterTypes7);
285    
286                            MethodHandler methodHandler = new MethodHandler(methodKey,
287                                            groupIds, className);
288    
289                            Object returnObj = null;
290    
291                            try {
292                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
293                            }
294                            catch (Exception e) {
295                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
296                            }
297    
298                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
299                    }
300                    catch (com.liferay.portal.kernel.exception.SystemException se) {
301                            _log.error(se, se);
302    
303                            throw se;
304                    }
305            }
306    
307            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
308                    HttpPrincipal httpPrincipal, long[] groupIds,
309                    java.lang.String className, long classTypePK) {
310                    try {
311                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
312                                            "getGroupsVocabularies",
313                                            _getGroupsVocabulariesParameterTypes8);
314    
315                            MethodHandler methodHandler = new MethodHandler(methodKey,
316                                            groupIds, className, classTypePK);
317    
318                            Object returnObj = null;
319    
320                            try {
321                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
322                            }
323                            catch (Exception e) {
324                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
325                            }
326    
327                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
328                    }
329                    catch (com.liferay.portal.kernel.exception.SystemException se) {
330                            _log.error(se, se);
331    
332                            throw se;
333                    }
334            }
335    
336            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
337                    HttpPrincipal httpPrincipal, long groupId)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    try {
340                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
341                                            "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
342    
343                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
344    
345                            Object returnObj = null;
346    
347                            try {
348                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
349                            }
350                            catch (Exception e) {
351                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
352                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
353                                    }
354    
355                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
356                            }
357    
358                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
359                    }
360                    catch (com.liferay.portal.kernel.exception.SystemException se) {
361                            _log.error(se, se);
362    
363                            throw se;
364                    }
365            }
366    
367            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
368                    HttpPrincipal httpPrincipal, long groupId,
369                    boolean createDefaultVocabulary)
370                    throws com.liferay.portal.kernel.exception.PortalException {
371                    try {
372                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
373                                            "getGroupVocabularies",
374                                            _getGroupVocabulariesParameterTypes10);
375    
376                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
377                                            createDefaultVocabulary);
378    
379                            Object returnObj = null;
380    
381                            try {
382                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
383                            }
384                            catch (Exception e) {
385                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
386                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
387                                    }
388    
389                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
390                            }
391    
392                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
393                    }
394                    catch (com.liferay.portal.kernel.exception.SystemException se) {
395                            _log.error(se, se);
396    
397                            throw se;
398                    }
399            }
400    
401            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
402                    HttpPrincipal httpPrincipal, long groupId,
403                    boolean createDefaultVocabulary, int start, int end,
404                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    try {
407                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
408                                            "getGroupVocabularies",
409                                            _getGroupVocabulariesParameterTypes11);
410    
411                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
412                                            createDefaultVocabulary, start, end, obc);
413    
414                            Object returnObj = null;
415    
416                            try {
417                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
418                            }
419                            catch (Exception e) {
420                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
421                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
422                                    }
423    
424                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
425                            }
426    
427                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
428                    }
429                    catch (com.liferay.portal.kernel.exception.SystemException se) {
430                            _log.error(se, se);
431    
432                            throw se;
433                    }
434            }
435    
436            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
437                    HttpPrincipal httpPrincipal, long groupId, int start, int end,
438                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
439                    try {
440                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
441                                            "getGroupVocabularies",
442                                            _getGroupVocabulariesParameterTypes12);
443    
444                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
445                                            start, end, obc);
446    
447                            Object returnObj = null;
448    
449                            try {
450                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
451                            }
452                            catch (Exception e) {
453                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
454                            }
455    
456                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
457                    }
458                    catch (com.liferay.portal.kernel.exception.SystemException se) {
459                            _log.error(se, se);
460    
461                            throw se;
462                    }
463            }
464    
465            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
466                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
467                    int start, int end,
468                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
469                    try {
470                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
471                                            "getGroupVocabularies",
472                                            _getGroupVocabulariesParameterTypes13);
473    
474                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
475                                            name, start, end, obc);
476    
477                            Object returnObj = null;
478    
479                            try {
480                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
481                            }
482                            catch (Exception e) {
483                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
484                            }
485    
486                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
487                    }
488                    catch (com.liferay.portal.kernel.exception.SystemException se) {
489                            _log.error(se, se);
490    
491                            throw se;
492                    }
493            }
494    
495            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
496                    HttpPrincipal httpPrincipal, long[] groupIds) {
497                    try {
498                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
499                                            "getGroupVocabularies",
500                                            _getGroupVocabulariesParameterTypes14);
501    
502                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
503    
504                            Object returnObj = null;
505    
506                            try {
507                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
508                            }
509                            catch (Exception e) {
510                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
511                            }
512    
513                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
514                    }
515                    catch (com.liferay.portal.kernel.exception.SystemException se) {
516                            _log.error(se, se);
517    
518                            throw se;
519                    }
520            }
521    
522            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
523                    long groupId) {
524                    try {
525                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
526                                            "getGroupVocabulariesCount",
527                                            _getGroupVocabulariesCountParameterTypes15);
528    
529                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
530    
531                            Object returnObj = null;
532    
533                            try {
534                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
535                            }
536                            catch (Exception e) {
537                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
538                            }
539    
540                            return ((Integer)returnObj).intValue();
541                    }
542                    catch (com.liferay.portal.kernel.exception.SystemException se) {
543                            _log.error(se, se);
544    
545                            throw se;
546                    }
547            }
548    
549            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
550                    long groupId, java.lang.String name) {
551                    try {
552                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
553                                            "getGroupVocabulariesCount",
554                                            _getGroupVocabulariesCountParameterTypes16);
555    
556                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
557                                            name);
558    
559                            Object returnObj = null;
560    
561                            try {
562                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
563                            }
564                            catch (Exception e) {
565                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
566                            }
567    
568                            return ((Integer)returnObj).intValue();
569                    }
570                    catch (com.liferay.portal.kernel.exception.SystemException se) {
571                            _log.error(se, se);
572    
573                            throw se;
574                    }
575            }
576    
577            public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
578                    long[] groupIds) {
579                    try {
580                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
581                                            "getGroupVocabulariesCount",
582                                            _getGroupVocabulariesCountParameterTypes17);
583    
584                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
585    
586                            Object returnObj = null;
587    
588                            try {
589                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
590                            }
591                            catch (Exception e) {
592                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
593                            }
594    
595                            return ((Integer)returnObj).intValue();
596                    }
597                    catch (com.liferay.portal.kernel.exception.SystemException se) {
598                            _log.error(se, se);
599    
600                            throw se;
601                    }
602            }
603    
604            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
605                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
606                    int start, int end, boolean addDefaultVocabulary,
607                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
608                    throws com.liferay.portal.kernel.exception.PortalException {
609                    try {
610                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
611                                            "getGroupVocabulariesDisplay",
612                                            _getGroupVocabulariesDisplayParameterTypes18);
613    
614                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
615                                            name, start, end, addDefaultVocabulary, obc);
616    
617                            Object returnObj = null;
618    
619                            try {
620                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
621                            }
622                            catch (Exception e) {
623                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
624                                            throw (com.liferay.portal.kernel.exception.PortalException)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,
642                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
643                    throws com.liferay.portal.kernel.exception.PortalException {
644                    try {
645                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
646                                            "getGroupVocabulariesDisplay",
647                                            _getGroupVocabulariesDisplayParameterTypes19);
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
663                            }
664    
665                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
666                    }
667                    catch (com.liferay.portal.kernel.exception.SystemException se) {
668                            _log.error(se, se);
669    
670                            throw se;
671                    }
672            }
673    
674            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
675                    HttpPrincipal httpPrincipal, long[] vocabularyIds)
676                    throws com.liferay.portal.kernel.exception.PortalException {
677                    try {
678                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
679                                            "getVocabularies", _getVocabulariesParameterTypes20);
680    
681                            MethodHandler methodHandler = new MethodHandler(methodKey,
682                                            vocabularyIds);
683    
684                            Object returnObj = null;
685    
686                            try {
687                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
688                            }
689                            catch (Exception e) {
690                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
691                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
692                                    }
693    
694                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
695                            }
696    
697                            return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
698                    }
699                    catch (com.liferay.portal.kernel.exception.SystemException se) {
700                            _log.error(se, se);
701    
702                            throw se;
703                    }
704            }
705    
706            public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
707                    HttpPrincipal httpPrincipal, long vocabularyId)
708                    throws com.liferay.portal.kernel.exception.PortalException {
709                    try {
710                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
711                                            "getVocabulary", _getVocabularyParameterTypes21);
712    
713                            MethodHandler methodHandler = new MethodHandler(methodKey,
714                                            vocabularyId);
715    
716                            Object returnObj = null;
717    
718                            try {
719                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
720                            }
721                            catch (Exception e) {
722                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
723                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
724                                    }
725    
726                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
727                            }
728    
729                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
730                    }
731                    catch (com.liferay.portal.kernel.exception.SystemException se) {
732                            _log.error(se, se);
733    
734                            throw se;
735                    }
736            }
737    
738            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
739                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
740                    boolean addDefaultVocabulary, int start, int end)
741                    throws com.liferay.portal.kernel.exception.PortalException {
742                    try {
743                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
744                                            "searchVocabulariesDisplay",
745                                            _searchVocabulariesDisplayParameterTypes22);
746    
747                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
748                                            title, addDefaultVocabulary, start, end);
749    
750                            Object returnObj = null;
751    
752                            try {
753                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
754                            }
755                            catch (Exception e) {
756                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
757                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
758                                    }
759    
760                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
761                            }
762    
763                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
764                    }
765                    catch (com.liferay.portal.kernel.exception.SystemException se) {
766                            _log.error(se, se);
767    
768                            throw se;
769                    }
770            }
771    
772            public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
773                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
774                    boolean addDefaultVocabulary, int start, int end,
775                    com.liferay.portal.kernel.search.Sort sort)
776                    throws com.liferay.portal.kernel.exception.PortalException {
777                    try {
778                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
779                                            "searchVocabulariesDisplay",
780                                            _searchVocabulariesDisplayParameterTypes23);
781    
782                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
783                                            title, addDefaultVocabulary, start, end, sort);
784    
785                            Object returnObj = null;
786    
787                            try {
788                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
789                            }
790                            catch (Exception e) {
791                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
792                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
793                                    }
794    
795                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
796                            }
797    
798                            return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
799                    }
800                    catch (com.liferay.portal.kernel.exception.SystemException se) {
801                            _log.error(se, se);
802    
803                            throw se;
804                    }
805            }
806    
807            public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
808                    HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
809                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
810                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
811                    java.lang.String settings,
812                    com.liferay.portal.service.ServiceContext serviceContext)
813                    throws com.liferay.portal.kernel.exception.PortalException {
814                    try {
815                            MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
816                                            "updateVocabulary", _updateVocabularyParameterTypes24);
817    
818                            MethodHandler methodHandler = new MethodHandler(methodKey,
819                                            vocabularyId, title, titleMap, descriptionMap, settings,
820                                            serviceContext);
821    
822                            Object returnObj = null;
823    
824                            try {
825                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
826                            }
827                            catch (Exception e) {
828                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
829                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
830                                    }
831    
832                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
833                            }
834    
835                            return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
836                    }
837                    catch (com.liferay.portal.kernel.exception.SystemException se) {
838                            _log.error(se, se);
839    
840                            throw se;
841                    }
842            }
843    
844            private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
845            private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
846                            long.class, java.lang.String.class, java.util.Map.class,
847                            java.util.Map.class, java.lang.String.class,
848                            com.liferay.portal.service.ServiceContext.class
849                    };
850            private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
851                            long.class, java.lang.String.class,
852                            com.liferay.portal.service.ServiceContext.class
853                    };
854            private static final Class<?>[] _deleteVocabulariesParameterTypes2 = new Class[] {
855                            long[].class, com.liferay.portal.service.ServiceContext.class
856                    };
857            private static final Class<?>[] _deleteVocabularyParameterTypes3 = new Class[] {
858                            long.class
859                    };
860            private static final Class<?>[] _fetchVocabularyParameterTypes4 = new Class[] {
861                            long.class
862                    };
863            private static final Class<?>[] _getCompanyVocabulariesParameterTypes5 = new Class[] {
864                            long.class
865                    };
866            private static final Class<?>[] _getGroupsVocabulariesParameterTypes6 = new Class[] {
867                            long[].class
868                    };
869            private static final Class<?>[] _getGroupsVocabulariesParameterTypes7 = new Class[] {
870                            long[].class, java.lang.String.class
871                    };
872            private static final Class<?>[] _getGroupsVocabulariesParameterTypes8 = new Class[] {
873                            long[].class, java.lang.String.class, long.class
874                    };
875            private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
876                            long.class
877                    };
878            private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
879                            long.class, boolean.class
880                    };
881            private static final Class<?>[] _getGroupVocabulariesParameterTypes11 = new Class[] {
882                            long.class, boolean.class, int.class, int.class,
883                            com.liferay.portal.kernel.util.OrderByComparator.class
884                    };
885            private static final Class<?>[] _getGroupVocabulariesParameterTypes12 = new Class[] {
886                            long.class, int.class, int.class,
887                            com.liferay.portal.kernel.util.OrderByComparator.class
888                    };
889            private static final Class<?>[] _getGroupVocabulariesParameterTypes13 = new Class[] {
890                            long.class, java.lang.String.class, int.class, int.class,
891                            com.liferay.portal.kernel.util.OrderByComparator.class
892                    };
893            private static final Class<?>[] _getGroupVocabulariesParameterTypes14 = new Class[] {
894                            long[].class
895                    };
896            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes15 = new Class[] {
897                            long.class
898                    };
899            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes16 = new Class[] {
900                            long.class, java.lang.String.class
901                    };
902            private static final Class<?>[] _getGroupVocabulariesCountParameterTypes17 = new Class[] {
903                            long[].class
904                    };
905            private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes18 =
906                    new Class[] {
907                            long.class, java.lang.String.class, int.class, int.class,
908                            boolean.class,
909                            com.liferay.portal.kernel.util.OrderByComparator.class
910                    };
911            private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes19 =
912                    new Class[] {
913                            long.class, java.lang.String.class, int.class, int.class,
914                            com.liferay.portal.kernel.util.OrderByComparator.class
915                    };
916            private static final Class<?>[] _getVocabulariesParameterTypes20 = new Class[] {
917                            long[].class
918                    };
919            private static final Class<?>[] _getVocabularyParameterTypes21 = new Class[] {
920                            long.class
921                    };
922            private static final Class<?>[] _searchVocabulariesDisplayParameterTypes22 = new Class[] {
923                            long.class, java.lang.String.class, boolean.class, int.class,
924                            int.class
925                    };
926            private static final Class<?>[] _searchVocabulariesDisplayParameterTypes23 = new Class[] {
927                            long.class, java.lang.String.class, boolean.class, int.class,
928                            int.class, com.liferay.portal.kernel.search.Sort.class
929                    };
930            private static final Class<?>[] _updateVocabularyParameterTypes24 = new Class[] {
931                            long.class, java.lang.String.class, java.util.Map.class,
932                            java.util.Map.class, java.lang.String.class,
933                            com.liferay.portal.service.ServiceContext.class
934                    };
935    }