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