1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.service.http;
21  
22  import com.liferay.portal.kernel.log.Log;
23  import com.liferay.portal.kernel.log.LogFactoryUtil;
24  import com.liferay.portal.kernel.util.BooleanWrapper;
25  import com.liferay.portal.kernel.util.DoubleWrapper;
26  import com.liferay.portal.kernel.util.IntegerWrapper;
27  import com.liferay.portal.kernel.util.LongWrapper;
28  import com.liferay.portal.kernel.util.MethodWrapper;
29  import com.liferay.portal.kernel.util.NullWrapper;
30  import com.liferay.portal.security.auth.HttpPrincipal;
31  import com.liferay.portal.service.http.TunnelUtil;
32  
33  import com.liferay.portlet.tags.service.TagsAssetServiceUtil;
34  
35  /**
36   * <a href="TagsAssetServiceHttp.java.html"><b><i>View Source</i></b></a>
37   *
38   * <p>
39   * ServiceBuilder generated this class. Modifications in this class will be
40   * overwritten the next time is generated.
41   * </p>
42   *
43   * <p>
44   * This class provides a HTTP utility for the
45   * <code>com.liferay.portlet.tags.service.TagsAssetServiceUtil</code> service
46   * utility. The static methods of this class calls the same methods of the
47   * service utility. However, the signatures are different because it requires an
48   * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
49   * parameter.
50   * </p>
51   *
52   * <p>
53   * The benefits of using the HTTP utility is that it is fast and allows for
54   * tunneling without the cost of serializing to text. The drawback is that it
55   * only works with Java.
56   * </p>
57   *
58   * <p>
59   * Set the property <code>tunnel.servlet.hosts.allowed</code> in
60   * portal.properties to configure security.
61   * </p>
62   *
63   * <p>
64   * The HTTP utility is only generated for remote services.
65   * </p>
66   *
67   * @author Brian Wing Shun Chan
68   *
69   * @see com.liferay.portal.security.auth.HttpPrincipal
70   * @see com.liferay.portlet.tags.service.TagsAssetServiceUtil
71   * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
72   *
73   */
74  public class TagsAssetServiceHttp {
75      public static void deleteAsset(HttpPrincipal httpPrincipal, long assetId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException {
78          try {
79              Object paramObj0 = new LongWrapper(assetId);
80  
81              MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
82                      "deleteAsset", new Object[] { paramObj0 });
83  
84              try {
85                  TunnelUtil.invoke(httpPrincipal, methodWrapper);
86              }
87              catch (Exception e) {
88                  if (e instanceof com.liferay.portal.PortalException) {
89                      throw (com.liferay.portal.PortalException)e;
90                  }
91  
92                  if (e instanceof com.liferay.portal.SystemException) {
93                      throw (com.liferay.portal.SystemException)e;
94                  }
95  
96                  throw new com.liferay.portal.SystemException(e);
97              }
98          }
99          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.PortalException,
109             com.liferay.portal.SystemException {
110         try {
111             Object paramObj0 = new LongWrapper(assetId);
112 
113             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
114                     "getAsset", new Object[] { paramObj0 });
115 
116             Object returnObj = null;
117 
118             try {
119                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
120             }
121             catch (Exception e) {
122                 if (e instanceof com.liferay.portal.PortalException) {
123                     throw (com.liferay.portal.PortalException)e;
124                 }
125 
126                 if (e instanceof com.liferay.portal.SystemException) {
127                     throw (com.liferay.portal.SystemException)e;
128                 }
129 
130                 throw new com.liferay.portal.SystemException(e);
131             }
132 
133             return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
134         }
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(HttpPrincipal httpPrincipal,
143         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
144         boolean andOperator, java.lang.String orderByCol1,
145         java.lang.String orderByCol2, java.lang.String orderByType1,
146         java.lang.String orderByType2, boolean excludeZeroViewCount,
147         java.util.Date publishDate, java.util.Date expirationDate, int max,
148         java.lang.String type, double version, java.lang.String displayStyle,
149         java.lang.String feedURL, java.lang.String entryURL)
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(max);
214 
215             Object paramObj13 = type;
216 
217             if (type == null) {
218                 paramObj13 = new NullWrapper("java.lang.String");
219             }
220 
221             Object paramObj14 = new DoubleWrapper(version);
222 
223             Object paramObj15 = displayStyle;
224 
225             if (displayStyle == null) {
226                 paramObj15 = new NullWrapper("java.lang.String");
227             }
228 
229             Object paramObj16 = feedURL;
230 
231             if (feedURL == null) {
232                 paramObj16 = new NullWrapper("java.lang.String");
233             }
234 
235             Object paramObj17 = entryURL;
236 
237             if (entryURL == null) {
238                 paramObj17 = new NullWrapper("java.lang.String");
239             }
240 
241             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
242                     "getAssetsRSS",
243                     new Object[] {
244                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
245                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
246                         paramObj10, paramObj11, paramObj12, paramObj13,
247                         paramObj14, paramObj15, paramObj16, paramObj17
248                     });
249 
250             Object returnObj = null;
251 
252             try {
253                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
254             }
255             catch (Exception e) {
256                 if (e instanceof com.liferay.portal.PortalException) {
257                     throw (com.liferay.portal.PortalException)e;
258                 }
259 
260                 if (e instanceof com.liferay.portal.SystemException) {
261                     throw (com.liferay.portal.SystemException)e;
262                 }
263 
264                 throw new com.liferay.portal.SystemException(e);
265             }
266 
267             return (java.lang.String)returnObj;
268         }
269         catch (com.liferay.portal.SystemException se) {
270             _log.error(se, se);
271 
272             throw se;
273         }
274     }
275 
276     public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
277         HttpPrincipal httpPrincipal, java.lang.String languageId)
278         throws com.liferay.portal.SystemException {
279         try {
280             Object paramObj0 = languageId;
281 
282             if (languageId == null) {
283                 paramObj0 = new NullWrapper("java.lang.String");
284             }
285 
286             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
287                     "getAssetTypes", new Object[] { paramObj0 });
288 
289             Object returnObj = null;
290 
291             try {
292                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
293             }
294             catch (Exception e) {
295                 throw new com.liferay.portal.SystemException(e);
296             }
297 
298             return (com.liferay.portlet.tags.model.TagsAssetType[])returnObj;
299         }
300         catch (com.liferay.portal.SystemException se) {
301             _log.error(se, se);
302 
303             throw se;
304         }
305     }
306 
307     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
308         HttpPrincipal httpPrincipal, long companyId, int start, int end,
309         java.lang.String languageId) throws com.liferay.portal.SystemException {
310         try {
311             Object paramObj0 = new LongWrapper(companyId);
312 
313             Object paramObj1 = new IntegerWrapper(start);
314 
315             Object paramObj2 = new IntegerWrapper(end);
316 
317             Object paramObj3 = languageId;
318 
319             if (languageId == null) {
320                 paramObj3 = new NullWrapper("java.lang.String");
321             }
322 
323             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
324                     "getCompanyAssetDisplays",
325                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
326 
327             Object returnObj = null;
328 
329             try {
330                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
331             }
332             catch (Exception e) {
333                 if (e instanceof com.liferay.portal.SystemException) {
334                     throw (com.liferay.portal.SystemException)e;
335                 }
336 
337                 throw new com.liferay.portal.SystemException(e);
338             }
339 
340             return (com.liferay.portlet.tags.model.TagsAssetDisplay[])returnObj;
341         }
342         catch (com.liferay.portal.SystemException se) {
343             _log.error(se, se);
344 
345             throw se;
346         }
347     }
348 
349     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
350         HttpPrincipal httpPrincipal, long companyId, int start, int end)
351         throws com.liferay.portal.SystemException {
352         try {
353             Object paramObj0 = new LongWrapper(companyId);
354 
355             Object paramObj1 = new IntegerWrapper(start);
356 
357             Object paramObj2 = new IntegerWrapper(end);
358 
359             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
360                     "getCompanyAssets",
361                     new Object[] { paramObj0, paramObj1, paramObj2 });
362 
363             Object returnObj = null;
364 
365             try {
366                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
367             }
368             catch (Exception e) {
369                 if (e instanceof com.liferay.portal.SystemException) {
370                     throw (com.liferay.portal.SystemException)e;
371                 }
372 
373                 throw new com.liferay.portal.SystemException(e);
374             }
375 
376             return (java.util.List<com.liferay.portlet.tags.model.TagsAsset>)returnObj;
377         }
378         catch (com.liferay.portal.SystemException se) {
379             _log.error(se, se);
380 
381             throw se;
382         }
383     }
384 
385     public static int getCompanyAssetsCount(HttpPrincipal httpPrincipal,
386         long companyId) throws com.liferay.portal.SystemException {
387         try {
388             Object paramObj0 = new LongWrapper(companyId);
389 
390             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
391                     "getCompanyAssetsCount", new Object[] { paramObj0 });
392 
393             Object returnObj = null;
394 
395             try {
396                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
397             }
398             catch (Exception e) {
399                 if (e instanceof com.liferay.portal.SystemException) {
400                     throw (com.liferay.portal.SystemException)e;
401                 }
402 
403                 throw new com.liferay.portal.SystemException(e);
404             }
405 
406             return ((Integer)returnObj).intValue();
407         }
408         catch (com.liferay.portal.SystemException se) {
409             _log.error(se, se);
410 
411             throw se;
412         }
413     }
414 
415     public static java.lang.String getCompanyAssetsRSS(
416         HttpPrincipal httpPrincipal, long companyId, int max,
417         java.lang.String type, double version, java.lang.String displayStyle,
418         java.lang.String feedURL, java.lang.String entryURL)
419         throws com.liferay.portal.PortalException,
420             com.liferay.portal.SystemException {
421         try {
422             Object paramObj0 = new LongWrapper(companyId);
423 
424             Object paramObj1 = new IntegerWrapper(max);
425 
426             Object paramObj2 = type;
427 
428             if (type == null) {
429                 paramObj2 = new NullWrapper("java.lang.String");
430             }
431 
432             Object paramObj3 = new DoubleWrapper(version);
433 
434             Object paramObj4 = displayStyle;
435 
436             if (displayStyle == null) {
437                 paramObj4 = new NullWrapper("java.lang.String");
438             }
439 
440             Object paramObj5 = feedURL;
441 
442             if (feedURL == null) {
443                 paramObj5 = new NullWrapper("java.lang.String");
444             }
445 
446             Object paramObj6 = entryURL;
447 
448             if (entryURL == null) {
449                 paramObj6 = new NullWrapper("java.lang.String");
450             }
451 
452             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
453                     "getCompanyAssetsRSS",
454                     new Object[] {
455                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
456                         paramObj5, paramObj6
457                     });
458 
459             Object returnObj = null;
460 
461             try {
462                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
463             }
464             catch (Exception e) {
465                 if (e instanceof com.liferay.portal.PortalException) {
466                     throw (com.liferay.portal.PortalException)e;
467                 }
468 
469                 if (e instanceof com.liferay.portal.SystemException) {
470                     throw (com.liferay.portal.SystemException)e;
471                 }
472 
473                 throw new com.liferay.portal.SystemException(e);
474             }
475 
476             return (java.lang.String)returnObj;
477         }
478         catch (com.liferay.portal.SystemException se) {
479             _log.error(se, se);
480 
481             throw se;
482         }
483     }
484 
485     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
486         HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
487         throws com.liferay.portal.SystemException {
488         try {
489             Object paramObj0 = className;
490 
491             if (className == null) {
492                 paramObj0 = new NullWrapper("java.lang.String");
493             }
494 
495             Object paramObj1 = new LongWrapper(classPK);
496 
497             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
498                     "incrementViewCounter",
499                     new Object[] { paramObj0, paramObj1 });
500 
501             Object returnObj = null;
502 
503             try {
504                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
505             }
506             catch (Exception e) {
507                 if (e instanceof com.liferay.portal.SystemException) {
508                     throw (com.liferay.portal.SystemException)e;
509                 }
510 
511                 throw new com.liferay.portal.SystemException(e);
512             }
513 
514             return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
515         }
516         catch (com.liferay.portal.SystemException se) {
517             _log.error(se, se);
518 
519             throw se;
520         }
521     }
522 
523     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
524         HttpPrincipal httpPrincipal, long companyId,
525         java.lang.String portletId, java.lang.String keywords,
526         java.lang.String languageId, int start, int end)
527         throws com.liferay.portal.SystemException {
528         try {
529             Object paramObj0 = new LongWrapper(companyId);
530 
531             Object paramObj1 = portletId;
532 
533             if (portletId == null) {
534                 paramObj1 = new NullWrapper("java.lang.String");
535             }
536 
537             Object paramObj2 = keywords;
538 
539             if (keywords == null) {
540                 paramObj2 = new NullWrapper("java.lang.String");
541             }
542 
543             Object paramObj3 = languageId;
544 
545             if (languageId == null) {
546                 paramObj3 = new NullWrapper("java.lang.String");
547             }
548 
549             Object paramObj4 = new IntegerWrapper(start);
550 
551             Object paramObj5 = new IntegerWrapper(end);
552 
553             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
554                     "searchAssetDisplays",
555                     new Object[] {
556                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
557                         paramObj5
558                     });
559 
560             Object returnObj = null;
561 
562             try {
563                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
564             }
565             catch (Exception e) {
566                 if (e instanceof com.liferay.portal.SystemException) {
567                     throw (com.liferay.portal.SystemException)e;
568                 }
569 
570                 throw new com.liferay.portal.SystemException(e);
571             }
572 
573             return (com.liferay.portlet.tags.model.TagsAssetDisplay[])returnObj;
574         }
575         catch (com.liferay.portal.SystemException se) {
576             _log.error(se, se);
577 
578             throw se;
579         }
580     }
581 
582     public static int searchAssetDisplaysCount(HttpPrincipal httpPrincipal,
583         long companyId, java.lang.String portletId, java.lang.String keywords,
584         java.lang.String languageId) throws com.liferay.portal.SystemException {
585         try {
586             Object paramObj0 = new LongWrapper(companyId);
587 
588             Object paramObj1 = portletId;
589 
590             if (portletId == null) {
591                 paramObj1 = new NullWrapper("java.lang.String");
592             }
593 
594             Object paramObj2 = keywords;
595 
596             if (keywords == null) {
597                 paramObj2 = new NullWrapper("java.lang.String");
598             }
599 
600             Object paramObj3 = languageId;
601 
602             if (languageId == null) {
603                 paramObj3 = new NullWrapper("java.lang.String");
604             }
605 
606             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
607                     "searchAssetDisplaysCount",
608                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
609 
610             Object returnObj = null;
611 
612             try {
613                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
614             }
615             catch (Exception e) {
616                 if (e instanceof com.liferay.portal.SystemException) {
617                     throw (com.liferay.portal.SystemException)e;
618                 }
619 
620                 throw new com.liferay.portal.SystemException(e);
621             }
622 
623             return ((Integer)returnObj).intValue();
624         }
625         catch (com.liferay.portal.SystemException se) {
626             _log.error(se, se);
627 
628             throw se;
629         }
630     }
631 
632     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
633         HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
634         long classPK, java.lang.String[] entryNames, java.util.Date startDate,
635         java.util.Date endDate, java.util.Date publishDate,
636         java.util.Date expirationDate, java.lang.String mimeType,
637         java.lang.String title, java.lang.String description,
638         java.lang.String summary, java.lang.String url, int height, int width,
639         java.lang.Integer priority)
640         throws com.liferay.portal.PortalException,
641             com.liferay.portal.SystemException {
642         try {
643             Object paramObj0 = new LongWrapper(groupId);
644 
645             Object paramObj1 = className;
646 
647             if (className == null) {
648                 paramObj1 = new NullWrapper("java.lang.String");
649             }
650 
651             Object paramObj2 = new LongWrapper(classPK);
652 
653             Object paramObj3 = entryNames;
654 
655             if (entryNames == null) {
656                 paramObj3 = new NullWrapper("[Ljava.lang.String;");
657             }
658 
659             Object paramObj4 = startDate;
660 
661             if (startDate == null) {
662                 paramObj4 = new NullWrapper("java.util.Date");
663             }
664 
665             Object paramObj5 = endDate;
666 
667             if (endDate == null) {
668                 paramObj5 = new NullWrapper("java.util.Date");
669             }
670 
671             Object paramObj6 = publishDate;
672 
673             if (publishDate == null) {
674                 paramObj6 = new NullWrapper("java.util.Date");
675             }
676 
677             Object paramObj7 = expirationDate;
678 
679             if (expirationDate == null) {
680                 paramObj7 = new NullWrapper("java.util.Date");
681             }
682 
683             Object paramObj8 = mimeType;
684 
685             if (mimeType == null) {
686                 paramObj8 = new NullWrapper("java.lang.String");
687             }
688 
689             Object paramObj9 = title;
690 
691             if (title == null) {
692                 paramObj9 = new NullWrapper("java.lang.String");
693             }
694 
695             Object paramObj10 = description;
696 
697             if (description == null) {
698                 paramObj10 = new NullWrapper("java.lang.String");
699             }
700 
701             Object paramObj11 = summary;
702 
703             if (summary == null) {
704                 paramObj11 = new NullWrapper("java.lang.String");
705             }
706 
707             Object paramObj12 = url;
708 
709             if (url == null) {
710                 paramObj12 = new NullWrapper("java.lang.String");
711             }
712 
713             Object paramObj13 = new IntegerWrapper(height);
714 
715             Object paramObj14 = new IntegerWrapper(width);
716 
717             Object paramObj15 = priority;
718 
719             if (priority == null) {
720                 paramObj15 = new NullWrapper("java.lang.Integer");
721             }
722 
723             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
724                     "updateAsset",
725                     new Object[] {
726                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
727                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
728                         paramObj10, paramObj11, paramObj12, paramObj13,
729                         paramObj14, paramObj15
730                     });
731 
732             Object returnObj = null;
733 
734             try {
735                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
736             }
737             catch (Exception e) {
738                 if (e instanceof com.liferay.portal.PortalException) {
739                     throw (com.liferay.portal.PortalException)e;
740                 }
741 
742                 if (e instanceof com.liferay.portal.SystemException) {
743                     throw (com.liferay.portal.SystemException)e;
744                 }
745 
746                 throw new com.liferay.portal.SystemException(e);
747             }
748 
749             return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
750         }
751         catch (com.liferay.portal.SystemException se) {
752             _log.error(se, se);
753 
754             throw se;
755         }
756     }
757 
758     private static Log _log = LogFactoryUtil.getLog(TagsAssetServiceHttp.class);
759 }