001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.MethodHandler;
022 import com.liferay.portal.kernel.util.MethodKey;
023 import com.liferay.portal.security.auth.HttpPrincipal;
024 import com.liferay.portal.service.http.TunnelUtil;
025
026 import com.liferay.portlet.asset.service.AssetVocabularyServiceUtil;
027
028
056 @ProviderType
057 public class AssetVocabularyServiceHttp {
058 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
059 HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
060 java.util.Map<java.util.Locale, java.lang.String> titleMap,
061 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062 java.lang.String settings,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 try {
066 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
067 "addVocabulary", _addVocabularyParameterTypes0);
068
069 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
070 title, titleMap, descriptionMap, settings, serviceContext);
071
072 Object returnObj = null;
073
074 try {
075 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
076 }
077 catch (Exception e) {
078 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
079 throw (com.liferay.portal.kernel.exception.PortalException)e;
080 }
081
082 throw new com.liferay.portal.kernel.exception.SystemException(e);
083 }
084
085 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
086 }
087 catch (com.liferay.portal.kernel.exception.SystemException se) {
088 _log.error(se, se);
089
090 throw se;
091 }
092 }
093
094 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
095 HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
096 com.liferay.portal.service.ServiceContext serviceContext)
097 throws com.liferay.portal.kernel.exception.PortalException {
098 try {
099 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
100 "addVocabulary", _addVocabularyParameterTypes1);
101
102 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
103 title, serviceContext);
104
105 Object returnObj = null;
106
107 try {
108 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
109 }
110 catch (Exception e) {
111 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
112 throw (com.liferay.portal.kernel.exception.PortalException)e;
113 }
114
115 throw new com.liferay.portal.kernel.exception.SystemException(e);
116 }
117
118 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
119 }
120 catch (com.liferay.portal.kernel.exception.SystemException se) {
121 _log.error(se, se);
122
123 throw se;
124 }
125 }
126
127 public static void deleteVocabularies(HttpPrincipal httpPrincipal,
128 long[] vocabularyIds)
129 throws com.liferay.portal.kernel.exception.PortalException {
130 try {
131 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
132 "deleteVocabularies", _deleteVocabulariesParameterTypes2);
133
134 MethodHandler methodHandler = new MethodHandler(methodKey,
135 vocabularyIds);
136
137 try {
138 TunnelUtil.invoke(httpPrincipal, methodHandler);
139 }
140 catch (Exception e) {
141 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
142 throw (com.liferay.portal.kernel.exception.PortalException)e;
143 }
144
145 throw new com.liferay.portal.kernel.exception.SystemException(e);
146 }
147 }
148 catch (com.liferay.portal.kernel.exception.SystemException se) {
149 _log.error(se, se);
150
151 throw se;
152 }
153 }
154
155 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
156 HttpPrincipal httpPrincipal, long[] vocabularyIds,
157 com.liferay.portal.service.ServiceContext serviceContext)
158 throws com.liferay.portal.kernel.exception.PortalException {
159 try {
160 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
161 "deleteVocabularies", _deleteVocabulariesParameterTypes3);
162
163 MethodHandler methodHandler = new MethodHandler(methodKey,
164 vocabularyIds, serviceContext);
165
166 Object returnObj = null;
167
168 try {
169 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
170 }
171 catch (Exception e) {
172 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
173 throw (com.liferay.portal.kernel.exception.PortalException)e;
174 }
175
176 throw new com.liferay.portal.kernel.exception.SystemException(e);
177 }
178
179 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
180 }
181 catch (com.liferay.portal.kernel.exception.SystemException se) {
182 _log.error(se, se);
183
184 throw se;
185 }
186 }
187
188 public static void deleteVocabulary(HttpPrincipal httpPrincipal,
189 long vocabularyId)
190 throws com.liferay.portal.kernel.exception.PortalException {
191 try {
192 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
193 "deleteVocabulary", _deleteVocabularyParameterTypes4);
194
195 MethodHandler methodHandler = new MethodHandler(methodKey,
196 vocabularyId);
197
198 try {
199 TunnelUtil.invoke(httpPrincipal, methodHandler);
200 }
201 catch (Exception e) {
202 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
203 throw (com.liferay.portal.kernel.exception.PortalException)e;
204 }
205
206 throw new com.liferay.portal.kernel.exception.SystemException(e);
207 }
208 }
209 catch (com.liferay.portal.kernel.exception.SystemException se) {
210 _log.error(se, se);
211
212 throw se;
213 }
214 }
215
216 public static com.liferay.portlet.asset.model.AssetVocabulary fetchVocabulary(
217 HttpPrincipal httpPrincipal, long vocabularyId)
218 throws com.liferay.portal.kernel.exception.PortalException {
219 try {
220 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
221 "fetchVocabulary", _fetchVocabularyParameterTypes5);
222
223 MethodHandler methodHandler = new MethodHandler(methodKey,
224 vocabularyId);
225
226 Object returnObj = null;
227
228 try {
229 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
230 }
231 catch (Exception e) {
232 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
233 throw (com.liferay.portal.kernel.exception.PortalException)e;
234 }
235
236 throw new com.liferay.portal.kernel.exception.SystemException(e);
237 }
238
239 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
240 }
241 catch (com.liferay.portal.kernel.exception.SystemException se) {
242 _log.error(se, se);
243
244 throw se;
245 }
246 }
247
248 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
249 HttpPrincipal httpPrincipal, long companyId)
250 throws com.liferay.portal.kernel.exception.PortalException {
251 try {
252 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
253 "getCompanyVocabularies",
254 _getCompanyVocabulariesParameterTypes6);
255
256 MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
257
258 Object returnObj = null;
259
260 try {
261 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
262 }
263 catch (Exception e) {
264 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
265 throw (com.liferay.portal.kernel.exception.PortalException)e;
266 }
267
268 throw new com.liferay.portal.kernel.exception.SystemException(e);
269 }
270
271 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
272 }
273 catch (com.liferay.portal.kernel.exception.SystemException se) {
274 _log.error(se, se);
275
276 throw se;
277 }
278 }
279
280 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
281 HttpPrincipal httpPrincipal, long[] groupIds) {
282 try {
283 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
284 "getGroupsVocabularies",
285 _getGroupsVocabulariesParameterTypes7);
286
287 MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
288
289 Object returnObj = null;
290
291 try {
292 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
293 }
294 catch (Exception e) {
295 throw new com.liferay.portal.kernel.exception.SystemException(e);
296 }
297
298 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
299 }
300 catch (com.liferay.portal.kernel.exception.SystemException se) {
301 _log.error(se, se);
302
303 throw se;
304 }
305 }
306
307 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
308 HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className) {
309 try {
310 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
311 "getGroupsVocabularies",
312 _getGroupsVocabulariesParameterTypes8);
313
314 MethodHandler methodHandler = new MethodHandler(methodKey,
315 groupIds, className);
316
317 Object returnObj = null;
318
319 try {
320 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
321 }
322 catch (Exception e) {
323 throw new com.liferay.portal.kernel.exception.SystemException(e);
324 }
325
326 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
327 }
328 catch (com.liferay.portal.kernel.exception.SystemException se) {
329 _log.error(se, se);
330
331 throw se;
332 }
333 }
334
335 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
336 HttpPrincipal httpPrincipal, long[] groupIds,
337 java.lang.String className, long classTypePK) {
338 try {
339 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
340 "getGroupsVocabularies",
341 _getGroupsVocabulariesParameterTypes9);
342
343 MethodHandler methodHandler = new MethodHandler(methodKey,
344 groupIds, className, classTypePK);
345
346 Object returnObj = null;
347
348 try {
349 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
350 }
351 catch (Exception e) {
352 throw new com.liferay.portal.kernel.exception.SystemException(e);
353 }
354
355 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
356 }
357 catch (com.liferay.portal.kernel.exception.SystemException se) {
358 _log.error(se, se);
359
360 throw se;
361 }
362 }
363
364 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
365 HttpPrincipal httpPrincipal, long groupId)
366 throws com.liferay.portal.kernel.exception.PortalException {
367 try {
368 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
369 "getGroupVocabularies",
370 _getGroupVocabulariesParameterTypes10);
371
372 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
373
374 Object returnObj = null;
375
376 try {
377 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
378 }
379 catch (Exception e) {
380 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
381 throw (com.liferay.portal.kernel.exception.PortalException)e;
382 }
383
384 throw new com.liferay.portal.kernel.exception.SystemException(e);
385 }
386
387 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
388 }
389 catch (com.liferay.portal.kernel.exception.SystemException se) {
390 _log.error(se, se);
391
392 throw se;
393 }
394 }
395
396 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
397 HttpPrincipal httpPrincipal, long groupId,
398 boolean createDefaultVocabulary)
399 throws com.liferay.portal.kernel.exception.PortalException {
400 try {
401 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
402 "getGroupVocabularies",
403 _getGroupVocabulariesParameterTypes11);
404
405 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
406 createDefaultVocabulary);
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 throw new com.liferay.portal.kernel.exception.SystemException(e);
419 }
420
421 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
422 }
423 catch (com.liferay.portal.kernel.exception.SystemException se) {
424 _log.error(se, se);
425
426 throw se;
427 }
428 }
429
430 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
431 HttpPrincipal httpPrincipal, long groupId,
432 boolean createDefaultVocabulary, int start, int end,
433 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
434 throws com.liferay.portal.kernel.exception.PortalException {
435 try {
436 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
437 "getGroupVocabularies",
438 _getGroupVocabulariesParameterTypes12);
439
440 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
441 createDefaultVocabulary, start, end, obc);
442
443 Object returnObj = null;
444
445 try {
446 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
447 }
448 catch (Exception e) {
449 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
450 throw (com.liferay.portal.kernel.exception.PortalException)e;
451 }
452
453 throw new com.liferay.portal.kernel.exception.SystemException(e);
454 }
455
456 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
457 }
458 catch (com.liferay.portal.kernel.exception.SystemException se) {
459 _log.error(se, se);
460
461 throw se;
462 }
463 }
464
465 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
466 HttpPrincipal httpPrincipal, long groupId, int start, int end,
467 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
468 try {
469 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
470 "getGroupVocabularies",
471 _getGroupVocabulariesParameterTypes13);
472
473 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
474 start, end, obc);
475
476 Object returnObj = null;
477
478 try {
479 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
480 }
481 catch (Exception e) {
482 throw new com.liferay.portal.kernel.exception.SystemException(e);
483 }
484
485 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
486 }
487 catch (com.liferay.portal.kernel.exception.SystemException se) {
488 _log.error(se, se);
489
490 throw se;
491 }
492 }
493
494 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
495 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
496 int start, int end,
497 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
498 try {
499 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
500 "getGroupVocabularies",
501 _getGroupVocabulariesParameterTypes14);
502
503 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
504 name, start, end, obc);
505
506 Object returnObj = null;
507
508 try {
509 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
510 }
511 catch (Exception e) {
512 throw new com.liferay.portal.kernel.exception.SystemException(e);
513 }
514
515 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
516 }
517 catch (com.liferay.portal.kernel.exception.SystemException se) {
518 _log.error(se, se);
519
520 throw se;
521 }
522 }
523
524 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
525 HttpPrincipal httpPrincipal, long[] groupIds) {
526 try {
527 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
528 "getGroupVocabularies",
529 _getGroupVocabulariesParameterTypes15);
530
531 MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
532
533 Object returnObj = null;
534
535 try {
536 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
537 }
538 catch (Exception e) {
539 throw new com.liferay.portal.kernel.exception.SystemException(e);
540 }
541
542 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
543 }
544 catch (com.liferay.portal.kernel.exception.SystemException se) {
545 _log.error(se, se);
546
547 throw se;
548 }
549 }
550
551 public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
552 long groupId) {
553 try {
554 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
555 "getGroupVocabulariesCount",
556 _getGroupVocabulariesCountParameterTypes16);
557
558 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
559
560 Object returnObj = null;
561
562 try {
563 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
564 }
565 catch (Exception e) {
566 throw new com.liferay.portal.kernel.exception.SystemException(e);
567 }
568
569 return ((Integer)returnObj).intValue();
570 }
571 catch (com.liferay.portal.kernel.exception.SystemException se) {
572 _log.error(se, se);
573
574 throw se;
575 }
576 }
577
578 public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
579 long groupId, java.lang.String name) {
580 try {
581 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
582 "getGroupVocabulariesCount",
583 _getGroupVocabulariesCountParameterTypes17);
584
585 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
586 name);
587
588 Object returnObj = null;
589
590 try {
591 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
592 }
593 catch (Exception e) {
594 throw new com.liferay.portal.kernel.exception.SystemException(e);
595 }
596
597 return ((Integer)returnObj).intValue();
598 }
599 catch (com.liferay.portal.kernel.exception.SystemException se) {
600 _log.error(se, se);
601
602 throw se;
603 }
604 }
605
606 public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
607 long[] groupIds) {
608 try {
609 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
610 "getGroupVocabulariesCount",
611 _getGroupVocabulariesCountParameterTypes18);
612
613 MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
614
615 Object returnObj = null;
616
617 try {
618 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
619 }
620 catch (Exception e) {
621 throw new com.liferay.portal.kernel.exception.SystemException(e);
622 }
623
624 return ((Integer)returnObj).intValue();
625 }
626 catch (com.liferay.portal.kernel.exception.SystemException se) {
627 _log.error(se, se);
628
629 throw se;
630 }
631 }
632
633 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
634 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
635 int start, int end, boolean addDefaultVocabulary,
636 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
637 throws com.liferay.portal.kernel.exception.PortalException {
638 try {
639 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
640 "getGroupVocabulariesDisplay",
641 _getGroupVocabulariesDisplayParameterTypes19);
642
643 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
644 name, start, end, addDefaultVocabulary, obc);
645
646 Object returnObj = null;
647
648 try {
649 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
650 }
651 catch (Exception e) {
652 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
653 throw (com.liferay.portal.kernel.exception.PortalException)e;
654 }
655
656 throw new com.liferay.portal.kernel.exception.SystemException(e);
657 }
658
659 return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
660 }
661 catch (com.liferay.portal.kernel.exception.SystemException se) {
662 _log.error(se, se);
663
664 throw se;
665 }
666 }
667
668 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
669 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
670 int start, int end,
671 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
672 throws com.liferay.portal.kernel.exception.PortalException {
673 try {
674 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
675 "getGroupVocabulariesDisplay",
676 _getGroupVocabulariesDisplayParameterTypes20);
677
678 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
679 name, start, end, obc);
680
681 Object returnObj = null;
682
683 try {
684 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
685 }
686 catch (Exception e) {
687 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
688 throw (com.liferay.portal.kernel.exception.PortalException)e;
689 }
690
691 throw new com.liferay.portal.kernel.exception.SystemException(e);
692 }
693
694 return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
695 }
696 catch (com.liferay.portal.kernel.exception.SystemException se) {
697 _log.error(se, se);
698
699 throw se;
700 }
701 }
702
703 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
704 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
705 int start, int end,
706 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc)
707 throws com.liferay.portal.kernel.exception.PortalException {
708 try {
709 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
710 "getJSONGroupVocabularies",
711 _getJSONGroupVocabulariesParameterTypes21);
712
713 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
714 name, start, end, obc);
715
716 Object returnObj = null;
717
718 try {
719 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
720 }
721 catch (Exception e) {
722 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
723 throw (com.liferay.portal.kernel.exception.PortalException)e;
724 }
725
726 throw new com.liferay.portal.kernel.exception.SystemException(e);
727 }
728
729 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
730 }
731 catch (com.liferay.portal.kernel.exception.SystemException se) {
732 _log.error(se, se);
733
734 throw se;
735 }
736 }
737
738 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
739 HttpPrincipal httpPrincipal, long[] vocabularyIds)
740 throws com.liferay.portal.kernel.exception.PortalException {
741 try {
742 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
743 "getVocabularies", _getVocabulariesParameterTypes22);
744
745 MethodHandler methodHandler = new MethodHandler(methodKey,
746 vocabularyIds);
747
748 Object returnObj = null;
749
750 try {
751 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
752 }
753 catch (Exception e) {
754 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
755 throw (com.liferay.portal.kernel.exception.PortalException)e;
756 }
757
758 throw new com.liferay.portal.kernel.exception.SystemException(e);
759 }
760
761 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
762 }
763 catch (com.liferay.portal.kernel.exception.SystemException se) {
764 _log.error(se, se);
765
766 throw se;
767 }
768 }
769
770 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
771 HttpPrincipal httpPrincipal, long vocabularyId)
772 throws com.liferay.portal.kernel.exception.PortalException {
773 try {
774 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
775 "getVocabulary", _getVocabularyParameterTypes23);
776
777 MethodHandler methodHandler = new MethodHandler(methodKey,
778 vocabularyId);
779
780 Object returnObj = null;
781
782 try {
783 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
784 }
785 catch (Exception e) {
786 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
787 throw (com.liferay.portal.kernel.exception.PortalException)e;
788 }
789
790 throw new com.liferay.portal.kernel.exception.SystemException(e);
791 }
792
793 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
794 }
795 catch (com.liferay.portal.kernel.exception.SystemException se) {
796 _log.error(se, se);
797
798 throw se;
799 }
800 }
801
802 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
803 HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
804 boolean addDefaultVocabulary, int start, int end)
805 throws com.liferay.portal.kernel.exception.PortalException {
806 try {
807 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
808 "searchVocabulariesDisplay",
809 _searchVocabulariesDisplayParameterTypes24);
810
811 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
812 title, addDefaultVocabulary, start, end);
813
814 Object returnObj = null;
815
816 try {
817 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
818 }
819 catch (Exception e) {
820 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
821 throw (com.liferay.portal.kernel.exception.PortalException)e;
822 }
823
824 throw new com.liferay.portal.kernel.exception.SystemException(e);
825 }
826
827 return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
828 }
829 catch (com.liferay.portal.kernel.exception.SystemException se) {
830 _log.error(se, se);
831
832 throw se;
833 }
834 }
835
836 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay searchVocabulariesDisplay(
837 HttpPrincipal httpPrincipal, long groupId, java.lang.String title,
838 boolean addDefaultVocabulary, int start, int end,
839 com.liferay.portal.kernel.search.Sort sort)
840 throws com.liferay.portal.kernel.exception.PortalException {
841 try {
842 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
843 "searchVocabulariesDisplay",
844 _searchVocabulariesDisplayParameterTypes25);
845
846 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
847 title, addDefaultVocabulary, start, end, sort);
848
849 Object returnObj = null;
850
851 try {
852 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
853 }
854 catch (Exception e) {
855 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
856 throw (com.liferay.portal.kernel.exception.PortalException)e;
857 }
858
859 throw new com.liferay.portal.kernel.exception.SystemException(e);
860 }
861
862 return (com.liferay.portlet.asset.model.AssetVocabularyDisplay)returnObj;
863 }
864 catch (com.liferay.portal.kernel.exception.SystemException se) {
865 _log.error(se, se);
866
867 throw se;
868 }
869 }
870
871 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
872 HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
873 java.util.Map<java.util.Locale, java.lang.String> titleMap,
874 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
875 java.lang.String settings,
876 com.liferay.portal.service.ServiceContext serviceContext)
877 throws com.liferay.portal.kernel.exception.PortalException {
878 try {
879 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
880 "updateVocabulary", _updateVocabularyParameterTypes26);
881
882 MethodHandler methodHandler = new MethodHandler(methodKey,
883 vocabularyId, title, titleMap, descriptionMap, settings,
884 serviceContext);
885
886 Object returnObj = null;
887
888 try {
889 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
890 }
891 catch (Exception e) {
892 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
893 throw (com.liferay.portal.kernel.exception.PortalException)e;
894 }
895
896 throw new com.liferay.portal.kernel.exception.SystemException(e);
897 }
898
899 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
900 }
901 catch (com.liferay.portal.kernel.exception.SystemException se) {
902 _log.error(se, se);
903
904 throw se;
905 }
906 }
907
908 private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
909 private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
910 long.class, java.lang.String.class, java.util.Map.class,
911 java.util.Map.class, java.lang.String.class,
912 com.liferay.portal.service.ServiceContext.class
913 };
914 private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
915 long.class, java.lang.String.class,
916 com.liferay.portal.service.ServiceContext.class
917 };
918 private static final Class<?>[] _deleteVocabulariesParameterTypes2 = new Class[] {
919 long[].class
920 };
921 private static final Class<?>[] _deleteVocabulariesParameterTypes3 = new Class[] {
922 long[].class, com.liferay.portal.service.ServiceContext.class
923 };
924 private static final Class<?>[] _deleteVocabularyParameterTypes4 = new Class[] {
925 long.class
926 };
927 private static final Class<?>[] _fetchVocabularyParameterTypes5 = new Class[] {
928 long.class
929 };
930 private static final Class<?>[] _getCompanyVocabulariesParameterTypes6 = new Class[] {
931 long.class
932 };
933 private static final Class<?>[] _getGroupsVocabulariesParameterTypes7 = new Class[] {
934 long[].class
935 };
936 private static final Class<?>[] _getGroupsVocabulariesParameterTypes8 = new Class[] {
937 long[].class, java.lang.String.class
938 };
939 private static final Class<?>[] _getGroupsVocabulariesParameterTypes9 = new Class[] {
940 long[].class, java.lang.String.class, long.class
941 };
942 private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
943 long.class
944 };
945 private static final Class<?>[] _getGroupVocabulariesParameterTypes11 = new Class[] {
946 long.class, boolean.class
947 };
948 private static final Class<?>[] _getGroupVocabulariesParameterTypes12 = new Class[] {
949 long.class, boolean.class, int.class, int.class,
950 com.liferay.portal.kernel.util.OrderByComparator.class
951 };
952 private static final Class<?>[] _getGroupVocabulariesParameterTypes13 = new Class[] {
953 long.class, int.class, int.class,
954 com.liferay.portal.kernel.util.OrderByComparator.class
955 };
956 private static final Class<?>[] _getGroupVocabulariesParameterTypes14 = new Class[] {
957 long.class, java.lang.String.class, int.class, int.class,
958 com.liferay.portal.kernel.util.OrderByComparator.class
959 };
960 private static final Class<?>[] _getGroupVocabulariesParameterTypes15 = new Class[] {
961 long[].class
962 };
963 private static final Class<?>[] _getGroupVocabulariesCountParameterTypes16 = new Class[] {
964 long.class
965 };
966 private static final Class<?>[] _getGroupVocabulariesCountParameterTypes17 = new Class[] {
967 long.class, java.lang.String.class
968 };
969 private static final Class<?>[] _getGroupVocabulariesCountParameterTypes18 = new Class[] {
970 long[].class
971 };
972 private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes19 =
973 new Class[] {
974 long.class, java.lang.String.class, int.class, int.class,
975 boolean.class,
976 com.liferay.portal.kernel.util.OrderByComparator.class
977 };
978 private static final Class<?>[] _getGroupVocabulariesDisplayParameterTypes20 =
979 new Class[] {
980 long.class, java.lang.String.class, int.class, int.class,
981 com.liferay.portal.kernel.util.OrderByComparator.class
982 };
983 private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes21 = new Class[] {
984 long.class, java.lang.String.class, int.class, int.class,
985 com.liferay.portal.kernel.util.OrderByComparator.class
986 };
987 private static final Class<?>[] _getVocabulariesParameterTypes22 = new Class[] {
988 long[].class
989 };
990 private static final Class<?>[] _getVocabularyParameterTypes23 = new Class[] {
991 long.class
992 };
993 private static final Class<?>[] _searchVocabulariesDisplayParameterTypes24 = new Class[] {
994 long.class, java.lang.String.class, boolean.class, int.class,
995 int.class
996 };
997 private static final Class<?>[] _searchVocabulariesDisplayParameterTypes25 = new Class[] {
998 long.class, java.lang.String.class, boolean.class, int.class,
999 int.class, com.liferay.portal.kernel.search.Sort.class
1000 };
1001 private static final Class<?>[] _updateVocabularyParameterTypes26 = new Class[] {
1002 long.class, java.lang.String.class, java.util.Map.class,
1003 java.util.Map.class, java.lang.String.class,
1004 com.liferay.portal.service.ServiceContext.class
1005 };
1006 }