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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.portal.kernel.json.JSONObject getJSONGroupTags(
285 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
286 int start, int end)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 try {
290 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
291 "getJSONGroupTags", _getJSONGroupTagsParameterTypes7);
292
293 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
294 name, start, end);
295
296 Object returnObj = null;
297
298 try {
299 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
300 }
301 catch (Exception e) {
302 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
303 throw (com.liferay.portal.kernel.exception.PortalException)e;
304 }
305
306 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
307 throw (com.liferay.portal.kernel.exception.SystemException)e;
308 }
309
310 throw new com.liferay.portal.kernel.exception.SystemException(e);
311 }
312
313 return (com.liferay.portal.kernel.json.JSONObject)returnObj;
314 }
315 catch (com.liferay.portal.kernel.exception.SystemException se) {
316 _log.error(se, se);
317
318 throw se;
319 }
320 }
321
322 public static com.liferay.portlet.asset.model.AssetTag getTag(
323 HttpPrincipal httpPrincipal, long tagId)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException {
326 try {
327 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
328 "getTag", _getTagParameterTypes8);
329
330 MethodHandler methodHandler = new MethodHandler(methodKey, tagId);
331
332 Object returnObj = null;
333
334 try {
335 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
336 }
337 catch (Exception e) {
338 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
339 throw (com.liferay.portal.kernel.exception.PortalException)e;
340 }
341
342 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
343 throw (com.liferay.portal.kernel.exception.SystemException)e;
344 }
345
346 throw new com.liferay.portal.kernel.exception.SystemException(e);
347 }
348
349 return (com.liferay.portlet.asset.model.AssetTag)returnObj;
350 }
351 catch (com.liferay.portal.kernel.exception.SystemException se) {
352 _log.error(se, se);
353
354 throw se;
355 }
356 }
357
358 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
359 HttpPrincipal httpPrincipal, long groupId, long classNameId,
360 java.lang.String name)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 try {
363 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
364 "getTags", _getTagsParameterTypes9);
365
366 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
367 classNameId, name);
368
369 Object returnObj = null;
370
371 try {
372 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
373 }
374 catch (Exception e) {
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.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, int start, int end,
394 com.liferay.portal.kernel.util.OrderByComparator obc)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 try {
397 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
398 "getTags", _getTagsParameterTypes10);
399
400 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
401 classNameId, name, start, end, obc);
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.SystemException) {
410 throw (com.liferay.portal.kernel.exception.SystemException)e;
411 }
412
413 throw new com.liferay.portal.kernel.exception.SystemException(e);
414 }
415
416 return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)returnObj;
417 }
418 catch (com.liferay.portal.kernel.exception.SystemException se) {
419 _log.error(se, se);
420
421 throw se;
422 }
423 }
424
425 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
426 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
427 java.lang.String[] tagProperties, int start, int end)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 try {
430 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
431 "getTags", _getTagsParameterTypes11);
432
433 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
434 name, tagProperties, start, end);
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[] groupIds, 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.getName(),
464 "getTags", _getTagsParameterTypes12);
465
466 MethodHandler methodHandler = new MethodHandler(methodKey,
467 groupIds, 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, java.lang.String className, long classPK)
493 throws com.liferay.portal.kernel.exception.PortalException,
494 com.liferay.portal.kernel.exception.SystemException {
495 try {
496 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
497 "getTags", _getTagsParameterTypes13);
498
499 MethodHandler methodHandler = new MethodHandler(methodKey,
500 className, classPK);
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.PortalException) {
509 throw (com.liferay.portal.kernel.exception.PortalException)e;
510 }
511
512 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
513 throw (com.liferay.portal.kernel.exception.SystemException)e;
514 }
515
516 throw new com.liferay.portal.kernel.exception.SystemException(e);
517 }
518
519 return (java.util.List<com.liferay.portlet.asset.model.AssetTag>)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 int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
529 long classNameId, java.lang.String name)
530 throws com.liferay.portal.kernel.exception.SystemException {
531 try {
532 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
533 "getTagsCount", _getTagsCountParameterTypes14);
534
535 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
536 classNameId, name);
537
538 Object returnObj = null;
539
540 try {
541 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
542 }
543 catch (Exception e) {
544 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
545 throw (com.liferay.portal.kernel.exception.SystemException)e;
546 }
547
548 throw new com.liferay.portal.kernel.exception.SystemException(e);
549 }
550
551 return ((Integer)returnObj).intValue();
552 }
553 catch (com.liferay.portal.kernel.exception.SystemException se) {
554 _log.error(se, se);
555
556 throw se;
557 }
558 }
559
560 public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
561 java.lang.String name)
562 throws com.liferay.portal.kernel.exception.SystemException {
563 try {
564 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
565 "getTagsCount", _getTagsCountParameterTypes15);
566
567 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
568 name);
569
570 Object returnObj = null;
571
572 try {
573 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
574 }
575 catch (Exception e) {
576 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
577 throw (com.liferay.portal.kernel.exception.SystemException)e;
578 }
579
580 throw new com.liferay.portal.kernel.exception.SystemException(e);
581 }
582
583 return ((Integer)returnObj).intValue();
584 }
585 catch (com.liferay.portal.kernel.exception.SystemException se) {
586 _log.error(se, se);
587
588 throw se;
589 }
590 }
591
592 public static int getTagsCount(HttpPrincipal httpPrincipal, long groupId,
593 java.lang.String name, java.lang.String[] tagProperties)
594 throws com.liferay.portal.kernel.exception.SystemException {
595 try {
596 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
597 "getTagsCount", _getTagsCountParameterTypes16);
598
599 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
600 name, tagProperties);
601
602 Object returnObj = null;
603
604 try {
605 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
606 }
607 catch (Exception e) {
608 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
609 throw (com.liferay.portal.kernel.exception.SystemException)e;
610 }
611
612 throw new com.liferay.portal.kernel.exception.SystemException(e);
613 }
614
615 return ((Integer)returnObj).intValue();
616 }
617 catch (com.liferay.portal.kernel.exception.SystemException se) {
618 _log.error(se, se);
619
620 throw se;
621 }
622 }
623
624 public static void mergeTags(HttpPrincipal httpPrincipal, long fromTagId,
625 long toTagId, boolean overrideProperties)
626 throws com.liferay.portal.kernel.exception.PortalException,
627 com.liferay.portal.kernel.exception.SystemException {
628 try {
629 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
630 "mergeTags", _mergeTagsParameterTypes17);
631
632 MethodHandler methodHandler = new MethodHandler(methodKey,
633 fromTagId, toTagId, overrideProperties);
634
635 try {
636 TunnelUtil.invoke(httpPrincipal, methodHandler);
637 }
638 catch (Exception e) {
639 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
640 throw (com.liferay.portal.kernel.exception.PortalException)e;
641 }
642
643 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
644 throw (com.liferay.portal.kernel.exception.SystemException)e;
645 }
646
647 throw new com.liferay.portal.kernel.exception.SystemException(e);
648 }
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,
658 long[] fromTagIds, 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.getName(),
663 "mergeTags", _mergeTagsParameterTypes18);
664
665 MethodHandler methodHandler = new MethodHandler(methodKey,
666 fromTagIds, 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 com.liferay.portal.kernel.json.JSONArray search(
691 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
692 java.lang.String[] tagProperties, int start, int end)
693 throws com.liferay.portal.kernel.exception.SystemException {
694 try {
695 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
696 "search", _searchParameterTypes19);
697
698 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
699 name, tagProperties, start, end);
700
701 Object returnObj = null;
702
703 try {
704 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
705 }
706 catch (Exception e) {
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 return (com.liferay.portal.kernel.json.JSONArray)returnObj;
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[] groupIds, 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.getName(),
729 "search", _searchParameterTypes20);
730
731 MethodHandler methodHandler = new MethodHandler(methodKey,
732 groupIds, 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.portlet.asset.model.AssetTag updateTag(
757 HttpPrincipal httpPrincipal, long tagId, java.lang.String name,
758 java.lang.String[] tagProperties,
759 com.liferay.portal.service.ServiceContext serviceContext)
760 throws com.liferay.portal.kernel.exception.PortalException,
761 com.liferay.portal.kernel.exception.SystemException {
762 try {
763 MethodKey methodKey = new MethodKey(AssetTagServiceUtil.class.getName(),
764 "updateTag", _updateTagParameterTypes21);
765
766 MethodHandler methodHandler = new MethodHandler(methodKey, tagId,
767 name, tagProperties, serviceContext);
768
769 Object returnObj = null;
770
771 try {
772 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
773 }
774 catch (Exception e) {
775 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
776 throw (com.liferay.portal.kernel.exception.PortalException)e;
777 }
778
779 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
780 throw (com.liferay.portal.kernel.exception.SystemException)e;
781 }
782
783 throw new com.liferay.portal.kernel.exception.SystemException(e);
784 }
785
786 return (com.liferay.portlet.asset.model.AssetTag)returnObj;
787 }
788 catch (com.liferay.portal.kernel.exception.SystemException se) {
789 _log.error(se, se);
790
791 throw se;
792 }
793 }
794
795 private static Log _log = LogFactoryUtil.getLog(AssetTagServiceHttp.class);
796 private static final Class<?>[] _addTagParameterTypes0 = new Class[] {
797 java.lang.String.class, java.lang.String[].class,
798 com.liferay.portal.service.ServiceContext.class
799 };
800 private static final Class<?>[] _deleteTagParameterTypes1 = new Class[] {
801 long.class
802 };
803 private static final Class<?>[] _deleteTagsParameterTypes2 = new Class[] {
804 long[].class
805 };
806 private static final Class<?>[] _getGroupsTagsParameterTypes3 = new Class[] {
807 long[].class
808 };
809 private static final Class<?>[] _getGroupTagsParameterTypes4 = new Class[] {
810 long.class
811 };
812 private static final Class<?>[] _getGroupTagsParameterTypes5 = new Class[] {
813 long.class, int.class, int.class,
814 com.liferay.portal.kernel.util.OrderByComparator.class
815 };
816 private static final Class<?>[] _getGroupTagsCountParameterTypes6 = new Class[] {
817 long.class
818 };
819 private static final Class<?>[] _getJSONGroupTagsParameterTypes7 = new Class[] {
820 long.class, java.lang.String.class, int.class, int.class
821 };
822 private static final Class<?>[] _getTagParameterTypes8 = new Class[] {
823 long.class
824 };
825 private static final Class<?>[] _getTagsParameterTypes9 = new Class[] {
826 long.class, long.class, java.lang.String.class
827 };
828 private static final Class<?>[] _getTagsParameterTypes10 = new Class[] {
829 long.class, long.class, java.lang.String.class, int.class, int.class,
830 com.liferay.portal.kernel.util.OrderByComparator.class
831 };
832 private static final Class<?>[] _getTagsParameterTypes11 = new Class[] {
833 long.class, java.lang.String.class, java.lang.String[].class,
834 int.class, int.class
835 };
836 private static final Class<?>[] _getTagsParameterTypes12 = new Class[] {
837 long[].class, java.lang.String.class, java.lang.String[].class,
838 int.class, int.class
839 };
840 private static final Class<?>[] _getTagsParameterTypes13 = new Class[] {
841 java.lang.String.class, long.class
842 };
843 private static final Class<?>[] _getTagsCountParameterTypes14 = new Class[] {
844 long.class, long.class, java.lang.String.class
845 };
846 private static final Class<?>[] _getTagsCountParameterTypes15 = new Class[] {
847 long.class, java.lang.String.class
848 };
849 private static final Class<?>[] _getTagsCountParameterTypes16 = new Class[] {
850 long.class, java.lang.String.class, java.lang.String[].class
851 };
852 private static final Class<?>[] _mergeTagsParameterTypes17 = new Class[] {
853 long.class, long.class, boolean.class
854 };
855 private static final Class<?>[] _mergeTagsParameterTypes18 = new Class[] {
856 long[].class, long.class, boolean.class
857 };
858 private static final Class<?>[] _searchParameterTypes19 = new Class[] {
859 long.class, java.lang.String.class, java.lang.String[].class,
860 int.class, int.class
861 };
862 private static final Class<?>[] _searchParameterTypes20 = new Class[] {
863 long[].class, java.lang.String.class, java.lang.String[].class,
864 int.class, int.class
865 };
866 private static final Class<?>[] _updateTagParameterTypes21 = new Class[] {
867 long.class, java.lang.String.class, java.lang.String[].class,
868 com.liferay.portal.service.ServiceContext.class
869 };
870 }