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