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