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