001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.JSONArray getJSONSearch(
315                    HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords,
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                                            "getJSONSearch", _getJSONSearchParameterTypes7);
323    
324                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
325                                            keywords, vocabularyId, start, end, obc);
326    
327                            Object returnObj = null;
328    
329                            try {
330                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
331                            }
332                            catch (Exception e) {
333                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
334                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
335                                    }
336    
337                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
338                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
339                                    }
340    
341                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
342                            }
343    
344                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
345                    }
346                    catch (com.liferay.portal.kernel.exception.SystemException se) {
347                            _log.error(se, se);
348    
349                            throw se;
350                    }
351            }
352    
353            public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
354                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
355                    long[] vocabularyIds, int start, int end)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    try {
359                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
360                                            "getJSONSearch", _getJSONSearchParameterTypes8);
361    
362                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
363                                            name, vocabularyIds, start, end);
364    
365                            Object returnObj = null;
366    
367                            try {
368                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
369                            }
370                            catch (Exception e) {
371                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
372                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
373                                    }
374    
375                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
376                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
377                                    }
378    
379                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
380                            }
381    
382                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
383                    }
384                    catch (com.liferay.portal.kernel.exception.SystemException se) {
385                            _log.error(se, se);
386    
387                            throw se;
388                    }
389            }
390    
391            public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
392                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
393                    com.liferay.portal.kernel.util.OrderByComparator obc)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    try {
397                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
398                                            "getJSONVocabularyCategories",
399                                            _getJSONVocabularyCategoriesParameterTypes9);
400    
401                            MethodHandler methodHandler = new MethodHandler(methodKey,
402                                            vocabularyId, start, end, obc);
403    
404                            Object returnObj = null;
405    
406                            try {
407                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
408                            }
409                            catch (Exception e) {
410                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
411                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
412                                    }
413    
414                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
415                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
416                                    }
417    
418                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
419                            }
420    
421                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
422                    }
423                    catch (com.liferay.portal.kernel.exception.SystemException se) {
424                            _log.error(se, se);
425    
426                            throw se;
427                    }
428            }
429    
430            public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
431                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
432                    long vocabularyId, int start, int end,
433                    com.liferay.portal.kernel.util.OrderByComparator obc)
434                    throws com.liferay.portal.kernel.exception.PortalException,
435                            com.liferay.portal.kernel.exception.SystemException {
436                    try {
437                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
438                                            "getJSONVocabularyCategories",
439                                            _getJSONVocabularyCategoriesParameterTypes10);
440    
441                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
442                                            name, vocabularyId, start, end, obc);
443    
444                            Object returnObj = null;
445    
446                            try {
447                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
448                            }
449                            catch (Exception e) {
450                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
451                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
452                                    }
453    
454                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
455                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
456                                    }
457    
458                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
459                            }
460    
461                            return (com.liferay.portal.kernel.json.JSONObject)returnObj;
462                    }
463                    catch (com.liferay.portal.kernel.exception.SystemException se) {
464                            _log.error(se, se);
465    
466                            throw se;
467                    }
468            }
469    
470            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
471                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
472                    com.liferay.portal.kernel.util.OrderByComparator obc)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    try {
476                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
477                                            "getVocabularyCategories",
478                                            _getVocabularyCategoriesParameterTypes11);
479    
480                            MethodHandler methodHandler = new MethodHandler(methodKey,
481                                            vocabularyId, start, end, obc);
482    
483                            Object returnObj = null;
484    
485                            try {
486                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
487                            }
488                            catch (Exception e) {
489                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
490                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
491                                    }
492    
493                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
494                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
495                                    }
496    
497                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
498                            }
499    
500                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
501                    }
502                    catch (com.liferay.portal.kernel.exception.SystemException se) {
503                            _log.error(se, se);
504    
505                            throw se;
506                    }
507            }
508    
509            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
510                    HttpPrincipal httpPrincipal, long parentCategoryId, long vocabularyId,
511                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
512                    throws com.liferay.portal.kernel.exception.PortalException,
513                            com.liferay.portal.kernel.exception.SystemException {
514                    try {
515                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
516                                            "getVocabularyCategories",
517                                            _getVocabularyCategoriesParameterTypes12);
518    
519                            MethodHandler methodHandler = new MethodHandler(methodKey,
520                                            parentCategoryId, vocabularyId, start, end, obc);
521    
522                            Object returnObj = null;
523    
524                            try {
525                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
526                            }
527                            catch (Exception e) {
528                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
529                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
530                                    }
531    
532                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
533                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
534                                    }
535    
536                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
537                            }
538    
539                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
540                    }
541                    catch (com.liferay.portal.kernel.exception.SystemException se) {
542                            _log.error(se, se);
543    
544                            throw se;
545                    }
546            }
547    
548            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
549                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
550                    long vocabularyId, int start, int end,
551                    com.liferay.portal.kernel.util.OrderByComparator obc)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    try {
554                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
555                                            "getVocabularyCategories",
556                                            _getVocabularyCategoriesParameterTypes13);
557    
558                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
559                                            name, vocabularyId, start, end, obc);
560    
561                            Object returnObj = null;
562    
563                            try {
564                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
565                            }
566                            catch (Exception e) {
567                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
568                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
569                                    }
570    
571                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
572                            }
573    
574                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
575                    }
576                    catch (com.liferay.portal.kernel.exception.SystemException se) {
577                            _log.error(se, se);
578    
579                            throw se;
580                    }
581            }
582    
583            public static int getVocabularyCategoriesCount(
584                    HttpPrincipal httpPrincipal, long groupId, long vocabularyId)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    try {
587                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
588                                            "getVocabularyCategoriesCount",
589                                            _getVocabularyCategoriesCountParameterTypes14);
590    
591                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
592                                            vocabularyId);
593    
594                            Object returnObj = null;
595    
596                            try {
597                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
598                            }
599                            catch (Exception e) {
600                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
601                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
602                                    }
603    
604                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
605                            }
606    
607                            return ((Integer)returnObj).intValue();
608                    }
609                    catch (com.liferay.portal.kernel.exception.SystemException se) {
610                            _log.error(se, se);
611    
612                            throw se;
613                    }
614            }
615    
616            public static int getVocabularyCategoriesCount(
617                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
618                    long vocabularyId)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    try {
621                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
622                                            "getVocabularyCategoriesCount",
623                                            _getVocabularyCategoriesCountParameterTypes15);
624    
625                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
626                                            name, vocabularyId);
627    
628                            Object returnObj = null;
629    
630                            try {
631                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
632                            }
633                            catch (Exception e) {
634                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
635                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
636                                    }
637    
638                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
639                            }
640    
641                            return ((Integer)returnObj).intValue();
642                    }
643                    catch (com.liferay.portal.kernel.exception.SystemException se) {
644                            _log.error(se, se);
645    
646                            throw se;
647                    }
648            }
649    
650            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
651                    HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
652                    com.liferay.portal.kernel.util.OrderByComparator obc)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException {
655                    try {
656                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
657                                            "getVocabularyRootCategories",
658                                            _getVocabularyRootCategoriesParameterTypes16);
659    
660                            MethodHandler methodHandler = new MethodHandler(methodKey,
661                                            vocabularyId, start, end, obc);
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 (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)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 moveCategory(
690                    HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
691                    long vocabularyId,
692                    com.liferay.portal.service.ServiceContext serviceContext)
693                    throws com.liferay.portal.kernel.exception.PortalException,
694                            com.liferay.portal.kernel.exception.SystemException {
695                    try {
696                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
697                                            "moveCategory", _moveCategoryParameterTypes17);
698    
699                            MethodHandler methodHandler = new MethodHandler(methodKey,
700                                            categoryId, parentCategoryId, vocabularyId, serviceContext);
701    
702                            Object returnObj = null;
703    
704                            try {
705                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
706                            }
707                            catch (Exception e) {
708                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
709                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
710                                    }
711    
712                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
713                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
714                                    }
715    
716                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
717                            }
718    
719                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
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 java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
729                    HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords,
730                    long vocabularyId, int start, int end,
731                    com.liferay.portal.kernel.util.OrderByComparator obc)
732                    throws com.liferay.portal.kernel.exception.PortalException,
733                            com.liferay.portal.kernel.exception.SystemException {
734                    try {
735                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
736                                            "search", _searchParameterTypes18);
737    
738                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
739                                            keywords, vocabularyId, start, end, obc);
740    
741                            Object returnObj = null;
742    
743                            try {
744                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
745                            }
746                            catch (Exception e) {
747                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
748                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
749                                    }
750    
751                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
752                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
753                                    }
754    
755                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
756                            }
757    
758                            return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
759                    }
760                    catch (com.liferay.portal.kernel.exception.SystemException se) {
761                            _log.error(se, se);
762    
763                            throw se;
764                    }
765            }
766    
767            public static com.liferay.portal.kernel.json.JSONArray search(
768                    HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
769                    java.lang.String[] categoryProperties, int start, int end)
770                    throws com.liferay.portal.kernel.exception.PortalException,
771                            com.liferay.portal.kernel.exception.SystemException {
772                    try {
773                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
774                                            "search", _searchParameterTypes19);
775    
776                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
777                                            name, categoryProperties, start, end);
778    
779                            Object returnObj = null;
780    
781                            try {
782                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
783                            }
784                            catch (Exception e) {
785                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
786                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
787                                    }
788    
789                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
790                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
791                                    }
792    
793                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
794                            }
795    
796                            return (com.liferay.portal.kernel.json.JSONArray)returnObj;
797                    }
798                    catch (com.liferay.portal.kernel.exception.SystemException se) {
799                            _log.error(se, se);
800    
801                            throw se;
802                    }
803            }
804    
805            public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
806                    HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
807                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
808                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
809                    long vocabularyId, java.lang.String[] categoryProperties,
810                    com.liferay.portal.service.ServiceContext serviceContext)
811                    throws com.liferay.portal.kernel.exception.PortalException,
812                            com.liferay.portal.kernel.exception.SystemException {
813                    try {
814                            MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class.getName(),
815                                            "updateCategory", _updateCategoryParameterTypes20);
816    
817                            MethodHandler methodHandler = new MethodHandler(methodKey,
818                                            categoryId, parentCategoryId, titleMap, descriptionMap,
819                                            vocabularyId, categoryProperties, serviceContext);
820    
821                            Object returnObj = null;
822    
823                            try {
824                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
825                            }
826                            catch (Exception e) {
827                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
828                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
829                                    }
830    
831                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
832                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
833                                    }
834    
835                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
836                            }
837    
838                            return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
839                    }
840                    catch (com.liferay.portal.kernel.exception.SystemException se) {
841                            _log.error(se, se);
842    
843                            throw se;
844                    }
845            }
846    
847            private static Log _log = LogFactoryUtil.getLog(AssetCategoryServiceHttp.class);
848            private static final Class<?>[] _addCategoryParameterTypes0 = new Class[] {
849                            long.class, java.util.Map.class, java.util.Map.class, long.class,
850                            java.lang.String[].class,
851                            com.liferay.portal.service.ServiceContext.class
852                    };
853            private static final Class<?>[] _deleteCategoriesParameterTypes1 = new Class[] {
854                            long[].class
855                    };
856            private static final Class<?>[] _deleteCategoryParameterTypes2 = new Class[] {
857                            long.class
858                    };
859            private static final Class<?>[] _getCategoriesParameterTypes3 = new Class[] {
860                            java.lang.String.class, long.class
861                    };
862            private static final Class<?>[] _getCategoryParameterTypes4 = new Class[] {
863                            long.class
864                    };
865            private static final Class<?>[] _getChildCategoriesParameterTypes5 = new Class[] {
866                            long.class
867                    };
868            private static final Class<?>[] _getChildCategoriesParameterTypes6 = new Class[] {
869                            long.class, int.class, int.class,
870                            com.liferay.portal.kernel.util.OrderByComparator.class
871                    };
872            private static final Class<?>[] _getJSONSearchParameterTypes7 = new Class[] {
873                            long.class, java.lang.String.class, long.class, int.class, int.class,
874                            com.liferay.portal.kernel.util.OrderByComparator.class
875                    };
876            private static final Class<?>[] _getJSONSearchParameterTypes8 = new Class[] {
877                            long.class, java.lang.String.class, long[].class, int.class,
878                            int.class
879                    };
880            private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes9 = new Class[] {
881                            long.class, int.class, int.class,
882                            com.liferay.portal.kernel.util.OrderByComparator.class
883                    };
884            private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes10 =
885                    new Class[] {
886                            long.class, java.lang.String.class, long.class, int.class, int.class,
887                            com.liferay.portal.kernel.util.OrderByComparator.class
888                    };
889            private static final Class<?>[] _getVocabularyCategoriesParameterTypes11 = new Class[] {
890                            long.class, int.class, int.class,
891                            com.liferay.portal.kernel.util.OrderByComparator.class
892                    };
893            private static final Class<?>[] _getVocabularyCategoriesParameterTypes12 = new Class[] {
894                            long.class, long.class, int.class, int.class,
895                            com.liferay.portal.kernel.util.OrderByComparator.class
896                    };
897            private static final Class<?>[] _getVocabularyCategoriesParameterTypes13 = new Class[] {
898                            long.class, java.lang.String.class, long.class, int.class, int.class,
899                            com.liferay.portal.kernel.util.OrderByComparator.class
900                    };
901            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes14 =
902                    new Class[] { long.class, long.class };
903            private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes15 =
904                    new Class[] { long.class, java.lang.String.class, long.class };
905            private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes16 =
906                    new Class[] {
907                            long.class, int.class, int.class,
908                            com.liferay.portal.kernel.util.OrderByComparator.class
909                    };
910            private static final Class<?>[] _moveCategoryParameterTypes17 = new Class[] {
911                            long.class, long.class, long.class,
912                            com.liferay.portal.service.ServiceContext.class
913                    };
914            private static final Class<?>[] _searchParameterTypes18 = new Class[] {
915                            long.class, java.lang.String.class, long.class, int.class, int.class,
916                            com.liferay.portal.kernel.util.OrderByComparator.class
917                    };
918            private static final Class<?>[] _searchParameterTypes19 = new Class[] {
919                            long.class, java.lang.String.class, java.lang.String[].class,
920                            int.class, int.class
921                    };
922            private static final Class<?>[] _updateCategoryParameterTypes20 = new Class[] {
923                            long.class, long.class, java.util.Map.class, java.util.Map.class,
924                            long.class, java.lang.String[].class,
925                            com.liferay.portal.service.ServiceContext.class
926                    };
927    }