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