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.util.MethodHandler;
022    import com.liferay.portal.kernel.util.MethodKey;
023    import com.liferay.portal.security.auth.HttpPrincipal;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.asset.service.AssetCategoryServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link AssetCategoryServiceUtil} 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 AssetCategoryServiceSoap
052     * @see HttpPrincipal
053     * @see AssetCategoryServiceUtil
054     * @generated
055     */
056    @ProviderType
057    public class AssetCategoryServiceHttp {
058            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
059                    HttpPrincipal httpPrincipal, long groupId, long parentCategoryId,
060                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    long vocabularyId, java.lang.String[] categoryProperties,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    try {
066                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
067                                            "addCategory", _addCategoryParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
070                                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
071                                            categoryProperties, serviceContext);
072    
073                            Object returnObj = null;
074    
075                            try {
076                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
077                            }
078                            catch (Exception e) {
079                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
080                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
081                                    }
082    
083                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
084                            }
085    
086                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
087                    }
088                    catch (com.liferay.portal.kernel.exception.SystemException se) {
089                            _log.error(se, se);
090    
091                            throw se;
092                    }
093            }
094    
095            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
096                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
097                    long vocabularyId,
098                    com.liferay.portal.service.ServiceContext serviceContext)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    try {
101                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
102                                            "addCategory", _addCategoryParameterTypes1);
103    
104                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
105                                            title, vocabularyId, serviceContext);
106    
107                            Object returnObj = null;
108    
109                            try {
110                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
111                            }
112                            catch (Exception e) {
113                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
114                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
115                                    }
116    
117                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
118                            }
119    
120                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
121                    }
122                    catch (com.liferay.portal.kernel.exception.SystemException se) {
123                            _log.error(se, se);
124    
125                            throw se;
126                    }
127            }
128    
129            public static void deleteCategories(HttpPrincipal httpPrincipal,
130                    long[] categoryIds)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    try {
133                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
134                                            "deleteCategories", _deleteCategoriesParameterTypes2);
135    
136                            MethodHandler methodHandler = new MethodHandler(methodKey,
137                                            categoryIds);
138    
139                            try {
140                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
141                            }
142                            catch (Exception e) {
143                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
144                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
145                                    }
146    
147                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
148                            }
149                    }
150                    catch (com.liferay.portal.kernel.exception.SystemException se) {
151                            _log.error(se, se);
152    
153                            throw se;
154                    }
155            }
156    
157            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
158                    HttpPrincipal httpPrincipal, long[] categoryIds,
159                    com.liferay.portal.service.ServiceContext serviceContext)
160                    throws com.liferay.portal.kernel.exception.PortalException {
161                    try {
162                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
163                                            "deleteCategories", _deleteCategoriesParameterTypes3);
164    
165                            MethodHandler methodHandler = new MethodHandler(methodKey,
166                                            categoryIds, serviceContext);
167    
168                            Object returnObj = null;
169    
170                            try {
171                                    returnObj = 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                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
182                    }
183                    catch (com.liferay.portal.kernel.exception.SystemException se) {
184                            _log.error(se, se);
185    
186                            throw se;
187                    }
188            }
189    
190            public static void deleteCategory(HttpPrincipal httpPrincipal,
191                    long categoryId)
192                    throws com.liferay.portal.kernel.exception.PortalException {
193                    try {
194                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
195                                            "deleteCategory", _deleteCategoryParameterTypes4);
196    
197                            MethodHandler methodHandler = new MethodHandler(methodKey,
198                                            categoryId);
199    
200                            try {
201                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
212                            _log.error(se, se);
213    
214                            throw se;
215                    }
216            }
217    
218            public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
219                    HttpPrincipal httpPrincipal, long categoryId)
220                    throws com.liferay.portal.kernel.exception.PortalException {
221                    try {
222                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
223                                            "fetchCategory", _fetchCategoryParameterTypes5);
224    
225                            MethodHandler methodHandler = new MethodHandler(methodKey,
226                                            categoryId);
227    
228                            Object returnObj = null;
229    
230                            try {
231                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
232                            }
233                            catch (Exception e) {
234                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
235                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
236                                    }
237    
238                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
239                            }
240    
241                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
242                    }
243                    catch (com.liferay.portal.kernel.exception.SystemException se) {
244                            _log.error(se, se);
245    
246                            throw se;
247                    }
248            }
249    
250            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
251                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
252                    throws com.liferay.portal.kernel.exception.PortalException {
253                    try {
254                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
255                                            "getCategories", _getCategoriesParameterTypes6);
256    
257                            MethodHandler methodHandler = new MethodHandler(methodKey,
258                                            className, classPK);
259    
260                            Object returnObj = null;
261    
262                            try {
263                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
264                            }
265                            catch (Exception e) {
266                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
267                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
268                                    }
269    
270                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
271                            }
272    
273                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
274                    }
275                    catch (com.liferay.portal.kernel.exception.SystemException se) {
276                            _log.error(se, se);
277    
278                            throw se;
279                    }
280            }
281    
282            public static com.liferay.portlet.asset.model.AssetCategory getCategory(
283                    HttpPrincipal httpPrincipal, long categoryId)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    try {
286                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
287                                            "getCategory", _getCategoryParameterTypes7);
288    
289                            MethodHandler methodHandler = new MethodHandler(methodKey,
290                                            categoryId);
291    
292                            Object returnObj = null;
293    
294                            try {
295                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
296                            }
297                            catch (Exception e) {
298                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
299                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
300                                    }
301    
302                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
303                            }
304    
305                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
306                    }
307                    catch (com.liferay.portal.kernel.exception.SystemException se) {
308                            _log.error(se, se);
309    
310                            throw se;
311                    }
312            }
313    
314            public static java.lang.String getCategoryPath(
315                    HttpPrincipal httpPrincipal, long categoryId)
316                    throws com.liferay.portal.kernel.exception.PortalException {
317                    try {
318                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
319                                            "getCategoryPath", _getCategoryPathParameterTypes8);
320    
321                            MethodHandler methodHandler = new MethodHandler(methodKey,
322                                            categoryId);
323    
324                            Object returnObj = null;
325    
326                            try {
327                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
328                            }
329                            catch (Exception e) {
330                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
331                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
332                                    }
333    
334                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
335                            }
336    
337                            return (java.lang.String)returnObj;
338                    }
339                    catch (com.liferay.portal.kernel.exception.SystemException se) {
340                            _log.error(se, se);
341    
342                            throw se;
343                    }
344            }
345    
346            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
347                    HttpPrincipal httpPrincipal, long parentCategoryId)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    try {
350                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
351                                            "getChildCategories", _getChildCategoriesParameterTypes9);
352    
353                            MethodHandler methodHandler = new MethodHandler(methodKey,
354                                            parentCategoryId);
355    
356                            Object returnObj = null;
357    
358                            try {
359                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
360                            }
361                            catch (Exception e) {
362                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
363                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
364                                    }
365    
366                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
367                            }
368    
369                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
370                    }
371                    catch (com.liferay.portal.kernel.exception.SystemException se) {
372                            _log.error(se, se);
373    
374                            throw se;
375                    }
376            }
377    
378            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
379                    HttpPrincipal httpPrincipal, long parentCategoryId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
381                    throws com.liferay.portal.kernel.exception.PortalException {
382                    try {
383                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
384                                            "getChildCategories", _getChildCategoriesParameterTypes10);
385    
386                            MethodHandler methodHandler = new MethodHandler(methodKey,
387                                            parentCategoryId, start, end, obc);
388    
389                            Object returnObj = null;
390    
391                            try {
392                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
393                            }
394                            catch (Exception e) {
395                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
396                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
397                                    }
398    
399                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
400                            }
401    
402                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
403                    }
404                    catch (com.liferay.portal.kernel.exception.SystemException se) {
405                            _log.error(se, se);
406    
407                            throw se;
408                    }
409            }
410    
411            public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
412                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
413                    long[] vocabularyIds, int start, int end)
414                    throws com.liferay.portal.kernel.exception.PortalException {
415                    try {
416                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
417                                            "getJSONSearch", _getJSONSearchParameterTypes11);
418    
419                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
420                                            name, vocabularyIds, start, end);
421    
422                            Object returnObj = null;
423    
424                            try {
425                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
426                            }
427                            catch (Exception e) {
428                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
429                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
430                                    }
431    
432                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
433                            }
434    
435                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
436                    }
437                    catch (com.liferay.portal.kernel.exception.SystemException se) {
438                            _log.error(se, se);
439    
440                            throw se;
441                    }
442            }
443    
444            public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
445                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
446                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
447                    throws com.liferay.portal.kernel.exception.PortalException {
448                    try {
449                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
450                                            "getJSONVocabularyCategories",
451                                            _getJSONVocabularyCategoriesParameterTypes12);
452    
453                            MethodHandler methodHandler = new MethodHandler(methodKey,
454                                            vocabularyId, start, end, obc);
455    
456                            Object returnObj = null;
457    
458                            try {
459                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
460                            }
461                            catch (Exception e) {
462                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
463                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
464                                    }
465    
466                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
467                            }
468    
469                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
470                    }
471                    catch (com.liferay.portal.kernel.exception.SystemException se) {
472                            _log.error(se, se);
473    
474                            throw se;
475                    }
476            }
477    
478            public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
479                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
480                    long vocabularyId, int start, int end,
481                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
482                    throws com.liferay.portal.kernel.exception.PortalException {
483                    try {
484                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
485                                            "getJSONVocabularyCategories",
486                                            _getJSONVocabularyCategoriesParameterTypes13);
487    
488                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
489                                            name, vocabularyId, start, end, obc);
490    
491                            Object returnObj = null;
492    
493                            try {
494                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
495                            }
496                            catch (Exception e) {
497                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
498                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
499                                    }
500    
501                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
502                            }
503    
504                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
505                    }
506                    catch (com.liferay.portal.kernel.exception.SystemException se) {
507                            _log.error(se, se);
508    
509                            throw se;
510                    }
511            }
512    
513            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
514                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
515                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
516                    throws com.liferay.portal.kernel.exception.PortalException {
517                    try {
518                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
519                                            "getVocabularyCategories",
520                                            _getVocabularyCategoriesParameterTypes14);
521    
522                            MethodHandler methodHandler = new MethodHandler(methodKey,
523                                            vocabularyId, start, end, obc);
524    
525                            Object returnObj = null;
526    
527                            try {
528                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
529                            }
530                            catch (Exception e) {
531                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
532                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
533                                    }
534    
535                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
536                            }
537    
538                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
539                    }
540                    catch (com.liferay.portal.kernel.exception.SystemException se) {
541                            _log.error(se, se);
542    
543                            throw se;
544                    }
545            }
546    
547            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
548                    HttpPrincipal httpPrincipal, long parentCategoryId, long vocabularyId,
549                    int start, int end,
550                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
551                    throws com.liferay.portal.kernel.exception.PortalException {
552                    try {
553                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
554                                            "getVocabularyCategories",
555                                            _getVocabularyCategoriesParameterTypes15);
556    
557                            MethodHandler methodHandler = new MethodHandler(methodKey,
558                                            parentCategoryId, vocabularyId, start, end, obc);
559    
560                            Object returnObj = null;
561    
562                            try {
563                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
564                            }
565                            catch (Exception e) {
566                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
567                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
568                                    }
569    
570                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
571                            }
572    
573                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
574                    }
575                    catch (com.liferay.portal.kernel.exception.SystemException se) {
576                            _log.error(se, se);
577    
578                            throw se;
579                    }
580            }
581    
582            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
583                    HttpPrincipal httpPrincipal, long groupId, long parentCategoryId,
584                    long vocabularyId, int start, int end,
585                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
586                    try {
587                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
588                                            "getVocabularyCategories",
589                                            _getVocabularyCategoriesParameterTypes16);
590    
591                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
592                                            parentCategoryId, vocabularyId, start, end, obc);
593    
594                            Object returnObj = null;
595    
596                            try {
597                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
598                            }
599                            catch (Exception e) {
600                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
601                            }
602    
603                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
604                    }
605                    catch (com.liferay.portal.kernel.exception.SystemException se) {
606                            _log.error(se, se);
607    
608                            throw se;
609                    }
610            }
611    
612            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
613                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
614                    long vocabularyId, int start, int end,
615                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
616                    try {
617                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
618                                            "getVocabularyCategories",
619                                            _getVocabularyCategoriesParameterTypes17);
620    
621                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
622                                            name, vocabularyId, start, end, obc);
623    
624                            Object returnObj = null;
625    
626                            try {
627                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
628                            }
629                            catch (Exception e) {
630                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
631                            }
632    
633                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
634                    }
635                    catch (com.liferay.portal.kernel.exception.SystemException se) {
636                            _log.error(se, se);
637    
638                            throw se;
639                    }
640            }
641    
642            public static int getVocabularyCategoriesCount(
643                    HttpPrincipal httpPrincipal, long groupId, long vocabularyId) {
644                    try {
645                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
646                                            "getVocabularyCategoriesCount",
647                                            _getVocabularyCategoriesCountParameterTypes18);
648    
649                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
650                                            vocabularyId);
651    
652                            Object returnObj = null;
653    
654                            try {
655                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
656                            }
657                            catch (Exception e) {
658                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
659                            }
660    
661                            return ((Integer)returnObj).intValue();
662                    }
663                    catch (com.liferay.portal.kernel.exception.SystemException se) {
664                            _log.error(se, se);
665    
666                            throw se;
667                    }
668            }
669    
670            public static int getVocabularyCategoriesCount(
671                    HttpPrincipal httpPrincipal, long groupId, long parentCategory,
672                    long vocabularyId) {
673                    try {
674                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
675                                            "getVocabularyCategoriesCount",
676                                            _getVocabularyCategoriesCountParameterTypes19);
677    
678                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
679                                            parentCategory, vocabularyId);
680    
681                            Object returnObj = null;
682    
683                            try {
684                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
685                            }
686                            catch (Exception e) {
687                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
688                            }
689    
690                            return ((Integer)returnObj).intValue();
691                    }
692                    catch (com.liferay.portal.kernel.exception.SystemException se) {
693                            _log.error(se, se);
694    
695                            throw se;
696                    }
697            }
698    
699            public static int getVocabularyCategoriesCount(
700                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
701                    long vocabularyId) {
702                    try {
703                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
704                                            "getVocabularyCategoriesCount",
705                                            _getVocabularyCategoriesCountParameterTypes20);
706    
707                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
708                                            name, vocabularyId);
709    
710                            Object returnObj = null;
711    
712                            try {
713                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
714                            }
715                            catch (Exception e) {
716                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
717                            }
718    
719                            return ((Integer)returnObj).intValue();
720                    }
721                    catch (com.liferay.portal.kernel.exception.SystemException se) {
722                            _log.error(se, se);
723    
724                            throw se;
725                    }
726            }
727    
728            public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
729                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
730                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
731                    throws com.liferay.portal.kernel.exception.PortalException {
732                    try {
733                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
734                                            "getVocabularyCategoriesDisplay",
735                                            _getVocabularyCategoriesDisplayParameterTypes21);
736    
737                            MethodHandler methodHandler = new MethodHandler(methodKey,
738                                            vocabularyId, start, end, obc);
739    
740                            Object returnObj = null;
741    
742                            try {
743                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
744                            }
745                            catch (Exception e) {
746                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
747                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
748                                    }
749    
750                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
751                            }
752    
753                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
754                    }
755                    catch (com.liferay.portal.kernel.exception.SystemException se) {
756                            _log.error(se, se);
757    
758                            throw se;
759                    }
760            }
761    
762            public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
763                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
764                    long vocabularyId, int start, int end,
765                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
766                    throws com.liferay.portal.kernel.exception.PortalException {
767                    try {
768                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
769                                            "getVocabularyCategoriesDisplay",
770                                            _getVocabularyCategoriesDisplayParameterTypes22);
771    
772                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
773                                            name, vocabularyId, start, end, obc);
774    
775                            Object returnObj = null;
776    
777                            try {
778                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
779                            }
780                            catch (Exception e) {
781                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
782                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
783                                    }
784    
785                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
786                            }
787    
788                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
789                    }
790                    catch (com.liferay.portal.kernel.exception.SystemException se) {
791                            _log.error(se, se);
792    
793                            throw se;
794                    }
795            }
796    
797            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
798                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
799                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
800                    throws com.liferay.portal.kernel.exception.PortalException {
801                    try {
802                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
803                                            "getVocabularyRootCategories",
804                                            _getVocabularyRootCategoriesParameterTypes23);
805    
806                            MethodHandler methodHandler = new MethodHandler(methodKey,
807                                            vocabularyId, start, end, obc);
808    
809                            Object returnObj = null;
810    
811                            try {
812                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
813                            }
814                            catch (Exception e) {
815                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
816                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
817                                    }
818    
819                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
820                            }
821    
822                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
823                    }
824                    catch (com.liferay.portal.kernel.exception.SystemException se) {
825                            _log.error(se, se);
826    
827                            throw se;
828                    }
829            }
830    
831            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
832                    HttpPrincipal httpPrincipal, long groupId, long vocabularyId,
833                    int start, int end,
834                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
835                    try {
836                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
837                                            "getVocabularyRootCategories",
838                                            _getVocabularyRootCategoriesParameterTypes24);
839    
840                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
841                                            vocabularyId, start, end, obc);
842    
843                            Object returnObj = null;
844    
845                            try {
846                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
847                            }
848                            catch (Exception e) {
849                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
850                            }
851    
852                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
853                    }
854                    catch (com.liferay.portal.kernel.exception.SystemException se) {
855                            _log.error(se, se);
856    
857                            throw se;
858                    }
859            }
860    
861            public static int getVocabularyRootCategoriesCount(
862                    HttpPrincipal httpPrincipal, long groupId, long vocabularyId) {
863                    try {
864                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
865                                            "getVocabularyRootCategoriesCount",
866                                            _getVocabularyRootCategoriesCountParameterTypes25);
867    
868                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
869                                            vocabularyId);
870    
871                            Object returnObj = null;
872    
873                            try {
874                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
875                            }
876                            catch (Exception e) {
877                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
878                            }
879    
880                            return ((Integer)returnObj).intValue();
881                    }
882                    catch (com.liferay.portal.kernel.exception.SystemException se) {
883                            _log.error(se, se);
884    
885                            throw se;
886                    }
887            }
888    
889            public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
890                    HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
891                    long vocabularyId,
892                    com.liferay.portal.service.ServiceContext serviceContext)
893                    throws com.liferay.portal.kernel.exception.PortalException {
894                    try {
895                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
896                                            "moveCategory", _moveCategoryParameterTypes26);
897    
898                            MethodHandler methodHandler = new MethodHandler(methodKey,
899                                            categoryId, parentCategoryId, vocabularyId, serviceContext);
900    
901                            Object returnObj = null;
902    
903                            try {
904                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
905                            }
906                            catch (Exception e) {
907                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
908                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
909                                    }
910    
911                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
912                            }
913    
914                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
915                    }
916                    catch (com.liferay.portal.kernel.exception.SystemException se) {
917                            _log.error(se, se);
918    
919                            throw se;
920                    }
921            }
922    
923            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
924                    HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords,
925                    long vocabularyId, int start, int end,
926                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
927                    try {
928                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
929                                            "search", _searchParameterTypes27);
930    
931                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
932                                            keywords, vocabularyId, start, end, obc);
933    
934                            Object returnObj = null;
935    
936                            try {
937                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
938                            }
939                            catch (Exception e) {
940                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
941                            }
942    
943                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
944                    }
945                    catch (com.liferay.portal.kernel.exception.SystemException se) {
946                            _log.error(se, se);
947    
948                            throw se;
949                    }
950            }
951    
952            public static com.liferay.portal.kernel.json.JSONArray search(
953                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
954                    java.lang.String[] categoryProperties, int start, int end)
955                    throws com.liferay.portal.kernel.exception.PortalException {
956                    try {
957                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
958                                            "search", _searchParameterTypes28);
959    
960                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
961                                            name, categoryProperties, start, end);
962    
963                            Object returnObj = null;
964    
965                            try {
966                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
967                            }
968                            catch (Exception e) {
969                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
970                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
971                                    }
972    
973                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
974                            }
975    
976                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
977                    }
978                    catch (com.liferay.portal.kernel.exception.SystemException se) {
979                            _log.error(se, se);
980    
981                            throw se;
982                    }
983            }
984    
985            public static com.liferay.portal.kernel.json.JSONArray search(
986                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String name,
987                    long[] vocabularyIds, int start, int end)
988                    throws com.liferay.portal.kernel.exception.PortalException {
989                    try {
990                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
991                                            "search", _searchParameterTypes29);
992    
993                            MethodHandler methodHandler = new MethodHandler(methodKey,
994                                            groupIds, name, vocabularyIds, start, end);
995    
996                            Object returnObj = null;
997    
998                            try {
999                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1000                            }
1001                            catch (Exception e) {
1002                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1003                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1004                                    }
1005    
1006                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1007                            }
1008    
1009                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
1010                    }
1011                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1012                            _log.error(se, se);
1013    
1014                            throw se;
1015                    }
1016            }
1017    
1018            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
1019                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
1020                    long vocabularyId, int start, int end)
1021                    throws com.liferay.portal.kernel.exception.PortalException {
1022                    try {
1023                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1024                                            "searchCategoriesDisplay",
1025                                            _searchCategoriesDisplayParameterTypes30);
1026    
1027                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1028                                            title, vocabularyId, start, end);
1029    
1030                            Object returnObj = null;
1031    
1032                            try {
1033                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1034                            }
1035                            catch (Exception e) {
1036                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1037                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1038                                    }
1039    
1040                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1041                            }
1042    
1043                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
1044                    }
1045                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1046                            _log.error(se, se);
1047    
1048                            throw se;
1049                    }
1050            }
1051    
1052            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
1053                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
1054                    long parentCategoryId, long vocabularyId, int start, int end)
1055                    throws com.liferay.portal.kernel.exception.PortalException {
1056                    try {
1057                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1058                                            "searchCategoriesDisplay",
1059                                            _searchCategoriesDisplayParameterTypes31);
1060    
1061                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1062                                            title, parentCategoryId, vocabularyId, start, end);
1063    
1064                            Object returnObj = null;
1065    
1066                            try {
1067                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1068                            }
1069                            catch (Exception e) {
1070                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1071                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1072                                    }
1073    
1074                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1075                            }
1076    
1077                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
1078                    }
1079                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1080                            _log.error(se, se);
1081    
1082                            throw se;
1083                    }
1084            }
1085    
1086            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
1087                    HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
1088                    long vocabularyId, long parentCategoryId, int start, int end,
1089                    com.liferay.portal.kernel.search.Sort sort)
1090                    throws com.liferay.portal.kernel.exception.PortalException {
1091                    try {
1092                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1093                                            "searchCategoriesDisplay",
1094                                            _searchCategoriesDisplayParameterTypes32);
1095    
1096                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1097                                            title, vocabularyId, parentCategoryId, start, end, sort);
1098    
1099                            Object returnObj = null;
1100    
1101                            try {
1102                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1103                            }
1104                            catch (Exception e) {
1105                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1106                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1107                                    }
1108    
1109                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1110                            }
1111    
1112                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
1113                    }
1114                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1115                            _log.error(se, se);
1116    
1117                            throw se;
1118                    }
1119            }
1120    
1121            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
1122                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String title,
1123                    long[] vocabularyIds, int start, int end)
1124                    throws com.liferay.portal.kernel.exception.PortalException {
1125                    try {
1126                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1127                                            "searchCategoriesDisplay",
1128                                            _searchCategoriesDisplayParameterTypes33);
1129    
1130                            MethodHandler methodHandler = new MethodHandler(methodKey,
1131                                            groupIds, title, vocabularyIds, start, end);
1132    
1133                            Object returnObj = null;
1134    
1135                            try {
1136                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1137                            }
1138                            catch (Exception e) {
1139                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1140                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1141                                    }
1142    
1143                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1144                            }
1145    
1146                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
1147                    }
1148                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1149                            _log.error(se, se);
1150    
1151                            throw se;
1152                    }
1153            }
1154    
1155            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
1156                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String title,
1157                    long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
1158                    throws com.liferay.portal.kernel.exception.PortalException {
1159                    try {
1160                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1161                                            "searchCategoriesDisplay",
1162                                            _searchCategoriesDisplayParameterTypes34);
1163    
1164                            MethodHandler methodHandler = new MethodHandler(methodKey,
1165                                            groupIds, title, parentCategoryIds, vocabularyIds, start,
1166                                            end);
1167    
1168                            Object returnObj = null;
1169    
1170                            try {
1171                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1172                            }
1173                            catch (Exception e) {
1174                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1175                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1176                                    }
1177    
1178                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1179                            }
1180    
1181                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
1182                    }
1183                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1184                            _log.error(se, se);
1185    
1186                            throw se;
1187                    }
1188            }
1189    
1190            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
1191                    HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String title,
1192                    long[] vocabularyIds, long[] parentCategoryIds, int start, int end,
1193                    com.liferay.portal.kernel.search.Sort sort)
1194                    throws com.liferay.portal.kernel.exception.PortalException {
1195                    try {
1196                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1197                                            "searchCategoriesDisplay",
1198                                            _searchCategoriesDisplayParameterTypes35);
1199    
1200                            MethodHandler methodHandler = new MethodHandler(methodKey,
1201                                            groupIds, title, vocabularyIds, parentCategoryIds, start,
1202                                            end, sort);
1203    
1204                            Object returnObj = null;
1205    
1206                            try {
1207                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1208                            }
1209                            catch (Exception e) {
1210                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1211                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1212                                    }
1213    
1214                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1215                            }
1216    
1217                            return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
1218                    }
1219                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1220                            _log.error(se, se);
1221    
1222                            throw se;
1223                    }
1224            }
1225    
1226            public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
1227                    HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
1228                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1229                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1230                    long vocabularyId, java.lang.String[] categoryProperties,
1231                    com.liferay.portal.service.ServiceContext serviceContext)
1232                    throws com.liferay.portal.kernel.exception.PortalException {
1233                    try {
1234                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1235                                            "updateCategory", _updateCategoryParameterTypes36);
1236    
1237                            MethodHandler methodHandler = new MethodHandler(methodKey,
1238                                            categoryId, parentCategoryId, titleMap, descriptionMap,
1239                                            vocabularyId, categoryProperties, serviceContext);
1240    
1241                            Object returnObj = null;
1242    
1243                            try {
1244                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1245                            }
1246                            catch (Exception e) {
1247                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1248                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1249                                    }
1250    
1251                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1252                            }
1253    
1254                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
1255                    }
1256                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1257                            _log.error(se, se);
1258    
1259                            throw se;
1260                    }
1261            }
1262    
1263            private static Log _log = LogFactoryUtil.getLog(AssetCategoryServiceHttp.class);
1264            private static final Class<?>[] _addCategoryParameterTypes0 = new Class[] {
1265                            long.class, long.class, java.util.Map.class, java.util.Map.class,
1266                            long.class, java.lang.String[].class,
1267                            com.liferay.portal.service.ServiceContext.class
1268                    };
1269            private static final Class<?>[] _addCategoryParameterTypes1 = new Class[] {
1270                            long.class, java.lang.String.class, long.class,
1271                            com.liferay.portal.service.ServiceContext.class
1272                    };
1273            private static final Class<?>[] _deleteCategoriesParameterTypes2 = new Class[] {
1274                            long[].class
1275                    };
1276            private static final Class<?>[] _deleteCategoriesParameterTypes3 = new Class[] {
1277                            long[].class, com.liferay.portal.service.ServiceContext.class
1278                    };
1279            private static final Class<?>[] _deleteCategoryParameterTypes4 = new Class[] {
1280                            long.class
1281                    };
1282            private static final Class<?>[] _fetchCategoryParameterTypes5 = new Class[] {
1283                            long.class
1284                    };
1285            private static final Class<?>[] _getCategoriesParameterTypes6 = new Class[] {
1286                            java.lang.String.class, long.class
1287                    };
1288            private static final Class<?>[] _getCategoryParameterTypes7 = new Class[] {
1289                            long.class
1290                    };
1291            private static final Class<?>[] _getCategoryPathParameterTypes8 = new Class[] {
1292                            long.class
1293                    };
1294            private static final Class<?>[] _getChildCategoriesParameterTypes9 = new Class[] {
1295                            long.class
1296                    };
1297            private static final Class<?>[] _getChildCategoriesParameterTypes10 = new Class[] {
1298                            long.class, int.class, int.class,
1299                            com.liferay.portal.kernel.util.OrderByComparator.class
1300                    };
1301            private static final Class<?>[] _getJSONSearchParameterTypes11 = new Class[] {
1302                            long.class, java.lang.String.class, long[].class, int.class,
1303                            int.class
1304                    };
1305            private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes12 =
1306                    new Class[] {
1307                            long.class, int.class, int.class,
1308                            com.liferay.portal.kernel.util.OrderByComparator.class
1309                    };
1310            private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes13 =
1311                    new Class[] {
1312                            long.class, java.lang.String.class, long.class, int.class, int.class,
1313                            com.liferay.portal.kernel.util.OrderByComparator.class
1314                    };
1315            private static final Class<?>[] _getVocabularyCategoriesParameterTypes14 = new Class[] {
1316                            long.class, int.class, int.class,
1317                            com.liferay.portal.kernel.util.OrderByComparator.class
1318                    };
1319            private static final Class<?>[] _getVocabularyCategoriesParameterTypes15 = new Class[] {
1320                            long.class, long.class, int.class, int.class,
1321                            com.liferay.portal.kernel.util.OrderByComparator.class
1322                    };
1323            private static final Class<?>[] _getVocabularyCategoriesParameterTypes16 = new Class[] {
1324                            long.class, long.class, long.class, int.class, int.class,
1325                            com.liferay.portal.kernel.util.OrderByComparator.class
1326                    };
1327            private static final Class<?>[] _getVocabularyCategoriesParameterTypes17 = new Class[] {
1328                            long.class, java.lang.String.class, long.class, int.class, int.class,
1329                            com.liferay.portal.kernel.util.OrderByComparator.class
1330                    };
1331            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes18 =
1332                    new Class[] { long.class, long.class };
1333            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes19 =
1334                    new Class[] { long.class, long.class, long.class };
1335            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes20 =
1336                    new Class[] { long.class, java.lang.String.class, long.class };
1337            private static final Class<?>[] _getVocabularyCategoriesDisplayParameterTypes21 =
1338                    new Class[] {
1339                            long.class, int.class, int.class,
1340                            com.liferay.portal.kernel.util.OrderByComparator.class
1341                    };
1342            private static final Class<?>[] _getVocabularyCategoriesDisplayParameterTypes22 =
1343                    new Class[] {
1344                            long.class, java.lang.String.class, long.class, int.class, int.class,
1345                            com.liferay.portal.kernel.util.OrderByComparator.class
1346                    };
1347            private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes23 =
1348                    new Class[] {
1349                            long.class, int.class, int.class,
1350                            com.liferay.portal.kernel.util.OrderByComparator.class
1351                    };
1352            private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes24 =
1353                    new Class[] {
1354                            long.class, long.class, int.class, int.class,
1355                            com.liferay.portal.kernel.util.OrderByComparator.class
1356                    };
1357            private static final Class<?>[] _getVocabularyRootCategoriesCountParameterTypes25 =
1358                    new Class[] { long.class, long.class };
1359            private static final Class<?>[] _moveCategoryParameterTypes26 = new Class[] {
1360                            long.class, long.class, long.class,
1361                            com.liferay.portal.service.ServiceContext.class
1362                    };
1363            private static final Class<?>[] _searchParameterTypes27 = new Class[] {
1364                            long.class, java.lang.String.class, long.class, int.class, int.class,
1365                            com.liferay.portal.kernel.util.OrderByComparator.class
1366                    };
1367            private static final Class<?>[] _searchParameterTypes28 = new Class[] {
1368                            long.class, java.lang.String.class, java.lang.String[].class,
1369                            int.class, int.class
1370                    };
1371            private static final Class<?>[] _searchParameterTypes29 = new Class[] {
1372                            long[].class, java.lang.String.class, long[].class, int.class,
1373                            int.class
1374                    };
1375            private static final Class<?>[] _searchCategoriesDisplayParameterTypes30 = new Class[] {
1376                            long.class, java.lang.String.class, long.class, int.class, int.class
1377                    };
1378            private static final Class<?>[] _searchCategoriesDisplayParameterTypes31 = new Class[] {
1379                            long.class, java.lang.String.class, long.class, long.class,
1380                            int.class, int.class
1381                    };
1382            private static final Class<?>[] _searchCategoriesDisplayParameterTypes32 = new Class[] {
1383                            long.class, java.lang.String.class, long.class, long.class,
1384                            int.class, int.class, com.liferay.portal.kernel.search.Sort.class
1385                    };
1386            private static final Class<?>[] _searchCategoriesDisplayParameterTypes33 = new Class[] {
1387                            long[].class, java.lang.String.class, long[].class, int.class,
1388                            int.class
1389                    };
1390            private static final Class<?>[] _searchCategoriesDisplayParameterTypes34 = new Class[] {
1391                            long[].class, java.lang.String.class, long[].class, long[].class,
1392                            int.class, int.class
1393                    };
1394            private static final Class<?>[] _searchCategoriesDisplayParameterTypes35 = new Class[] {
1395                            long[].class, java.lang.String.class, long[].class, long[].class,
1396                            int.class, int.class, com.liferay.portal.kernel.search.Sort.class
1397                    };
1398            private static final Class<?>[] _updateCategoryParameterTypes36 = new Class[] {
1399                            long.class, long.class, java.util.Map.class, java.util.Map.class,
1400                            long.class, java.lang.String[].class,
1401                            com.liferay.portal.service.ServiceContext.class
1402                    };
1403    }