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