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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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 moveEntryToTrash(HttpPrincipal httpPrincipal,
649                    long entryId)
650                    throws com.liferay.portal.kernel.exception.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException {
652                    try {
653                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
654                                            "moveEntryToTrash", _moveEntryToTrashParameterTypes16);
655    
656                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
657    
658                            try {
659                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
674                            _log.error(se, se);
675    
676                            throw se;
677                    }
678            }
679    
680            public static void restoreEntryFromTrash(HttpPrincipal httpPrincipal,
681                    long entryId)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException {
684                    try {
685                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
686                                            "restoreEntryFromTrash",
687                                            _restoreEntryFromTrashParameterTypes17);
688    
689                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
690    
691                            try {
692                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
693                            }
694                            catch (Exception e) {
695                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
696                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
697                                    }
698    
699                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
700                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
701                                    }
702    
703                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
704                            }
705                    }
706                    catch (com.liferay.portal.kernel.exception.SystemException se) {
707                            _log.error(se, se);
708    
709                            throw se;
710                    }
711            }
712    
713            public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
714                    throws com.liferay.portal.kernel.exception.PortalException,
715                            com.liferay.portal.kernel.exception.SystemException {
716                    try {
717                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
718                                            "subscribe", _subscribeParameterTypes18);
719    
720                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
721    
722                            try {
723                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
724                            }
725                            catch (Exception e) {
726                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
727                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
728                                    }
729    
730                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
731                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
732                                    }
733    
734                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
735                            }
736                    }
737                    catch (com.liferay.portal.kernel.exception.SystemException se) {
738                            _log.error(se, se);
739    
740                            throw se;
741                    }
742            }
743    
744            public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
745                    throws com.liferay.portal.kernel.exception.PortalException,
746                            com.liferay.portal.kernel.exception.SystemException {
747                    try {
748                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
749                                            "unsubscribe", _unsubscribeParameterTypes19);
750    
751                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
752    
753                            try {
754                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
755                            }
756                            catch (Exception e) {
757                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
758                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
759                                    }
760    
761                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
762                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
763                                    }
764    
765                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
766                            }
767                    }
768                    catch (com.liferay.portal.kernel.exception.SystemException se) {
769                            _log.error(se, se);
770    
771                            throw se;
772                    }
773            }
774    
775            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
776                    HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
777                    java.lang.String description, java.lang.String content,
778                    int displayDateMonth, int displayDateDay, int displayDateYear,
779                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
780                    boolean allowTrackbacks, java.lang.String[] trackbacks,
781                    boolean smallImage, java.lang.String smallImageURL,
782                    java.lang.String smallImageFileName,
783                    java.io.InputStream smallImageInputStream,
784                    com.liferay.portal.service.ServiceContext serviceContext)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException {
787                    try {
788                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
789                                            "updateEntry", _updateEntryParameterTypes20);
790    
791                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
792                                            title, description, content, displayDateMonth,
793                                            displayDateDay, displayDateYear, displayDateHour,
794                                            displayDateMinute, allowPingbacks, allowTrackbacks,
795                                            trackbacks, smallImage, smallImageURL, smallImageFileName,
796                                            smallImageInputStream, serviceContext);
797    
798                            Object returnObj = null;
799    
800                            try {
801                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
802                            }
803                            catch (Exception e) {
804                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
805                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
806                                    }
807    
808                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
809                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
810                                    }
811    
812                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
813                            }
814    
815                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
816                    }
817                    catch (com.liferay.portal.kernel.exception.SystemException se) {
818                            _log.error(se, se);
819    
820                            throw se;
821                    }
822            }
823    
824            private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
825            private static final Class<?>[] _addEntryParameterTypes0 = new Class[] {
826                            java.lang.String.class, java.lang.String.class,
827                            java.lang.String.class, int.class, int.class, int.class, int.class,
828                            int.class, boolean.class, boolean.class, java.lang.String[].class,
829                            boolean.class, java.lang.String.class, java.lang.String.class,
830                            java.io.InputStream.class,
831                            com.liferay.portal.service.ServiceContext.class
832                    };
833            private static final Class<?>[] _deleteEntryParameterTypes1 = new Class[] {
834                            long.class
835                    };
836            private static final Class<?>[] _getCompanyEntriesParameterTypes2 = new Class[] {
837                            long.class, java.util.Date.class, int.class, int.class
838                    };
839            private static final Class<?>[] _getCompanyEntriesRSSParameterTypes3 = new Class[] {
840                            long.class, java.util.Date.class, int.class, int.class,
841                            java.lang.String.class, double.class, java.lang.String.class,
842                            java.lang.String.class, java.lang.String.class,
843                            com.liferay.portal.theme.ThemeDisplay.class
844                    };
845            private static final Class<?>[] _getEntryParameterTypes4 = new Class[] {
846                            long.class
847                    };
848            private static final Class<?>[] _getEntryParameterTypes5 = new Class[] {
849                            long.class, java.lang.String.class
850                    };
851            private static final Class<?>[] _getGroupEntriesParameterTypes6 = new Class[] {
852                            long.class, java.util.Date.class, int.class, int.class
853                    };
854            private static final Class<?>[] _getGroupEntriesParameterTypes7 = new Class[] {
855                            long.class, java.util.Date.class, int.class, int.class, int.class
856                    };
857            private static final Class<?>[] _getGroupEntriesParameterTypes8 = new Class[] {
858                            long.class, int.class, int.class
859                    };
860            private static final Class<?>[] _getGroupEntriesParameterTypes9 = new Class[] {
861                            long.class, int.class, int.class, int.class
862                    };
863            private static final Class<?>[] _getGroupEntriesCountParameterTypes10 = new Class[] {
864                            long.class, java.util.Date.class, int.class
865                    };
866            private static final Class<?>[] _getGroupEntriesCountParameterTypes11 = new Class[] {
867                            long.class, int.class
868                    };
869            private static final Class<?>[] _getGroupEntriesRSSParameterTypes12 = new Class[] {
870                            long.class, java.util.Date.class, int.class, int.class,
871                            java.lang.String.class, double.class, java.lang.String.class,
872                            java.lang.String.class, java.lang.String.class,
873                            com.liferay.portal.theme.ThemeDisplay.class
874                    };
875            private static final Class<?>[] _getGroupsEntriesParameterTypes13 = new Class[] {
876                            long.class, long.class, java.util.Date.class, int.class, int.class
877                    };
878            private static final Class<?>[] _getOrganizationEntriesParameterTypes14 = new Class[] {
879                            long.class, java.util.Date.class, int.class, int.class
880                    };
881            private static final Class<?>[] _getOrganizationEntriesRSSParameterTypes15 = new Class[] {
882                            long.class, java.util.Date.class, int.class, int.class,
883                            java.lang.String.class, double.class, java.lang.String.class,
884                            java.lang.String.class, java.lang.String.class,
885                            com.liferay.portal.theme.ThemeDisplay.class
886                    };
887            private static final Class<?>[] _moveEntryToTrashParameterTypes16 = new Class[] {
888                            long.class
889                    };
890            private static final Class<?>[] _restoreEntryFromTrashParameterTypes17 = new Class[] {
891                            long.class
892                    };
893            private static final Class<?>[] _subscribeParameterTypes18 = new Class[] {
894                            long.class
895                    };
896            private static final Class<?>[] _unsubscribeParameterTypes19 = new Class[] {
897                            long.class
898                    };
899            private static final Class<?>[] _updateEntryParameterTypes20 = new Class[] {
900                            long.class, java.lang.String.class, java.lang.String.class,
901                            java.lang.String.class, int.class, int.class, int.class, int.class,
902                            int.class, boolean.class, boolean.class, java.lang.String[].class,
903                            boolean.class, java.lang.String.class, java.lang.String.class,
904                            java.io.InputStream.class,
905                            com.liferay.portal.service.ServiceContext.class
906                    };
907    }