001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.blogs.service.http;
016    
017    import com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    import com.liferay.portal.kernel.util.BooleanWrapper;
020    import com.liferay.portal.kernel.util.DoubleWrapper;
021    import com.liferay.portal.kernel.util.IntegerWrapper;
022    import com.liferay.portal.kernel.util.LongWrapper;
023    import com.liferay.portal.kernel.util.MethodWrapper;
024    import com.liferay.portal.kernel.util.NullWrapper;
025    import com.liferay.portal.security.auth.HttpPrincipal;
026    import com.liferay.portal.service.http.TunnelUtil;
027    
028    import com.liferay.portlet.blogs.service.BlogsEntryServiceUtil;
029    
030    /**
031     * <p>
032     * This class provides a HTTP utility for the
033     * {@link com.liferay.portlet.blogs.service.BlogsEntryServiceUtil} service utility. The
034     * static methods of this class calls the same methods of the service utility.
035     * However, the signatures are different because it requires an additional
036     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
037     * </p>
038     *
039     * <p>
040     * The benefits of using the HTTP utility is that it is fast and allows for
041     * tunneling without the cost of serializing to text. The drawback is that it
042     * only works with Java.
043     * </p>
044     *
045     * <p>
046     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
047     * configure security.
048     * </p>
049     *
050     * <p>
051     * The HTTP utility is only generated for remote services.
052     * </p>
053     *
054     * @author    Brian Wing Shun Chan
055     * @see       BlogsEntryServiceSoap
056     * @see       com.liferay.portal.security.auth.HttpPrincipal
057     * @see       com.liferay.portlet.blogs.service.BlogsEntryServiceUtil
058     * @generated
059     */
060    public class BlogsEntryServiceHttp {
061            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
062                    HttpPrincipal httpPrincipal, java.lang.String title,
063                    java.lang.String content, int displayDateMonth, int displayDateDay,
064                    int displayDateYear, int displayDateHour, int displayDateMinute,
065                    boolean allowPingbacks, boolean allowTrackbacks,
066                    java.lang.String[] trackbacks,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    try {
071                            Object paramObj0 = title;
072    
073                            if (title == null) {
074                                    paramObj0 = new NullWrapper("java.lang.String");
075                            }
076    
077                            Object paramObj1 = content;
078    
079                            if (content == null) {
080                                    paramObj1 = new NullWrapper("java.lang.String");
081                            }
082    
083                            Object paramObj2 = new IntegerWrapper(displayDateMonth);
084    
085                            Object paramObj3 = new IntegerWrapper(displayDateDay);
086    
087                            Object paramObj4 = new IntegerWrapper(displayDateYear);
088    
089                            Object paramObj5 = new IntegerWrapper(displayDateHour);
090    
091                            Object paramObj6 = new IntegerWrapper(displayDateMinute);
092    
093                            Object paramObj7 = new BooleanWrapper(allowPingbacks);
094    
095                            Object paramObj8 = new BooleanWrapper(allowTrackbacks);
096    
097                            Object paramObj9 = trackbacks;
098    
099                            if (trackbacks == null) {
100                                    paramObj9 = new NullWrapper("[Ljava.lang.String;");
101                            }
102    
103                            Object paramObj10 = serviceContext;
104    
105                            if (serviceContext == null) {
106                                    paramObj10 = new NullWrapper(
107                                                    "com.liferay.portal.service.ServiceContext");
108                            }
109    
110                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
111                                            "addEntry",
112                                            new Object[] {
113                                                    paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
114                                                    paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
115                                                    paramObj10
116                                            });
117    
118                            Object returnObj = null;
119    
120                            try {
121                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
122                            }
123                            catch (Exception e) {
124                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
125                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
126                                    }
127    
128                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
129                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
130                                    }
131    
132                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
133                            }
134    
135                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
136                    }
137                    catch (com.liferay.portal.kernel.exception.SystemException se) {
138                            _log.error(se, se);
139    
140                            throw se;
141                    }
142            }
143    
144            public static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException {
147                    try {
148                            Object paramObj0 = new LongWrapper(entryId);
149    
150                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
151                                            "deleteEntry", new Object[] { paramObj0 });
152    
153                            try {
154                                    TunnelUtil.invoke(httpPrincipal, methodWrapper);
155                            }
156                            catch (Exception e) {
157                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
158                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
159                                    }
160    
161                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
162                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
163                                    }
164    
165                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
166                            }
167                    }
168                    catch (com.liferay.portal.kernel.exception.SystemException se) {
169                            _log.error(se, se);
170    
171                            throw se;
172                    }
173            }
174    
175            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
176                    HttpPrincipal httpPrincipal, long companyId, int status, int max)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    try {
180                            Object paramObj0 = new LongWrapper(companyId);
181    
182                            Object paramObj1 = new IntegerWrapper(status);
183    
184                            Object paramObj2 = new IntegerWrapper(max);
185    
186                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
187                                            "getCompanyEntries",
188                                            new Object[] { paramObj0, paramObj1, paramObj2 });
189    
190                            Object returnObj = null;
191    
192                            try {
193                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
194                            }
195                            catch (Exception e) {
196                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
197                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
198                                    }
199    
200                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
201                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
202                                    }
203    
204                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
205                            }
206    
207                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
208                    }
209                    catch (com.liferay.portal.kernel.exception.SystemException se) {
210                            _log.error(se, se);
211    
212                            throw se;
213                    }
214            }
215    
216            public static java.lang.String getCompanyEntriesRSS(
217                    HttpPrincipal httpPrincipal, long companyId, int status, int max,
218                    java.lang.String type, double version, java.lang.String displayStyle,
219                    java.lang.String feedURL, java.lang.String entryURL,
220                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    try {
224                            Object paramObj0 = new LongWrapper(companyId);
225    
226                            Object paramObj1 = new IntegerWrapper(status);
227    
228                            Object paramObj2 = new IntegerWrapper(max);
229    
230                            Object paramObj3 = type;
231    
232                            if (type == null) {
233                                    paramObj3 = new NullWrapper("java.lang.String");
234                            }
235    
236                            Object paramObj4 = new DoubleWrapper(version);
237    
238                            Object paramObj5 = displayStyle;
239    
240                            if (displayStyle == null) {
241                                    paramObj5 = new NullWrapper("java.lang.String");
242                            }
243    
244                            Object paramObj6 = feedURL;
245    
246                            if (feedURL == null) {
247                                    paramObj6 = new NullWrapper("java.lang.String");
248                            }
249    
250                            Object paramObj7 = entryURL;
251    
252                            if (entryURL == null) {
253                                    paramObj7 = new NullWrapper("java.lang.String");
254                            }
255    
256                            Object paramObj8 = themeDisplay;
257    
258                            if (themeDisplay == null) {
259                                    paramObj8 = new NullWrapper(
260                                                    "com.liferay.portal.theme.ThemeDisplay");
261                            }
262    
263                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
264                                            "getCompanyEntriesRSS",
265                                            new Object[] {
266                                                    paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
267                                                    paramObj5, paramObj6, paramObj7, paramObj8
268                                            });
269    
270                            Object returnObj = null;
271    
272                            try {
273                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
274                            }
275                            catch (Exception e) {
276                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
277                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
278                                    }
279    
280                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
281                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
282                                    }
283    
284                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
285                            }
286    
287                            return (java.lang.String)returnObj;
288                    }
289                    catch (com.liferay.portal.kernel.exception.SystemException se) {
290                            _log.error(se, se);
291    
292                            throw se;
293                    }
294            }
295    
296            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
297                    HttpPrincipal httpPrincipal, long entryId)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    try {
301                            Object paramObj0 = new LongWrapper(entryId);
302    
303                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
304                                            "getEntry", new Object[] { paramObj0 });
305    
306                            Object returnObj = null;
307    
308                            try {
309                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
310                            }
311                            catch (Exception e) {
312                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
313                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
314                                    }
315    
316                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
317                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
318                                    }
319    
320                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
321                            }
322    
323                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
324                    }
325                    catch (com.liferay.portal.kernel.exception.SystemException se) {
326                            _log.error(se, se);
327    
328                            throw se;
329                    }
330            }
331    
332            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
333                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    try {
337                            Object paramObj0 = new LongWrapper(groupId);
338    
339                            Object paramObj1 = urlTitle;
340    
341                            if (urlTitle == null) {
342                                    paramObj1 = new NullWrapper("java.lang.String");
343                            }
344    
345                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
346                                            "getEntry", new Object[] { paramObj0, paramObj1 });
347    
348                            Object returnObj = null;
349    
350                            try {
351                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
352                            }
353                            catch (Exception e) {
354                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
355                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
356                                    }
357    
358                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
359                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
360                                    }
361    
362                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
363                            }
364    
365                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
366                    }
367                    catch (com.liferay.portal.kernel.exception.SystemException se) {
368                            _log.error(se, se);
369    
370                            throw se;
371                    }
372            }
373    
374            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
375                    HttpPrincipal httpPrincipal, long groupId, int status, int max)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    try {
379                            Object paramObj0 = new LongWrapper(groupId);
380    
381                            Object paramObj1 = new IntegerWrapper(status);
382    
383                            Object paramObj2 = new IntegerWrapper(max);
384    
385                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
386                                            "getGroupEntries",
387                                            new Object[] { paramObj0, paramObj1, paramObj2 });
388    
389                            Object returnObj = null;
390    
391                            try {
392                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
393                            }
394                            catch (Exception e) {
395                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
396                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
397                                    }
398    
399                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
400                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
401                                    }
402    
403                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
404                            }
405    
406                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
407                    }
408                    catch (com.liferay.portal.kernel.exception.SystemException se) {
409                            _log.error(se, se);
410    
411                            throw se;
412                    }
413            }
414    
415            public static java.lang.String getGroupEntriesRSS(
416                    HttpPrincipal httpPrincipal, long groupId, int status, int max,
417                    java.lang.String type, double version, java.lang.String displayStyle,
418                    java.lang.String feedURL, java.lang.String entryURL,
419                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
420                    throws com.liferay.portal.kernel.exception.PortalException,
421                            com.liferay.portal.kernel.exception.SystemException {
422                    try {
423                            Object paramObj0 = new LongWrapper(groupId);
424    
425                            Object paramObj1 = new IntegerWrapper(status);
426    
427                            Object paramObj2 = new IntegerWrapper(max);
428    
429                            Object paramObj3 = type;
430    
431                            if (type == null) {
432                                    paramObj3 = new NullWrapper("java.lang.String");
433                            }
434    
435                            Object paramObj4 = new DoubleWrapper(version);
436    
437                            Object paramObj5 = displayStyle;
438    
439                            if (displayStyle == null) {
440                                    paramObj5 = new NullWrapper("java.lang.String");
441                            }
442    
443                            Object paramObj6 = feedURL;
444    
445                            if (feedURL == null) {
446                                    paramObj6 = new NullWrapper("java.lang.String");
447                            }
448    
449                            Object paramObj7 = entryURL;
450    
451                            if (entryURL == null) {
452                                    paramObj7 = new NullWrapper("java.lang.String");
453                            }
454    
455                            Object paramObj8 = themeDisplay;
456    
457                            if (themeDisplay == null) {
458                                    paramObj8 = new NullWrapper(
459                                                    "com.liferay.portal.theme.ThemeDisplay");
460                            }
461    
462                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
463                                            "getGroupEntriesRSS",
464                                            new Object[] {
465                                                    paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
466                                                    paramObj5, paramObj6, paramObj7, paramObj8
467                                            });
468    
469                            Object returnObj = null;
470    
471                            try {
472                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
473                            }
474                            catch (Exception e) {
475                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
476                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
477                                    }
478    
479                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
480                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
481                                    }
482    
483                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
484                            }
485    
486                            return (java.lang.String)returnObj;
487                    }
488                    catch (com.liferay.portal.kernel.exception.SystemException se) {
489                            _log.error(se, se);
490    
491                            throw se;
492                    }
493            }
494    
495            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
496                    HttpPrincipal httpPrincipal, long companyId, long groupId, int status,
497                    int max)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    try {
501                            Object paramObj0 = new LongWrapper(companyId);
502    
503                            Object paramObj1 = new LongWrapper(groupId);
504    
505                            Object paramObj2 = new IntegerWrapper(status);
506    
507                            Object paramObj3 = new IntegerWrapper(max);
508    
509                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
510                                            "getGroupsEntries",
511                                            new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
512    
513                            Object returnObj = null;
514    
515                            try {
516                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
517                            }
518                            catch (Exception e) {
519                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
520                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
521                                    }
522    
523                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
524                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
525                                    }
526    
527                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
528                            }
529    
530                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
531                    }
532                    catch (com.liferay.portal.kernel.exception.SystemException se) {
533                            _log.error(se, se);
534    
535                            throw se;
536                    }
537            }
538    
539            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
540                    HttpPrincipal httpPrincipal, long organizationId, int status, int max)
541                    throws com.liferay.portal.kernel.exception.PortalException,
542                            com.liferay.portal.kernel.exception.SystemException {
543                    try {
544                            Object paramObj0 = new LongWrapper(organizationId);
545    
546                            Object paramObj1 = new IntegerWrapper(status);
547    
548                            Object paramObj2 = new IntegerWrapper(max);
549    
550                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
551                                            "getOrganizationEntries",
552                                            new Object[] { paramObj0, paramObj1, paramObj2 });
553    
554                            Object returnObj = null;
555    
556                            try {
557                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
558                            }
559                            catch (Exception e) {
560                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
561                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
562                                    }
563    
564                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
565                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
566                                    }
567    
568                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
569                            }
570    
571                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
572                    }
573                    catch (com.liferay.portal.kernel.exception.SystemException se) {
574                            _log.error(se, se);
575    
576                            throw se;
577                    }
578            }
579    
580            public static java.lang.String getOrganizationEntriesRSS(
581                    HttpPrincipal httpPrincipal, long organizationId, int status, int max,
582                    java.lang.String type, double version, java.lang.String displayStyle,
583                    java.lang.String feedURL, java.lang.String entryURL,
584                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException {
587                    try {
588                            Object paramObj0 = new LongWrapper(organizationId);
589    
590                            Object paramObj1 = new IntegerWrapper(status);
591    
592                            Object paramObj2 = new IntegerWrapper(max);
593    
594                            Object paramObj3 = type;
595    
596                            if (type == null) {
597                                    paramObj3 = new NullWrapper("java.lang.String");
598                            }
599    
600                            Object paramObj4 = new DoubleWrapper(version);
601    
602                            Object paramObj5 = displayStyle;
603    
604                            if (displayStyle == null) {
605                                    paramObj5 = new NullWrapper("java.lang.String");
606                            }
607    
608                            Object paramObj6 = feedURL;
609    
610                            if (feedURL == null) {
611                                    paramObj6 = new NullWrapper("java.lang.String");
612                            }
613    
614                            Object paramObj7 = entryURL;
615    
616                            if (entryURL == null) {
617                                    paramObj7 = new NullWrapper("java.lang.String");
618                            }
619    
620                            Object paramObj8 = themeDisplay;
621    
622                            if (themeDisplay == null) {
623                                    paramObj8 = new NullWrapper(
624                                                    "com.liferay.portal.theme.ThemeDisplay");
625                            }
626    
627                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
628                                            "getOrganizationEntriesRSS",
629                                            new Object[] {
630                                                    paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
631                                                    paramObj5, paramObj6, paramObj7, paramObj8
632                                            });
633    
634                            Object returnObj = null;
635    
636                            try {
637                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
638                            }
639                            catch (Exception e) {
640                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
641                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
642                                    }
643    
644                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
645                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
646                                    }
647    
648                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
649                            }
650    
651                            return (java.lang.String)returnObj;
652                    }
653                    catch (com.liferay.portal.kernel.exception.SystemException se) {
654                            _log.error(se, se);
655    
656                            throw se;
657                    }
658            }
659    
660            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
661                    HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
662                    java.lang.String content, int displayDateMonth, int displayDateDay,
663                    int displayDateYear, int displayDateHour, int displayDateMinute,
664                    boolean allowPingbacks, boolean allowTrackbacks,
665                    java.lang.String[] trackbacks,
666                    com.liferay.portal.service.ServiceContext serviceContext)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException {
669                    try {
670                            Object paramObj0 = new LongWrapper(entryId);
671    
672                            Object paramObj1 = title;
673    
674                            if (title == null) {
675                                    paramObj1 = new NullWrapper("java.lang.String");
676                            }
677    
678                            Object paramObj2 = content;
679    
680                            if (content == null) {
681                                    paramObj2 = new NullWrapper("java.lang.String");
682                            }
683    
684                            Object paramObj3 = new IntegerWrapper(displayDateMonth);
685    
686                            Object paramObj4 = new IntegerWrapper(displayDateDay);
687    
688                            Object paramObj5 = new IntegerWrapper(displayDateYear);
689    
690                            Object paramObj6 = new IntegerWrapper(displayDateHour);
691    
692                            Object paramObj7 = new IntegerWrapper(displayDateMinute);
693    
694                            Object paramObj8 = new BooleanWrapper(allowPingbacks);
695    
696                            Object paramObj9 = new BooleanWrapper(allowTrackbacks);
697    
698                            Object paramObj10 = trackbacks;
699    
700                            if (trackbacks == null) {
701                                    paramObj10 = new NullWrapper("[Ljava.lang.String;");
702                            }
703    
704                            Object paramObj11 = serviceContext;
705    
706                            if (serviceContext == null) {
707                                    paramObj11 = new NullWrapper(
708                                                    "com.liferay.portal.service.ServiceContext");
709                            }
710    
711                            MethodWrapper methodWrapper = new MethodWrapper(BlogsEntryServiceUtil.class.getName(),
712                                            "updateEntry",
713                                            new Object[] {
714                                                    paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
715                                                    paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
716                                                    paramObj10, paramObj11
717                                            });
718    
719                            Object returnObj = null;
720    
721                            try {
722                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
723                            }
724                            catch (Exception e) {
725                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
726                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
727                                    }
728    
729                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
730                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
731                                    }
732    
733                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
734                            }
735    
736                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
737                    }
738                    catch (com.liferay.portal.kernel.exception.SystemException se) {
739                            _log.error(se, se);
740    
741                            throw se;
742                    }
743            }
744    
745            private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
746    }