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     * Provides the HTTP utility for the
028     * {@link com.liferay.portlet.blogs.service.BlogsEntryServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see BlogsEntryServiceSoap
050     * @see com.liferay.portal.security.auth.HttpPrincipal
051     * @see com.liferay.portlet.blogs.service.BlogsEntryServiceUtil
052     * @generated
053     */
054    public class BlogsEntryServiceHttp {
055            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
056                    HttpPrincipal httpPrincipal, java.lang.String title,
057                    java.lang.String description, java.lang.String content,
058                    int displayDateMonth, int displayDateDay, int displayDateYear,
059                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
060                    boolean allowTrackbacks, java.lang.String[] trackbacks,
061                    boolean smallImage, java.lang.String smallImageURL,
062                    java.lang.String smallImageFileName,
063                    java.io.InputStream smallImageInputStream,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    try {
068                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
069                                            "addEntry", _addEntryParameterTypes0);
070    
071                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
072                                            description, content, displayDateMonth, displayDateDay,
073                                            displayDateYear, displayDateHour, displayDateMinute,
074                                            allowPingbacks, allowTrackbacks, trackbacks, smallImage,
075                                            smallImageURL, smallImageFileName, smallImageInputStream,
076                                            serviceContext);
077    
078                            Object returnObj = null;
079    
080                            try {
081                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
082                            }
083                            catch (Exception e) {
084                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
085                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
086                                    }
087    
088                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
089                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
090                                    }
091    
092                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
093                            }
094    
095                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
096                    }
097                    catch (com.liferay.portal.kernel.exception.SystemException se) {
098                            _log.error(se, se);
099    
100                            throw se;
101                    }
102            }
103    
104            public static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException {
107                    try {
108                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
109                                            "deleteEntry", _deleteEntryParameterTypes1);
110    
111                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
112    
113                            try {
114                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
115                            }
116                            catch (Exception e) {
117                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
118                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
119                                    }
120    
121                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
122                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
123                                    }
124    
125                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
126                            }
127                    }
128                    catch (com.liferay.portal.kernel.exception.SystemException se) {
129                            _log.error(se, se);
130    
131                            throw se;
132                    }
133            }
134    
135            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
136                    HttpPrincipal httpPrincipal, long companyId,
137                    java.util.Date displayDate, int status, int max)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    try {
141                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
142                                            "getCompanyEntries", _getCompanyEntriesParameterTypes2);
143    
144                            MethodHandler methodHandler = new MethodHandler(methodKey,
145                                            companyId, displayDate, status, max);
146    
147                            Object returnObj = null;
148    
149                            try {
150                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
151                            }
152                            catch (Exception e) {
153                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
154                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
155                                    }
156    
157                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
158                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
159                                    }
160    
161                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
162                            }
163    
164                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
165                    }
166                    catch (com.liferay.portal.kernel.exception.SystemException se) {
167                            _log.error(se, se);
168    
169                            throw se;
170                    }
171            }
172    
173            public static java.lang.String getCompanyEntriesRSS(
174                    HttpPrincipal httpPrincipal, long companyId,
175                    java.util.Date displayDate, int status, int max, java.lang.String type,
176                    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,
183                                            "getCompanyEntriesRSS", _getCompanyEntriesRSSParameterTypes3);
184    
185                            MethodHandler methodHandler = new MethodHandler(methodKey,
186                                            companyId, displayDate, status, max, type, version,
187                                            displayStyle, 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,
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,
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, java.util.Date displayDate,
290                    int status, int max)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    try {
293                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
294                                            "getGroupEntries", _getGroupEntriesParameterTypes6);
295    
296                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
297                                            displayDate, status, max);
298    
299                            Object returnObj = null;
300    
301                            try {
302                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
303                            }
304                            catch (Exception e) {
305                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
306                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
307                                    }
308    
309                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
310                            }
311    
312                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
313                    }
314                    catch (com.liferay.portal.kernel.exception.SystemException se) {
315                            _log.error(se, se);
316    
317                            throw se;
318                    }
319            }
320    
321            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
322                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
323                    int status, int start, int end)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    try {
326                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
327                                            "getGroupEntries", _getGroupEntriesParameterTypes7);
328    
329                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
330                                            displayDate, status, start, end);
331    
332                            Object returnObj = null;
333    
334                            try {
335                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
336                            }
337                            catch (Exception e) {
338                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
339                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
340                                    }
341    
342                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
343                            }
344    
345                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
346                    }
347                    catch (com.liferay.portal.kernel.exception.SystemException se) {
348                            _log.error(se, se);
349    
350                            throw se;
351                    }
352            }
353    
354            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
355                    HttpPrincipal httpPrincipal, long groupId, int status, int max)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    try {
358                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
359                                            "getGroupEntries", _getGroupEntriesParameterTypes8);
360    
361                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
362                                            status, max);
363    
364                            Object returnObj = null;
365    
366                            try {
367                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
368                            }
369                            catch (Exception e) {
370                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
371                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
372                                    }
373    
374                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
375                            }
376    
377                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
378                    }
379                    catch (com.liferay.portal.kernel.exception.SystemException se) {
380                            _log.error(se, se);
381    
382                            throw se;
383                    }
384            }
385    
386            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
387                    HttpPrincipal httpPrincipal, long groupId, int status, int start,
388                    int end) throws com.liferay.portal.kernel.exception.SystemException {
389                    try {
390                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
391                                            "getGroupEntries", _getGroupEntriesParameterTypes9);
392    
393                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
394                                            status, start, end);
395    
396                            Object returnObj = null;
397    
398                            try {
399                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
400                            }
401                            catch (Exception e) {
402                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
403                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
404                                    }
405    
406                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
407                            }
408    
409                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
410                    }
411                    catch (com.liferay.portal.kernel.exception.SystemException se) {
412                            _log.error(se, se);
413    
414                            throw se;
415                    }
416            }
417    
418            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
419                    long groupId, java.util.Date displayDate, int status)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    try {
422                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
423                                            "getGroupEntriesCount",
424                                            _getGroupEntriesCountParameterTypes10);
425    
426                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
427                                            displayDate, status);
428    
429                            Object returnObj = null;
430    
431                            try {
432                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
433                            }
434                            catch (Exception e) {
435                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
436                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
437                                    }
438    
439                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
440                            }
441    
442                            return ((Integer)returnObj).intValue();
443                    }
444                    catch (com.liferay.portal.kernel.exception.SystemException se) {
445                            _log.error(se, se);
446    
447                            throw se;
448                    }
449            }
450    
451            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
452                    long groupId, int status)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    try {
455                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
456                                            "getGroupEntriesCount",
457                                            _getGroupEntriesCountParameterTypes11);
458    
459                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
460                                            status);
461    
462                            Object returnObj = null;
463    
464                            try {
465                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
466                            }
467                            catch (Exception e) {
468                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
469                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
470                                    }
471    
472                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
473                            }
474    
475                            return ((Integer)returnObj).intValue();
476                    }
477                    catch (com.liferay.portal.kernel.exception.SystemException se) {
478                            _log.error(se, se);
479    
480                            throw se;
481                    }
482            }
483    
484            public static java.lang.String getGroupEntriesRSS(
485                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
486                    int status, int max, java.lang.String type, double version,
487                    java.lang.String displayStyle, java.lang.String feedURL,
488                    java.lang.String entryURL,
489                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
490                    throws com.liferay.portal.kernel.exception.PortalException,
491                            com.liferay.portal.kernel.exception.SystemException {
492                    try {
493                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
494                                            "getGroupEntriesRSS", _getGroupEntriesRSSParameterTypes12);
495    
496                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
497                                            displayDate, status, max, type, version, displayStyle,
498                                            feedURL, entryURL, themeDisplay);
499    
500                            Object returnObj = null;
501    
502                            try {
503                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
504                            }
505                            catch (Exception e) {
506                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
507                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
508                                    }
509    
510                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
511                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
512                                    }
513    
514                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
515                            }
516    
517                            return (java.lang.String)returnObj;
518                    }
519                    catch (com.liferay.portal.kernel.exception.SystemException se) {
520                            _log.error(se, se);
521    
522                            throw se;
523                    }
524            }
525    
526            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
527                    HttpPrincipal httpPrincipal, long companyId, long groupId,
528                    java.util.Date displayDate, int status, int max)
529                    throws com.liferay.portal.kernel.exception.PortalException,
530                            com.liferay.portal.kernel.exception.SystemException {
531                    try {
532                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
533                                            "getGroupsEntries", _getGroupsEntriesParameterTypes13);
534    
535                            MethodHandler methodHandler = new MethodHandler(methodKey,
536                                            companyId, groupId, displayDate, status, max);
537    
538                            Object returnObj = null;
539    
540                            try {
541                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
542                            }
543                            catch (Exception e) {
544                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
545                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
546                                    }
547    
548                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
549                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
550                                    }
551    
552                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
553                            }
554    
555                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
556                    }
557                    catch (com.liferay.portal.kernel.exception.SystemException se) {
558                            _log.error(se, se);
559    
560                            throw se;
561                    }
562            }
563    
564            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
565                    HttpPrincipal httpPrincipal, long organizationId,
566                    java.util.Date displayDate, int status, int max)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException {
569                    try {
570                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
571                                            "getOrganizationEntries",
572                                            _getOrganizationEntriesParameterTypes14);
573    
574                            MethodHandler methodHandler = new MethodHandler(methodKey,
575                                            organizationId, displayDate, status, max);
576    
577                            Object returnObj = null;
578    
579                            try {
580                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
581                            }
582                            catch (Exception e) {
583                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
584                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
585                                    }
586    
587                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
588                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
589                                    }
590    
591                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
592                            }
593    
594                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
595                    }
596                    catch (com.liferay.portal.kernel.exception.SystemException se) {
597                            _log.error(se, se);
598    
599                            throw se;
600                    }
601            }
602    
603            public static java.lang.String getOrganizationEntriesRSS(
604                    HttpPrincipal httpPrincipal, long organizationId,
605                    java.util.Date displayDate, int status, int max, java.lang.String type,
606                    double version, java.lang.String displayStyle,
607                    java.lang.String feedURL, java.lang.String entryURL,
608                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
609                    throws com.liferay.portal.kernel.exception.PortalException,
610                            com.liferay.portal.kernel.exception.SystemException {
611                    try {
612                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
613                                            "getOrganizationEntriesRSS",
614                                            _getOrganizationEntriesRSSParameterTypes15);
615    
616                            MethodHandler methodHandler = new MethodHandler(methodKey,
617                                            organizationId, displayDate, status, max, type, version,
618                                            displayStyle, feedURL, entryURL, themeDisplay);
619    
620                            Object returnObj = null;
621    
622                            try {
623                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
624                            }
625                            catch (Exception e) {
626                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
627                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
628                                    }
629    
630                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
631                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
632                                    }
633    
634                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
635                            }
636    
637                            return (java.lang.String)returnObj;
638                    }
639                    catch (com.liferay.portal.kernel.exception.SystemException se) {
640                            _log.error(se, se);
641    
642                            throw se;
643                    }
644            }
645    
646            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
647                    HttpPrincipal httpPrincipal, long entryId)
648                    throws com.liferay.portal.kernel.exception.PortalException,
649                            com.liferay.portal.kernel.exception.SystemException {
650                    try {
651                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
652                                            "moveEntryToTrash", _moveEntryToTrashParameterTypes16);
653    
654                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
655    
656                            Object returnObj = null;
657    
658                            try {
659                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
660                            }
661                            catch (Exception e) {
662                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
663                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
664                                    }
665    
666                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
667                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
668                                    }
669    
670                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
671                            }
672    
673                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
674                    }
675                    catch (com.liferay.portal.kernel.exception.SystemException se) {
676                            _log.error(se, se);
677    
678                            throw se;
679                    }
680            }
681    
682            public static void restoreEntryFromTrash(HttpPrincipal httpPrincipal,
683                    long entryId)
684                    throws com.liferay.portal.kernel.exception.PortalException,
685                            com.liferay.portal.kernel.exception.SystemException {
686                    try {
687                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
688                                            "restoreEntryFromTrash",
689                                            _restoreEntryFromTrashParameterTypes17);
690    
691                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
692    
693                            try {
694                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
695                            }
696                            catch (Exception e) {
697                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
698                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
699                                    }
700    
701                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
702                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
703                                    }
704    
705                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
706                            }
707                    }
708                    catch (com.liferay.portal.kernel.exception.SystemException se) {
709                            _log.error(se, se);
710    
711                            throw se;
712                    }
713            }
714    
715            public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    try {
719                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
720                                            "subscribe", _subscribeParameterTypes18);
721    
722                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
723    
724                            try {
725                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
726                            }
727                            catch (Exception e) {
728                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
729                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
730                                    }
731    
732                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
733                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
734                                    }
735    
736                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
737                            }
738                    }
739                    catch (com.liferay.portal.kernel.exception.SystemException se) {
740                            _log.error(se, se);
741    
742                            throw se;
743                    }
744            }
745    
746            public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
747                    throws com.liferay.portal.kernel.exception.PortalException,
748                            com.liferay.portal.kernel.exception.SystemException {
749                    try {
750                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
751                                            "unsubscribe", _unsubscribeParameterTypes19);
752    
753                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
754    
755                            try {
756                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
757                            }
758                            catch (Exception e) {
759                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
760                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
761                                    }
762    
763                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
764                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
765                                    }
766    
767                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
768                            }
769                    }
770                    catch (com.liferay.portal.kernel.exception.SystemException se) {
771                            _log.error(se, se);
772    
773                            throw se;
774                    }
775            }
776    
777            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
778                    HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
779                    java.lang.String description, java.lang.String content,
780                    int displayDateMonth, int displayDateDay, int displayDateYear,
781                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
782                    boolean allowTrackbacks, java.lang.String[] trackbacks,
783                    boolean smallImage, java.lang.String smallImageURL,
784                    java.lang.String smallImageFileName,
785                    java.io.InputStream smallImageInputStream,
786                    com.liferay.portal.service.ServiceContext serviceContext)
787                    throws com.liferay.portal.kernel.exception.PortalException,
788                            com.liferay.portal.kernel.exception.SystemException {
789                    try {
790                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
791                                            "updateEntry", _updateEntryParameterTypes20);
792    
793                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
794                                            title, description, content, displayDateMonth,
795                                            displayDateDay, displayDateYear, displayDateHour,
796                                            displayDateMinute, allowPingbacks, allowTrackbacks,
797                                            trackbacks, smallImage, smallImageURL, smallImageFileName,
798                                            smallImageInputStream, serviceContext);
799    
800                            Object returnObj = null;
801    
802                            try {
803                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
804                            }
805                            catch (Exception e) {
806                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
807                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
808                                    }
809    
810                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
811                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
812                                    }
813    
814                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
815                            }
816    
817                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
818                    }
819                    catch (com.liferay.portal.kernel.exception.SystemException se) {
820                            _log.error(se, se);
821    
822                            throw se;
823                    }
824            }
825    
826            private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
827            private static final Class<?>[] _addEntryParameterTypes0 = new Class[] {
828                            java.lang.String.class, java.lang.String.class,
829                            java.lang.String.class, int.class, int.class, int.class, int.class,
830                            int.class, boolean.class, boolean.class, java.lang.String[].class,
831                            boolean.class, java.lang.String.class, java.lang.String.class,
832                            java.io.InputStream.class,
833                            com.liferay.portal.service.ServiceContext.class
834                    };
835            private static final Class<?>[] _deleteEntryParameterTypes1 = new Class[] {
836                            long.class
837                    };
838            private static final Class<?>[] _getCompanyEntriesParameterTypes2 = new Class[] {
839                            long.class, java.util.Date.class, int.class, int.class
840                    };
841            private static final Class<?>[] _getCompanyEntriesRSSParameterTypes3 = new Class[] {
842                            long.class, java.util.Date.class, int.class, int.class,
843                            java.lang.String.class, double.class, java.lang.String.class,
844                            java.lang.String.class, java.lang.String.class,
845                            com.liferay.portal.theme.ThemeDisplay.class
846                    };
847            private static final Class<?>[] _getEntryParameterTypes4 = new Class[] {
848                            long.class
849                    };
850            private static final Class<?>[] _getEntryParameterTypes5 = new Class[] {
851                            long.class, java.lang.String.class
852                    };
853            private static final Class<?>[] _getGroupEntriesParameterTypes6 = new Class[] {
854                            long.class, java.util.Date.class, int.class, int.class
855                    };
856            private static final Class<?>[] _getGroupEntriesParameterTypes7 = new Class[] {
857                            long.class, java.util.Date.class, int.class, int.class, int.class
858                    };
859            private static final Class<?>[] _getGroupEntriesParameterTypes8 = new Class[] {
860                            long.class, int.class, int.class
861                    };
862            private static final Class<?>[] _getGroupEntriesParameterTypes9 = new Class[] {
863                            long.class, int.class, int.class, int.class
864                    };
865            private static final Class<?>[] _getGroupEntriesCountParameterTypes10 = new Class[] {
866                            long.class, java.util.Date.class, int.class
867                    };
868            private static final Class<?>[] _getGroupEntriesCountParameterTypes11 = new Class[] {
869                            long.class, int.class
870                    };
871            private static final Class<?>[] _getGroupEntriesRSSParameterTypes12 = new Class[] {
872                            long.class, java.util.Date.class, int.class, int.class,
873                            java.lang.String.class, double.class, java.lang.String.class,
874                            java.lang.String.class, java.lang.String.class,
875                            com.liferay.portal.theme.ThemeDisplay.class
876                    };
877            private static final Class<?>[] _getGroupsEntriesParameterTypes13 = new Class[] {
878                            long.class, long.class, java.util.Date.class, int.class, int.class
879                    };
880            private static final Class<?>[] _getOrganizationEntriesParameterTypes14 = new Class[] {
881                            long.class, java.util.Date.class, int.class, int.class
882                    };
883            private static final Class<?>[] _getOrganizationEntriesRSSParameterTypes15 = new Class[] {
884                            long.class, java.util.Date.class, int.class, int.class,
885                            java.lang.String.class, double.class, java.lang.String.class,
886                            java.lang.String.class, java.lang.String.class,
887                            com.liferay.portal.theme.ThemeDisplay.class
888                    };
889            private static final Class<?>[] _moveEntryToTrashParameterTypes16 = new Class[] {
890                            long.class
891                    };
892            private static final Class<?>[] _restoreEntryFromTrashParameterTypes17 = new Class[] {
893                            long.class
894                    };
895            private static final Class<?>[] _subscribeParameterTypes18 = new Class[] {
896                            long.class
897                    };
898            private static final Class<?>[] _unsubscribeParameterTypes19 = new Class[] {
899                            long.class
900                    };
901            private static final Class<?>[] _updateEntryParameterTypes20 = new Class[] {
902                            long.class, java.lang.String.class, java.lang.String.class,
903                            java.lang.String.class, int.class, int.class, int.class, int.class,
904                            int.class, boolean.class, boolean.class, java.lang.String[].class,
905                            boolean.class, java.lang.String.class, java.lang.String.class,
906                            java.io.InputStream.class,
907                            com.liferay.portal.service.ServiceContext.class
908                    };
909    }