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