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 void deleteCategories(HttpPrincipal httpPrincipal,
100 long[] categoryIds)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 try {
104 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
105 "deleteCategories", _deleteCategoriesParameterTypes1);
106
107 MethodHandler methodHandler = new MethodHandler(methodKey,
108 categoryIds);
109
110 try {
111 TunnelUtil.invoke(httpPrincipal, methodHandler);
112 }
113 catch (Exception e) {
114 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
115 throw (com.liferay.portal.kernel.exception.PortalException)e;
116 }
117
118 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
119 throw (com.liferay.portal.kernel.exception.SystemException)e;
120 }
121
122 throw new com.liferay.portal.kernel.exception.SystemException(e);
123 }
124 }
125 catch (com.liferay.portal.kernel.exception.SystemException se) {
126 _log.error(se, se);
127
128 throw se;
129 }
130 }
131
132 public static void deleteCategory(HttpPrincipal httpPrincipal,
133 long categoryId)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 try {
137 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
138 "deleteCategory", _deleteCategoryParameterTypes2);
139
140 MethodHandler methodHandler = new MethodHandler(methodKey,
141 categoryId);
142
143 try {
144 TunnelUtil.invoke(httpPrincipal, methodHandler);
145 }
146 catch (Exception e) {
147 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
148 throw (com.liferay.portal.kernel.exception.PortalException)e;
149 }
150
151 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
152 throw (com.liferay.portal.kernel.exception.SystemException)e;
153 }
154
155 throw new com.liferay.portal.kernel.exception.SystemException(e);
156 }
157 }
158 catch (com.liferay.portal.kernel.exception.SystemException se) {
159 _log.error(se, se);
160
161 throw se;
162 }
163 }
164
165 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
166 HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 try {
170 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
171 "getCategories", _getCategoriesParameterTypes3);
172
173 MethodHandler methodHandler = new MethodHandler(methodKey,
174 className, classPK);
175
176 Object returnObj = null;
177
178 try {
179 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
180 }
181 catch (Exception e) {
182 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
183 throw (com.liferay.portal.kernel.exception.PortalException)e;
184 }
185
186 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
187 throw (com.liferay.portal.kernel.exception.SystemException)e;
188 }
189
190 throw new com.liferay.portal.kernel.exception.SystemException(e);
191 }
192
193 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
194 }
195 catch (com.liferay.portal.kernel.exception.SystemException se) {
196 _log.error(se, se);
197
198 throw se;
199 }
200 }
201
202 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
203 HttpPrincipal httpPrincipal, long categoryId)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException {
206 try {
207 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
208 "getCategory", _getCategoryParameterTypes4);
209
210 MethodHandler methodHandler = new MethodHandler(methodKey,
211 categoryId);
212
213 Object returnObj = null;
214
215 try {
216 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
217 }
218 catch (Exception e) {
219 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
220 throw (com.liferay.portal.kernel.exception.PortalException)e;
221 }
222
223 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
224 throw (com.liferay.portal.kernel.exception.SystemException)e;
225 }
226
227 throw new com.liferay.portal.kernel.exception.SystemException(e);
228 }
229
230 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
231 }
232 catch (com.liferay.portal.kernel.exception.SystemException se) {
233 _log.error(se, se);
234
235 throw se;
236 }
237 }
238
239 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
240 HttpPrincipal httpPrincipal, long parentCategoryId)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException {
243 try {
244 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
245 "getChildCategories", _getChildCategoriesParameterTypes5);
246
247 MethodHandler methodHandler = new MethodHandler(methodKey,
248 parentCategoryId);
249
250 Object returnObj = null;
251
252 try {
253 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
254 }
255 catch (Exception e) {
256 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
257 throw (com.liferay.portal.kernel.exception.PortalException)e;
258 }
259
260 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
261 throw (com.liferay.portal.kernel.exception.SystemException)e;
262 }
263
264 throw new com.liferay.portal.kernel.exception.SystemException(e);
265 }
266
267 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
268 }
269 catch (com.liferay.portal.kernel.exception.SystemException se) {
270 _log.error(se, se);
271
272 throw se;
273 }
274 }
275
276 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
277 HttpPrincipal httpPrincipal, long parentCategoryId, int start, int end,
278 com.liferay.portal.kernel.util.OrderByComparator obc)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 try {
282 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
283 "getChildCategories", _getChildCategoriesParameterTypes6);
284
285 MethodHandler methodHandler = new MethodHandler(methodKey,
286 parentCategoryId, start, end, obc);
287
288 Object returnObj = null;
289
290 try {
291 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
292 }
293 catch (Exception e) {
294 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
295 throw (com.liferay.portal.kernel.exception.PortalException)e;
296 }
297
298 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
299 throw (com.liferay.portal.kernel.exception.SystemException)e;
300 }
301
302 throw new com.liferay.portal.kernel.exception.SystemException(e);
303 }
304
305 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
306 }
307 catch (com.liferay.portal.kernel.exception.SystemException se) {
308 _log.error(se, se);
309
310 throw se;
311 }
312 }
313
314 public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
315 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
316 long[] vocabularyIds, int start, int end)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 try {
320 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
321 "getJSONSearch", _getJSONSearchParameterTypes7);
322
323 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
324 name, vocabularyIds, start, end);
325
326 Object returnObj = null;
327
328 try {
329 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
330 }
331 catch (Exception e) {
332 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
333 throw (com.liferay.portal.kernel.exception.PortalException)e;
334 }
335
336 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
337 throw (com.liferay.portal.kernel.exception.SystemException)e;
338 }
339
340 throw new com.liferay.portal.kernel.exception.SystemException(e);
341 }
342
343 return (com.liferay.portal.kernel.json.JSONArray)returnObj;
344 }
345 catch (com.liferay.portal.kernel.exception.SystemException se) {
346 _log.error(se, se);
347
348 throw se;
349 }
350 }
351
352 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
353 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
354 com.liferay.portal.kernel.util.OrderByComparator obc)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException {
357 try {
358 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
359 "getJSONVocabularyCategories",
360 _getJSONVocabularyCategoriesParameterTypes8);
361
362 MethodHandler methodHandler = new MethodHandler(methodKey,
363 vocabularyId, start, end, obc);
364
365 Object returnObj = null;
366
367 try {
368 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
369 }
370 catch (Exception e) {
371 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
372 throw (com.liferay.portal.kernel.exception.PortalException)e;
373 }
374
375 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
376 throw (com.liferay.portal.kernel.exception.SystemException)e;
377 }
378
379 throw new com.liferay.portal.kernel.exception.SystemException(e);
380 }
381
382 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
383 }
384 catch (com.liferay.portal.kernel.exception.SystemException se) {
385 _log.error(se, se);
386
387 throw se;
388 }
389 }
390
391 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
392 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
393 long vocabularyId, int start, int end,
394 com.liferay.portal.kernel.util.OrderByComparator obc)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException {
397 try {
398 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
399 "getJSONVocabularyCategories",
400 _getJSONVocabularyCategoriesParameterTypes9);
401
402 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
403 name, vocabularyId, start, end, obc);
404
405 Object returnObj = null;
406
407 try {
408 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
409 }
410 catch (Exception e) {
411 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
412 throw (com.liferay.portal.kernel.exception.PortalException)e;
413 }
414
415 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
416 throw (com.liferay.portal.kernel.exception.SystemException)e;
417 }
418
419 throw new com.liferay.portal.kernel.exception.SystemException(e);
420 }
421
422 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
423 }
424 catch (com.liferay.portal.kernel.exception.SystemException se) {
425 _log.error(se, se);
426
427 throw se;
428 }
429 }
430
431 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
432 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
433 com.liferay.portal.kernel.util.OrderByComparator obc)
434 throws com.liferay.portal.kernel.exception.PortalException,
435 com.liferay.portal.kernel.exception.SystemException {
436 try {
437 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
438 "getVocabularyCategories",
439 _getVocabularyCategoriesParameterTypes10);
440
441 MethodHandler methodHandler = new MethodHandler(methodKey,
442 vocabularyId, start, end, obc);
443
444 Object returnObj = null;
445
446 try {
447 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
448 }
449 catch (Exception e) {
450 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
451 throw (com.liferay.portal.kernel.exception.PortalException)e;
452 }
453
454 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
455 throw (com.liferay.portal.kernel.exception.SystemException)e;
456 }
457
458 throw new com.liferay.portal.kernel.exception.SystemException(e);
459 }
460
461 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
462 }
463 catch (com.liferay.portal.kernel.exception.SystemException se) {
464 _log.error(se, se);
465
466 throw se;
467 }
468 }
469
470 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
471 HttpPrincipal httpPrincipal, long parentCategoryId, long vocabularyId,
472 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException {
475 try {
476 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
477 "getVocabularyCategories",
478 _getVocabularyCategoriesParameterTypes11);
479
480 MethodHandler methodHandler = new MethodHandler(methodKey,
481 parentCategoryId, vocabularyId, start, end, obc);
482
483 Object returnObj = null;
484
485 try {
486 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
487 }
488 catch (Exception e) {
489 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
490 throw (com.liferay.portal.kernel.exception.PortalException)e;
491 }
492
493 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
494 throw (com.liferay.portal.kernel.exception.SystemException)e;
495 }
496
497 throw new com.liferay.portal.kernel.exception.SystemException(e);
498 }
499
500 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
501 }
502 catch (com.liferay.portal.kernel.exception.SystemException se) {
503 _log.error(se, se);
504
505 throw se;
506 }
507 }
508
509 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
510 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
511 long vocabularyId, int start, int end,
512 com.liferay.portal.kernel.util.OrderByComparator obc)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 try {
515 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
516 "getVocabularyCategories",
517 _getVocabularyCategoriesParameterTypes12);
518
519 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
520 name, vocabularyId, start, end, obc);
521
522 Object returnObj = null;
523
524 try {
525 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
526 }
527 catch (Exception e) {
528 if (e instanceof com.liferay.portal.kernel.exception.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 int getVocabularyCategoriesCount(
545 HttpPrincipal httpPrincipal, long groupId, long vocabularyId)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 try {
548 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
549 "getVocabularyCategoriesCount",
550 _getVocabularyCategoriesCountParameterTypes13);
551
552 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
553 vocabularyId);
554
555 Object returnObj = null;
556
557 try {
558 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
559 }
560 catch (Exception e) {
561 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
562 throw (com.liferay.portal.kernel.exception.SystemException)e;
563 }
564
565 throw new com.liferay.portal.kernel.exception.SystemException(e);
566 }
567
568 return ((Integer)returnObj).intValue();
569 }
570 catch (com.liferay.portal.kernel.exception.SystemException se) {
571 _log.error(se, se);
572
573 throw se;
574 }
575 }
576
577 public static int getVocabularyCategoriesCount(
578 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
579 long vocabularyId)
580 throws com.liferay.portal.kernel.exception.SystemException {
581 try {
582 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
583 "getVocabularyCategoriesCount",
584 _getVocabularyCategoriesCountParameterTypes14);
585
586 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
587 name, vocabularyId);
588
589 Object returnObj = null;
590
591 try {
592 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
593 }
594 catch (Exception e) {
595 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
596 throw (com.liferay.portal.kernel.exception.SystemException)e;
597 }
598
599 throw new com.liferay.portal.kernel.exception.SystemException(e);
600 }
601
602 return ((Integer)returnObj).intValue();
603 }
604 catch (com.liferay.portal.kernel.exception.SystemException se) {
605 _log.error(se, se);
606
607 throw se;
608 }
609 }
610
611 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
612 HttpPrincipal httpPrincipal, long vocabularyId, int start, int end,
613 com.liferay.portal.kernel.util.OrderByComparator obc)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException {
616 try {
617 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
618 "getVocabularyRootCategories",
619 _getVocabularyRootCategoriesParameterTypes15);
620
621 MethodHandler methodHandler = new MethodHandler(methodKey,
622 vocabularyId, start, end, obc);
623
624 Object returnObj = null;
625
626 try {
627 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
628 }
629 catch (Exception e) {
630 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
631 throw (com.liferay.portal.kernel.exception.PortalException)e;
632 }
633
634 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
635 throw (com.liferay.portal.kernel.exception.SystemException)e;
636 }
637
638 throw new com.liferay.portal.kernel.exception.SystemException(e);
639 }
640
641 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
642 }
643 catch (com.liferay.portal.kernel.exception.SystemException se) {
644 _log.error(se, se);
645
646 throw se;
647 }
648 }
649
650 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
651 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
652 long vocabularyId,
653 com.liferay.portal.service.ServiceContext serviceContext)
654 throws com.liferay.portal.kernel.exception.PortalException,
655 com.liferay.portal.kernel.exception.SystemException {
656 try {
657 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
658 "moveCategory", _moveCategoryParameterTypes16);
659
660 MethodHandler methodHandler = new MethodHandler(methodKey,
661 categoryId, parentCategoryId, vocabularyId, serviceContext);
662
663 Object returnObj = null;
664
665 try {
666 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
667 }
668 catch (Exception e) {
669 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
670 throw (com.liferay.portal.kernel.exception.PortalException)e;
671 }
672
673 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
674 throw (com.liferay.portal.kernel.exception.SystemException)e;
675 }
676
677 throw new com.liferay.portal.kernel.exception.SystemException(e);
678 }
679
680 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
681 }
682 catch (com.liferay.portal.kernel.exception.SystemException se) {
683 _log.error(se, se);
684
685 throw se;
686 }
687 }
688
689 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
690 HttpPrincipal httpPrincipal, long groupId, java.lang.String keywords,
691 long vocabularyId, int start, int end,
692 com.liferay.portal.kernel.util.OrderByComparator obc)
693 throws com.liferay.portal.kernel.exception.PortalException,
694 com.liferay.portal.kernel.exception.SystemException {
695 try {
696 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
697 "search", _searchParameterTypes17);
698
699 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
700 keywords, vocabularyId, start, end, obc);
701
702 Object returnObj = null;
703
704 try {
705 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
706 }
707 catch (Exception e) {
708 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
709 throw (com.liferay.portal.kernel.exception.PortalException)e;
710 }
711
712 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
713 throw (com.liferay.portal.kernel.exception.SystemException)e;
714 }
715
716 throw new com.liferay.portal.kernel.exception.SystemException(e);
717 }
718
719 return (java.util.List<com.liferay.portlet.asset.model.AssetCategory>)returnObj;
720 }
721 catch (com.liferay.portal.kernel.exception.SystemException se) {
722 _log.error(se, se);
723
724 throw se;
725 }
726 }
727
728 public static com.liferay.portal.kernel.json.JSONArray search(
729 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
730 java.lang.String[] categoryProperties, int start, int end)
731 throws com.liferay.portal.kernel.exception.PortalException,
732 com.liferay.portal.kernel.exception.SystemException {
733 try {
734 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
735 "search", _searchParameterTypes18);
736
737 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
738 name, categoryProperties, start, end);
739
740 Object returnObj = null;
741
742 try {
743 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
744 }
745 catch (Exception e) {
746 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
747 throw (com.liferay.portal.kernel.exception.PortalException)e;
748 }
749
750 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
751 throw (com.liferay.portal.kernel.exception.SystemException)e;
752 }
753
754 throw new com.liferay.portal.kernel.exception.SystemException(e);
755 }
756
757 return (com.liferay.portal.kernel.json.JSONArray)returnObj;
758 }
759 catch (com.liferay.portal.kernel.exception.SystemException se) {
760 _log.error(se, se);
761
762 throw se;
763 }
764 }
765
766 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
767 HttpPrincipal httpPrincipal, long categoryId, long parentCategoryId,
768 java.util.Map<java.util.Locale, java.lang.String> titleMap,
769 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
770 long vocabularyId, java.lang.String[] categoryProperties,
771 com.liferay.portal.service.ServiceContext serviceContext)
772 throws com.liferay.portal.kernel.exception.PortalException,
773 com.liferay.portal.kernel.exception.SystemException {
774 try {
775 MethodKey methodKey = new MethodKey(AssetCategoryServiceUtil.class,
776 "updateCategory", _updateCategoryParameterTypes19);
777
778 MethodHandler methodHandler = new MethodHandler(methodKey,
779 categoryId, parentCategoryId, titleMap, descriptionMap,
780 vocabularyId, categoryProperties, serviceContext);
781
782 Object returnObj = null;
783
784 try {
785 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
786 }
787 catch (Exception e) {
788 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
789 throw (com.liferay.portal.kernel.exception.PortalException)e;
790 }
791
792 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
793 throw (com.liferay.portal.kernel.exception.SystemException)e;
794 }
795
796 throw new com.liferay.portal.kernel.exception.SystemException(e);
797 }
798
799 return (com.liferay.portlet.asset.model.AssetCategory)returnObj;
800 }
801 catch (com.liferay.portal.kernel.exception.SystemException se) {
802 _log.error(se, se);
803
804 throw se;
805 }
806 }
807
808 private static Log _log = LogFactoryUtil.getLog(AssetCategoryServiceHttp.class);
809 private static final Class<?>[] _addCategoryParameterTypes0 = new Class[] {
810 long.class, java.util.Map.class, java.util.Map.class, long.class,
811 java.lang.String[].class,
812 com.liferay.portal.service.ServiceContext.class
813 };
814 private static final Class<?>[] _deleteCategoriesParameterTypes1 = new Class[] {
815 long[].class
816 };
817 private static final Class<?>[] _deleteCategoryParameterTypes2 = new Class[] {
818 long.class
819 };
820 private static final Class<?>[] _getCategoriesParameterTypes3 = new Class[] {
821 java.lang.String.class, long.class
822 };
823 private static final Class<?>[] _getCategoryParameterTypes4 = new Class[] {
824 long.class
825 };
826 private static final Class<?>[] _getChildCategoriesParameterTypes5 = new Class[] {
827 long.class
828 };
829 private static final Class<?>[] _getChildCategoriesParameterTypes6 = new Class[] {
830 long.class, int.class, int.class,
831 com.liferay.portal.kernel.util.OrderByComparator.class
832 };
833 private static final Class<?>[] _getJSONSearchParameterTypes7 = new Class[] {
834 long.class, java.lang.String.class, long[].class, int.class,
835 int.class
836 };
837 private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes8 = new Class[] {
838 long.class, int.class, int.class,
839 com.liferay.portal.kernel.util.OrderByComparator.class
840 };
841 private static final Class<?>[] _getJSONVocabularyCategoriesParameterTypes9 = new Class[] {
842 long.class, java.lang.String.class, long.class, int.class, int.class,
843 com.liferay.portal.kernel.util.OrderByComparator.class
844 };
845 private static final Class<?>[] _getVocabularyCategoriesParameterTypes10 = new Class[] {
846 long.class, int.class, int.class,
847 com.liferay.portal.kernel.util.OrderByComparator.class
848 };
849 private static final Class<?>[] _getVocabularyCategoriesParameterTypes11 = new Class[] {
850 long.class, long.class, int.class, int.class,
851 com.liferay.portal.kernel.util.OrderByComparator.class
852 };
853 private static final Class<?>[] _getVocabularyCategoriesParameterTypes12 = new Class[] {
854 long.class, java.lang.String.class, long.class, int.class, int.class,
855 com.liferay.portal.kernel.util.OrderByComparator.class
856 };
857 private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes13 =
858 new Class[] { long.class, long.class };
859 private static final Class<?>[] _getVocabularyCategoriesCountParameterTypes14 =
860 new Class[] { long.class, java.lang.String.class, long.class };
861 private static final Class<?>[] _getVocabularyRootCategoriesParameterTypes15 =
862 new Class[] {
863 long.class, int.class, int.class,
864 com.liferay.portal.kernel.util.OrderByComparator.class
865 };
866 private static final Class<?>[] _moveCategoryParameterTypes16 = new Class[] {
867 long.class, long.class, long.class,
868 com.liferay.portal.service.ServiceContext.class
869 };
870 private static final Class<?>[] _searchParameterTypes17 = new Class[] {
871 long.class, java.lang.String.class, long.class, int.class, int.class,
872 com.liferay.portal.kernel.util.OrderByComparator.class
873 };
874 private static final Class<?>[] _searchParameterTypes18 = new Class[] {
875 long.class, java.lang.String.class, java.lang.String[].class,
876 int.class, int.class
877 };
878 private static final Class<?>[] _updateCategoryParameterTypes19 = new Class[] {
879 long.class, long.class, java.util.Map.class, java.util.Map.class,
880 long.class, java.lang.String[].class,
881 com.liferay.portal.service.ServiceContext.class
882 };
883 }