1
22
23 package com.liferay.portlet.tags.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.kernel.util.BooleanWrapper;
28 import com.liferay.portal.kernel.util.DoubleWrapper;
29 import com.liferay.portal.kernel.util.IntegerWrapper;
30 import com.liferay.portal.kernel.util.LongWrapper;
31 import com.liferay.portal.kernel.util.MethodWrapper;
32 import com.liferay.portal.kernel.util.NullWrapper;
33 import com.liferay.portal.security.auth.HttpPrincipal;
34 import com.liferay.portal.service.http.TunnelUtil;
35
36 import com.liferay.portlet.tags.service.TagsAssetServiceUtil;
37
38
75 public class TagsAssetServiceHttp {
76 public static void deleteAsset(HttpPrincipal httpPrincipal, long assetId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 try {
80 Object paramObj0 = new LongWrapper(assetId);
81
82 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
83 "deleteAsset", new Object[] { paramObj0 });
84
85 try {
86 TunnelUtil.invoke(httpPrincipal, methodWrapper);
87 }
88 catch (Exception e) {
89 if (e instanceof com.liferay.portal.PortalException) {
90 throw (com.liferay.portal.PortalException)e;
91 }
92
93 if (e instanceof com.liferay.portal.SystemException) {
94 throw (com.liferay.portal.SystemException)e;
95 }
96
97 throw new com.liferay.portal.SystemException(e);
98 }
99 }
100 catch (com.liferay.portal.SystemException se) {
101 _log.error(se, se);
102
103 throw se;
104 }
105 }
106
107 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
108 HttpPrincipal httpPrincipal, long assetId)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 try {
112 Object paramObj0 = new LongWrapper(assetId);
113
114 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
115 "getAsset", new Object[] { paramObj0 });
116
117 Object returnObj = null;
118
119 try {
120 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
121 }
122 catch (Exception e) {
123 if (e instanceof com.liferay.portal.PortalException) {
124 throw (com.liferay.portal.PortalException)e;
125 }
126
127 if (e instanceof com.liferay.portal.SystemException) {
128 throw (com.liferay.portal.SystemException)e;
129 }
130
131 throw new com.liferay.portal.SystemException(e);
132 }
133
134 return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
135 }
136 catch (com.liferay.portal.SystemException se) {
137 _log.error(se, se);
138
139 throw se;
140 }
141 }
142
143 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
144 HttpPrincipal httpPrincipal, long groupId, long[] classNameIds,
145 long[] entryIds, long[] notEntryIds, boolean andOperator,
146 java.lang.String orderByCol1, java.lang.String orderByCol2,
147 java.lang.String orderByType1, java.lang.String orderByType2,
148 boolean excludeZeroViewCount, java.util.Date publishDate,
149 java.util.Date expirationDate, int start, int end)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException {
152 try {
153 Object paramObj0 = new LongWrapper(groupId);
154
155 Object paramObj1 = classNameIds;
156
157 if (classNameIds == null) {
158 paramObj1 = new NullWrapper("[J");
159 }
160
161 Object paramObj2 = entryIds;
162
163 if (entryIds == null) {
164 paramObj2 = new NullWrapper("[J");
165 }
166
167 Object paramObj3 = notEntryIds;
168
169 if (notEntryIds == null) {
170 paramObj3 = new NullWrapper("[J");
171 }
172
173 Object paramObj4 = new BooleanWrapper(andOperator);
174
175 Object paramObj5 = orderByCol1;
176
177 if (orderByCol1 == null) {
178 paramObj5 = new NullWrapper("java.lang.String");
179 }
180
181 Object paramObj6 = orderByCol2;
182
183 if (orderByCol2 == null) {
184 paramObj6 = new NullWrapper("java.lang.String");
185 }
186
187 Object paramObj7 = orderByType1;
188
189 if (orderByType1 == null) {
190 paramObj7 = new NullWrapper("java.lang.String");
191 }
192
193 Object paramObj8 = orderByType2;
194
195 if (orderByType2 == null) {
196 paramObj8 = new NullWrapper("java.lang.String");
197 }
198
199 Object paramObj9 = new BooleanWrapper(excludeZeroViewCount);
200
201 Object paramObj10 = publishDate;
202
203 if (publishDate == null) {
204 paramObj10 = new NullWrapper("java.util.Date");
205 }
206
207 Object paramObj11 = expirationDate;
208
209 if (expirationDate == null) {
210 paramObj11 = new NullWrapper("java.util.Date");
211 }
212
213 Object paramObj12 = new IntegerWrapper(start);
214
215 Object paramObj13 = new IntegerWrapper(end);
216
217 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
218 "getAssets",
219 new Object[] {
220 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
221 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
222 paramObj10, paramObj11, paramObj12, paramObj13
223 });
224
225 Object returnObj = null;
226
227 try {
228 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
229 }
230 catch (Exception e) {
231 if (e instanceof com.liferay.portal.PortalException) {
232 throw (com.liferay.portal.PortalException)e;
233 }
234
235 if (e instanceof com.liferay.portal.SystemException) {
236 throw (com.liferay.portal.SystemException)e;
237 }
238
239 throw new com.liferay.portal.SystemException(e);
240 }
241
242 return (java.util.List<com.liferay.portlet.tags.model.TagsAsset>)returnObj;
243 }
244 catch (com.liferay.portal.SystemException se) {
245 _log.error(se, se);
246
247 throw se;
248 }
249 }
250
251 public static int getAssetsCount(HttpPrincipal httpPrincipal, long groupId,
252 long[] classNameIds, long[] entryIds, long[] notEntryIds,
253 boolean andOperator, boolean excludeZeroViewCount,
254 java.util.Date publishDate, java.util.Date expirationDate)
255 throws com.liferay.portal.PortalException,
256 com.liferay.portal.SystemException {
257 try {
258 Object paramObj0 = new LongWrapper(groupId);
259
260 Object paramObj1 = classNameIds;
261
262 if (classNameIds == null) {
263 paramObj1 = new NullWrapper("[J");
264 }
265
266 Object paramObj2 = entryIds;
267
268 if (entryIds == null) {
269 paramObj2 = new NullWrapper("[J");
270 }
271
272 Object paramObj3 = notEntryIds;
273
274 if (notEntryIds == null) {
275 paramObj3 = new NullWrapper("[J");
276 }
277
278 Object paramObj4 = new BooleanWrapper(andOperator);
279
280 Object paramObj5 = new BooleanWrapper(excludeZeroViewCount);
281
282 Object paramObj6 = publishDate;
283
284 if (publishDate == null) {
285 paramObj6 = new NullWrapper("java.util.Date");
286 }
287
288 Object paramObj7 = expirationDate;
289
290 if (expirationDate == null) {
291 paramObj7 = new NullWrapper("java.util.Date");
292 }
293
294 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
295 "getAssetsCount",
296 new Object[] {
297 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
298 paramObj5, paramObj6, paramObj7
299 });
300
301 Object returnObj = null;
302
303 try {
304 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
305 }
306 catch (Exception e) {
307 if (e instanceof com.liferay.portal.PortalException) {
308 throw (com.liferay.portal.PortalException)e;
309 }
310
311 if (e instanceof com.liferay.portal.SystemException) {
312 throw (com.liferay.portal.SystemException)e;
313 }
314
315 throw new com.liferay.portal.SystemException(e);
316 }
317
318 return ((Integer)returnObj).intValue();
319 }
320 catch (com.liferay.portal.SystemException se) {
321 _log.error(se, se);
322
323 throw se;
324 }
325 }
326
327 public static java.lang.String getAssetsRSS(HttpPrincipal httpPrincipal,
328 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
329 boolean andOperator, java.lang.String orderByCol1,
330 java.lang.String orderByCol2, java.lang.String orderByType1,
331 java.lang.String orderByType2, boolean excludeZeroViewCount,
332 java.util.Date publishDate, java.util.Date expirationDate, int max,
333 java.lang.String type, double version, java.lang.String displayStyle,
334 java.lang.String feedURL, java.lang.String entryURL)
335 throws com.liferay.portal.PortalException,
336 com.liferay.portal.SystemException {
337 try {
338 Object paramObj0 = new LongWrapper(groupId);
339
340 Object paramObj1 = classNameIds;
341
342 if (classNameIds == null) {
343 paramObj1 = new NullWrapper("[J");
344 }
345
346 Object paramObj2 = entryIds;
347
348 if (entryIds == null) {
349 paramObj2 = new NullWrapper("[J");
350 }
351
352 Object paramObj3 = notEntryIds;
353
354 if (notEntryIds == null) {
355 paramObj3 = new NullWrapper("[J");
356 }
357
358 Object paramObj4 = new BooleanWrapper(andOperator);
359
360 Object paramObj5 = orderByCol1;
361
362 if (orderByCol1 == null) {
363 paramObj5 = new NullWrapper("java.lang.String");
364 }
365
366 Object paramObj6 = orderByCol2;
367
368 if (orderByCol2 == null) {
369 paramObj6 = new NullWrapper("java.lang.String");
370 }
371
372 Object paramObj7 = orderByType1;
373
374 if (orderByType1 == null) {
375 paramObj7 = new NullWrapper("java.lang.String");
376 }
377
378 Object paramObj8 = orderByType2;
379
380 if (orderByType2 == null) {
381 paramObj8 = new NullWrapper("java.lang.String");
382 }
383
384 Object paramObj9 = new BooleanWrapper(excludeZeroViewCount);
385
386 Object paramObj10 = publishDate;
387
388 if (publishDate == null) {
389 paramObj10 = new NullWrapper("java.util.Date");
390 }
391
392 Object paramObj11 = expirationDate;
393
394 if (expirationDate == null) {
395 paramObj11 = new NullWrapper("java.util.Date");
396 }
397
398 Object paramObj12 = new IntegerWrapper(max);
399
400 Object paramObj13 = type;
401
402 if (type == null) {
403 paramObj13 = new NullWrapper("java.lang.String");
404 }
405
406 Object paramObj14 = new DoubleWrapper(version);
407
408 Object paramObj15 = displayStyle;
409
410 if (displayStyle == null) {
411 paramObj15 = new NullWrapper("java.lang.String");
412 }
413
414 Object paramObj16 = feedURL;
415
416 if (feedURL == null) {
417 paramObj16 = new NullWrapper("java.lang.String");
418 }
419
420 Object paramObj17 = entryURL;
421
422 if (entryURL == null) {
423 paramObj17 = new NullWrapper("java.lang.String");
424 }
425
426 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
427 "getAssetsRSS",
428 new Object[] {
429 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
430 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
431 paramObj10, paramObj11, paramObj12, paramObj13,
432 paramObj14, paramObj15, paramObj16, paramObj17
433 });
434
435 Object returnObj = null;
436
437 try {
438 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
439 }
440 catch (Exception e) {
441 if (e instanceof com.liferay.portal.PortalException) {
442 throw (com.liferay.portal.PortalException)e;
443 }
444
445 if (e instanceof com.liferay.portal.SystemException) {
446 throw (com.liferay.portal.SystemException)e;
447 }
448
449 throw new com.liferay.portal.SystemException(e);
450 }
451
452 return (java.lang.String)returnObj;
453 }
454 catch (com.liferay.portal.SystemException se) {
455 _log.error(se, se);
456
457 throw se;
458 }
459 }
460
461 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
462 HttpPrincipal httpPrincipal, java.lang.String languageId)
463 throws com.liferay.portal.SystemException {
464 try {
465 Object paramObj0 = languageId;
466
467 if (languageId == null) {
468 paramObj0 = new NullWrapper("java.lang.String");
469 }
470
471 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
472 "getAssetTypes", new Object[] { paramObj0 });
473
474 Object returnObj = null;
475
476 try {
477 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
478 }
479 catch (Exception e) {
480 throw new com.liferay.portal.SystemException(e);
481 }
482
483 return (com.liferay.portlet.tags.model.TagsAssetType[])returnObj;
484 }
485 catch (com.liferay.portal.SystemException se) {
486 _log.error(se, se);
487
488 throw se;
489 }
490 }
491
492 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
493 HttpPrincipal httpPrincipal, long companyId, int start, int end,
494 java.lang.String languageId) throws com.liferay.portal.SystemException {
495 try {
496 Object paramObj0 = new LongWrapper(companyId);
497
498 Object paramObj1 = new IntegerWrapper(start);
499
500 Object paramObj2 = new IntegerWrapper(end);
501
502 Object paramObj3 = languageId;
503
504 if (languageId == null) {
505 paramObj3 = new NullWrapper("java.lang.String");
506 }
507
508 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
509 "getCompanyAssetDisplays",
510 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
511
512 Object returnObj = null;
513
514 try {
515 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
516 }
517 catch (Exception e) {
518 if (e instanceof com.liferay.portal.SystemException) {
519 throw (com.liferay.portal.SystemException)e;
520 }
521
522 throw new com.liferay.portal.SystemException(e);
523 }
524
525 return (com.liferay.portlet.tags.model.TagsAssetDisplay[])returnObj;
526 }
527 catch (com.liferay.portal.SystemException se) {
528 _log.error(se, se);
529
530 throw se;
531 }
532 }
533
534 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
535 HttpPrincipal httpPrincipal, long companyId, int start, int end)
536 throws com.liferay.portal.SystemException {
537 try {
538 Object paramObj0 = new LongWrapper(companyId);
539
540 Object paramObj1 = new IntegerWrapper(start);
541
542 Object paramObj2 = new IntegerWrapper(end);
543
544 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
545 "getCompanyAssets",
546 new Object[] { paramObj0, paramObj1, paramObj2 });
547
548 Object returnObj = null;
549
550 try {
551 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
552 }
553 catch (Exception e) {
554 if (e instanceof com.liferay.portal.SystemException) {
555 throw (com.liferay.portal.SystemException)e;
556 }
557
558 throw new com.liferay.portal.SystemException(e);
559 }
560
561 return (java.util.List<com.liferay.portlet.tags.model.TagsAsset>)returnObj;
562 }
563 catch (com.liferay.portal.SystemException se) {
564 _log.error(se, se);
565
566 throw se;
567 }
568 }
569
570 public static int getCompanyAssetsCount(HttpPrincipal httpPrincipal,
571 long companyId) throws com.liferay.portal.SystemException {
572 try {
573 Object paramObj0 = new LongWrapper(companyId);
574
575 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
576 "getCompanyAssetsCount", new Object[] { paramObj0 });
577
578 Object returnObj = null;
579
580 try {
581 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
582 }
583 catch (Exception e) {
584 if (e instanceof com.liferay.portal.SystemException) {
585 throw (com.liferay.portal.SystemException)e;
586 }
587
588 throw new com.liferay.portal.SystemException(e);
589 }
590
591 return ((Integer)returnObj).intValue();
592 }
593 catch (com.liferay.portal.SystemException se) {
594 _log.error(se, se);
595
596 throw se;
597 }
598 }
599
600 public static java.lang.String getCompanyAssetsRSS(
601 HttpPrincipal httpPrincipal, long companyId, int max,
602 java.lang.String type, double version, java.lang.String displayStyle,
603 java.lang.String feedURL, java.lang.String entryURL)
604 throws com.liferay.portal.PortalException,
605 com.liferay.portal.SystemException {
606 try {
607 Object paramObj0 = new LongWrapper(companyId);
608
609 Object paramObj1 = new IntegerWrapper(max);
610
611 Object paramObj2 = type;
612
613 if (type == null) {
614 paramObj2 = new NullWrapper("java.lang.String");
615 }
616
617 Object paramObj3 = new DoubleWrapper(version);
618
619 Object paramObj4 = displayStyle;
620
621 if (displayStyle == null) {
622 paramObj4 = new NullWrapper("java.lang.String");
623 }
624
625 Object paramObj5 = feedURL;
626
627 if (feedURL == null) {
628 paramObj5 = new NullWrapper("java.lang.String");
629 }
630
631 Object paramObj6 = entryURL;
632
633 if (entryURL == null) {
634 paramObj6 = new NullWrapper("java.lang.String");
635 }
636
637 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
638 "getCompanyAssetsRSS",
639 new Object[] {
640 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
641 paramObj5, paramObj6
642 });
643
644 Object returnObj = null;
645
646 try {
647 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
648 }
649 catch (Exception e) {
650 if (e instanceof com.liferay.portal.PortalException) {
651 throw (com.liferay.portal.PortalException)e;
652 }
653
654 if (e instanceof com.liferay.portal.SystemException) {
655 throw (com.liferay.portal.SystemException)e;
656 }
657
658 throw new com.liferay.portal.SystemException(e);
659 }
660
661 return (java.lang.String)returnObj;
662 }
663 catch (com.liferay.portal.SystemException se) {
664 _log.error(se, se);
665
666 throw se;
667 }
668 }
669
670 public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
671 HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
672 throws com.liferay.portal.SystemException {
673 try {
674 Object paramObj0 = className;
675
676 if (className == null) {
677 paramObj0 = new NullWrapper("java.lang.String");
678 }
679
680 Object paramObj1 = new LongWrapper(classPK);
681
682 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
683 "incrementViewCounter",
684 new Object[] { paramObj0, paramObj1 });
685
686 Object returnObj = null;
687
688 try {
689 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
690 }
691 catch (Exception e) {
692 if (e instanceof com.liferay.portal.SystemException) {
693 throw (com.liferay.portal.SystemException)e;
694 }
695
696 throw new com.liferay.portal.SystemException(e);
697 }
698
699 return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
700 }
701 catch (com.liferay.portal.SystemException se) {
702 _log.error(se, se);
703
704 throw se;
705 }
706 }
707
708 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
709 HttpPrincipal httpPrincipal, long companyId,
710 java.lang.String portletId, java.lang.String keywords,
711 java.lang.String languageId, int start, int end)
712 throws com.liferay.portal.SystemException {
713 try {
714 Object paramObj0 = new LongWrapper(companyId);
715
716 Object paramObj1 = portletId;
717
718 if (portletId == null) {
719 paramObj1 = new NullWrapper("java.lang.String");
720 }
721
722 Object paramObj2 = keywords;
723
724 if (keywords == null) {
725 paramObj2 = new NullWrapper("java.lang.String");
726 }
727
728 Object paramObj3 = languageId;
729
730 if (languageId == null) {
731 paramObj3 = new NullWrapper("java.lang.String");
732 }
733
734 Object paramObj4 = new IntegerWrapper(start);
735
736 Object paramObj5 = new IntegerWrapper(end);
737
738 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
739 "searchAssetDisplays",
740 new Object[] {
741 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
742 paramObj5
743 });
744
745 Object returnObj = null;
746
747 try {
748 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
749 }
750 catch (Exception e) {
751 if (e instanceof com.liferay.portal.SystemException) {
752 throw (com.liferay.portal.SystemException)e;
753 }
754
755 throw new com.liferay.portal.SystemException(e);
756 }
757
758 return (com.liferay.portlet.tags.model.TagsAssetDisplay[])returnObj;
759 }
760 catch (com.liferay.portal.SystemException se) {
761 _log.error(se, se);
762
763 throw se;
764 }
765 }
766
767 public static int searchAssetDisplaysCount(HttpPrincipal httpPrincipal,
768 long companyId, java.lang.String portletId, java.lang.String keywords,
769 java.lang.String languageId) throws com.liferay.portal.SystemException {
770 try {
771 Object paramObj0 = new LongWrapper(companyId);
772
773 Object paramObj1 = portletId;
774
775 if (portletId == null) {
776 paramObj1 = new NullWrapper("java.lang.String");
777 }
778
779 Object paramObj2 = keywords;
780
781 if (keywords == null) {
782 paramObj2 = new NullWrapper("java.lang.String");
783 }
784
785 Object paramObj3 = languageId;
786
787 if (languageId == null) {
788 paramObj3 = new NullWrapper("java.lang.String");
789 }
790
791 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
792 "searchAssetDisplaysCount",
793 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
794
795 Object returnObj = null;
796
797 try {
798 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
799 }
800 catch (Exception e) {
801 if (e instanceof com.liferay.portal.SystemException) {
802 throw (com.liferay.portal.SystemException)e;
803 }
804
805 throw new com.liferay.portal.SystemException(e);
806 }
807
808 return ((Integer)returnObj).intValue();
809 }
810 catch (com.liferay.portal.SystemException se) {
811 _log.error(se, se);
812
813 throw se;
814 }
815 }
816
817 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
818 HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
819 long classPK, java.lang.String[] categoryNames,
820 java.lang.String[] entryNames, boolean visible,
821 java.util.Date startDate, java.util.Date endDate,
822 java.util.Date publishDate, java.util.Date expirationDate,
823 java.lang.String mimeType, java.lang.String title,
824 java.lang.String description, java.lang.String summary,
825 java.lang.String url, int height, int width, java.lang.Integer priority)
826 throws com.liferay.portal.PortalException,
827 com.liferay.portal.SystemException {
828 try {
829 Object paramObj0 = new LongWrapper(groupId);
830
831 Object paramObj1 = className;
832
833 if (className == null) {
834 paramObj1 = new NullWrapper("java.lang.String");
835 }
836
837 Object paramObj2 = new LongWrapper(classPK);
838
839 Object paramObj3 = categoryNames;
840
841 if (categoryNames == null) {
842 paramObj3 = new NullWrapper("[Ljava.lang.String;");
843 }
844
845 Object paramObj4 = entryNames;
846
847 if (entryNames == null) {
848 paramObj4 = new NullWrapper("[Ljava.lang.String;");
849 }
850
851 Object paramObj5 = new BooleanWrapper(visible);
852
853 Object paramObj6 = startDate;
854
855 if (startDate == null) {
856 paramObj6 = new NullWrapper("java.util.Date");
857 }
858
859 Object paramObj7 = endDate;
860
861 if (endDate == null) {
862 paramObj7 = new NullWrapper("java.util.Date");
863 }
864
865 Object paramObj8 = publishDate;
866
867 if (publishDate == null) {
868 paramObj8 = new NullWrapper("java.util.Date");
869 }
870
871 Object paramObj9 = expirationDate;
872
873 if (expirationDate == null) {
874 paramObj9 = new NullWrapper("java.util.Date");
875 }
876
877 Object paramObj10 = mimeType;
878
879 if (mimeType == null) {
880 paramObj10 = new NullWrapper("java.lang.String");
881 }
882
883 Object paramObj11 = title;
884
885 if (title == null) {
886 paramObj11 = new NullWrapper("java.lang.String");
887 }
888
889 Object paramObj12 = description;
890
891 if (description == null) {
892 paramObj12 = new NullWrapper("java.lang.String");
893 }
894
895 Object paramObj13 = summary;
896
897 if (summary == null) {
898 paramObj13 = new NullWrapper("java.lang.String");
899 }
900
901 Object paramObj14 = url;
902
903 if (url == null) {
904 paramObj14 = new NullWrapper("java.lang.String");
905 }
906
907 Object paramObj15 = new IntegerWrapper(height);
908
909 Object paramObj16 = new IntegerWrapper(width);
910
911 Object paramObj17 = priority;
912
913 if (priority == null) {
914 paramObj17 = new NullWrapper("java.lang.Integer");
915 }
916
917 MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
918 "updateAsset",
919 new Object[] {
920 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
921 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
922 paramObj10, paramObj11, paramObj12, paramObj13,
923 paramObj14, paramObj15, paramObj16, paramObj17
924 });
925
926 Object returnObj = null;
927
928 try {
929 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
930 }
931 catch (Exception e) {
932 if (e instanceof com.liferay.portal.PortalException) {
933 throw (com.liferay.portal.PortalException)e;
934 }
935
936 if (e instanceof com.liferay.portal.SystemException) {
937 throw (com.liferay.portal.SystemException)e;
938 }
939
940 throw new com.liferay.portal.SystemException(e);
941 }
942
943 return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
944 }
945 catch (com.liferay.portal.SystemException se) {
946 _log.error(se, se);
947
948 throw se;
949 }
950 }
951
952 private static Log _log = LogFactoryUtil.getLog(TagsAssetServiceHttp.class);
953 }