1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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  /**
39   * <a href="TagsAssetServiceHttp.java.html"><b><i>View Source</i></b></a>
40   *
41   * <p>
42   * ServiceBuilder generated this class. Modifications in this class will be
43   * overwritten the next time is generated.
44   * </p>
45   *
46   * <p>
47   * This class provides a HTTP utility for the
48   * <code>com.liferay.portlet.tags.service.TagsAssetServiceUtil</code> service
49   * utility. The static methods of this class calls the same methods of the
50   * service utility. However, the signatures are different because it requires an
51   * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
52   * parameter.
53   * </p>
54   *
55   * <p>
56   * The benefits of using the HTTP utility is that it is fast and allows for
57   * tunneling without the cost of serializing to text. The drawback is that it
58   * only works with Java.
59   * </p>
60   *
61   * <p>
62   * Set the property <code>tunnel.servlet.hosts.allowed</code> in
63   * portal.properties to configure security.
64   * </p>
65   *
66   * <p>
67   * The HTTP utility is only generated for remote services.
68   * </p>
69   *
70   * @author Brian Wing Shun Chan
71   *
72   * @see com.liferay.portal.security.auth.HttpPrincipal
73   * @see com.liferay.portlet.tags.service.TagsAssetServiceUtil
74   * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
75   *
76   */
77  public class TagsAssetServiceHttp {
78      public static void deleteAsset(HttpPrincipal httpPrincipal, long assetId)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portal.PortalException {
81          try {
82              Object paramObj0 = new LongWrapper(assetId);
83  
84              MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
85                      "deleteAsset", new Object[] { paramObj0 });
86  
87              try {
88                  TunnelUtil.invoke(httpPrincipal, methodWrapper);
89              }
90              catch (Exception e) {
91                  if (e instanceof com.liferay.portal.SystemException) {
92                      throw (com.liferay.portal.SystemException)e;
93                  }
94  
95                  if (e instanceof com.liferay.portal.PortalException) {
96                      throw (com.liferay.portal.PortalException)e;
97                  }
98  
99                  throw new com.liferay.portal.SystemException(e);
100             }
101         }
102         catch (com.liferay.portal.SystemException se) {
103             _log.error(se, se);
104 
105             throw se;
106         }
107     }
108 
109     public static com.liferay.portlet.tags.model.TagsAsset getAsset(
110         HttpPrincipal httpPrincipal, long assetId)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portal.PortalException {
113         try {
114             Object paramObj0 = new LongWrapper(assetId);
115 
116             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
117                     "getAsset", new Object[] { paramObj0 });
118 
119             Object returnObj = null;
120 
121             try {
122                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
123             }
124             catch (Exception e) {
125                 if (e instanceof com.liferay.portal.SystemException) {
126                     throw (com.liferay.portal.SystemException)e;
127                 }
128 
129                 if (e instanceof com.liferay.portal.PortalException) {
130                     throw (com.liferay.portal.PortalException)e;
131                 }
132 
133                 throw new com.liferay.portal.SystemException(e);
134             }
135 
136             return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
137         }
138         catch (com.liferay.portal.SystemException se) {
139             _log.error(se, se);
140 
141             throw se;
142         }
143     }
144 
145     public static java.lang.String getAssetsRSS(HttpPrincipal httpPrincipal,
146         long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
147         boolean andOperator, java.lang.String orderByCol1,
148         java.lang.String orderByCol2, java.lang.String orderByType1,
149         java.lang.String orderByType2, boolean excludeZeroViewCount,
150         java.util.Date publishDate, java.util.Date expirationDate, int max,
151         java.lang.String type, double version, java.lang.String displayStyle,
152         java.lang.String feedURL, java.lang.String entryURL)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portal.PortalException {
155         try {
156             Object paramObj0 = new LongWrapper(groupId);
157 
158             Object paramObj1 = classNameIds;
159 
160             if (classNameIds == null) {
161                 paramObj1 = new NullWrapper("[J");
162             }
163 
164             Object paramObj2 = entryIds;
165 
166             if (entryIds == null) {
167                 paramObj2 = new NullWrapper("[J");
168             }
169 
170             Object paramObj3 = notEntryIds;
171 
172             if (notEntryIds == null) {
173                 paramObj3 = new NullWrapper("[J");
174             }
175 
176             Object paramObj4 = new BooleanWrapper(andOperator);
177 
178             Object paramObj5 = orderByCol1;
179 
180             if (orderByCol1 == null) {
181                 paramObj5 = new NullWrapper("java.lang.String");
182             }
183 
184             Object paramObj6 = orderByCol2;
185 
186             if (orderByCol2 == null) {
187                 paramObj6 = new NullWrapper("java.lang.String");
188             }
189 
190             Object paramObj7 = orderByType1;
191 
192             if (orderByType1 == null) {
193                 paramObj7 = new NullWrapper("java.lang.String");
194             }
195 
196             Object paramObj8 = orderByType2;
197 
198             if (orderByType2 == null) {
199                 paramObj8 = new NullWrapper("java.lang.String");
200             }
201 
202             Object paramObj9 = new BooleanWrapper(excludeZeroViewCount);
203 
204             Object paramObj10 = publishDate;
205 
206             if (publishDate == null) {
207                 paramObj10 = new NullWrapper("java.util.Date");
208             }
209 
210             Object paramObj11 = expirationDate;
211 
212             if (expirationDate == null) {
213                 paramObj11 = new NullWrapper("java.util.Date");
214             }
215 
216             Object paramObj12 = new IntegerWrapper(max);
217 
218             Object paramObj13 = type;
219 
220             if (type == null) {
221                 paramObj13 = new NullWrapper("java.lang.String");
222             }
223 
224             Object paramObj14 = new DoubleWrapper(version);
225 
226             Object paramObj15 = displayStyle;
227 
228             if (displayStyle == null) {
229                 paramObj15 = new NullWrapper("java.lang.String");
230             }
231 
232             Object paramObj16 = feedURL;
233 
234             if (feedURL == null) {
235                 paramObj16 = new NullWrapper("java.lang.String");
236             }
237 
238             Object paramObj17 = entryURL;
239 
240             if (entryURL == null) {
241                 paramObj17 = new NullWrapper("java.lang.String");
242             }
243 
244             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
245                     "getAssetsRSS",
246                     new Object[] {
247                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
248                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
249                         paramObj10, paramObj11, paramObj12, paramObj13,
250                         paramObj14, paramObj15, paramObj16, paramObj17
251                     });
252 
253             Object returnObj = null;
254 
255             try {
256                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
257             }
258             catch (Exception e) {
259                 if (e instanceof com.liferay.portal.SystemException) {
260                     throw (com.liferay.portal.SystemException)e;
261                 }
262 
263                 if (e instanceof com.liferay.portal.PortalException) {
264                     throw (com.liferay.portal.PortalException)e;
265                 }
266 
267                 throw new com.liferay.portal.SystemException(e);
268             }
269 
270             return (java.lang.String)returnObj;
271         }
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(TagsAssetServiceUtil.class.getName(),
290                     "getAssetTypes", new Object[] { paramObj0 });
291 
292             Object returnObj = null;
293 
294             try {
295                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
296             }
297             catch (Exception e) {
298                 throw new com.liferay.portal.SystemException(e);
299             }
300 
301             return (com.liferay.portlet.tags.model.TagsAssetType[])returnObj;
302         }
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, int end,
312         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(TagsAssetServiceUtil.class.getName(),
329                     "getCompanyAssetDisplays",
330                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
331 
332             Object returnObj = null;
333 
334             try {
335                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
336             }
337             catch (Exception e) {
338                 if (e instanceof com.liferay.portal.SystemException) {
339                     throw (com.liferay.portal.SystemException)e;
340                 }
341 
342                 if (e instanceof com.liferay.portal.PortalException) {
343                     throw (com.liferay.portal.PortalException)e;
344                 }
345 
346                 throw new com.liferay.portal.SystemException(e);
347             }
348 
349             return (com.liferay.portlet.tags.model.TagsAssetDisplay[])returnObj;
350         }
351         catch (com.liferay.portal.SystemException se) {
352             _log.error(se, se);
353 
354             throw se;
355         }
356     }
357 
358     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
359         HttpPrincipal httpPrincipal, long companyId, int begin, int end)
360         throws com.liferay.portal.SystemException {
361         try {
362             Object paramObj0 = new LongWrapper(companyId);
363 
364             Object paramObj1 = new IntegerWrapper(begin);
365 
366             Object paramObj2 = new IntegerWrapper(end);
367 
368             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
369                     "getCompanyAssets",
370                     new Object[] { paramObj0, paramObj1, paramObj2 });
371 
372             Object returnObj = null;
373 
374             try {
375                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
376             }
377             catch (Exception e) {
378                 if (e instanceof com.liferay.portal.SystemException) {
379                     throw (com.liferay.portal.SystemException)e;
380                 }
381 
382                 throw new com.liferay.portal.SystemException(e);
383             }
384 
385             return (java.util.List<com.liferay.portlet.tags.model.TagsAsset>)returnObj;
386         }
387         catch (com.liferay.portal.SystemException se) {
388             _log.error(se, se);
389 
390             throw se;
391         }
392     }
393 
394     public static int getCompanyAssetsCount(HttpPrincipal httpPrincipal,
395         long companyId) throws com.liferay.portal.SystemException {
396         try {
397             Object paramObj0 = new LongWrapper(companyId);
398 
399             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
400                     "getCompanyAssetsCount", new Object[] { paramObj0 });
401 
402             Object returnObj = null;
403 
404             try {
405                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
406             }
407             catch (Exception e) {
408                 if (e instanceof com.liferay.portal.SystemException) {
409                     throw (com.liferay.portal.SystemException)e;
410                 }
411 
412                 throw new com.liferay.portal.SystemException(e);
413             }
414 
415             return ((Integer)returnObj).intValue();
416         }
417         catch (com.liferay.portal.SystemException se) {
418             _log.error(se, se);
419 
420             throw se;
421         }
422     }
423 
424     public static java.lang.String getCompanyAssetsRSS(
425         HttpPrincipal httpPrincipal, long companyId, int max,
426         java.lang.String type, double version, java.lang.String displayStyle,
427         java.lang.String feedURL, java.lang.String entryURL)
428         throws com.liferay.portal.SystemException,
429             com.liferay.portal.PortalException {
430         try {
431             Object paramObj0 = new LongWrapper(companyId);
432 
433             Object paramObj1 = new IntegerWrapper(max);
434 
435             Object paramObj2 = type;
436 
437             if (type == null) {
438                 paramObj2 = new NullWrapper("java.lang.String");
439             }
440 
441             Object paramObj3 = new DoubleWrapper(version);
442 
443             Object paramObj4 = displayStyle;
444 
445             if (displayStyle == null) {
446                 paramObj4 = new NullWrapper("java.lang.String");
447             }
448 
449             Object paramObj5 = feedURL;
450 
451             if (feedURL == null) {
452                 paramObj5 = new NullWrapper("java.lang.String");
453             }
454 
455             Object paramObj6 = entryURL;
456 
457             if (entryURL == null) {
458                 paramObj6 = new NullWrapper("java.lang.String");
459             }
460 
461             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
462                     "getCompanyAssetsRSS",
463                     new Object[] {
464                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
465                         paramObj5, paramObj6
466                     });
467 
468             Object returnObj = null;
469 
470             try {
471                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
472             }
473             catch (Exception e) {
474                 if (e instanceof com.liferay.portal.SystemException) {
475                     throw (com.liferay.portal.SystemException)e;
476                 }
477 
478                 if (e instanceof com.liferay.portal.PortalException) {
479                     throw (com.liferay.portal.PortalException)e;
480                 }
481 
482                 throw new com.liferay.portal.SystemException(e);
483             }
484 
485             return (java.lang.String)returnObj;
486         }
487         catch (com.liferay.portal.SystemException se) {
488             _log.error(se, se);
489 
490             throw se;
491         }
492     }
493 
494     public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
495         HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
496         throws com.liferay.portal.SystemException,
497             com.liferay.portal.PortalException {
498         try {
499             Object paramObj0 = className;
500 
501             if (className == null) {
502                 paramObj0 = new NullWrapper("java.lang.String");
503             }
504 
505             Object paramObj1 = new LongWrapper(classPK);
506 
507             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
508                     "incrementViewCounter",
509                     new Object[] { paramObj0, paramObj1 });
510 
511             Object returnObj = null;
512 
513             try {
514                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
515             }
516             catch (Exception e) {
517                 if (e instanceof com.liferay.portal.SystemException) {
518                     throw (com.liferay.portal.SystemException)e;
519                 }
520 
521                 if (e instanceof com.liferay.portal.PortalException) {
522                     throw (com.liferay.portal.PortalException)e;
523                 }
524 
525                 throw new com.liferay.portal.SystemException(e);
526             }
527 
528             return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
529         }
530         catch (com.liferay.portal.SystemException se) {
531             _log.error(se, se);
532 
533             throw se;
534         }
535     }
536 
537     public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
538         HttpPrincipal httpPrincipal, long companyId,
539         java.lang.String portletId, java.lang.String keywords,
540         java.lang.String languageId, int begin, int end)
541         throws com.liferay.portal.SystemException,
542             com.liferay.portal.PortalException {
543         try {
544             Object paramObj0 = new LongWrapper(companyId);
545 
546             Object paramObj1 = portletId;
547 
548             if (portletId == null) {
549                 paramObj1 = new NullWrapper("java.lang.String");
550             }
551 
552             Object paramObj2 = keywords;
553 
554             if (keywords == null) {
555                 paramObj2 = new NullWrapper("java.lang.String");
556             }
557 
558             Object paramObj3 = languageId;
559 
560             if (languageId == null) {
561                 paramObj3 = new NullWrapper("java.lang.String");
562             }
563 
564             Object paramObj4 = new IntegerWrapper(begin);
565 
566             Object paramObj5 = new IntegerWrapper(end);
567 
568             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
569                     "searchAssetDisplays",
570                     new Object[] {
571                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
572                         paramObj5
573                     });
574 
575             Object returnObj = null;
576 
577             try {
578                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
579             }
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         }
594         catch (com.liferay.portal.SystemException se) {
595             _log.error(se, se);
596 
597             throw se;
598         }
599     }
600 
601     public static int searchAssetDisplaysCount(HttpPrincipal httpPrincipal,
602         long companyId, java.lang.String portletId, java.lang.String keywords,
603         java.lang.String languageId) throws com.liferay.portal.SystemException {
604         try {
605             Object paramObj0 = new LongWrapper(companyId);
606 
607             Object paramObj1 = portletId;
608 
609             if (portletId == null) {
610                 paramObj1 = new NullWrapper("java.lang.String");
611             }
612 
613             Object paramObj2 = keywords;
614 
615             if (keywords == null) {
616                 paramObj2 = new NullWrapper("java.lang.String");
617             }
618 
619             Object paramObj3 = languageId;
620 
621             if (languageId == null) {
622                 paramObj3 = new NullWrapper("java.lang.String");
623             }
624 
625             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
626                     "searchAssetDisplaysCount",
627                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
628 
629             Object returnObj = null;
630 
631             try {
632                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
633             }
634             catch (Exception e) {
635                 if (e instanceof com.liferay.portal.SystemException) {
636                     throw (com.liferay.portal.SystemException)e;
637                 }
638 
639                 throw new com.liferay.portal.SystemException(e);
640             }
641 
642             return ((Integer)returnObj).intValue();
643         }
644         catch (com.liferay.portal.SystemException se) {
645             _log.error(se, se);
646 
647             throw se;
648         }
649     }
650 
651     public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
652         HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
653         long classPK, java.lang.String[] entryNames, java.util.Date startDate,
654         java.util.Date endDate, java.util.Date publishDate,
655         java.util.Date expirationDate, java.lang.String mimeType,
656         java.lang.String title, java.lang.String description,
657         java.lang.String summary, java.lang.String url, int height, int width,
658         java.lang.Integer priority)
659         throws com.liferay.portal.SystemException,
660             com.liferay.portal.PortalException {
661         try {
662             Object paramObj0 = new LongWrapper(groupId);
663 
664             Object paramObj1 = className;
665 
666             if (className == null) {
667                 paramObj1 = new NullWrapper("java.lang.String");
668             }
669 
670             Object paramObj2 = new LongWrapper(classPK);
671 
672             Object paramObj3 = entryNames;
673 
674             if (entryNames == null) {
675                 paramObj3 = new NullWrapper("[Ljava.lang.String;");
676             }
677 
678             Object paramObj4 = startDate;
679 
680             if (startDate == null) {
681                 paramObj4 = new NullWrapper("java.util.Date");
682             }
683 
684             Object paramObj5 = endDate;
685 
686             if (endDate == null) {
687                 paramObj5 = new NullWrapper("java.util.Date");
688             }
689 
690             Object paramObj6 = publishDate;
691 
692             if (publishDate == null) {
693                 paramObj6 = new NullWrapper("java.util.Date");
694             }
695 
696             Object paramObj7 = expirationDate;
697 
698             if (expirationDate == null) {
699                 paramObj7 = new NullWrapper("java.util.Date");
700             }
701 
702             Object paramObj8 = mimeType;
703 
704             if (mimeType == null) {
705                 paramObj8 = new NullWrapper("java.lang.String");
706             }
707 
708             Object paramObj9 = title;
709 
710             if (title == null) {
711                 paramObj9 = new NullWrapper("java.lang.String");
712             }
713 
714             Object paramObj10 = description;
715 
716             if (description == null) {
717                 paramObj10 = new NullWrapper("java.lang.String");
718             }
719 
720             Object paramObj11 = summary;
721 
722             if (summary == null) {
723                 paramObj11 = new NullWrapper("java.lang.String");
724             }
725 
726             Object paramObj12 = url;
727 
728             if (url == null) {
729                 paramObj12 = new NullWrapper("java.lang.String");
730             }
731 
732             Object paramObj13 = new IntegerWrapper(height);
733 
734             Object paramObj14 = new IntegerWrapper(width);
735 
736             Object paramObj15 = priority;
737 
738             if (priority == null) {
739                 paramObj15 = new NullWrapper("java.lang.Integer");
740             }
741 
742             MethodWrapper methodWrapper = new MethodWrapper(TagsAssetServiceUtil.class.getName(),
743                     "updateAsset",
744                     new Object[] {
745                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
746                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
747                         paramObj10, paramObj11, paramObj12, paramObj13,
748                         paramObj14, paramObj15
749                     });
750 
751             Object returnObj = null;
752 
753             try {
754                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
755             }
756             catch (Exception e) {
757                 if (e instanceof com.liferay.portal.SystemException) {
758                     throw (com.liferay.portal.SystemException)e;
759                 }
760 
761                 if (e instanceof com.liferay.portal.PortalException) {
762                     throw (com.liferay.portal.PortalException)e;
763                 }
764 
765                 throw new com.liferay.portal.SystemException(e);
766             }
767 
768             return (com.liferay.portlet.tags.model.TagsAsset)returnObj;
769         }
770         catch (com.liferay.portal.SystemException se) {
771             _log.error(se, se);
772 
773             throw se;
774         }
775     }
776 
777     private static Log _log = LogFactoryUtil.getLog(TagsAssetServiceHttp.class);
778 }