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