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