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