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