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