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