001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.tags.service.http;
022:
023: import com.liferay.portal.kernel.log.Log;
024: import com.liferay.portal.kernel.log.LogFactoryUtil;
025: import com.liferay.portal.kernel.util.BooleanWrapper;
026: import com.liferay.portal.kernel.util.DoubleWrapper;
027: import com.liferay.portal.kernel.util.IntegerWrapper;
028: import com.liferay.portal.kernel.util.LongWrapper;
029: import com.liferay.portal.kernel.util.MethodWrapper;
030: import com.liferay.portal.kernel.util.NullWrapper;
031: import com.liferay.portal.security.auth.HttpPrincipal;
032: import com.liferay.portal.service.http.TunnelUtil;
033:
034: import com.liferay.portlet.tags.service.TagsAssetServiceUtil;
035:
036: /**
037: * <a href="TagsAssetServiceHttp.java.html"><b><i>View Source</i></b></a>
038: *
039: * <p>
040: * ServiceBuilder generated this class. Modifications in this class will be
041: * overwritten the next time is generated.
042: * </p>
043: *
044: * <p>
045: * This class provides a HTTP utility for the
046: * <code>com.liferay.portlet.tags.service.TagsAssetServiceUtil</code> service
047: * utility. The static methods of this class calls the same methods of the
048: * service utility. However, the signatures are different because it requires an
049: * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
050: * parameter.
051: * </p>
052: *
053: * <p>
054: * The benefits of using the HTTP utility is that it is fast and allows for
055: * tunneling without the cost of serializing to text. The drawback is that it
056: * only works with Java.
057: * </p>
058: *
059: * <p>
060: * Set the property <code>tunnel.servlet.hosts.allowed</code> in
061: * portal.properties to configure security.
062: * </p>
063: *
064: * <p>
065: * The HTTP utility is only generated for remote services.
066: * </p>
067: *
068: * @author Brian Wing Shun Chan
069: *
070: * @see com.liferay.portal.security.auth.HttpPrincipal
071: * @see com.liferay.portlet.tags.service.TagsAssetServiceUtil
072: * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
073: *
074: */
075: public class TagsAssetServiceHttp {
076: public static void deleteAsset(HttpPrincipal httpPrincipal,
077: long assetId) throws com.liferay.portal.SystemException,
078: com.liferay.portal.PortalException {
079: try {
080: Object paramObj0 = new LongWrapper(assetId);
081:
082: MethodWrapper methodWrapper = new MethodWrapper(
083: TagsAssetServiceUtil.class.getName(),
084: "deleteAsset", new Object[] { paramObj0 });
085:
086: try {
087: TunnelUtil.invoke(httpPrincipal, methodWrapper);
088: } catch (Exception e) {
089: if (e instanceof com.liferay.portal.SystemException) {
090: throw (com.liferay.portal.SystemException) e;
091: }
092:
093: if (e instanceof com.liferay.portal.PortalException) {
094: throw (com.liferay.portal.PortalException) e;
095: }
096:
097: throw new com.liferay.portal.SystemException(e);
098: }
099: } catch (com.liferay.portal.SystemException se) {
100: _log.error(se, se);
101:
102: throw se;
103: }
104: }
105:
106: public static com.liferay.portlet.tags.model.TagsAsset getAsset(
107: HttpPrincipal httpPrincipal, long assetId)
108: throws com.liferay.portal.SystemException,
109: com.liferay.portal.PortalException {
110: try {
111: Object paramObj0 = new LongWrapper(assetId);
112:
113: MethodWrapper methodWrapper = new MethodWrapper(
114: TagsAssetServiceUtil.class.getName(), "getAsset",
115: new Object[] { paramObj0 });
116:
117: Object returnObj = null;
118:
119: try {
120: returnObj = TunnelUtil.invoke(httpPrincipal,
121: methodWrapper);
122: } catch (Exception e) {
123: if (e instanceof com.liferay.portal.SystemException) {
124: throw (com.liferay.portal.SystemException) e;
125: }
126:
127: if (e instanceof com.liferay.portal.PortalException) {
128: throw (com.liferay.portal.PortalException) e;
129: }
130:
131: throw new com.liferay.portal.SystemException(e);
132: }
133:
134: return (com.liferay.portlet.tags.model.TagsAsset) returnObj;
135: } catch (com.liferay.portal.SystemException se) {
136: _log.error(se, se);
137:
138: throw se;
139: }
140: }
141:
142: public static java.lang.String getAssetsRSS(
143: HttpPrincipal httpPrincipal, long groupId,
144: long[] classNameIds, long[] entryIds, long[] notEntryIds,
145: boolean andOperator, java.lang.String orderByCol1,
146: java.lang.String orderByCol2,
147: java.lang.String orderByType1,
148: java.lang.String orderByType2,
149: boolean excludeZeroViewCount, java.util.Date publishDate,
150: java.util.Date expirationDate, int max,
151: java.lang.String type, double version,
152: java.lang.String displayStyle, java.lang.String feedURL,
153: java.lang.String entryURL)
154: throws com.liferay.portal.SystemException,
155: com.liferay.portal.PortalException {
156: try {
157: Object paramObj0 = new LongWrapper(groupId);
158:
159: Object paramObj1 = classNameIds;
160:
161: if (classNameIds == null) {
162: paramObj1 = new NullWrapper("[J");
163: }
164:
165: Object paramObj2 = entryIds;
166:
167: if (entryIds == null) {
168: paramObj2 = new NullWrapper("[J");
169: }
170:
171: Object paramObj3 = notEntryIds;
172:
173: if (notEntryIds == null) {
174: paramObj3 = new NullWrapper("[J");
175: }
176:
177: Object paramObj4 = new BooleanWrapper(andOperator);
178:
179: Object paramObj5 = orderByCol1;
180:
181: if (orderByCol1 == null) {
182: paramObj5 = new NullWrapper("java.lang.String");
183: }
184:
185: Object paramObj6 = orderByCol2;
186:
187: if (orderByCol2 == null) {
188: paramObj6 = new NullWrapper("java.lang.String");
189: }
190:
191: Object paramObj7 = orderByType1;
192:
193: if (orderByType1 == null) {
194: paramObj7 = new NullWrapper("java.lang.String");
195: }
196:
197: Object paramObj8 = orderByType2;
198:
199: if (orderByType2 == null) {
200: paramObj8 = new NullWrapper("java.lang.String");
201: }
202:
203: Object paramObj9 = new BooleanWrapper(excludeZeroViewCount);
204:
205: Object paramObj10 = publishDate;
206:
207: if (publishDate == null) {
208: paramObj10 = new NullWrapper("java.util.Date");
209: }
210:
211: Object paramObj11 = expirationDate;
212:
213: if (expirationDate == null) {
214: paramObj11 = new NullWrapper("java.util.Date");
215: }
216:
217: Object paramObj12 = new IntegerWrapper(max);
218:
219: Object paramObj13 = type;
220:
221: if (type == null) {
222: paramObj13 = new NullWrapper("java.lang.String");
223: }
224:
225: Object paramObj14 = new DoubleWrapper(version);
226:
227: Object paramObj15 = displayStyle;
228:
229: if (displayStyle == null) {
230: paramObj15 = new NullWrapper("java.lang.String");
231: }
232:
233: Object paramObj16 = feedURL;
234:
235: if (feedURL == null) {
236: paramObj16 = new NullWrapper("java.lang.String");
237: }
238:
239: Object paramObj17 = entryURL;
240:
241: if (entryURL == null) {
242: paramObj17 = new NullWrapper("java.lang.String");
243: }
244:
245: MethodWrapper methodWrapper = new MethodWrapper(
246: TagsAssetServiceUtil.class.getName(),
247: "getAssetsRSS", new Object[] { paramObj0,
248: paramObj1, paramObj2, paramObj3, paramObj4,
249: paramObj5, paramObj6, paramObj7, paramObj8,
250: paramObj9, paramObj10, paramObj11,
251: paramObj12, paramObj13, paramObj14,
252: paramObj15, paramObj16, paramObj17 });
253:
254: Object returnObj = null;
255:
256: try {
257: returnObj = TunnelUtil.invoke(httpPrincipal,
258: methodWrapper);
259: } catch (Exception e) {
260: if (e instanceof com.liferay.portal.SystemException) {
261: throw (com.liferay.portal.SystemException) e;
262: }
263:
264: if (e instanceof com.liferay.portal.PortalException) {
265: throw (com.liferay.portal.PortalException) e;
266: }
267:
268: throw new com.liferay.portal.SystemException(e);
269: }
270:
271: return (java.lang.String) returnObj;
272: } catch (com.liferay.portal.SystemException se) {
273: _log.error(se, se);
274:
275: throw se;
276: }
277: }
278:
279: public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
280: HttpPrincipal httpPrincipal, java.lang.String languageId)
281: throws com.liferay.portal.SystemException {
282: try {
283: Object paramObj0 = languageId;
284:
285: if (languageId == null) {
286: paramObj0 = new NullWrapper("java.lang.String");
287: }
288:
289: MethodWrapper methodWrapper = new MethodWrapper(
290: TagsAssetServiceUtil.class.getName(),
291: "getAssetTypes", new Object[] { paramObj0 });
292:
293: Object returnObj = null;
294:
295: try {
296: returnObj = TunnelUtil.invoke(httpPrincipal,
297: methodWrapper);
298: } catch (Exception e) {
299: throw new com.liferay.portal.SystemException(e);
300: }
301:
302: return (com.liferay.portlet.tags.model.TagsAssetType[]) returnObj;
303: } catch (com.liferay.portal.SystemException se) {
304: _log.error(se, se);
305:
306: throw se;
307: }
308: }
309:
310: public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
311: HttpPrincipal httpPrincipal, long companyId, int begin,
312: int end, java.lang.String languageId)
313: throws com.liferay.portal.SystemException,
314: com.liferay.portal.PortalException {
315: try {
316: Object paramObj0 = new LongWrapper(companyId);
317:
318: Object paramObj1 = new IntegerWrapper(begin);
319:
320: Object paramObj2 = new IntegerWrapper(end);
321:
322: Object paramObj3 = languageId;
323:
324: if (languageId == null) {
325: paramObj3 = new NullWrapper("java.lang.String");
326: }
327:
328: MethodWrapper methodWrapper = new MethodWrapper(
329: TagsAssetServiceUtil.class.getName(),
330: "getCompanyAssetDisplays",
331: new Object[] { paramObj0, paramObj1, paramObj2,
332: paramObj3 });
333:
334: Object returnObj = null;
335:
336: try {
337: returnObj = TunnelUtil.invoke(httpPrincipal,
338: methodWrapper);
339: } catch (Exception e) {
340: if (e instanceof com.liferay.portal.SystemException) {
341: throw (com.liferay.portal.SystemException) e;
342: }
343:
344: if (e instanceof com.liferay.portal.PortalException) {
345: throw (com.liferay.portal.PortalException) e;
346: }
347:
348: throw new com.liferay.portal.SystemException(e);
349: }
350:
351: return (com.liferay.portlet.tags.model.TagsAssetDisplay[]) returnObj;
352: } catch (com.liferay.portal.SystemException se) {
353: _log.error(se, se);
354:
355: throw se;
356: }
357: }
358:
359: public static java.util.List getCompanyAssets(
360: HttpPrincipal httpPrincipal, long companyId, int begin,
361: int end) throws com.liferay.portal.SystemException {
362: try {
363: Object paramObj0 = new LongWrapper(companyId);
364:
365: Object paramObj1 = new IntegerWrapper(begin);
366:
367: Object paramObj2 = new IntegerWrapper(end);
368:
369: MethodWrapper methodWrapper = new MethodWrapper(
370: TagsAssetServiceUtil.class.getName(),
371: "getCompanyAssets", new Object[] { paramObj0,
372: paramObj1, paramObj2 });
373:
374: Object returnObj = null;
375:
376: try {
377: returnObj = TunnelUtil.invoke(httpPrincipal,
378: methodWrapper);
379: } catch (Exception e) {
380: if (e instanceof com.liferay.portal.SystemException) {
381: throw (com.liferay.portal.SystemException) e;
382: }
383:
384: throw new com.liferay.portal.SystemException(e);
385: }
386:
387: return (java.util.List) returnObj;
388: } catch (com.liferay.portal.SystemException se) {
389: _log.error(se, se);
390:
391: throw se;
392: }
393: }
394:
395: public static int getCompanyAssetsCount(
396: HttpPrincipal httpPrincipal, long companyId)
397: throws com.liferay.portal.SystemException {
398: try {
399: Object paramObj0 = new LongWrapper(companyId);
400:
401: MethodWrapper methodWrapper = new MethodWrapper(
402: TagsAssetServiceUtil.class.getName(),
403: "getCompanyAssetsCount", new Object[] { paramObj0 });
404:
405: Object returnObj = null;
406:
407: try {
408: returnObj = TunnelUtil.invoke(httpPrincipal,
409: methodWrapper);
410: } catch (Exception e) {
411: if (e instanceof com.liferay.portal.SystemException) {
412: throw (com.liferay.portal.SystemException) e;
413: }
414:
415: throw new com.liferay.portal.SystemException(e);
416: }
417:
418: return ((Integer) returnObj).intValue();
419: } catch (com.liferay.portal.SystemException se) {
420: _log.error(se, se);
421:
422: throw se;
423: }
424: }
425:
426: public static java.lang.String getCompanyAssetsRSS(
427: HttpPrincipal httpPrincipal, long companyId, int max,
428: java.lang.String type, double version,
429: java.lang.String displayStyle, java.lang.String feedURL,
430: java.lang.String entryURL)
431: throws com.liferay.portal.SystemException,
432: com.liferay.portal.PortalException {
433: try {
434: Object paramObj0 = new LongWrapper(companyId);
435:
436: Object paramObj1 = new IntegerWrapper(max);
437:
438: Object paramObj2 = type;
439:
440: if (type == null) {
441: paramObj2 = new NullWrapper("java.lang.String");
442: }
443:
444: Object paramObj3 = new DoubleWrapper(version);
445:
446: Object paramObj4 = displayStyle;
447:
448: if (displayStyle == null) {
449: paramObj4 = new NullWrapper("java.lang.String");
450: }
451:
452: Object paramObj5 = feedURL;
453:
454: if (feedURL == null) {
455: paramObj5 = new NullWrapper("java.lang.String");
456: }
457:
458: Object paramObj6 = entryURL;
459:
460: if (entryURL == null) {
461: paramObj6 = new NullWrapper("java.lang.String");
462: }
463:
464: MethodWrapper methodWrapper = new MethodWrapper(
465: TagsAssetServiceUtil.class.getName(),
466: "getCompanyAssetsRSS", new Object[] { paramObj0,
467: paramObj1, paramObj2, paramObj3, paramObj4,
468: paramObj5, paramObj6 });
469:
470: Object returnObj = null;
471:
472: try {
473: returnObj = TunnelUtil.invoke(httpPrincipal,
474: methodWrapper);
475: } catch (Exception e) {
476: if (e instanceof com.liferay.portal.SystemException) {
477: throw (com.liferay.portal.SystemException) e;
478: }
479:
480: if (e instanceof com.liferay.portal.PortalException) {
481: throw (com.liferay.portal.PortalException) e;
482: }
483:
484: throw new com.liferay.portal.SystemException(e);
485: }
486:
487: return (java.lang.String) returnObj;
488: } catch (com.liferay.portal.SystemException se) {
489: _log.error(se, se);
490:
491: throw se;
492: }
493: }
494:
495: public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
496: HttpPrincipal httpPrincipal, java.lang.String className,
497: long classPK) throws com.liferay.portal.SystemException,
498: com.liferay.portal.PortalException {
499: try {
500: Object paramObj0 = className;
501:
502: if (className == null) {
503: paramObj0 = new NullWrapper("java.lang.String");
504: }
505:
506: Object paramObj1 = new LongWrapper(classPK);
507:
508: MethodWrapper methodWrapper = new MethodWrapper(
509: TagsAssetServiceUtil.class.getName(),
510: "incrementViewCounter", new Object[] { paramObj0,
511: paramObj1 });
512:
513: Object returnObj = null;
514:
515: try {
516: returnObj = TunnelUtil.invoke(httpPrincipal,
517: methodWrapper);
518: } catch (Exception e) {
519: if (e instanceof com.liferay.portal.SystemException) {
520: throw (com.liferay.portal.SystemException) e;
521: }
522:
523: if (e instanceof com.liferay.portal.PortalException) {
524: throw (com.liferay.portal.PortalException) e;
525: }
526:
527: throw new com.liferay.portal.SystemException(e);
528: }
529:
530: return (com.liferay.portlet.tags.model.TagsAsset) returnObj;
531: } catch (com.liferay.portal.SystemException se) {
532: _log.error(se, se);
533:
534: throw se;
535: }
536: }
537:
538: public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
539: HttpPrincipal httpPrincipal, long companyId,
540: java.lang.String portletId, java.lang.String keywords,
541: java.lang.String languageId, int begin, int end)
542: throws com.liferay.portal.SystemException,
543: com.liferay.portal.PortalException {
544: try {
545: Object paramObj0 = new LongWrapper(companyId);
546:
547: Object paramObj1 = portletId;
548:
549: if (portletId == null) {
550: paramObj1 = new NullWrapper("java.lang.String");
551: }
552:
553: Object paramObj2 = keywords;
554:
555: if (keywords == null) {
556: paramObj2 = new NullWrapper("java.lang.String");
557: }
558:
559: Object paramObj3 = languageId;
560:
561: if (languageId == null) {
562: paramObj3 = new NullWrapper("java.lang.String");
563: }
564:
565: Object paramObj4 = new IntegerWrapper(begin);
566:
567: Object paramObj5 = new IntegerWrapper(end);
568:
569: MethodWrapper methodWrapper = new MethodWrapper(
570: TagsAssetServiceUtil.class.getName(),
571: "searchAssetDisplays", new Object[] { paramObj0,
572: paramObj1, paramObj2, paramObj3, paramObj4,
573: paramObj5 });
574:
575: Object returnObj = null;
576:
577: try {
578: returnObj = TunnelUtil.invoke(httpPrincipal,
579: methodWrapper);
580: } catch (Exception e) {
581: if (e instanceof com.liferay.portal.SystemException) {
582: throw (com.liferay.portal.SystemException) e;
583: }
584:
585: if (e instanceof com.liferay.portal.PortalException) {
586: throw (com.liferay.portal.PortalException) e;
587: }
588:
589: throw new com.liferay.portal.SystemException(e);
590: }
591:
592: return (com.liferay.portlet.tags.model.TagsAssetDisplay[]) returnObj;
593: } catch (com.liferay.portal.SystemException se) {
594: _log.error(se, se);
595:
596: throw se;
597: }
598: }
599:
600: public static int searchAssetDisplaysCount(
601: HttpPrincipal httpPrincipal, long companyId,
602: java.lang.String portletId, java.lang.String keywords,
603: java.lang.String languageId)
604: throws com.liferay.portal.SystemException {
605: try {
606: Object paramObj0 = new LongWrapper(companyId);
607:
608: Object paramObj1 = portletId;
609:
610: if (portletId == null) {
611: paramObj1 = new NullWrapper("java.lang.String");
612: }
613:
614: Object paramObj2 = keywords;
615:
616: if (keywords == null) {
617: paramObj2 = new NullWrapper("java.lang.String");
618: }
619:
620: Object paramObj3 = languageId;
621:
622: if (languageId == null) {
623: paramObj3 = new NullWrapper("java.lang.String");
624: }
625:
626: MethodWrapper methodWrapper = new MethodWrapper(
627: TagsAssetServiceUtil.class.getName(),
628: "searchAssetDisplaysCount",
629: new Object[] { paramObj0, paramObj1, paramObj2,
630: paramObj3 });
631:
632: Object returnObj = null;
633:
634: try {
635: returnObj = TunnelUtil.invoke(httpPrincipal,
636: methodWrapper);
637: } catch (Exception e) {
638: if (e instanceof com.liferay.portal.SystemException) {
639: throw (com.liferay.portal.SystemException) e;
640: }
641:
642: throw new com.liferay.portal.SystemException(e);
643: }
644:
645: return ((Integer) returnObj).intValue();
646: } catch (com.liferay.portal.SystemException se) {
647: _log.error(se, se);
648:
649: throw se;
650: }
651: }
652:
653: public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
654: HttpPrincipal httpPrincipal, long groupId,
655: java.lang.String className, long classPK,
656: java.lang.String[] entryNames, java.util.Date startDate,
657: java.util.Date endDate, java.util.Date publishDate,
658: java.util.Date expirationDate, java.lang.String mimeType,
659: java.lang.String title, java.lang.String description,
660: java.lang.String summary, java.lang.String url, int height,
661: int width, java.lang.Integer priority)
662: throws com.liferay.portal.SystemException,
663: com.liferay.portal.PortalException {
664: try {
665: Object paramObj0 = new LongWrapper(groupId);
666:
667: Object paramObj1 = className;
668:
669: if (className == null) {
670: paramObj1 = new NullWrapper("java.lang.String");
671: }
672:
673: Object paramObj2 = new LongWrapper(classPK);
674:
675: Object paramObj3 = entryNames;
676:
677: if (entryNames == null) {
678: paramObj3 = new NullWrapper("[Ljava.lang.String;");
679: }
680:
681: Object paramObj4 = startDate;
682:
683: if (startDate == null) {
684: paramObj4 = new NullWrapper("java.util.Date");
685: }
686:
687: Object paramObj5 = endDate;
688:
689: if (endDate == null) {
690: paramObj5 = new NullWrapper("java.util.Date");
691: }
692:
693: Object paramObj6 = publishDate;
694:
695: if (publishDate == null) {
696: paramObj6 = new NullWrapper("java.util.Date");
697: }
698:
699: Object paramObj7 = expirationDate;
700:
701: if (expirationDate == null) {
702: paramObj7 = new NullWrapper("java.util.Date");
703: }
704:
705: Object paramObj8 = mimeType;
706:
707: if (mimeType == null) {
708: paramObj8 = new NullWrapper("java.lang.String");
709: }
710:
711: Object paramObj9 = title;
712:
713: if (title == null) {
714: paramObj9 = new NullWrapper("java.lang.String");
715: }
716:
717: Object paramObj10 = description;
718:
719: if (description == null) {
720: paramObj10 = new NullWrapper("java.lang.String");
721: }
722:
723: Object paramObj11 = summary;
724:
725: if (summary == null) {
726: paramObj11 = new NullWrapper("java.lang.String");
727: }
728:
729: Object paramObj12 = url;
730:
731: if (url == null) {
732: paramObj12 = new NullWrapper("java.lang.String");
733: }
734:
735: Object paramObj13 = new IntegerWrapper(height);
736:
737: Object paramObj14 = new IntegerWrapper(width);
738:
739: Object paramObj15 = priority;
740:
741: if (priority == null) {
742: paramObj15 = new NullWrapper("java.lang.Integer");
743: }
744:
745: MethodWrapper methodWrapper = new MethodWrapper(
746: TagsAssetServiceUtil.class.getName(),
747: "updateAsset", new Object[] { paramObj0, paramObj1,
748: paramObj2, paramObj3, paramObj4, paramObj5,
749: paramObj6, paramObj7, paramObj8, paramObj9,
750: paramObj10, paramObj11, paramObj12,
751: paramObj13, paramObj14, paramObj15 });
752:
753: Object returnObj = null;
754:
755: try {
756: returnObj = TunnelUtil.invoke(httpPrincipal,
757: methodWrapper);
758: } catch (Exception e) {
759: if (e instanceof com.liferay.portal.SystemException) {
760: throw (com.liferay.portal.SystemException) e;
761: }
762:
763: if (e instanceof com.liferay.portal.PortalException) {
764: throw (com.liferay.portal.PortalException) e;
765: }
766:
767: throw new com.liferay.portal.SystemException(e);
768: }
769:
770: return (com.liferay.portlet.tags.model.TagsAsset) returnObj;
771: } catch (com.liferay.portal.SystemException se) {
772: _log.error(se, se);
773:
774: throw se;
775: }
776: }
777:
778: private static Log _log = LogFactoryUtil
779: .getLog(TagsAssetServiceHttp.class);
780: }
|