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