001
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
054 public class AssetCategoryServiceHttp {
055 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
056 HttpPrincipal httpPrincipal, long parentCategoryId,
057 java.util.Map<java.util.Locale, java.lang.String> titleMap,
058 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059 long vocabularyId, java.lang.String[] categoryProperties,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 try {
064 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
065 "addCategory", _addCategoryParameterTypes0);
066
067 MethodHandler methodHandler = new MethodHandler(methodKey,
068 parentCategoryId, titleMap, descriptionMap, vocabularyId,
069 categoryProperties, serviceContext);
070
071 Object returnObj = null;
072
073 try {
074 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
075 }
076 catch (Exception e) {
077 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
078 throw (com.liferay.portal.kernel.exception.PortalException)e;
079 }
080
081 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
082 throw (com.liferay.portal.kernel.exception.SystemException)e;
083 }
084
085 throw new com.liferay.portal.kernel.exception.SystemException(e);
086 }
087
088 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
089 }
090 catch (com.liferay.portal.kernel.exception.SystemException se) {
091 _log.error(se, se);
092
093 throw se;
094 }
095 }
096
097 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
098 HttpPrincipal httpPrincipal, java.lang.String title, long vocabularyId,
099 com.liferay.portal.service.ServiceContext serviceContext)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 try {
103 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
104 "addCategory", _addCategoryParameterTypes1);
105
106 MethodHandler methodHandler = new MethodHandler(methodKey, title,
107 vocabularyId, serviceContext);
108
109 Object returnObj = null;
110
111 try {
112 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
113 }
114 catch (Exception e) {
115 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
116 throw (com.liferay.portal.kernel.exception.PortalException)e;
117 }
118
119 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
120 throw (com.liferay.portal.kernel.exception.SystemException)e;
121 }
122
123 throw new com.liferay.portal.kernel.exception.SystemException(e);
124 }
125
126 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
127 }
128 catch (com.liferay.portal.kernel.exception.SystemException se) {
129 _log.error(se, se);
130
131 throw se;
132 }
133 }
134
135 public static void deleteCategories(HttpPrincipal httpPrincipal,
136 long[] categoryIds)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 try {
140 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
141 "deleteCategories", _deleteCategoriesParameterTypes2);
142
143 MethodHandler methodHandler = new MethodHandler(methodKey,
144 categoryIds);
145
146 try {
147 TunnelUtil.invoke(httpPrincipal, methodHandler);
148 }
149 catch (Exception e) {
150 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
151 throw (com.liferay.portal.kernel.exception.PortalException)e;
152 }
153
154 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
155 throw (com.liferay.portal.kernel.exception.SystemException)e;
156 }
157
158 throw new com.liferay.portal.kernel.exception.SystemException(e);
159 }
160 }
161 catch (com.liferay.portal.kernel.exception.SystemException se) {
162 _log.error(se, se);
163
164 throw se;
165 }
166 }
167
168 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
169 HttpPrincipal httpPrincipal, long[] categoryIds,
170 com.liferay.portal.service.ServiceContext serviceContext)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 try {
174 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
175 "deleteCategories", _deleteCategoriesParameterTypes3);
176
177 MethodHandler methodHandler = new MethodHandler(methodKey,
178 categoryIds, serviceContext);
179
180 Object returnObj = null;
181
182 try {
183 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
184 }
185 catch (Exception e) {
186 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
187 throw (com.liferay.portal.kernel.exception.PortalException)e;
188 }
189
190 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
191 throw (com.liferay.portal.kernel.exception.SystemException)e;
192 }
193
194 throw new com.liferay.portal.kernel.exception.SystemException(e);
195 }
196
197 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
198 }
199 catch (com.liferay.portal.kernel.exception.SystemException se) {
200 _log.error(se, se);
201
202 throw se;
203 }
204 }
205
206 public static void deleteCategory(HttpPrincipal httpPrincipal,
207 long categoryId)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException {
210 try {
211 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
212 "deleteCategory", _deleteCategoryParameterTypes4);
213
214 MethodHandler methodHandler = new MethodHandler(methodKey,
215 categoryId);
216
217 try {
218 TunnelUtil.invoke(httpPrincipal, methodHandler);
219 }
220 catch (Exception e) {
221 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
222 throw (com.liferay.portal.kernel.exception.PortalException)e;
223 }
224
225 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
226 throw (com.liferay.portal.kernel.exception.SystemException)e;
227 }
228
229 throw new com.liferay.portal.kernel.exception.SystemException(e);
230 }
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> getCategories(
240 HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException {
243 try {
244 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
245 "getCategories", _getCategoriesParameterTypes5);
246
247 MethodHandler methodHandler = new MethodHandler(methodKey,
248 className, classPK);
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 com.liferay.portlet.asset.model.AssetCategory getCategory(
277 HttpPrincipal httpPrincipal, long categoryId)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 try {
281 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
282 "getCategory", _getCategoryParameterTypes6);
283
284 MethodHandler methodHandler = new MethodHandler(methodKey,
285 categoryId);
286
287 Object returnObj = null;
288
289 try {
290 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
291 }
292 catch (Exception e) {
293 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
294 throw (com.liferay.portal.kernel.exception.PortalException)e;
295 }
296
297 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
298 throw (com.liferay.portal.kernel.exception.SystemException)e;
299 }
300
301 throw new com.liferay.portal.kernel.exception.SystemException(e);
302 }
303
304 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
305 }
306 catch (com.liferay.portal.kernel.exception.SystemException se) {
307 _log.error(se, se);
308
309 throw se;
310 }
311 }
312
313 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
314 HttpPrincipal httpPrincipal, long parentCategoryId)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException {
317 try {
318 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
319 "getChildCategories", _getChildCategoriesParameterTypes7);
320
321 MethodHandler methodHandler = new MethodHandler(methodKey,
322 parentCategoryId);
323
324 Object returnObj = null;
325
326 try {
327 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
328 }
329 catch (Exception e) {
330 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
331 throw (com.liferay.portal.kernel.exception.PortalException)e;
332 }
333
334 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
335 throw (com.liferay.portal.kernel.exception.SystemException)e;
336 }
337
338 throw new com.liferay.portal.kernel.exception.SystemException(e);
339 }
340
341 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
342 }
343 catch (com.liferay.portal.kernel.exception.SystemException se) {
344 _log.error(se, se);
345
346 throw se;
347 }
348 }
349
350 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
351 HttpPrincipal httpPrincipal, long parentCategoryId, int start, int end,
352 com.liferay.portal.kernel.util.OrderByComparator obc)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException {
355 try {
356 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
357 "getChildCategories", _getChildCategoriesParameterTypes8);
358
359 MethodHandler methodHandler = new MethodHandler(methodKey,
360 parentCategoryId, start, end, obc);
361
362 Object returnObj = null;
363
364 try {
365 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
366 }
367 catch (Exception e) {
368 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
369 throw (com.liferay.portal.kernel.exception.PortalException)e;
370 }
371
372 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
373 throw (com.liferay.portal.kernel.exception.SystemException)e;
374 }
375
376 throw new com.liferay.portal.kernel.exception.SystemException(e);
377 }
378
379 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
380 }
381 catch (com.liferay.portal.kernel.exception.SystemException se) {
382 _log.error(se, se);
383
384 throw se;
385 }
386 }
387
388 public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
389 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
390 long[] vocabularyIds, int start, int end)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException {
393 try {
394 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
395 "getJSONSearch", _getJSONSearchParameterTypes9);
396
397 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
398 name, vocabularyIds, start, end);
399
400 Object returnObj = null;
401
402 try {
403 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
404 }
405 catch (Exception e) {
406 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
407 throw (com.liferay.portal.kernel.exception.PortalException)e;
408 }
409
410 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
411 throw (com.liferay.portal.kernel.exception.SystemException)e;
412 }
413
414 throw new com.liferay.portal.kernel.exception.SystemException(e);
415 }
416
417 return (com.liferay.portal.kernel.json.JSONArray)returnObj;
418 }
419 catch (com.liferay.portal.kernel.exception.SystemException se) {
420 _log.error(se, se);
421
422 throw se;
423 }
424 }
425
426 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
427 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
428 com.liferay.portal.kernel.util.OrderByComparator obc)
429 throws com.liferay.portal.kernel.exception.PortalException,
430 com.liferay.portal.kernel.exception.SystemException {
431 try {
432 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
433 "getJSONVocabularyCategories",
434 _getJSONVocabularyCategoriesParameterTypes10);
435
436 MethodHandler methodHandler = new MethodHandler(methodKey,
437 vocabularyId, start, end, obc);
438
439 Object returnObj = null;
440
441 try {
442 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
443 }
444 catch (Exception e) {
445 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
446 throw (com.liferay.portal.kernel.exception.PortalException)e;
447 }
448
449 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
450 throw (com.liferay.portal.kernel.exception.SystemException)e;
451 }
452
453 throw new com.liferay.portal.kernel.exception.SystemException(e);
454 }
455
456 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
457 }
458 catch (com.liferay.portal.kernel.exception.SystemException se) {
459 _log.error(se, se);
460
461 throw se;
462 }
463 }
464
465 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
466 HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
467 long vocabularyId, int start, int end,
468 com.liferay.portal.kernel.util.OrderByComparator obc)
469 throws com.liferay.portal.kernel.exception.PortalException,
470 com.liferay.portal.kernel.exception.SystemException {
471 try {
472 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
473 "getJSONVocabularyCategories",
474 _getJSONVocabularyCategoriesParameterTypes11);
475
476 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
477 title, vocabularyId, start, end, obc);
478
479 Object returnObj = null;
480
481 try {
482 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
483 }
484 catch (Exception e) {
485 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
486 throw (com.liferay.portal.kernel.exception.PortalException)e;
487 }
488
489 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
490 throw (com.liferay.portal.kernel.exception.SystemException)e;
491 }
492
493 throw new com.liferay.portal.kernel.exception.SystemException(e);
494 }
495
496 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
497 }
498 catch (com.liferay.portal.kernel.exception.SystemException se) {
499 _log.error(se, se);
500
501 throw se;
502 }
503 }
504
505 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
506 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
507 com.liferay.portal.kernel.util.OrderByComparator obc)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException {
510 try {
511 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
512 "getVocabularyCategories",
513 _getVocabularyCategoriesParameterTypes12);
514
515 MethodHandler methodHandler = new MethodHandler(methodKey,
516 vocabularyId, start, end, obc);
517
518 Object returnObj = null;
519
520 try {
521 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
522 }
523 catch (Exception e) {
524 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
525 throw (com.liferay.portal.kernel.exception.PortalException)e;
526 }
527
528 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
529 throw (com.liferay.portal.kernel.exception.SystemException)e;
530 }
531
532 throw new com.liferay.portal.kernel.exception.SystemException(e);
533 }
534
535 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
536 }
537 catch (com.liferay.portal.kernel.exception.SystemException se) {
538 _log.error(se, se);
539
540 throw se;
541 }
542 }
543
544 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
545 HttpPrincipal httpPrincipal, long parentCategoryId, long vocabularyId,
546 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
547 throws com.liferay.portal.kernel.exception.PortalException,
548 com.liferay.portal.kernel.exception.SystemException {
549 try {
550 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
551 "getVocabularyCategories",
552 _getVocabularyCategoriesParameterTypes13);
553
554 MethodHandler methodHandler = new MethodHandler(methodKey,
555 parentCategoryId, vocabularyId, start, end, obc);
556
557 Object returnObj = null;
558
559 try {
560 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
561 }
562 catch (Exception e) {
563 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
564 throw (com.liferay.portal.kernel.exception.PortalException)e;
565 }
566
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 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
584 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
585 long vocabularyId, int start, int end,
586 com.liferay.portal.kernel.util.OrderByComparator obc)
587 throws com.liferay.portal.kernel.exception.SystemException {
588 try {
589 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
590 "getVocabularyCategories",
591 _getVocabularyCategoriesParameterTypes14);
592
593 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
594 name, vocabularyId, start, end, obc);
595
596 Object returnObj = null;
597
598 try {
599 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
600 }
601 catch (Exception e) {
602 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
603 throw (com.liferay.portal.kernel.exception.SystemException)e;
604 }
605
606 throw new com.liferay.portal.kernel.exception.SystemException(e);
607 }
608
609 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
610 }
611 catch (com.liferay.portal.kernel.exception.SystemException se) {
612 _log.error(se, se);
613
614 throw se;
615 }
616 }
617
618 public static int getVocabularyCategoriesCount(
619 HttpPrincipal httpPrincipal, long groupId, long vocabularyId)
620 throws com.liferay.portal.kernel.exception.SystemException {
621 try {
622 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
623 "getVocabularyCategoriesCount",
624 _getVocabularyCategoriesCountParameterTypes15);
625
626 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
627 vocabularyId);
628
629 Object returnObj = null;
630
631 try {
632 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
633 }
634 catch (Exception e) {
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 ((Integer)returnObj).intValue();
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 int getVocabularyCategoriesCount(
652 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
653 long vocabularyId)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 try {
656 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
657 "getVocabularyCategoriesCount",
658 _getVocabularyCategoriesCountParameterTypes16);
659
660 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
661 name, vocabularyId);
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.SystemException) {
670 throw (com.liferay.portal.kernel.exception.SystemException)e;
671 }
672
673 throw new com.liferay.portal.kernel.exception.SystemException(e);
674 }
675
676 return ((Integer)returnObj).intValue();
677 }
678 catch (com.liferay.portal.kernel.exception.SystemException se) {
679 _log.error(se, se);
680
681 throw se;
682 }
683 }
684
685 public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
686 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
687 com.liferay.portal.kernel.util.OrderByComparator obc)
688 throws com.liferay.portal.kernel.exception.PortalException,
689 com.liferay.portal.kernel.exception.SystemException {
690 try {
691 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
692 "getVocabularyCategoriesDisplay",
693 _getVocabularyCategoriesDisplayParameterTypes17);
694
695 MethodHandler methodHandler = new MethodHandler(methodKey,
696 vocabularyId, start, end, obc);
697
698 Object returnObj = null;
699
700 try {
701 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
702 }
703 catch (Exception e) {
704 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
705 throw (com.liferay.portal.kernel.exception.PortalException)e;
706 }
707
708 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
709 throw (com.liferay.portal.kernel.exception.SystemException)e;
710 }
711
712 throw new com.liferay.portal.kernel.exception.SystemException(e);
713 }
714
715 return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
716 }
717 catch (com.liferay.portal.kernel.exception.SystemException se) {
718 _log.error(se, se);
719
720 throw se;
721 }
722 }
723
724 public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
725 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
726 long vocabularyId, int start, int end,
727 com.liferay.portal.kernel.util.OrderByComparator obc)
728 throws com.liferay.portal.kernel.exception.PortalException,
729 com.liferay.portal.kernel.exception.SystemException {
730 try {
731 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
732 "getVocabularyCategoriesDisplay",
733 _getVocabularyCategoriesDisplayParameterTypes18);
734
735 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
736 name, vocabularyId, start, end, obc);
737
738 Object returnObj = null;
739
740 try {
741 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
742 }
743 catch (Exception e) {
744 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
745 throw (com.liferay.portal.kernel.exception.PortalException)e;
746 }
747
748 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
749 throw (com.liferay.portal.kernel.exception.SystemException)e;
750 }
751
752 throw new com.liferay.portal.kernel.exception.SystemException(e);
753 }
754
755 return (com.liferay.portlet.asset.model.AssetCategoryDisplay)returnObj;
756 }
757 catch (com.liferay.portal.kernel.exception.SystemException se) {
758 _log.error(se, se);
759
760 throw se;
761 }
762 }
763
764 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
765 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
766 com.liferay.portal.kernel.util.OrderByComparator obc)
767 throws com.liferay.portal.kernel.exception.PortalException,
768 com.liferay.portal.kernel.exception.SystemException {
769 try {
770 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
771 "getVocabularyRootCategories",
772 _getVocabularyRootCategoriesParameterTypes19);
773
774 MethodHandler methodHandler = new MethodHandler(methodKey,
775 vocabularyId, start, end, obc);
776
777 Object returnObj = null;
778
779 try {
780 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
781 }
782 catch (Exception e) {
783 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
784 throw (com.liferay.portal.kernel.exception.PortalException)e;
785 }
786
787 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
788 throw (com.liferay.portal.kernel.exception.SystemException)e;
789 }
790
791 throw new com.liferay.portal.kernel.exception.SystemException(e);
792 }
793
794 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
795 }
796 catch (com.liferay.portal.kernel.exception.SystemException se) {
797 _log.error(se, se);
798
799 throw se;
800 }
801 }
802
803 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
804 HttpPrincipal httpPrincipal, long groupId, long vocabularyId,
805 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
806 throws com.liferay.portal.kernel.exception.SystemException {
807 try {
808 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
809 "getVocabularyRootCategories",
810 _getVocabularyRootCategoriesParameterTypes20);
811
812 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
813 vocabularyId, start, end, obc);
814
815 Object returnObj = null;
816
817 try {
818 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
819 }
820 catch (Exception e) {
821 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
822 throw (com.liferay.portal.kernel.exception.SystemException)e;
823 }
824
825 throw new com.liferay.portal.kernel.exception.SystemException(e);
826 }
827
828 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
829 }
830 catch (com.liferay.portal.kernel.exception.SystemException se) {
831 _log.error(se, se);
832
833 throw se;
834 }
835 }
836
837 public static int getVocabularyRootCategoriesCount(
838 HttpPrincipal httpPrincipal, long groupId, long vocabularyId)
839 throws com.liferay.portal.kernel.exception.SystemException {
840 try {
841 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
842 "getVocabularyRootCategoriesCount",
843 _getVocabularyRootCategoriesCountParameterTypes21);
844
845 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
846 vocabularyId);
847
848 Object returnObj = null;
849
850 try {
851 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
852 }
853 catch (Exception e) {
854 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
855 throw (com.liferay.portal.kernel.exception.SystemException)e;
856 }
857
858 throw new com.liferay.portal.kernel.exception.SystemException(e);
859 }
860
861 return ((Integer)returnObj).intValue();
862 }
863 catch (com.liferay.portal.kernel.exception.SystemException se) {
864 _log.error(se, se);
865
866 throw se;
867 }
868 }
869
870 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
871 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
872 long vocabularyId,
873 com.liferay.portal.service.ServiceContext serviceContext)
874 throws com.liferay.portal.kernel.exception.PortalException,
875 com.liferay.portal.kernel.exception.SystemException {
876 try {
877 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
878 "moveCategory", _moveCategoryParameterTypes22);
879
880 MethodHandler methodHandler = new MethodHandler(methodKey,
881 categoryId, parentCategoryId, vocabularyId, serviceContext);
882
883 Object returnObj = null;
884
885 try {
886 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
887 }
888 catch (Exception e) {
889 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
890 throw (com.liferay.portal.kernel.exception.PortalException)e;
891 }
892
893 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
894 throw (com.liferay.portal.kernel.exception.SystemException)e;
895 }
896
897 throw new com.liferay.portal.kernel.exception.SystemException(e);
898 }
899
900 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
901 }
902 catch (com.liferay.portal.kernel.exception.SystemException se) {
903 _log.error(se, se);
904
905 throw se;
906 }
907 }
908
909 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
910 HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords,
911 long vocabularyId, int start, int end,
912 com.liferay.portal.kernel.util.OrderByComparator obc)
913 throws com.liferay.portal.kernel.exception.SystemException {
914 try {
915 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
916 "search", _searchParameterTypes23);
917
918 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
919 keywords, vocabularyId, start, end, obc);
920
921 Object returnObj = null;
922
923 try {
924 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
925 }
926 catch (Exception e) {
927 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
928 throw (com.liferay.portal.kernel.exception.SystemException)e;
929 }
930
931 throw new com.liferay.portal.kernel.exception.SystemException(e);
932 }
933
934 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
935 }
936 catch (com.liferay.portal.kernel.exception.SystemException se) {
937 _log.error(se, se);
938
939 throw se;
940 }
941 }
942
943 public static com.liferay.portal.kernel.json.JSONArray search(
944 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
945 java.lang.String[] categoryProperties, int start, int end)
946 throws com.liferay.portal.kernel.exception.PortalException,
947 com.liferay.portal.kernel.exception.SystemException {
948 try {
949 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
950 "search", _searchParameterTypes24);
951
952 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
953 name, categoryProperties, start, end);
954
955 Object returnObj = null;
956
957 try {
958 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
959 }
960 catch (Exception e) {
961 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
962 throw (com.liferay.portal.kernel.exception.PortalException)e;
963 }
964
965 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
966 throw (com.liferay.portal.kernel.exception.SystemException)e;
967 }
968
969 throw new com.liferay.portal.kernel.exception.SystemException(e);
970 }
971
972 return (com.liferay.portal.kernel.json.JSONArray)returnObj;
973 }
974 catch (com.liferay.portal.kernel.exception.SystemException se) {
975 _log.error(se, se);
976
977 throw se;
978 }
979 }
980
981 public static com.liferay.portal.kernel.json.JSONArray search(
982 HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String title,
983 long[] vocabularyIds, int start, int end)
984 throws com.liferay.portal.kernel.exception.PortalException,
985 com.liferay.portal.kernel.exception.SystemException {
986 try {
987 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
988 "search", _searchParameterTypes25);
989
990 MethodHandler methodHandler = new MethodHandler(methodKey,
991 groupIds, title, vocabularyIds, start, end);
992
993 Object returnObj = null;
994
995 try {
996 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
997 }
998 catch (Exception e) {
999 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1000 throw (com.liferay.portal.kernel.exception.PortalException)e;
1001 }
1002
1003 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1004 throw (com.liferay.portal.kernel.exception.SystemException)e;
1005 }
1006
1007 throw new com.liferay.portal.kernel.exception.SystemException(e);
1008 }
1009
1010 return (com.liferay.portal.kernel.json.JSONArray)returnObj;
1011 }
1012 catch (com.liferay.portal.kernel.exception.SystemException se) {
1013 _log.error(se, se);
1014
1015 throw se;
1016 }
1017 }
1018
1019 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
1020 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
1021 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1022 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1023 long vocabularyId, java.lang.String[] categoryProperties,
1024 com.liferay.portal.service.ServiceContext serviceContext)
1025 throws com.liferay.portal.kernel.exception.PortalException,
1026 com.liferay.portal.kernel.exception.SystemException {
1027 try {
1028 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
1029 "updateCategory", _updateCategoryParameterTypes26);
1030
1031 MethodHandler methodHandler = new MethodHandler(methodKey,
1032 categoryId, parentCategoryId, titleMap, descriptionMap,
1033 vocabularyId, categoryProperties, serviceContext);
1034
1035 Object returnObj = null;
1036
1037 try {
1038 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1039 }
1040 catch (Exception e) {
1041 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1042 throw (com.liferay.portal.kernel.exception.PortalException)e;
1043 }
1044
1045 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1046 throw (com.liferay.portal.kernel.exception.SystemException)e;
1047 }
1048
1049 throw new com.liferay.portal.kernel.exception.SystemException(e);
1050 }
1051
1052 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
1053 }
1054 catch (com.liferay.portal.kernel.exception.SystemException se) {
1055 _log.error(se, se);
1056
1057 throw se;
1058 }
1059 }
1060
1061 private static Log _log = LogFactoryUtil.getLog(AssetCategoryServiceHttp.class);
1062 private static final Class<?>[] _addCategoryParameterTypes0 = new Class[] {
1063 long.class, java.util.Map.class, java.util.Map.class, long.class,
1064 java.lang.String[].class,
1065 com.liferay.portal.service.ServiceContext.class
1066 };
1067 private static final Class<?>[] _addCategoryParameterTypes1 = new Class[] {
1068 java.lang.String.class, long.class,
1069 com.liferay.portal.service.ServiceContext.class
1070 };
1071 private static final Class<?>[] _deleteCategoriesParameterTypes2 = new Class[] {
1072 long[].class
1073 };
1074 private static final Class<?>[] _deleteCategoriesParameterTypes3 = new Class[] {
1075 long[].class, com.liferay.portal.service.ServiceContext.class
1076 };
1077 private static final Class<?>[] _deleteCategoryParameterTypes4 = new Class[] {
1078 long.class
1079 };
1080 private static final Class<?>[] _getCategoriesParameterTypes5 = new Class[] {
1081 java.lang.String.class, long.class
1082 };
1083 private static final Class<?>[] _getCategoryParameterTypes6 = new Class[] {
1084 long.class
1085 };
1086 private static final Class<?>[] _getChildCategoriesParameterTypes7 = new Class[] {
1087 long.class
1088 };
1089 private static final Class<?>[] _getChildCategoriesParameterTypes8 = new Class[] {
1090 long.class, int.class, int.class,
1091 com.liferay.portal.kernel.util.OrderByComparator.class
1092 };
1093 private static final Class<?>[] _getJSONSearchParameterTypes9 = new Class[] {
1094 long.class, java.lang.String.class, long[].class, int.class,
1095 int.class
1096 };
1097 private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes10 =
1098 new Class[] {
1099 long.class, int.class, int.class,
1100 com.liferay.portal.kernel.util.OrderByComparator.class
1101 };
1102 private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes11 =
1103 new Class[] {
1104 long.class, java.lang.String.class, long.class, int.class, int.class,
1105 com.liferay.portal.kernel.util.OrderByComparator.class
1106 };
1107 private static final Class<?>[] _getVocabularyCategoriesParameterTypes12 = new Class[] {
1108 long.class, int.class, int.class,
1109 com.liferay.portal.kernel.util.OrderByComparator.class
1110 };
1111 private static final Class<?>[] _getVocabularyCategoriesParameterTypes13 = new Class[] {
1112 long.class, long.class, int.class, int.class,
1113 com.liferay.portal.kernel.util.OrderByComparator.class
1114 };
1115 private static final Class<?>[] _getVocabularyCategoriesParameterTypes14 = new Class[] {
1116 long.class, java.lang.String.class, long.class, int.class, int.class,
1117 com.liferay.portal.kernel.util.OrderByComparator.class
1118 };
1119 private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes15 =
1120 new Class[] { long.class, long.class };
1121 private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes16 =
1122 new Class[] { long.class, java.lang.String.class, long.class };
1123 private static final Class<?>[] _getVocabularyCategoriesDisplayParameterTypes17 =
1124 new Class[] {
1125 long.class, int.class, int.class,
1126 com.liferay.portal.kernel.util.OrderByComparator.class
1127 };
1128 private static final Class<?>[] _getVocabularyCategoriesDisplayParameterTypes18 =
1129 new Class[] {
1130 long.class, java.lang.String.class, long.class, int.class, int.class,
1131 com.liferay.portal.kernel.util.OrderByComparator.class
1132 };
1133 private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes19 =
1134 new Class[] {
1135 long.class, int.class, int.class,
1136 com.liferay.portal.kernel.util.OrderByComparator.class
1137 };
1138 private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes20 =
1139 new Class[] {
1140 long.class, long.class, int.class, int.class,
1141 com.liferay.portal.kernel.util.OrderByComparator.class
1142 };
1143 private static final Class<?>[] _getVocabularyRootCategoriesCountParameterTypes21 =
1144 new Class[] { long.class, long.class };
1145 private static final Class<?>[] _moveCategoryParameterTypes22 = new Class[] {
1146 long.class, long.class, long.class,
1147 com.liferay.portal.service.ServiceContext.class
1148 };
1149 private static final Class<?>[] _searchParameterTypes23 = new Class[] {
1150 long.class, java.lang.String.class, long.class, int.class, int.class,
1151 com.liferay.portal.kernel.util.OrderByComparator.class
1152 };
1153 private static final Class<?>[] _searchParameterTypes24 = new Class[] {
1154 long.class, java.lang.String.class, java.lang.String[].class,
1155 int.class, int.class
1156 };
1157 private static final Class<?>[] _searchParameterTypes25 = new Class[] {
1158 long[].class, java.lang.String.class, long[].class, int.class,
1159 int.class
1160 };
1161 private static final Class<?>[] _updateCategoryParameterTypes26 = new Class[] {
1162 long.class, long.class, java.util.Map.class, java.util.Map.class,
1163 long.class, java.lang.String[].class,
1164 com.liferay.portal.service.ServiceContext.class
1165 };
1166 }