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.blogs.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.blogs.service.BlogsEntryServiceUtil;
29  
30  /**
31   * <a href="BlogsEntryServiceHttp.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.blogs.service.BlogsEntryServiceUtil} 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       BlogsEntryServiceSoap
63   * @see       com.liferay.portal.security.auth.HttpPrincipal
64   * @see       com.liferay.portlet.blogs.service.BlogsEntryServiceUtil
65   * @generated
66   */
67  public class BlogsEntryServiceHttp {
68      public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
69          HttpPrincipal httpPrincipal, java.lang.String title,
70          java.lang.String content, int displayDateMonth, int displayDateDay,
71          int displayDateYear, int displayDateHour, int displayDateMinute,
72          boolean allowPingbacks, boolean allowTrackbacks,
73          java.lang.String[] trackbacks,
74          com.liferay.portal.service.ServiceContext serviceContext)
75          throws com.liferay.portal.kernel.exception.PortalException,
76              com.liferay.portal.kernel.exception.SystemException {
77          try {
78              Object paramObj0 = title;
79  
80              if (title == null) {
81                  paramObj0 = new NullWrapper("java.lang.String");
82              }
83  
84              Object paramObj1 = content;
85  
86              if (content == null) {
87                  paramObj1 = new NullWrapper("java.lang.String");
88              }
89  
90              Object paramObj2 = new IntegerWrapper(displayDateMonth);
91  
92              Object paramObj3 = new IntegerWrapper(displayDateDay);
93  
94              Object paramObj4 = new IntegerWrapper(displayDateYear);
95  
96              Object paramObj5 = new IntegerWrapper(displayDateHour);
97  
98              Object paramObj6 = new IntegerWrapper(displayDateMinute);
99  
100             Object paramObj7 = new BooleanWrapper(allowPingbacks);
101 
102             Object paramObj8 = new BooleanWrapper(allowTrackbacks);
103 
104             Object paramObj9 = trackbacks;
105 
106             if (trackbacks == null) {
107                 paramObj9 = new NullWrapper("[Ljava.lang.String;");
108             }
109 
110             Object paramObj10 = serviceContext;
111 
112             if (serviceContext == null) {
113                 paramObj10 = new NullWrapper(
114                         "com.liferay.portal.service.ServiceContext");
115             }
116 
117             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
118                     "addEntry",
119                     new Object[] {
120                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
121                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
122                         paramObj10
123                     });
124 
125             Object returnObj = null;
126 
127             try {
128                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
129             }
130             catch (Exception e) {
131                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
132                     throw (com.liferay.portal.kernel.exception.PortalException)e;
133                 }
134 
135                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
136                     throw (com.liferay.portal.kernel.exception.SystemException)e;
137                 }
138 
139                 throw new com.liferay.portal.kernel.exception.SystemException(e);
140             }
141 
142             return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
143         }
144         catch (com.liferay.portal.kernel.exception.SystemException se) {
145             _log.error(se, se);
146 
147             throw se;
148         }
149     }
150 
151     public static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException {
154         try {
155             Object paramObj0 = new LongWrapper(entryId);
156 
157             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
158                     "deleteEntry", new Object[] { paramObj0 });
159 
160             try {
161                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
162             }
163             catch (Exception e) {
164                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
165                     throw (com.liferay.portal.kernel.exception.PortalException)e;
166                 }
167 
168                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
169                     throw (com.liferay.portal.kernel.exception.SystemException)e;
170                 }
171 
172                 throw new com.liferay.portal.kernel.exception.SystemException(e);
173             }
174         }
175         catch (com.liferay.portal.kernel.exception.SystemException se) {
176             _log.error(se, se);
177 
178             throw se;
179         }
180     }
181 
182     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
183         HttpPrincipal httpPrincipal, long companyId, int status, int max)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         try {
187             Object paramObj0 = new LongWrapper(companyId);
188 
189             Object paramObj1 = new IntegerWrapper(status);
190 
191             Object paramObj2 = new IntegerWrapper(max);
192 
193             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
194                     "getCompanyEntries",
195                     new Object[] { paramObj0, paramObj1, paramObj2 });
196 
197             Object returnObj = null;
198 
199             try {
200                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
201             }
202             catch (Exception e) {
203                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
204                     throw (com.liferay.portal.kernel.exception.PortalException)e;
205                 }
206 
207                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
208                     throw (com.liferay.portal.kernel.exception.SystemException)e;
209                 }
210 
211                 throw new com.liferay.portal.kernel.exception.SystemException(e);
212             }
213 
214             return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
215         }
216         catch (com.liferay.portal.kernel.exception.SystemException se) {
217             _log.error(se, se);
218 
219             throw se;
220         }
221     }
222 
223     public static java.lang.String getCompanyEntriesRSS(
224         HttpPrincipal httpPrincipal, long companyId, int status, int max,
225         java.lang.String type, double version, java.lang.String displayStyle,
226         java.lang.String feedURL, java.lang.String entryURL,
227         com.liferay.portal.theme.ThemeDisplay themeDisplay)
228         throws com.liferay.portal.kernel.exception.PortalException,
229             com.liferay.portal.kernel.exception.SystemException {
230         try {
231             Object paramObj0 = new LongWrapper(companyId);
232 
233             Object paramObj1 = new IntegerWrapper(status);
234 
235             Object paramObj2 = new IntegerWrapper(max);
236 
237             Object paramObj3 = type;
238 
239             if (type == null) {
240                 paramObj3 = new NullWrapper("java.lang.String");
241             }
242 
243             Object paramObj4 = new DoubleWrapper(version);
244 
245             Object paramObj5 = displayStyle;
246 
247             if (displayStyle == null) {
248                 paramObj5 = new NullWrapper("java.lang.String");
249             }
250 
251             Object paramObj6 = feedURL;
252 
253             if (feedURL == null) {
254                 paramObj6 = new NullWrapper("java.lang.String");
255             }
256 
257             Object paramObj7 = entryURL;
258 
259             if (entryURL == null) {
260                 paramObj7 = new NullWrapper("java.lang.String");
261             }
262 
263             Object paramObj8 = themeDisplay;
264 
265             if (themeDisplay == null) {
266                 paramObj8 = new NullWrapper(
267                         "com.liferay.portal.theme.ThemeDisplay");
268             }
269 
270             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
271                     "getCompanyEntriesRSS",
272                     new Object[] {
273                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
274                         paramObj5, paramObj6, paramObj7, paramObj8
275                     });
276 
277             Object returnObj = null;
278 
279             try {
280                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
281             }
282             catch (Exception e) {
283                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
284                     throw (com.liferay.portal.kernel.exception.PortalException)e;
285                 }
286 
287                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
288                     throw (com.liferay.portal.kernel.exception.SystemException)e;
289                 }
290 
291                 throw new com.liferay.portal.kernel.exception.SystemException(e);
292             }
293 
294             return (java.lang.String)returnObj;
295         }
296         catch (com.liferay.portal.kernel.exception.SystemException se) {
297             _log.error(se, se);
298 
299             throw se;
300         }
301     }
302 
303     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
304         HttpPrincipal httpPrincipal, long entryId)
305         throws com.liferay.portal.kernel.exception.PortalException,
306             com.liferay.portal.kernel.exception.SystemException {
307         try {
308             Object paramObj0 = new LongWrapper(entryId);
309 
310             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
311                     "getEntry", new Object[] { paramObj0 });
312 
313             Object returnObj = null;
314 
315             try {
316                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
317             }
318             catch (Exception e) {
319                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
320                     throw (com.liferay.portal.kernel.exception.PortalException)e;
321                 }
322 
323                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
324                     throw (com.liferay.portal.kernel.exception.SystemException)e;
325                 }
326 
327                 throw new com.liferay.portal.kernel.exception.SystemException(e);
328             }
329 
330             return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
331         }
332         catch (com.liferay.portal.kernel.exception.SystemException se) {
333             _log.error(se, se);
334 
335             throw se;
336         }
337     }
338 
339     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
340         HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
341         throws com.liferay.portal.kernel.exception.PortalException,
342             com.liferay.portal.kernel.exception.SystemException {
343         try {
344             Object paramObj0 = new LongWrapper(groupId);
345 
346             Object paramObj1 = urlTitle;
347 
348             if (urlTitle == null) {
349                 paramObj1 = new NullWrapper("java.lang.String");
350             }
351 
352             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
353                     "getEntry", new Object[] { paramObj0, paramObj1 });
354 
355             Object returnObj = null;
356 
357             try {
358                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
359             }
360             catch (Exception e) {
361                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
362                     throw (com.liferay.portal.kernel.exception.PortalException)e;
363                 }
364 
365                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
366                     throw (com.liferay.portal.kernel.exception.SystemException)e;
367                 }
368 
369                 throw new com.liferay.portal.kernel.exception.SystemException(e);
370             }
371 
372             return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
373         }
374         catch (com.liferay.portal.kernel.exception.SystemException se) {
375             _log.error(se, se);
376 
377             throw se;
378         }
379     }
380 
381     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
382         HttpPrincipal httpPrincipal, long groupId, int status, int max)
383         throws com.liferay.portal.kernel.exception.PortalException,
384             com.liferay.portal.kernel.exception.SystemException {
385         try {
386             Object paramObj0 = new LongWrapper(groupId);
387 
388             Object paramObj1 = new IntegerWrapper(status);
389 
390             Object paramObj2 = new IntegerWrapper(max);
391 
392             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
393                     "getGroupEntries",
394                     new Object[] { paramObj0, paramObj1, paramObj2 });
395 
396             Object returnObj = null;
397 
398             try {
399                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
400             }
401             catch (Exception e) {
402                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
403                     throw (com.liferay.portal.kernel.exception.PortalException)e;
404                 }
405 
406                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
407                     throw (com.liferay.portal.kernel.exception.SystemException)e;
408                 }
409 
410                 throw new com.liferay.portal.kernel.exception.SystemException(e);
411             }
412 
413             return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
414         }
415         catch (com.liferay.portal.kernel.exception.SystemException se) {
416             _log.error(se, se);
417 
418             throw se;
419         }
420     }
421 
422     public static java.lang.String getGroupEntriesRSS(
423         HttpPrincipal httpPrincipal, long groupId, int status, int max,
424         java.lang.String type, double version, java.lang.String displayStyle,
425         java.lang.String feedURL, java.lang.String entryURL,
426         com.liferay.portal.theme.ThemeDisplay themeDisplay)
427         throws com.liferay.portal.kernel.exception.PortalException,
428             com.liferay.portal.kernel.exception.SystemException {
429         try {
430             Object paramObj0 = new LongWrapper(groupId);
431 
432             Object paramObj1 = new IntegerWrapper(status);
433 
434             Object paramObj2 = new IntegerWrapper(max);
435 
436             Object paramObj3 = type;
437 
438             if (type == null) {
439                 paramObj3 = new NullWrapper("java.lang.String");
440             }
441 
442             Object paramObj4 = new DoubleWrapper(version);
443 
444             Object paramObj5 = displayStyle;
445 
446             if (displayStyle == null) {
447                 paramObj5 = new NullWrapper("java.lang.String");
448             }
449 
450             Object paramObj6 = feedURL;
451 
452             if (feedURL == null) {
453                 paramObj6 = new NullWrapper("java.lang.String");
454             }
455 
456             Object paramObj7 = entryURL;
457 
458             if (entryURL == null) {
459                 paramObj7 = new NullWrapper("java.lang.String");
460             }
461 
462             Object paramObj8 = themeDisplay;
463 
464             if (themeDisplay == null) {
465                 paramObj8 = new NullWrapper(
466                         "com.liferay.portal.theme.ThemeDisplay");
467             }
468 
469             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
470                     "getGroupEntriesRSS",
471                     new Object[] {
472                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
473                         paramObj5, paramObj6, paramObj7, paramObj8
474                     });
475 
476             Object returnObj = null;
477 
478             try {
479                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
480             }
481             catch (Exception e) {
482                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
483                     throw (com.liferay.portal.kernel.exception.PortalException)e;
484                 }
485 
486                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
487                     throw (com.liferay.portal.kernel.exception.SystemException)e;
488                 }
489 
490                 throw new com.liferay.portal.kernel.exception.SystemException(e);
491             }
492 
493             return (java.lang.String)returnObj;
494         }
495         catch (com.liferay.portal.kernel.exception.SystemException se) {
496             _log.error(se, se);
497 
498             throw se;
499         }
500     }
501 
502     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
503         HttpPrincipal httpPrincipal, long companyId, long groupId, int status,
504         int max)
505         throws com.liferay.portal.kernel.exception.PortalException,
506             com.liferay.portal.kernel.exception.SystemException {
507         try {
508             Object paramObj0 = new LongWrapper(companyId);
509 
510             Object paramObj1 = new LongWrapper(groupId);
511 
512             Object paramObj2 = new IntegerWrapper(status);
513 
514             Object paramObj3 = new IntegerWrapper(max);
515 
516             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
517                     "getGroupsEntries",
518                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
519 
520             Object returnObj = null;
521 
522             try {
523                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
524             }
525             catch (Exception e) {
526                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
527                     throw (com.liferay.portal.kernel.exception.PortalException)e;
528                 }
529 
530                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
531                     throw (com.liferay.portal.kernel.exception.SystemException)e;
532                 }
533 
534                 throw new com.liferay.portal.kernel.exception.SystemException(e);
535             }
536 
537             return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
538         }
539         catch (com.liferay.portal.kernel.exception.SystemException se) {
540             _log.error(se, se);
541 
542             throw se;
543         }
544     }
545 
546     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
547         HttpPrincipal httpPrincipal, long organizationId, int status, int max)
548         throws com.liferay.portal.kernel.exception.PortalException,
549             com.liferay.portal.kernel.exception.SystemException {
550         try {
551             Object paramObj0 = new LongWrapper(organizationId);
552 
553             Object paramObj1 = new IntegerWrapper(status);
554 
555             Object paramObj2 = new IntegerWrapper(max);
556 
557             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
558                     "getOrganizationEntries",
559                     new Object[] { paramObj0, paramObj1, paramObj2 });
560 
561             Object returnObj = null;
562 
563             try {
564                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
565             }
566             catch (Exception e) {
567                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
568                     throw (com.liferay.portal.kernel.exception.PortalException)e;
569                 }
570 
571                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
572                     throw (com.liferay.portal.kernel.exception.SystemException)e;
573                 }
574 
575                 throw new com.liferay.portal.kernel.exception.SystemException(e);
576             }
577 
578             return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
579         }
580         catch (com.liferay.portal.kernel.exception.SystemException se) {
581             _log.error(se, se);
582 
583             throw se;
584         }
585     }
586 
587     public static java.lang.String getOrganizationEntriesRSS(
588         HttpPrincipal httpPrincipal, long organizationId, int status, int max,
589         java.lang.String type, double version, java.lang.String displayStyle,
590         java.lang.String feedURL, java.lang.String entryURL,
591         com.liferay.portal.theme.ThemeDisplay themeDisplay)
592         throws com.liferay.portal.kernel.exception.PortalException,
593             com.liferay.portal.kernel.exception.SystemException {
594         try {
595             Object paramObj0 = new LongWrapper(organizationId);
596 
597             Object paramObj1 = new IntegerWrapper(status);
598 
599             Object paramObj2 = new IntegerWrapper(max);
600 
601             Object paramObj3 = type;
602 
603             if (type == null) {
604                 paramObj3 = new NullWrapper("java.lang.String");
605             }
606 
607             Object paramObj4 = new DoubleWrapper(version);
608 
609             Object paramObj5 = displayStyle;
610 
611             if (displayStyle == null) {
612                 paramObj5 = new NullWrapper("java.lang.String");
613             }
614 
615             Object paramObj6 = feedURL;
616 
617             if (feedURL == null) {
618                 paramObj6 = new NullWrapper("java.lang.String");
619             }
620 
621             Object paramObj7 = entryURL;
622 
623             if (entryURL == null) {
624                 paramObj7 = new NullWrapper("java.lang.String");
625             }
626 
627             Object paramObj8 = themeDisplay;
628 
629             if (themeDisplay == null) {
630                 paramObj8 = new NullWrapper(
631                         "com.liferay.portal.theme.ThemeDisplay");
632             }
633 
634             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
635                     "getOrganizationEntriesRSS",
636                     new Object[] {
637                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
638                         paramObj5, paramObj6, paramObj7, paramObj8
639                     });
640 
641             Object returnObj = null;
642 
643             try {
644                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
645             }
646             catch (Exception e) {
647                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
648                     throw (com.liferay.portal.kernel.exception.PortalException)e;
649                 }
650 
651                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
652                     throw (com.liferay.portal.kernel.exception.SystemException)e;
653                 }
654 
655                 throw new com.liferay.portal.kernel.exception.SystemException(e);
656             }
657 
658             return (java.lang.String)returnObj;
659         }
660         catch (com.liferay.portal.kernel.exception.SystemException se) {
661             _log.error(se, se);
662 
663             throw se;
664         }
665     }
666 
667     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
668         HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
669         java.lang.String content, int displayDateMonth, int displayDateDay,
670         int displayDateYear, int displayDateHour, int displayDateMinute,
671         boolean allowPingbacks, boolean allowTrackbacks,
672         java.lang.String[] trackbacks,
673         com.liferay.portal.service.ServiceContext serviceContext)
674         throws com.liferay.portal.kernel.exception.PortalException,
675             com.liferay.portal.kernel.exception.SystemException {
676         try {
677             Object paramObj0 = new LongWrapper(entryId);
678 
679             Object paramObj1 = title;
680 
681             if (title == null) {
682                 paramObj1 = new NullWrapper("java.lang.String");
683             }
684 
685             Object paramObj2 = content;
686 
687             if (content == null) {
688                 paramObj2 = new NullWrapper("java.lang.String");
689             }
690 
691             Object paramObj3 = new IntegerWrapper(displayDateMonth);
692 
693             Object paramObj4 = new IntegerWrapper(displayDateDay);
694 
695             Object paramObj5 = new IntegerWrapper(displayDateYear);
696 
697             Object paramObj6 = new IntegerWrapper(displayDateHour);
698 
699             Object paramObj7 = new IntegerWrapper(displayDateMinute);
700 
701             Object paramObj8 = new BooleanWrapper(allowPingbacks);
702 
703             Object paramObj9 = new BooleanWrapper(allowTrackbacks);
704 
705             Object paramObj10 = trackbacks;
706 
707             if (trackbacks == null) {
708                 paramObj10 = new NullWrapper("[Ljava.lang.String;");
709             }
710 
711             Object paramObj11 = serviceContext;
712 
713             if (serviceContext == null) {
714                 paramObj11 = new NullWrapper(
715                         "com.liferay.portal.service.ServiceContext");
716             }
717 
718             MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
719                     "updateEntry",
720                     new Object[] {
721                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
722                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
723                         paramObj10, paramObj11
724                     });
725 
726             Object returnObj = null;
727 
728             try {
729                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
730             }
731             catch (Exception e) {
732                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
733                     throw (com.liferay.portal.kernel.exception.PortalException)e;
734                 }
735 
736                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
737                     throw (com.liferay.portal.kernel.exception.SystemException)e;
738                 }
739 
740                 throw new com.liferay.portal.kernel.exception.SystemException(e);
741             }
742 
743             return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
744         }
745         catch (com.liferay.portal.kernel.exception.SystemException se) {
746             _log.error(se, se);
747 
748             throw se;
749         }
750     }
751 
752     private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
753 }