1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.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.asset.service.AssetEntryServiceUtil;
29  
30  /**
31   * <a href="AssetEntryServiceHttp.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class provides a HTTP utility for the
40   * {@link com.liferay.portlet.asset.service.AssetEntryServiceUtil} service utility. The
41   * static methods of this class calls the same methods of the service utility.
42   * However, the signatures are different because it requires an additional
43   * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
44   * </p>
45   *
46   * <p>
47   * The benefits of using the HTTP utility is that it is fast and allows for
48   * tunneling without the cost of serializing to text. The drawback is that it
49   * only works with Java.
50   * </p>
51   *
52   * <p>
53   * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
54   * configure security.
55   * </p>
56   *
57   * <p>
58   * The HTTP utility is only generated for remote services.
59   * </p>
60   *
61   * @author    Brian Wing Shun Chan
62   * @see       AssetEntryServiceSoap
63   * @see       com.liferay.portal.security.auth.HttpPrincipal
64   * @see       com.liferay.portlet.asset.service.AssetEntryServiceUtil
65   * @generated
66   */
67  public class AssetEntryServiceHttp {
68      public static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
69          throws com.liferay.portal.kernel.exception.PortalException,
70              com.liferay.portal.kernel.exception.SystemException {
71          try {
72              Object paramObj0 = new LongWrapper(entryId);
73  
74              MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
75                      "deleteEntry", new Object[] { paramObj0 });
76  
77              try {
78                  TunnelUtil.invoke(httpPrincipal, methodWrapper);
79              }
80              catch (Exception e) {
81                  if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
82                      throw (com.liferay.portal.kernel.exception.PortalException)e;
83                  }
84  
85                  if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
86                      throw (com.liferay.portal.kernel.exception.SystemException)e;
87                  }
88  
89                  throw new com.liferay.portal.kernel.exception.SystemException(e);
90              }
91          }
92          catch (com.liferay.portal.kernel.exception.SystemException se) {
93              _log.error(se, se);
94  
95              throw se;
96          }
97      }
98  
99      public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
100         HttpPrincipal httpPrincipal, long companyId, int start, int end)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         try {
103             Object paramObj0 = new LongWrapper(companyId);
104 
105             Object paramObj1 = new IntegerWrapper(start);
106 
107             Object paramObj2 = new IntegerWrapper(end);
108 
109             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
110                     "getCompanyEntries",
111                     new Object[] { paramObj0, paramObj1, paramObj2 });
112 
113             Object returnObj = null;
114 
115             try {
116                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
117             }
118             catch (Exception e) {
119                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
120                     throw (com.liferay.portal.kernel.exception.SystemException)e;
121                 }
122 
123                 throw new com.liferay.portal.kernel.exception.SystemException(e);
124             }
125 
126             return (java.util.List<com.liferay.portlet.asset.model.AssetEntry>)returnObj;
127         }
128         catch (com.liferay.portal.kernel.exception.SystemException se) {
129             _log.error(se, se);
130 
131             throw se;
132         }
133     }
134 
135     public static int getCompanyEntriesCount(HttpPrincipal httpPrincipal,
136         long companyId)
137         throws com.liferay.portal.kernel.exception.SystemException {
138         try {
139             Object paramObj0 = new LongWrapper(companyId);
140 
141             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
142                     "getCompanyEntriesCount", new Object[] { paramObj0 });
143 
144             Object returnObj = null;
145 
146             try {
147                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
148             }
149             catch (Exception e) {
150                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
151                     throw (com.liferay.portal.kernel.exception.SystemException)e;
152                 }
153 
154                 throw new com.liferay.portal.kernel.exception.SystemException(e);
155             }
156 
157             return ((Integer)returnObj).intValue();
158         }
159         catch (com.liferay.portal.kernel.exception.SystemException se) {
160             _log.error(se, se);
161 
162             throw se;
163         }
164     }
165 
166     public static java.lang.String getCompanyEntriesRSS(
167         HttpPrincipal httpPrincipal, long companyId, int max,
168         java.lang.String type, double version, java.lang.String displayStyle,
169         java.lang.String feedURL, java.lang.String tagURL)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         try {
173             Object paramObj0 = new LongWrapper(companyId);
174 
175             Object paramObj1 = new IntegerWrapper(max);
176 
177             Object paramObj2 = type;
178 
179             if (type == null) {
180                 paramObj2 = new NullWrapper("java.lang.String");
181             }
182 
183             Object paramObj3 = new DoubleWrapper(version);
184 
185             Object paramObj4 = displayStyle;
186 
187             if (displayStyle == null) {
188                 paramObj4 = new NullWrapper("java.lang.String");
189             }
190 
191             Object paramObj5 = feedURL;
192 
193             if (feedURL == null) {
194                 paramObj5 = new NullWrapper("java.lang.String");
195             }
196 
197             Object paramObj6 = tagURL;
198 
199             if (tagURL == null) {
200                 paramObj6 = new NullWrapper("java.lang.String");
201             }
202 
203             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
204                     "getCompanyEntriesRSS",
205                     new Object[] {
206                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
207                         paramObj5, paramObj6
208                     });
209 
210             Object returnObj = null;
211 
212             try {
213                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
214             }
215             catch (Exception e) {
216                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
217                     throw (com.liferay.portal.kernel.exception.PortalException)e;
218                 }
219 
220                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
221                     throw (com.liferay.portal.kernel.exception.SystemException)e;
222                 }
223 
224                 throw new com.liferay.portal.kernel.exception.SystemException(e);
225             }
226 
227             return (java.lang.String)returnObj;
228         }
229         catch (com.liferay.portal.kernel.exception.SystemException se) {
230             _log.error(se, se);
231 
232             throw se;
233         }
234     }
235 
236     public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
237         HttpPrincipal httpPrincipal, long companyId, int start, int end,
238         java.lang.String languageId)
239         throws com.liferay.portal.kernel.exception.SystemException {
240         try {
241             Object paramObj0 = new LongWrapper(companyId);
242 
243             Object paramObj1 = new IntegerWrapper(start);
244 
245             Object paramObj2 = new IntegerWrapper(end);
246 
247             Object paramObj3 = languageId;
248 
249             if (languageId == null) {
250                 paramObj3 = new NullWrapper("java.lang.String");
251             }
252 
253             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
254                     "getCompanyEntryDisplays",
255                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
256 
257             Object returnObj = null;
258 
259             try {
260                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
261             }
262             catch (Exception e) {
263                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
264                     throw (com.liferay.portal.kernel.exception.SystemException)e;
265                 }
266 
267                 throw new com.liferay.portal.kernel.exception.SystemException(e);
268             }
269 
270             return (com.liferay.portlet.asset.model.AssetEntryDisplay[])returnObj;
271         }
272         catch (com.liferay.portal.kernel.exception.SystemException se) {
273             _log.error(se, se);
274 
275             throw se;
276         }
277     }
278 
279     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
280         HttpPrincipal httpPrincipal,
281         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
282         throws com.liferay.portal.kernel.exception.PortalException,
283             com.liferay.portal.kernel.exception.SystemException {
284         try {
285             Object paramObj0 = entryQuery;
286 
287             if (entryQuery == null) {
288                 paramObj0 = new NullWrapper(
289                         "com.liferay.portlet.asset.service.persistence.AssetEntryQuery");
290             }
291 
292             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
293                     "getEntries", new Object[] { paramObj0 });
294 
295             Object returnObj = null;
296 
297             try {
298                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
299             }
300             catch (Exception e) {
301                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
302                     throw (com.liferay.portal.kernel.exception.PortalException)e;
303                 }
304 
305                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
306                     throw (com.liferay.portal.kernel.exception.SystemException)e;
307                 }
308 
309                 throw new com.liferay.portal.kernel.exception.SystemException(e);
310             }
311 
312             return (java.util.List<com.liferay.portlet.asset.model.AssetEntry>)returnObj;
313         }
314         catch (com.liferay.portal.kernel.exception.SystemException se) {
315             _log.error(se, se);
316 
317             throw se;
318         }
319     }
320 
321     public static int getEntriesCount(HttpPrincipal httpPrincipal,
322         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
323         throws com.liferay.portal.kernel.exception.PortalException,
324             com.liferay.portal.kernel.exception.SystemException {
325         try {
326             Object paramObj0 = entryQuery;
327 
328             if (entryQuery == null) {
329                 paramObj0 = new NullWrapper(
330                         "com.liferay.portlet.asset.service.persistence.AssetEntryQuery");
331             }
332 
333             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
334                     "getEntriesCount", new Object[] { paramObj0 });
335 
336             Object returnObj = null;
337 
338             try {
339                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
340             }
341             catch (Exception e) {
342                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
343                     throw (com.liferay.portal.kernel.exception.PortalException)e;
344                 }
345 
346                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
347                     throw (com.liferay.portal.kernel.exception.SystemException)e;
348                 }
349 
350                 throw new com.liferay.portal.kernel.exception.SystemException(e);
351             }
352 
353             return ((Integer)returnObj).intValue();
354         }
355         catch (com.liferay.portal.kernel.exception.SystemException se) {
356             _log.error(se, se);
357 
358             throw se;
359         }
360     }
361 
362     public static java.lang.String getEntriesRSS(HttpPrincipal httpPrincipal,
363         com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
364         java.lang.String type, double version, java.lang.String displayStyle,
365         java.lang.String feedURL, java.lang.String tagURL)
366         throws com.liferay.portal.kernel.exception.PortalException,
367             com.liferay.portal.kernel.exception.SystemException {
368         try {
369             Object paramObj0 = entryQuery;
370 
371             if (entryQuery == null) {
372                 paramObj0 = new NullWrapper(
373                         "com.liferay.portlet.asset.service.persistence.AssetEntryQuery");
374             }
375 
376             Object paramObj1 = type;
377 
378             if (type == null) {
379                 paramObj1 = new NullWrapper("java.lang.String");
380             }
381 
382             Object paramObj2 = new DoubleWrapper(version);
383 
384             Object paramObj3 = displayStyle;
385 
386             if (displayStyle == null) {
387                 paramObj3 = new NullWrapper("java.lang.String");
388             }
389 
390             Object paramObj4 = feedURL;
391 
392             if (feedURL == null) {
393                 paramObj4 = new NullWrapper("java.lang.String");
394             }
395 
396             Object paramObj5 = tagURL;
397 
398             if (tagURL == null) {
399                 paramObj5 = new NullWrapper("java.lang.String");
400             }
401 
402             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
403                     "getEntriesRSS",
404                     new Object[] {
405                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
406                         paramObj5
407                     });
408 
409             Object returnObj = null;
410 
411             try {
412                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
413             }
414             catch (Exception e) {
415                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
416                     throw (com.liferay.portal.kernel.exception.PortalException)e;
417                 }
418 
419                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
420                     throw (com.liferay.portal.kernel.exception.SystemException)e;
421                 }
422 
423                 throw new com.liferay.portal.kernel.exception.SystemException(e);
424             }
425 
426             return (java.lang.String)returnObj;
427         }
428         catch (com.liferay.portal.kernel.exception.SystemException se) {
429             _log.error(se, se);
430 
431             throw se;
432         }
433     }
434 
435     public static com.liferay.portlet.asset.model.AssetEntry getEntry(
436         HttpPrincipal httpPrincipal, long entryId)
437         throws com.liferay.portal.kernel.exception.PortalException,
438             com.liferay.portal.kernel.exception.SystemException {
439         try {
440             Object paramObj0 = new LongWrapper(entryId);
441 
442             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
443                     "getEntry", new Object[] { paramObj0 });
444 
445             Object returnObj = null;
446 
447             try {
448                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
449             }
450             catch (Exception e) {
451                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
452                     throw (com.liferay.portal.kernel.exception.PortalException)e;
453                 }
454 
455                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
456                     throw (com.liferay.portal.kernel.exception.SystemException)e;
457                 }
458 
459                 throw new com.liferay.portal.kernel.exception.SystemException(e);
460             }
461 
462             return (com.liferay.portlet.asset.model.AssetEntry)returnObj;
463         }
464         catch (com.liferay.portal.kernel.exception.SystemException se) {
465             _log.error(se, se);
466 
467             throw se;
468         }
469     }
470 
471     public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
472         HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
473         throws com.liferay.portal.kernel.exception.SystemException {
474         try {
475             Object paramObj0 = className;
476 
477             if (className == null) {
478                 paramObj0 = new NullWrapper("java.lang.String");
479             }
480 
481             Object paramObj1 = new LongWrapper(classPK);
482 
483             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
484                     "incrementViewCounter",
485                     new Object[] { paramObj0, paramObj1 });
486 
487             Object returnObj = null;
488 
489             try {
490                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
491             }
492             catch (Exception e) {
493                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
494                     throw (com.liferay.portal.kernel.exception.SystemException)e;
495                 }
496 
497                 throw new com.liferay.portal.kernel.exception.SystemException(e);
498             }
499 
500             return (com.liferay.portlet.asset.model.AssetEntry)returnObj;
501         }
502         catch (com.liferay.portal.kernel.exception.SystemException se) {
503             _log.error(se, se);
504 
505             throw se;
506         }
507     }
508 
509     public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
510         HttpPrincipal httpPrincipal, long companyId,
511         java.lang.String portletId, java.lang.String keywords,
512         java.lang.String languageId, int start, int end)
513         throws com.liferay.portal.kernel.exception.SystemException {
514         try {
515             Object paramObj0 = new LongWrapper(companyId);
516 
517             Object paramObj1 = portletId;
518 
519             if (portletId == null) {
520                 paramObj1 = new NullWrapper("java.lang.String");
521             }
522 
523             Object paramObj2 = keywords;
524 
525             if (keywords == null) {
526                 paramObj2 = new NullWrapper("java.lang.String");
527             }
528 
529             Object paramObj3 = languageId;
530 
531             if (languageId == null) {
532                 paramObj3 = new NullWrapper("java.lang.String");
533             }
534 
535             Object paramObj4 = new IntegerWrapper(start);
536 
537             Object paramObj5 = new IntegerWrapper(end);
538 
539             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
540                     "searchEntryDisplays",
541                     new Object[] {
542                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
543                         paramObj5
544                     });
545 
546             Object returnObj = null;
547 
548             try {
549                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
550             }
551             catch (Exception e) {
552                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
553                     throw (com.liferay.portal.kernel.exception.SystemException)e;
554                 }
555 
556                 throw new com.liferay.portal.kernel.exception.SystemException(e);
557             }
558 
559             return (com.liferay.portlet.asset.model.AssetEntryDisplay[])returnObj;
560         }
561         catch (com.liferay.portal.kernel.exception.SystemException se) {
562             _log.error(se, se);
563 
564             throw se;
565         }
566     }
567 
568     public static int searchEntryDisplaysCount(HttpPrincipal httpPrincipal,
569         long companyId, java.lang.String portletId, java.lang.String keywords,
570         java.lang.String languageId)
571         throws com.liferay.portal.kernel.exception.SystemException {
572         try {
573             Object paramObj0 = new LongWrapper(companyId);
574 
575             Object paramObj1 = portletId;
576 
577             if (portletId == null) {
578                 paramObj1 = new NullWrapper("java.lang.String");
579             }
580 
581             Object paramObj2 = keywords;
582 
583             if (keywords == null) {
584                 paramObj2 = new NullWrapper("java.lang.String");
585             }
586 
587             Object paramObj3 = languageId;
588 
589             if (languageId == null) {
590                 paramObj3 = new NullWrapper("java.lang.String");
591             }
592 
593             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
594                     "searchEntryDisplaysCount",
595                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
596 
597             Object returnObj = null;
598 
599             try {
600                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
601             }
602             catch (Exception e) {
603                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
604                     throw (com.liferay.portal.kernel.exception.SystemException)e;
605                 }
606 
607                 throw new com.liferay.portal.kernel.exception.SystemException(e);
608             }
609 
610             return ((Integer)returnObj).intValue();
611         }
612         catch (com.liferay.portal.kernel.exception.SystemException se) {
613             _log.error(se, se);
614 
615             throw se;
616         }
617     }
618 
619     public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
620         HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
621         long classPK, long[] categoryIds, java.lang.String[] tagNames,
622         boolean visible, java.util.Date startDate, java.util.Date endDate,
623         java.util.Date publishDate, java.util.Date expirationDate,
624         java.lang.String mimeType, java.lang.String title,
625         java.lang.String description, java.lang.String summary,
626         java.lang.String url, int height, int width,
627         java.lang.Integer priority, boolean sync)
628         throws com.liferay.portal.kernel.exception.PortalException,
629             com.liferay.portal.kernel.exception.SystemException {
630         try {
631             Object paramObj0 = new LongWrapper(groupId);
632 
633             Object paramObj1 = className;
634 
635             if (className == null) {
636                 paramObj1 = new NullWrapper("java.lang.String");
637             }
638 
639             Object paramObj2 = new LongWrapper(classPK);
640 
641             Object paramObj3 = categoryIds;
642 
643             if (categoryIds == null) {
644                 paramObj3 = new NullWrapper("[J");
645             }
646 
647             Object paramObj4 = tagNames;
648 
649             if (tagNames == null) {
650                 paramObj4 = new NullWrapper("[Ljava.lang.String;");
651             }
652 
653             Object paramObj5 = new BooleanWrapper(visible);
654 
655             Object paramObj6 = startDate;
656 
657             if (startDate == null) {
658                 paramObj6 = new NullWrapper("java.util.Date");
659             }
660 
661             Object paramObj7 = endDate;
662 
663             if (endDate == null) {
664                 paramObj7 = new NullWrapper("java.util.Date");
665             }
666 
667             Object paramObj8 = publishDate;
668 
669             if (publishDate == null) {
670                 paramObj8 = new NullWrapper("java.util.Date");
671             }
672 
673             Object paramObj9 = expirationDate;
674 
675             if (expirationDate == null) {
676                 paramObj9 = new NullWrapper("java.util.Date");
677             }
678 
679             Object paramObj10 = mimeType;
680 
681             if (mimeType == null) {
682                 paramObj10 = new NullWrapper("java.lang.String");
683             }
684 
685             Object paramObj11 = title;
686 
687             if (title == null) {
688                 paramObj11 = new NullWrapper("java.lang.String");
689             }
690 
691             Object paramObj12 = description;
692 
693             if (description == null) {
694                 paramObj12 = new NullWrapper("java.lang.String");
695             }
696 
697             Object paramObj13 = summary;
698 
699             if (summary == null) {
700                 paramObj13 = new NullWrapper("java.lang.String");
701             }
702 
703             Object paramObj14 = url;
704 
705             if (url == null) {
706                 paramObj14 = new NullWrapper("java.lang.String");
707             }
708 
709             Object paramObj15 = new IntegerWrapper(height);
710 
711             Object paramObj16 = new IntegerWrapper(width);
712 
713             Object paramObj17 = priority;
714 
715             if (priority == null) {
716                 paramObj17 = new NullWrapper("java.lang.Integer");
717             }
718 
719             Object paramObj18 = new BooleanWrapper(sync);
720 
721             MethodWrapper methodWrapper = new MethodWrapper(AssetEntryServiceUtil.class.getName(),
722                     "updateEntry",
723                     new Object[] {
724                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
725                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
726                         paramObj10, paramObj11, paramObj12, paramObj13,
727                         paramObj14, paramObj15, paramObj16, paramObj17,
728                         paramObj18
729                     });
730 
731             Object returnObj = null;
732 
733             try {
734                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
735             }
736             catch (Exception e) {
737                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
738                     throw (com.liferay.portal.kernel.exception.PortalException)e;
739                 }
740 
741                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
742                     throw (com.liferay.portal.kernel.exception.SystemException)e;
743                 }
744 
745                 throw new com.liferay.portal.kernel.exception.SystemException(e);
746             }
747 
748             return (com.liferay.portlet.asset.model.AssetEntry)returnObj;
749         }
750         catch (com.liferay.portal.kernel.exception.SystemException se) {
751             _log.error(se, se);
752 
753             throw se;
754         }
755     }
756 
757     private static Log _log = LogFactoryUtil.getLog(AssetEntryServiceHttp.class);
758 }