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