001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.http;
016    
017    import com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    import com.liferay.portal.kernel.util.MethodHandler;
020    import com.liferay.portal.kernel.util.MethodKey;
021    import com.liferay.portal.security.auth.HttpPrincipal;
022    import com.liferay.portal.service.http.TunnelUtil;
023    
024    import com.liferay.portlet.asset.service.AssetCategoryServiceUtil;
025    
026    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.asset.service.AssetCategoryServiceUtil} service utility. The
030     * static methods of this class calls the same methods of the service utility.
031     * However, the signatures are different because it requires an additional
032     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
033     * </p>
034     *
035     * <p>
036     * The benefits of using the HTTP utility is that it is fast and allows for
037     * tunneling without the cost of serializing to text. The drawback is that it
038     * only works with Java.
039     * </p>
040     *
041     * <p>
042     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
043     * configure security.
044     * </p>
045     *
046     * <p>
047     * The HTTP utility is only generated for remote services.
048     * </p>
049     *
050     * @author    Brian Wing Shun Chan
051     * @see       AssetCategoryServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.asset.service.AssetCategoryServiceUtil
054     * @generated
055     */
056    public class AssetCategoryServiceHttp {
057            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
058                    HttpPrincipal httpPrincipal, long parentCategoryId,
059                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
060                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061                    long vocabularyId, java.lang.String[] categoryProperties,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    try {
066                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
067                                            "addCategory", _addCategoryParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey,
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                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
084                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
085                                    }
086    
087                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
088                            }
089    
090                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
091                    }
092                    catch (com.liferay.portal.kernel.exception.SystemException se) {
093                            _log.error(se, se);
094    
095                            throw se;
096                    }
097            }
098    
099            public static void deleteCategories(HttpPrincipal httpPrincipal,
100                    long[] categoryIds)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    try {
104                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
105                                            "deleteCategories", _deleteCategoriesParameterTypes1);
106    
107                            MethodHandler methodHandler = new MethodHandler(methodKey,
108                                            categoryIds);
109    
110                            try {
111                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
112                            }
113                            catch (Exception e) {
114                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
115                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
116                                    }
117    
118                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
119                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
120                                    }
121    
122                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
123                            }
124                    }
125                    catch (com.liferay.portal.kernel.exception.SystemException se) {
126                            _log.error(se, se);
127    
128                            throw se;
129                    }
130            }
131    
132            public static void deleteCategory(HttpPrincipal httpPrincipal,
133                    long categoryId)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException {
136                    try {
137                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
138                                            "deleteCategory", _deleteCategoryParameterTypes2);
139    
140                            MethodHandler methodHandler = new MethodHandler(methodKey,
141                                            categoryId);
142    
143                            try {
144                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
145                            }
146                            catch (Exception e) {
147                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
148                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
149                                    }
150    
151                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
152                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
153                                    }
154    
155                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
156                            }
157                    }
158                    catch (com.liferay.portal.kernel.exception.SystemException se) {
159                            _log.error(se, se);
160    
161                            throw se;
162                    }
163            }
164    
165            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
166                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    try {
170                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
171                                            "getCategories", _getCategoriesParameterTypes3);
172    
173                            MethodHandler methodHandler = new MethodHandler(methodKey,
174                                            className, classPK);
175    
176                            Object returnObj = null;
177    
178                            try {
179                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
180                            }
181                            catch (Exception e) {
182                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
183                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
184                                    }
185    
186                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
187                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
188                                    }
189    
190                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
191                            }
192    
193                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
194                    }
195                    catch (com.liferay.portal.kernel.exception.SystemException se) {
196                            _log.error(se, se);
197    
198                            throw se;
199                    }
200            }
201    
202            public static com.liferay.portlet.asset.model.AssetCategory getCategory(
203                    HttpPrincipal httpPrincipal, long categoryId)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    try {
207                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
208                                            "getCategory", _getCategoryParameterTypes4);
209    
210                            MethodHandler methodHandler = new MethodHandler(methodKey,
211                                            categoryId);
212    
213                            Object returnObj = null;
214    
215                            try {
216                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
217                            }
218                            catch (Exception e) {
219                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
220                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
221                                    }
222    
223                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
224                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
225                                    }
226    
227                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
228                            }
229    
230                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
231                    }
232                    catch (com.liferay.portal.kernel.exception.SystemException se) {
233                            _log.error(se, se);
234    
235                            throw se;
236                    }
237            }
238    
239            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
240                    HttpPrincipal httpPrincipal, long parentCategoryId)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    try {
244                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
245                                            "getChildCategories", _getChildCategoriesParameterTypes5);
246    
247                            MethodHandler methodHandler = new MethodHandler(methodKey,
248                                            parentCategoryId);
249    
250                            Object returnObj = null;
251    
252                            try {
253                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
254                            }
255                            catch (Exception e) {
256                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
257                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
258                                    }
259    
260                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
261                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
262                                    }
263    
264                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
265                            }
266    
267                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
268                    }
269                    catch (com.liferay.portal.kernel.exception.SystemException se) {
270                            _log.error(se, se);
271    
272                            throw se;
273                    }
274            }
275    
276            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
277                    HttpPrincipal httpPrincipal, long parentCategoryId, int start, int end,
278                    com.liferay.portal.kernel.util.OrderByComparator obc)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    try {
282                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
283                                            "getChildCategories", _getChildCategoriesParameterTypes6);
284    
285                            MethodHandler methodHandler = new MethodHandler(methodKey,
286                                            parentCategoryId, start, end, obc);
287    
288                            Object returnObj = null;
289    
290                            try {
291                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
292                            }
293                            catch (Exception e) {
294                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
295                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
296                                    }
297    
298                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
299                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
300                                    }
301    
302                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
303                            }
304    
305                            return (java.util.List<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 com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
315                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
316                    long vocabularyId, int start, int end,
317                    com.liferay.portal.kernel.util.OrderByComparator obc)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    try {
321                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
322                                            "getJSONVocabularyCategories",
323                                            _getJSONVocabularyCategoriesParameterTypes7);
324    
325                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
326                                            name, vocabularyId, start, end, obc);
327    
328                            Object returnObj = null;
329    
330                            try {
331                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
332                            }
333                            catch (Exception e) {
334                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
335                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
336                                    }
337    
338                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
339                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
340                                    }
341    
342                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
343                            }
344    
345                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
346                    }
347                    catch (com.liferay.portal.kernel.exception.SystemException se) {
348                            _log.error(se, se);
349    
350                            throw se;
351                    }
352            }
353    
354            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
355                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
356                    com.liferay.portal.kernel.util.OrderByComparator obc)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    try {
360                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
361                                            "getVocabularyCategories",
362                                            _getVocabularyCategoriesParameterTypes8);
363    
364                            MethodHandler methodHandler = new MethodHandler(methodKey,
365                                            vocabularyId, start, end, obc);
366    
367                            Object returnObj = null;
368    
369                            try {
370                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
371                            }
372                            catch (Exception e) {
373                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
374                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
375                                    }
376    
377                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
378                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
379                                    }
380    
381                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
382                            }
383    
384                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
385                    }
386                    catch (com.liferay.portal.kernel.exception.SystemException se) {
387                            _log.error(se, se);
388    
389                            throw se;
390                    }
391            }
392    
393            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
394                    HttpPrincipal httpPrincipal, long parentCategoryId, long vocabularyId,
395                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    try {
399                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
400                                            "getVocabularyCategories",
401                                            _getVocabularyCategoriesParameterTypes9);
402    
403                            MethodHandler methodHandler = new MethodHandler(methodKey,
404                                            parentCategoryId, vocabularyId, start, end, obc);
405    
406                            Object returnObj = null;
407    
408                            try {
409                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
410                            }
411                            catch (Exception e) {
412                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
413                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
414                                    }
415    
416                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
417                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
418                                    }
419    
420                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
421                            }
422    
423                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
424                    }
425                    catch (com.liferay.portal.kernel.exception.SystemException se) {
426                            _log.error(se, se);
427    
428                            throw se;
429                    }
430            }
431    
432            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
433                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
434                    long vocabularyId, int start, int end,
435                    com.liferay.portal.kernel.util.OrderByComparator obc)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    try {
438                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
439                                            "getVocabularyCategories",
440                                            _getVocabularyCategoriesParameterTypes10);
441    
442                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
443                                            name, vocabularyId, start, end, obc);
444    
445                            Object returnObj = null;
446    
447                            try {
448                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
449                            }
450                            catch (Exception e) {
451                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
452                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
453                                    }
454    
455                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
456                            }
457    
458                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
459                    }
460                    catch (com.liferay.portal.kernel.exception.SystemException se) {
461                            _log.error(se, se);
462    
463                            throw se;
464                    }
465            }
466    
467            public static int getVocabularyCategoriesCount(
468                    HttpPrincipal httpPrincipal, long groupId, long vocabularyId)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    try {
471                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
472                                            "getVocabularyCategoriesCount",
473                                            _getVocabularyCategoriesCountParameterTypes11);
474    
475                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
476                                            vocabularyId);
477    
478                            Object returnObj = null;
479    
480                            try {
481                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
482                            }
483                            catch (Exception e) {
484                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
485                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
486                                    }
487    
488                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
489                            }
490    
491                            return ((Integer)returnObj).intValue();
492                    }
493                    catch (com.liferay.portal.kernel.exception.SystemException se) {
494                            _log.error(se, se);
495    
496                            throw se;
497                    }
498            }
499    
500            public static int getVocabularyCategoriesCount(
501                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
502                    long vocabularyId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    try {
505                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
506                                            "getVocabularyCategoriesCount",
507                                            _getVocabularyCategoriesCountParameterTypes12);
508    
509                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
510                                            name, vocabularyId);
511    
512                            Object returnObj = null;
513    
514                            try {
515                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
516                            }
517                            catch (Exception e) {
518                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
519                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
520                                    }
521    
522                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
523                            }
524    
525                            return ((Integer)returnObj).intValue();
526                    }
527                    catch (com.liferay.portal.kernel.exception.SystemException se) {
528                            _log.error(se, se);
529    
530                            throw se;
531                    }
532            }
533    
534            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
535                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
536                    com.liferay.portal.kernel.util.OrderByComparator obc)
537                    throws com.liferay.portal.kernel.exception.PortalException,
538                            com.liferay.portal.kernel.exception.SystemException {
539                    try {
540                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
541                                            "getVocabularyRootCategories",
542                                            _getVocabularyRootCategoriesParameterTypes13);
543    
544                            MethodHandler methodHandler = new MethodHandler(methodKey,
545                                            vocabularyId, start, end, obc);
546    
547                            Object returnObj = null;
548    
549                            try {
550                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
551                            }
552                            catch (Exception e) {
553                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
554                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
555                                    }
556    
557                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
558                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
559                                    }
560    
561                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
562                            }
563    
564                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
565                    }
566                    catch (com.liferay.portal.kernel.exception.SystemException se) {
567                            _log.error(se, se);
568    
569                            throw se;
570                    }
571            }
572    
573            public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
574                    HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
575                    long vocabularyId,
576                    com.liferay.portal.service.ServiceContext serviceContext)
577                    throws com.liferay.portal.kernel.exception.PortalException,
578                            com.liferay.portal.kernel.exception.SystemException {
579                    try {
580                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
581                                            "moveCategory", _moveCategoryParameterTypes14);
582    
583                            MethodHandler methodHandler = new MethodHandler(methodKey,
584                                            categoryId, parentCategoryId, vocabularyId, serviceContext);
585    
586                            Object returnObj = null;
587    
588                            try {
589                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
590                            }
591                            catch (Exception e) {
592                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
593                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
594                                    }
595    
596                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
597                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
598                                    }
599    
600                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
601                            }
602    
603                            return (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> search(
613                    HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords,
614                    long vocabularyId, int start, int end,
615                    com.liferay.portal.kernel.util.OrderByComparator obc)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    try {
619                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
620                                            "search", _searchParameterTypes15);
621    
622                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
623                                            keywords, vocabularyId, start, end, obc);
624    
625                            Object returnObj = null;
626    
627                            try {
628                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
629                            }
630                            catch (Exception e) {
631                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
632                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
633                                    }
634    
635                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
636                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
637                                    }
638    
639                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
640                            }
641    
642                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
643                    }
644                    catch (com.liferay.portal.kernel.exception.SystemException se) {
645                            _log.error(se, se);
646    
647                            throw se;
648                    }
649            }
650    
651            public static com.liferay.portal.kernel.json.JSONArray search(
652                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
653                    java.lang.String[] categoryProperties, int start, int end)
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException {
656                    try {
657                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
658                                            "search", _searchParameterTypes16);
659    
660                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
661                                            name, categoryProperties, start, end);
662    
663                            Object returnObj = null;
664    
665                            try {
666                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
667                            }
668                            catch (Exception e) {
669                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
670                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
671                                    }
672    
673                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
674                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
675                                    }
676    
677                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
678                            }
679    
680                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
681                    }
682                    catch (com.liferay.portal.kernel.exception.SystemException se) {
683                            _log.error(se, se);
684    
685                            throw se;
686                    }
687            }
688    
689            public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
690                    HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
691                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
692                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
693                    long vocabularyId, java.lang.String[] categoryProperties,
694                    com.liferay.portal.service.ServiceContext serviceContext)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException {
697                    try {
698                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
699                                            "updateCategory", _updateCategoryParameterTypes17);
700    
701                            MethodHandler methodHandler = new MethodHandler(methodKey,
702                                            categoryId, parentCategoryId, titleMap, descriptionMap,
703                                            vocabularyId, categoryProperties, serviceContext);
704    
705                            Object returnObj = null;
706    
707                            try {
708                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
709                            }
710                            catch (Exception e) {
711                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
712                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
713                                    }
714    
715                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
716                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
717                                    }
718    
719                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
720                            }
721    
722                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
723                    }
724                    catch (com.liferay.portal.kernel.exception.SystemException se) {
725                            _log.error(se, se);
726    
727                            throw se;
728                    }
729            }
730    
731            private static Log _log = LogFactoryUtil.getLog(AssetCategoryServiceHttp.class);
732            private static final Class<?>[] _addCategoryParameterTypes0 = new Class[] {
733                            long.class, java.util.Map.class, java.util.Map.class, long.class,
734                            java.lang.String[].class,
735                            com.liferay.portal.service.ServiceContext.class
736                    };
737            private static final Class<?>[] _deleteCategoriesParameterTypes1 = new Class[] {
738                            long[].class
739                    };
740            private static final Class<?>[] _deleteCategoryParameterTypes2 = new Class[] {
741                            long.class
742                    };
743            private static final Class<?>[] _getCategoriesParameterTypes3 = new Class[] {
744                            java.lang.String.class, long.class
745                    };
746            private static final Class<?>[] _getCategoryParameterTypes4 = new Class[] {
747                            long.class
748                    };
749            private static final Class<?>[] _getChildCategoriesParameterTypes5 = new Class[] {
750                            long.class
751                    };
752            private static final Class<?>[] _getChildCategoriesParameterTypes6 = new Class[] {
753                            long.class, int.class, int.class,
754                            com.liferay.portal.kernel.util.OrderByComparator.class
755                    };
756            private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes7 = new Class[] {
757                            long.class, java.lang.String.class, long.class, int.class, int.class,
758                            com.liferay.portal.kernel.util.OrderByComparator.class
759                    };
760            private static final Class<?>[] _getVocabularyCategoriesParameterTypes8 = new Class[] {
761                            long.class, int.class, int.class,
762                            com.liferay.portal.kernel.util.OrderByComparator.class
763                    };
764            private static final Class<?>[] _getVocabularyCategoriesParameterTypes9 = new Class[] {
765                            long.class, long.class, int.class, int.class,
766                            com.liferay.portal.kernel.util.OrderByComparator.class
767                    };
768            private static final Class<?>[] _getVocabularyCategoriesParameterTypes10 = new Class[] {
769                            long.class, java.lang.String.class, long.class, int.class, int.class,
770                            com.liferay.portal.kernel.util.OrderByComparator.class
771                    };
772            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes11 =
773                    new Class[] { long.class, long.class };
774            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes12 =
775                    new Class[] { long.class, java.lang.String.class, long.class };
776            private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes13 =
777                    new Class[] {
778                            long.class, int.class, int.class,
779                            com.liferay.portal.kernel.util.OrderByComparator.class
780                    };
781            private static final Class<?>[] _moveCategoryParameterTypes14 = new Class[] {
782                            long.class, long.class, long.class,
783                            com.liferay.portal.service.ServiceContext.class
784                    };
785            private static final Class<?>[] _searchParameterTypes15 = new Class[] {
786                            long.class, java.lang.String.class, long.class, int.class, int.class,
787                            com.liferay.portal.kernel.util.OrderByComparator.class
788                    };
789            private static final Class<?>[] _searchParameterTypes16 = new Class[] {
790                            long.class, java.lang.String.class, java.lang.String[].class,
791                            int.class, int.class
792                    };
793            private static final Class<?>[] _updateCategoryParameterTypes17 = new Class[] {
794                            long.class, long.class, java.util.Map.class, java.util.Map.class,
795                            long.class, java.lang.String[].class,
796                            com.liferay.portal.service.ServiceContext.class
797                    };
798    }