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.AssetVocabularyServiceUtil;
025
026
056 public class AssetVocabularyServiceHttp {
057 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
058 HttpPrincipal httpPrincipal,
059 java.util.Map<java.util.Locale, java.lang.String> titleMap,
060 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061 java.lang.String settings,
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(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 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
083 throw (com.liferay.portal.kernel.exception.SystemException)e;
084 }
085
086 throw new com.liferay.portal.kernel.exception.SystemException(e);
087 }
088
089 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
090 }
091 catch (com.liferay.portal.kernel.exception.SystemException se) {
092 _log.error(se, se);
093
094 throw se;
095 }
096 }
097
098 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
099 HttpPrincipal httpPrincipal, java.lang.String title,
100 java.util.Map<java.util.Locale, java.lang.String> titleMap,
101 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
102 java.lang.String settings,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 try {
107 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
108 "addVocabulary", _addVocabularyParameterTypes1);
109
110 MethodHandler methodHandler = new MethodHandler(methodKey, title,
111 titleMap, descriptionMap, settings, serviceContext);
112
113 Object returnObj = null;
114
115 try {
116 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
117 }
118 catch (Exception e) {
119 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
120 throw (com.liferay.portal.kernel.exception.PortalException)e;
121 }
122
123 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
124 throw (com.liferay.portal.kernel.exception.SystemException)e;
125 }
126
127 throw new com.liferay.portal.kernel.exception.SystemException(e);
128 }
129
130 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
131 }
132 catch (com.liferay.portal.kernel.exception.SystemException se) {
133 _log.error(se, se);
134
135 throw se;
136 }
137 }
138
139 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
140 HttpPrincipal httpPrincipal, java.lang.String title,
141 com.liferay.portal.service.ServiceContext serviceContext)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException {
144 try {
145 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
146 "addVocabulary", _addVocabularyParameterTypes2);
147
148 MethodHandler methodHandler = new MethodHandler(methodKey, title,
149 serviceContext);
150
151 Object returnObj = null;
152
153 try {
154 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
155 }
156 catch (Exception e) {
157 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
158 throw (com.liferay.portal.kernel.exception.PortalException)e;
159 }
160
161 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
162 throw (com.liferay.portal.kernel.exception.SystemException)e;
163 }
164
165 throw new com.liferay.portal.kernel.exception.SystemException(e);
166 }
167
168 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
169 }
170 catch (com.liferay.portal.kernel.exception.SystemException se) {
171 _log.error(se, se);
172
173 throw se;
174 }
175 }
176
177 public static void deleteVocabularies(HttpPrincipal httpPrincipal,
178 long[] vocabularyIds)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 try {
182 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
183 "deleteVocabularies", _deleteVocabulariesParameterTypes3);
184
185 MethodHandler methodHandler = new MethodHandler(methodKey,
186 vocabularyIds);
187
188 try {
189 TunnelUtil.invoke(httpPrincipal, methodHandler);
190 }
191 catch (Exception e) {
192 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
193 throw (com.liferay.portal.kernel.exception.PortalException)e;
194 }
195
196 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
197 throw (com.liferay.portal.kernel.exception.SystemException)e;
198 }
199
200 throw new com.liferay.portal.kernel.exception.SystemException(e);
201 }
202 }
203 catch (com.liferay.portal.kernel.exception.SystemException se) {
204 _log.error(se, se);
205
206 throw se;
207 }
208 }
209
210 public static void deleteVocabulary(HttpPrincipal httpPrincipal,
211 long vocabularyId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException {
214 try {
215 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
216 "deleteVocabulary", _deleteVocabularyParameterTypes4);
217
218 MethodHandler methodHandler = new MethodHandler(methodKey,
219 vocabularyId);
220
221 try {
222 TunnelUtil.invoke(httpPrincipal, methodHandler);
223 }
224 catch (Exception e) {
225 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
226 throw (com.liferay.portal.kernel.exception.PortalException)e;
227 }
228
229 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
230 throw (com.liferay.portal.kernel.exception.SystemException)e;
231 }
232
233 throw new com.liferay.portal.kernel.exception.SystemException(e);
234 }
235 }
236 catch (com.liferay.portal.kernel.exception.SystemException se) {
237 _log.error(se, se);
238
239 throw se;
240 }
241 }
242
243 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
244 HttpPrincipal httpPrincipal, long companyId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 try {
248 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
249 "getCompanyVocabularies",
250 _getCompanyVocabulariesParameterTypes5);
251
252 MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
253
254 Object returnObj = null;
255
256 try {
257 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
258 }
259 catch (Exception e) {
260 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
261 throw (com.liferay.portal.kernel.exception.PortalException)e;
262 }
263
264 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
265 throw (com.liferay.portal.kernel.exception.SystemException)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 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException {
284 try {
285 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
286 "getGroupsVocabularies",
287 _getGroupsVocabulariesParameterTypes6);
288
289 MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
290
291 Object returnObj = null;
292
293 try {
294 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
295 }
296 catch (Exception e) {
297 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
298 throw (com.liferay.portal.kernel.exception.PortalException)e;
299 }
300
301 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
302 throw (com.liferay.portal.kernel.exception.SystemException)e;
303 }
304
305 throw new com.liferay.portal.kernel.exception.SystemException(e);
306 }
307
308 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
309 }
310 catch (com.liferay.portal.kernel.exception.SystemException se) {
311 _log.error(se, se);
312
313 throw se;
314 }
315 }
316
317 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
318 HttpPrincipal httpPrincipal, long[] groupIds, java.lang.String className)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 try {
322 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
323 "getGroupsVocabularies",
324 _getGroupsVocabulariesParameterTypes7);
325
326 MethodHandler methodHandler = new MethodHandler(methodKey,
327 groupIds, className);
328
329 Object returnObj = null;
330
331 try {
332 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
333 }
334 catch (Exception e) {
335 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
336 throw (com.liferay.portal.kernel.exception.PortalException)e;
337 }
338
339 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
340 throw (com.liferay.portal.kernel.exception.SystemException)e;
341 }
342
343 throw new com.liferay.portal.kernel.exception.SystemException(e);
344 }
345
346 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
347 }
348 catch (com.liferay.portal.kernel.exception.SystemException se) {
349 _log.error(se, se);
350
351 throw se;
352 }
353 }
354
355 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
356 HttpPrincipal httpPrincipal, long groupId)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 try {
360 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
361 "getGroupVocabularies", _getGroupVocabulariesParameterTypes8);
362
363 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
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 (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
392 HttpPrincipal httpPrincipal, long groupId,
393 boolean createDefaultVocabulary)
394 throws com.liferay.portal.kernel.exception.PortalException,
395 com.liferay.portal.kernel.exception.SystemException {
396 try {
397 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
398 "getGroupVocabularies", _getGroupVocabulariesParameterTypes9);
399
400 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
401 createDefaultVocabulary);
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 (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
430 HttpPrincipal httpPrincipal, long groupId, int start, int end,
431 com.liferay.portal.kernel.util.OrderByComparator obc)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 try {
434 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
435 "getGroupVocabularies",
436 _getGroupVocabulariesParameterTypes10);
437
438 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
439 start, end, obc);
440
441 Object returnObj = null;
442
443 try {
444 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
445 }
446 catch (Exception e) {
447 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
448 throw (com.liferay.portal.kernel.exception.SystemException)e;
449 }
450
451 throw new com.liferay.portal.kernel.exception.SystemException(e);
452 }
453
454 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
455 }
456 catch (com.liferay.portal.kernel.exception.SystemException se) {
457 _log.error(se, se);
458
459 throw se;
460 }
461 }
462
463 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
464 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
465 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
466 throws com.liferay.portal.kernel.exception.SystemException {
467 try {
468 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
469 "getGroupVocabularies",
470 _getGroupVocabulariesParameterTypes11);
471
472 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
473 name, start, end, obc);
474
475 Object returnObj = null;
476
477 try {
478 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
479 }
480 catch (Exception e) {
481 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
482 throw (com.liferay.portal.kernel.exception.SystemException)e;
483 }
484
485 throw new com.liferay.portal.kernel.exception.SystemException(e);
486 }
487
488 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
489 }
490 catch (com.liferay.portal.kernel.exception.SystemException se) {
491 _log.error(se, se);
492
493 throw se;
494 }
495 }
496
497 public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
498 long groupId)
499 throws com.liferay.portal.kernel.exception.SystemException {
500 try {
501 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
502 "getGroupVocabulariesCount",
503 _getGroupVocabulariesCountParameterTypes12);
504
505 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
506
507 Object returnObj = null;
508
509 try {
510 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
511 }
512 catch (Exception e) {
513 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
514 throw (com.liferay.portal.kernel.exception.SystemException)e;
515 }
516
517 throw new com.liferay.portal.kernel.exception.SystemException(e);
518 }
519
520 return ((Integer)returnObj).intValue();
521 }
522 catch (com.liferay.portal.kernel.exception.SystemException se) {
523 _log.error(se, se);
524
525 throw se;
526 }
527 }
528
529 public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
530 long groupId, java.lang.String name)
531 throws com.liferay.portal.kernel.exception.SystemException {
532 try {
533 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
534 "getGroupVocabulariesCount",
535 _getGroupVocabulariesCountParameterTypes13);
536
537 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
538 name);
539
540 Object returnObj = null;
541
542 try {
543 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
544 }
545 catch (Exception e) {
546 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
547 throw (com.liferay.portal.kernel.exception.SystemException)e;
548 }
549
550 throw new com.liferay.portal.kernel.exception.SystemException(e);
551 }
552
553 return ((Integer)returnObj).intValue();
554 }
555 catch (com.liferay.portal.kernel.exception.SystemException se) {
556 _log.error(se, se);
557
558 throw se;
559 }
560 }
561
562 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
563 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
564 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
565 throws com.liferay.portal.kernel.exception.PortalException,
566 com.liferay.portal.kernel.exception.SystemException {
567 try {
568 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
569 "getJSONGroupVocabularies",
570 _getJSONGroupVocabulariesParameterTypes14);
571
572 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
573 name, start, end, obc);
574
575 Object returnObj = null;
576
577 try {
578 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
579 }
580 catch (Exception e) {
581 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
582 throw (com.liferay.portal.kernel.exception.PortalException)e;
583 }
584
585 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
586 throw (com.liferay.portal.kernel.exception.SystemException)e;
587 }
588
589 throw new com.liferay.portal.kernel.exception.SystemException(e);
590 }
591
592 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
593 }
594 catch (com.liferay.portal.kernel.exception.SystemException se) {
595 _log.error(se, se);
596
597 throw se;
598 }
599 }
600
601 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
602 HttpPrincipal httpPrincipal, long[] vocabularyIds)
603 throws com.liferay.portal.kernel.exception.PortalException,
604 com.liferay.portal.kernel.exception.SystemException {
605 try {
606 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
607 "getVocabularies", _getVocabulariesParameterTypes15);
608
609 MethodHandler methodHandler = new MethodHandler(methodKey,
610 vocabularyIds);
611
612 Object returnObj = null;
613
614 try {
615 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
616 }
617 catch (Exception e) {
618 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
619 throw (com.liferay.portal.kernel.exception.PortalException)e;
620 }
621
622 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
623 throw (com.liferay.portal.kernel.exception.SystemException)e;
624 }
625
626 throw new com.liferay.portal.kernel.exception.SystemException(e);
627 }
628
629 return (java.util.List<com.liferay.portlet.asset.model.AssetVocabulary>)returnObj;
630 }
631 catch (com.liferay.portal.kernel.exception.SystemException se) {
632 _log.error(se, se);
633
634 throw se;
635 }
636 }
637
638 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
639 HttpPrincipal httpPrincipal, long vocabularyId)
640 throws com.liferay.portal.kernel.exception.PortalException,
641 com.liferay.portal.kernel.exception.SystemException {
642 try {
643 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
644 "getVocabulary", _getVocabularyParameterTypes16);
645
646 MethodHandler methodHandler = new MethodHandler(methodKey,
647 vocabularyId);
648
649 Object returnObj = null;
650
651 try {
652 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
653 }
654 catch (Exception e) {
655 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
656 throw (com.liferay.portal.kernel.exception.PortalException)e;
657 }
658
659 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
660 throw (com.liferay.portal.kernel.exception.SystemException)e;
661 }
662
663 throw new com.liferay.portal.kernel.exception.SystemException(e);
664 }
665
666 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
667 }
668 catch (com.liferay.portal.kernel.exception.SystemException se) {
669 _log.error(se, se);
670
671 throw se;
672 }
673 }
674
675 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
676 HttpPrincipal httpPrincipal, long vocabularyId,
677 java.util.Map<java.util.Locale, java.lang.String> titleMap,
678 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
679 java.lang.String settings,
680 com.liferay.portal.service.ServiceContext serviceContext)
681 throws com.liferay.portal.kernel.exception.PortalException,
682 com.liferay.portal.kernel.exception.SystemException {
683 try {
684 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
685 "updateVocabulary", _updateVocabularyParameterTypes17);
686
687 MethodHandler methodHandler = new MethodHandler(methodKey,
688 vocabularyId, titleMap, descriptionMap, settings,
689 serviceContext);
690
691 Object returnObj = null;
692
693 try {
694 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
695 }
696 catch (Exception e) {
697 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
698 throw (com.liferay.portal.kernel.exception.PortalException)e;
699 }
700
701 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
702 throw (com.liferay.portal.kernel.exception.SystemException)e;
703 }
704
705 throw new com.liferay.portal.kernel.exception.SystemException(e);
706 }
707
708 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
709 }
710 catch (com.liferay.portal.kernel.exception.SystemException se) {
711 _log.error(se, se);
712
713 throw se;
714 }
715 }
716
717 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
718 HttpPrincipal httpPrincipal, long vocabularyId, java.lang.String title,
719 java.util.Map<java.util.Locale, java.lang.String> titleMap,
720 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
721 java.lang.String settings,
722 com.liferay.portal.service.ServiceContext serviceContext)
723 throws com.liferay.portal.kernel.exception.PortalException,
724 com.liferay.portal.kernel.exception.SystemException {
725 try {
726 MethodKey methodKey = new MethodKey(AssetVocabularyServiceUtil.class,
727 "updateVocabulary", _updateVocabularyParameterTypes18);
728
729 MethodHandler methodHandler = new MethodHandler(methodKey,
730 vocabularyId, title, titleMap, descriptionMap, settings,
731 serviceContext);
732
733 Object returnObj = null;
734
735 try {
736 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
737 }
738 catch (Exception e) {
739 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
740 throw (com.liferay.portal.kernel.exception.PortalException)e;
741 }
742
743 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
744 throw (com.liferay.portal.kernel.exception.SystemException)e;
745 }
746
747 throw new com.liferay.portal.kernel.exception.SystemException(e);
748 }
749
750 return (com.liferay.portlet.asset.model.AssetVocabulary)returnObj;
751 }
752 catch (com.liferay.portal.kernel.exception.SystemException se) {
753 _log.error(se, se);
754
755 throw se;
756 }
757 }
758
759 private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceHttp.class);
760 private static final Class<?>[] _addVocabularyParameterTypes0 = new Class[] {
761 java.util.Map.class, java.util.Map.class, java.lang.String.class,
762 com.liferay.portal.service.ServiceContext.class
763 };
764 private static final Class<?>[] _addVocabularyParameterTypes1 = new Class[] {
765 java.lang.String.class, java.util.Map.class, java.util.Map.class,
766 java.lang.String.class,
767 com.liferay.portal.service.ServiceContext.class
768 };
769 private static final Class<?>[] _addVocabularyParameterTypes2 = new Class[] {
770 java.lang.String.class,
771 com.liferay.portal.service.ServiceContext.class
772 };
773 private static final Class<?>[] _deleteVocabulariesParameterTypes3 = new Class[] {
774 long[].class
775 };
776 private static final Class<?>[] _deleteVocabularyParameterTypes4 = new Class[] {
777 long.class
778 };
779 private static final Class<?>[] _getCompanyVocabulariesParameterTypes5 = new Class[] {
780 long.class
781 };
782 private static final Class<?>[] _getGroupsVocabulariesParameterTypes6 = new Class[] {
783 long[].class
784 };
785 private static final Class<?>[] _getGroupsVocabulariesParameterTypes7 = new Class[] {
786 long[].class, java.lang.String.class
787 };
788 private static final Class<?>[] _getGroupVocabulariesParameterTypes8 = new Class[] {
789 long.class
790 };
791 private static final Class<?>[] _getGroupVocabulariesParameterTypes9 = new Class[] {
792 long.class, boolean.class
793 };
794 private static final Class<?>[] _getGroupVocabulariesParameterTypes10 = new Class[] {
795 long.class, int.class, int.class,
796 com.liferay.portal.kernel.util.OrderByComparator.class
797 };
798 private static final Class<?>[] _getGroupVocabulariesParameterTypes11 = new Class[] {
799 long.class, java.lang.String.class, int.class, int.class,
800 com.liferay.portal.kernel.util.OrderByComparator.class
801 };
802 private static final Class<?>[] _getGroupVocabulariesCountParameterTypes12 = new Class[] {
803 long.class
804 };
805 private static final Class<?>[] _getGroupVocabulariesCountParameterTypes13 = new Class[] {
806 long.class, java.lang.String.class
807 };
808 private static final Class<?>[] _getJSONGroupVocabulariesParameterTypes14 = new Class[] {
809 long.class, java.lang.String.class, int.class, int.class,
810 com.liferay.portal.kernel.util.OrderByComparator.class
811 };
812 private static final Class<?>[] _getVocabulariesParameterTypes15 = new Class[] {
813 long[].class
814 };
815 private static final Class<?>[] _getVocabularyParameterTypes16 = new Class[] {
816 long.class
817 };
818 private static final Class<?>[] _updateVocabularyParameterTypes17 = new Class[] {
819 long.class, java.util.Map.class, java.util.Map.class,
820 java.lang.String.class,
821 com.liferay.portal.service.ServiceContext.class
822 };
823 private static final Class<?>[] _updateVocabularyParameterTypes18 = new Class[] {
824 long.class, java.lang.String.class, java.util.Map.class,
825 java.util.Map.class, java.lang.String.class,
826 com.liferay.portal.service.ServiceContext.class
827 };
828 }