001    /**
002     * Copyright (c) 2000-2013 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.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,
139                    java.util.Date displayDate, int status, int max)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    try {
143                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
144                                            "getCompanyEntries", _getCompanyEntriesParameterTypes2);
145    
146                            MethodHandler methodHandler = new MethodHandler(methodKey,
147                                            companyId, displayDate, status, max);
148    
149                            Object returnObj = null;
150    
151                            try {
152                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
153                            }
154                            catch (Exception e) {
155                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
156                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
157                                    }
158    
159                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
160                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
161                                    }
162    
163                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
164                            }
165    
166                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
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.lang.String getCompanyEntriesRSS(
176                    HttpPrincipal httpPrincipal, long companyId,
177                    java.util.Date displayDate, int status, int max, java.lang.String type,
178                    double version, java.lang.String displayStyle,
179                    java.lang.String feedURL, java.lang.String entryURL,
180                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    try {
184                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
185                                            "getCompanyEntriesRSS", _getCompanyEntriesRSSParameterTypes3);
186    
187                            MethodHandler methodHandler = new MethodHandler(methodKey,
188                                            companyId, displayDate, status, max, type, version,
189                                            displayStyle, feedURL, entryURL, themeDisplay);
190    
191                            Object returnObj = null;
192    
193                            try {
194                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
195                            }
196                            catch (Exception e) {
197                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
198                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
199                                    }
200    
201                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
202                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
203                                    }
204    
205                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
206                            }
207    
208                            return (java.lang.String)returnObj;
209                    }
210                    catch (com.liferay.portal.kernel.exception.SystemException se) {
211                            _log.error(se, se);
212    
213                            throw se;
214                    }
215            }
216    
217            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
218                    HttpPrincipal httpPrincipal, long entryId)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    try {
222                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
223                                            "getEntry", _getEntryParameterTypes4);
224    
225                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
226    
227                            Object returnObj = null;
228    
229                            try {
230                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
231                            }
232                            catch (Exception e) {
233                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
234                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
235                                    }
236    
237                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
238                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
239                                    }
240    
241                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
242                            }
243    
244                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
245                    }
246                    catch (com.liferay.portal.kernel.exception.SystemException se) {
247                            _log.error(se, se);
248    
249                            throw se;
250                    }
251            }
252    
253            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
254                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    try {
258                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
259                                            "getEntry", _getEntryParameterTypes5);
260    
261                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
262                                            urlTitle);
263    
264                            Object returnObj = null;
265    
266                            try {
267                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
268                            }
269                            catch (Exception e) {
270                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
271                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
272                                    }
273    
274                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
275                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
276                                    }
277    
278                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
279                            }
280    
281                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
282                    }
283                    catch (com.liferay.portal.kernel.exception.SystemException se) {
284                            _log.error(se, se);
285    
286                            throw se;
287                    }
288            }
289    
290            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
291                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
292                    int status, int max)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    try {
295                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
296                                            "getGroupEntries", _getGroupEntriesParameterTypes6);
297    
298                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
299                                            displayDate, status, max);
300    
301                            Object returnObj = null;
302    
303                            try {
304                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
305                            }
306                            catch (Exception e) {
307                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
308                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
309                                    }
310    
311                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
312                            }
313    
314                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
315                    }
316                    catch (com.liferay.portal.kernel.exception.SystemException se) {
317                            _log.error(se, se);
318    
319                            throw se;
320                    }
321            }
322    
323            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
324                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
325                    int status, int start, int end)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    try {
328                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
329                                            "getGroupEntries", _getGroupEntriesParameterTypes7);
330    
331                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
332                                            displayDate, status, start, end);
333    
334                            Object returnObj = null;
335    
336                            try {
337                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
338                            }
339                            catch (Exception e) {
340                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
341                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
342                                    }
343    
344                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
345                            }
346    
347                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
348                    }
349                    catch (com.liferay.portal.kernel.exception.SystemException se) {
350                            _log.error(se, se);
351    
352                            throw se;
353                    }
354            }
355    
356            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
357                    HttpPrincipal httpPrincipal, long groupId, int status, int max)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    try {
360                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
361                                            "getGroupEntries", _getGroupEntriesParameterTypes8);
362    
363                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
364                                            status, max);
365    
366                            Object returnObj = null;
367    
368                            try {
369                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
370                            }
371                            catch (Exception e) {
372                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
373                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
374                                    }
375    
376                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
377                            }
378    
379                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
380                    }
381                    catch (com.liferay.portal.kernel.exception.SystemException se) {
382                            _log.error(se, se);
383    
384                            throw se;
385                    }
386            }
387    
388            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
389                    HttpPrincipal httpPrincipal, long groupId, int status, int start,
390                    int end) throws com.liferay.portal.kernel.exception.SystemException {
391                    try {
392                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
393                                            "getGroupEntries", _getGroupEntriesParameterTypes9);
394    
395                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
396                                            status, start, end);
397    
398                            Object returnObj = null;
399    
400                            try {
401                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
402                            }
403                            catch (Exception e) {
404                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
405                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
406                                    }
407    
408                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
409                            }
410    
411                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
412                    }
413                    catch (com.liferay.portal.kernel.exception.SystemException se) {
414                            _log.error(se, se);
415    
416                            throw se;
417                    }
418            }
419    
420            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
421                    long groupId, java.util.Date displayDate, int status)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    try {
424                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
425                                            "getGroupEntriesCount",
426                                            _getGroupEntriesCountParameterTypes10);
427    
428                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
429                                            displayDate, status);
430    
431                            Object returnObj = null;
432    
433                            try {
434                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
435                            }
436                            catch (Exception e) {
437                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
438                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
439                                    }
440    
441                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
442                            }
443    
444                            return ((Integer)returnObj).intValue();
445                    }
446                    catch (com.liferay.portal.kernel.exception.SystemException se) {
447                            _log.error(se, se);
448    
449                            throw se;
450                    }
451            }
452    
453            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
454                    long groupId, int status)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    try {
457                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
458                                            "getGroupEntriesCount",
459                                            _getGroupEntriesCountParameterTypes11);
460    
461                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
462                                            status);
463    
464                            Object returnObj = null;
465    
466                            try {
467                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
468                            }
469                            catch (Exception e) {
470                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
471                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
472                                    }
473    
474                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
475                            }
476    
477                            return ((Integer)returnObj).intValue();
478                    }
479                    catch (com.liferay.portal.kernel.exception.SystemException se) {
480                            _log.error(se, se);
481    
482                            throw se;
483                    }
484            }
485    
486            public static java.lang.String getGroupEntriesRSS(
487                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
488                    int status, int max, java.lang.String type, double version,
489                    java.lang.String displayStyle, java.lang.String feedURL,
490                    java.lang.String entryURL,
491                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
492                    throws com.liferay.portal.kernel.exception.PortalException,
493                            com.liferay.portal.kernel.exception.SystemException {
494                    try {
495                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
496                                            "getGroupEntriesRSS", _getGroupEntriesRSSParameterTypes12);
497    
498                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
499                                            displayDate, status, max, type, version, displayStyle,
500                                            feedURL, entryURL, themeDisplay);
501    
502                            Object returnObj = null;
503    
504                            try {
505                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
506                            }
507                            catch (Exception e) {
508                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
509                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
510                                    }
511    
512                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
513                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
514                                    }
515    
516                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
517                            }
518    
519                            return (java.lang.String)returnObj;
520                    }
521                    catch (com.liferay.portal.kernel.exception.SystemException se) {
522                            _log.error(se, se);
523    
524                            throw se;
525                    }
526            }
527    
528            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
529                    HttpPrincipal httpPrincipal, long companyId, long groupId,
530                    java.util.Date displayDate, int status, int max)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    try {
534                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
535                                            "getGroupsEntries", _getGroupsEntriesParameterTypes13);
536    
537                            MethodHandler methodHandler = new MethodHandler(methodKey,
538                                            companyId, groupId, displayDate, status, max);
539    
540                            Object returnObj = null;
541    
542                            try {
543                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
544                            }
545                            catch (Exception e) {
546                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
547                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
548                                    }
549    
550                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
551                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
552                                    }
553    
554                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
555                            }
556    
557                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
558                    }
559                    catch (com.liferay.portal.kernel.exception.SystemException se) {
560                            _log.error(se, se);
561    
562                            throw se;
563                    }
564            }
565    
566            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
567                    HttpPrincipal httpPrincipal, long organizationId,
568                    java.util.Date displayDate, int status, int max)
569                    throws com.liferay.portal.kernel.exception.PortalException,
570                            com.liferay.portal.kernel.exception.SystemException {
571                    try {
572                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
573                                            "getOrganizationEntries",
574                                            _getOrganizationEntriesParameterTypes14);
575    
576                            MethodHandler methodHandler = new MethodHandler(methodKey,
577                                            organizationId, displayDate, status, max);
578    
579                            Object returnObj = null;
580    
581                            try {
582                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
583                            }
584                            catch (Exception e) {
585                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
586                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
587                                    }
588    
589                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
590                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
591                                    }
592    
593                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
594                            }
595    
596                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
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 java.lang.String getOrganizationEntriesRSS(
606                    HttpPrincipal httpPrincipal, long organizationId,
607                    java.util.Date displayDate, int status, int max, java.lang.String type,
608                    double version, java.lang.String displayStyle,
609                    java.lang.String feedURL, java.lang.String entryURL,
610                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
611                    throws com.liferay.portal.kernel.exception.PortalException,
612                            com.liferay.portal.kernel.exception.SystemException {
613                    try {
614                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
615                                            "getOrganizationEntriesRSS",
616                                            _getOrganizationEntriesRSSParameterTypes15);
617    
618                            MethodHandler methodHandler = new MethodHandler(methodKey,
619                                            organizationId, displayDate, status, max, type, version,
620                                            displayStyle, feedURL, entryURL, themeDisplay);
621    
622                            Object returnObj = null;
623    
624                            try {
625                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
626                            }
627                            catch (Exception e) {
628                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
629                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
630                                    }
631    
632                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
633                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
634                                    }
635    
636                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
637                            }
638    
639                            return (java.lang.String)returnObj;
640                    }
641                    catch (com.liferay.portal.kernel.exception.SystemException se) {
642                            _log.error(se, se);
643    
644                            throw se;
645                    }
646            }
647    
648            public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
649                    throws com.liferay.portal.kernel.exception.PortalException,
650                            com.liferay.portal.kernel.exception.SystemException {
651                    try {
652                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
653                                            "subscribe", _subscribeParameterTypes16);
654    
655                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
656    
657                            try {
658                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
659                            }
660                            catch (Exception e) {
661                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
662                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
663                                    }
664    
665                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
666                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
667                                    }
668    
669                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
670                            }
671                    }
672                    catch (com.liferay.portal.kernel.exception.SystemException se) {
673                            _log.error(se, se);
674    
675                            throw se;
676                    }
677            }
678    
679            public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
680                    throws com.liferay.portal.kernel.exception.PortalException,
681                            com.liferay.portal.kernel.exception.SystemException {
682                    try {
683                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
684                                            "unsubscribe", _unsubscribeParameterTypes17);
685    
686                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
687    
688                            try {
689                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
690                            }
691                            catch (Exception e) {
692                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
693                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
694                                    }
695    
696                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
697                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
698                                    }
699    
700                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
701                            }
702                    }
703                    catch (com.liferay.portal.kernel.exception.SystemException se) {
704                            _log.error(se, se);
705    
706                            throw se;
707                    }
708            }
709    
710            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
711                    HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
712                    java.lang.String description, java.lang.String content,
713                    int displayDateMonth, int displayDateDay, int displayDateYear,
714                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
715                    boolean allowTrackbacks, java.lang.String[] trackbacks,
716                    boolean smallImage, java.lang.String smallImageURL,
717                    java.lang.String smallImageFileName,
718                    java.io.InputStream smallImageInputStream,
719                    com.liferay.portal.service.ServiceContext serviceContext)
720                    throws com.liferay.portal.kernel.exception.PortalException,
721                            com.liferay.portal.kernel.exception.SystemException {
722                    try {
723                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class.getName(),
724                                            "updateEntry", _updateEntryParameterTypes18);
725    
726                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
727                                            title, description, content, displayDateMonth,
728                                            displayDateDay, displayDateYear, displayDateHour,
729                                            displayDateMinute, allowPingbacks, allowTrackbacks,
730                                            trackbacks, smallImage, smallImageURL, smallImageFileName,
731                                            smallImageInputStream, serviceContext);
732    
733                            Object returnObj = null;
734    
735                            try {
736                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
737                            }
738                            catch (Exception e) {
739                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
740                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
741                                    }
742    
743                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
744                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
745                                    }
746    
747                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
748                            }
749    
750                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
751                    }
752                    catch (com.liferay.portal.kernel.exception.SystemException se) {
753                            _log.error(se, se);
754    
755                            throw se;
756                    }
757            }
758    
759            private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
760            private static final Class<?>[] _addEntryParameterTypes0 = new Class[] {
761                            java.lang.String.class, java.lang.String.class,
762                            java.lang.String.class, int.class, int.class, int.class, int.class,
763                            int.class, boolean.class, boolean.class, java.lang.String[].class,
764                            boolean.class, java.lang.String.class, java.lang.String.class,
765                            java.io.InputStream.class,
766                            com.liferay.portal.service.ServiceContext.class
767                    };
768            private static final Class<?>[] _deleteEntryParameterTypes1 = new Class[] {
769                            long.class
770                    };
771            private static final Class<?>[] _getCompanyEntriesParameterTypes2 = new Class[] {
772                            long.class, java.util.Date.class, int.class, int.class
773                    };
774            private static final Class<?>[] _getCompanyEntriesRSSParameterTypes3 = new Class[] {
775                            long.class, java.util.Date.class, int.class, int.class,
776                            java.lang.String.class, double.class, java.lang.String.class,
777                            java.lang.String.class, java.lang.String.class,
778                            com.liferay.portal.theme.ThemeDisplay.class
779                    };
780            private static final Class<?>[] _getEntryParameterTypes4 = new Class[] {
781                            long.class
782                    };
783            private static final Class<?>[] _getEntryParameterTypes5 = new Class[] {
784                            long.class, java.lang.String.class
785                    };
786            private static final Class<?>[] _getGroupEntriesParameterTypes6 = new Class[] {
787                            long.class, java.util.Date.class, int.class, int.class
788                    };
789            private static final Class<?>[] _getGroupEntriesParameterTypes7 = new Class[] {
790                            long.class, java.util.Date.class, int.class, int.class, int.class
791                    };
792            private static final Class<?>[] _getGroupEntriesParameterTypes8 = new Class[] {
793                            long.class, int.class, int.class
794                    };
795            private static final Class<?>[] _getGroupEntriesParameterTypes9 = new Class[] {
796                            long.class, int.class, int.class, int.class
797                    };
798            private static final Class<?>[] _getGroupEntriesCountParameterTypes10 = new Class[] {
799                            long.class, java.util.Date.class, int.class
800                    };
801            private static final Class<?>[] _getGroupEntriesCountParameterTypes11 = new Class[] {
802                            long.class, int.class
803                    };
804            private static final Class<?>[] _getGroupEntriesRSSParameterTypes12 = new Class[] {
805                            long.class, java.util.Date.class, int.class, int.class,
806                            java.lang.String.class, double.class, java.lang.String.class,
807                            java.lang.String.class, java.lang.String.class,
808                            com.liferay.portal.theme.ThemeDisplay.class
809                    };
810            private static final Class<?>[] _getGroupsEntriesParameterTypes13 = new Class[] {
811                            long.class, long.class, java.util.Date.class, int.class, int.class
812                    };
813            private static final Class<?>[] _getOrganizationEntriesParameterTypes14 = new Class[] {
814                            long.class, java.util.Date.class, int.class, int.class
815                    };
816            private static final Class<?>[] _getOrganizationEntriesRSSParameterTypes15 = new Class[] {
817                            long.class, java.util.Date.class, int.class, int.class,
818                            java.lang.String.class, double.class, java.lang.String.class,
819                            java.lang.String.class, java.lang.String.class,
820                            com.liferay.portal.theme.ThemeDisplay.class
821                    };
822            private static final Class<?>[] _subscribeParameterTypes16 = new Class[] {
823                            long.class
824                    };
825            private static final Class<?>[] _unsubscribeParameterTypes17 = new Class[] {
826                            long.class
827                    };
828            private static final Class<?>[] _updateEntryParameterTypes18 = new Class[] {
829                            long.class, java.lang.String.class, java.lang.String.class,
830                            java.lang.String.class, int.class, int.class, int.class, int.class,
831                            int.class, boolean.class, boolean.class, java.lang.String[].class,
832                            boolean.class, java.lang.String.class, java.lang.String.class,
833                            java.io.InputStream.class,
834                            com.liferay.portal.service.ServiceContext.class
835                    };
836    }