001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.util.MethodHandler;
022    import com.liferay.portal.kernel.util.MethodKey;
023    import com.liferay.portal.security.auth.HttpPrincipal;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.blogs.service.BlogsEntryServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link BlogsEntryServiceUtil} service utility. The
031     * static methods of this class calls the same methods of the service utility.
032     * However, the signatures are different because it requires an additional
033     * {@link HttpPrincipal} parameter.
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 HttpPrincipal
053     * @see BlogsEntryServiceUtil
054     * @generated
055     */
056    @ProviderType
057    public class BlogsEntryServiceHttp {
058            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
059                    HttpPrincipal httpPrincipal, java.lang.String title,
060                    java.lang.String description, java.lang.String content,
061                    int displayDateMonth, int displayDateDay, int displayDateYear,
062                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
063                    boolean allowTrackbacks, java.lang.String[] trackbacks,
064                    boolean smallImage, java.lang.String smallImageURL,
065                    java.lang.String smallImageFileName,
066                    java.io.InputStream smallImageInputStream,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException {
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
091                            }
092    
093                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
094                    }
095                    catch (com.liferay.portal.kernel.exception.SystemException se) {
096                            _log.error(se, se);
097    
098                            throw se;
099                    }
100            }
101    
102            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
103                    HttpPrincipal httpPrincipal, java.lang.String title,
104                    java.lang.String subtitle, java.lang.String description,
105                    java.lang.String content, int displayDateMonth, int displayDateDay,
106                    int displayDateYear, int displayDateHour, int displayDateMinute,
107                    boolean allowPingbacks, boolean allowTrackbacks,
108                    java.lang.String[] trackbacks, java.lang.String coverImageCaption,
109                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
110                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
111                    com.liferay.portal.service.ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    try {
114                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
115                                            "addEntry", _addEntryParameterTypes1);
116    
117                            MethodHandler methodHandler = new MethodHandler(methodKey, title,
118                                            subtitle, description, content, displayDateMonth,
119                                            displayDateDay, displayDateYear, displayDateHour,
120                                            displayDateMinute, allowPingbacks, allowTrackbacks,
121                                            trackbacks, coverImageCaption, coverImageImageSelector,
122                                            smallImageImageSelector, serviceContext);
123    
124                            Object returnObj = null;
125    
126                            try {
127                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
128                            }
129                            catch (Exception e) {
130                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
131                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
132                                    }
133    
134                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
135                            }
136    
137                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
138                    }
139                    catch (com.liferay.portal.kernel.exception.SystemException se) {
140                            _log.error(se, se);
141    
142                            throw se;
143                    }
144            }
145    
146            public static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
147                    throws com.liferay.portal.kernel.exception.PortalException {
148                    try {
149                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
150                                            "deleteEntry", _deleteEntryParameterTypes2);
151    
152                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
153    
154                            try {
155                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
156                            }
157                            catch (Exception e) {
158                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
159                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
160                                    }
161    
162                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
163                            }
164                    }
165                    catch (com.liferay.portal.kernel.exception.SystemException se) {
166                            _log.error(se, se);
167    
168                            throw se;
169                    }
170            }
171    
172            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
173                    HttpPrincipal httpPrincipal, long companyId,
174                    java.util.Date displayDate, int status, int max)
175                    throws com.liferay.portal.kernel.exception.PortalException {
176                    try {
177                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
178                                            "getCompanyEntries", _getCompanyEntriesParameterTypes3);
179    
180                            MethodHandler methodHandler = new MethodHandler(methodKey,
181                                            companyId, displayDate, status, max);
182    
183                            Object returnObj = null;
184    
185                            try {
186                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
187                            }
188                            catch (Exception e) {
189                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
190                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
191                                    }
192    
193                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
194                            }
195    
196                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
197                    }
198                    catch (com.liferay.portal.kernel.exception.SystemException se) {
199                            _log.error(se, se);
200    
201                            throw se;
202                    }
203            }
204    
205            public static java.lang.String getCompanyEntriesRSS(
206                    HttpPrincipal httpPrincipal, long companyId,
207                    java.util.Date displayDate, int status, int max, java.lang.String type,
208                    double version, java.lang.String displayStyle,
209                    java.lang.String feedURL, java.lang.String entryURL,
210                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
211                    throws com.liferay.portal.kernel.exception.PortalException {
212                    try {
213                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
214                                            "getCompanyEntriesRSS", _getCompanyEntriesRSSParameterTypes4);
215    
216                            MethodHandler methodHandler = new MethodHandler(methodKey,
217                                            companyId, displayDate, status, max, type, version,
218                                            displayStyle, feedURL, entryURL, themeDisplay);
219    
220                            Object returnObj = null;
221    
222                            try {
223                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
224                            }
225                            catch (Exception e) {
226                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
227                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
228                                    }
229    
230                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
231                            }
232    
233                            return (java.lang.String)returnObj;
234                    }
235                    catch (com.liferay.portal.kernel.exception.SystemException se) {
236                            _log.error(se, se);
237    
238                            throw se;
239                    }
240            }
241    
242            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
243                    HttpPrincipal httpPrincipal, long entryId)
244                    throws com.liferay.portal.kernel.exception.PortalException {
245                    try {
246                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
247                                            "getEntry", _getEntryParameterTypes5);
248    
249                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
250    
251                            Object returnObj = null;
252    
253                            try {
254                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
255                            }
256                            catch (Exception e) {
257                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
258                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
259                                    }
260    
261                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
262                            }
263    
264                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
265                    }
266                    catch (com.liferay.portal.kernel.exception.SystemException se) {
267                            _log.error(se, se);
268    
269                            throw se;
270                    }
271            }
272    
273            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
274                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
275                    throws com.liferay.portal.kernel.exception.PortalException {
276                    try {
277                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
278                                            "getEntry", _getEntryParameterTypes6);
279    
280                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
281                                            urlTitle);
282    
283                            Object returnObj = null;
284    
285                            try {
286                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
287                            }
288                            catch (Exception e) {
289                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
290                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
291                                    }
292    
293                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
294                            }
295    
296                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
297                    }
298                    catch (com.liferay.portal.kernel.exception.SystemException se) {
299                            _log.error(se, se);
300    
301                            throw se;
302                    }
303            }
304    
305            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
306                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
307                    int status, int max) {
308                    try {
309                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
310                                            "getGroupEntries", _getGroupEntriesParameterTypes7);
311    
312                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
313                                            displayDate, status, max);
314    
315                            Object returnObj = null;
316    
317                            try {
318                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
319                            }
320                            catch (Exception e) {
321                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
322                            }
323    
324                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
325                    }
326                    catch (com.liferay.portal.kernel.exception.SystemException se) {
327                            _log.error(se, se);
328    
329                            throw se;
330                    }
331            }
332    
333            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
334                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
335                    int status, int start, int end) {
336                    try {
337                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
338                                            "getGroupEntries", _getGroupEntriesParameterTypes8);
339    
340                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
341                                            displayDate, status, start, end);
342    
343                            Object returnObj = null;
344    
345                            try {
346                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
347                            }
348                            catch (Exception e) {
349                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
350                            }
351    
352                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
353                    }
354                    catch (com.liferay.portal.kernel.exception.SystemException se) {
355                            _log.error(se, se);
356    
357                            throw se;
358                    }
359            }
360    
361            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
362                    HttpPrincipal httpPrincipal, long groupId, int status, int max) {
363                    try {
364                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
365                                            "getGroupEntries", _getGroupEntriesParameterTypes9);
366    
367                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
368                                            status, max);
369    
370                            Object returnObj = null;
371    
372                            try {
373                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
374                            }
375                            catch (Exception e) {
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) {
391                    try {
392                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
393                                            "getGroupEntries", _getGroupEntriesParameterTypes10);
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
405                            }
406    
407                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
408                    }
409                    catch (com.liferay.portal.kernel.exception.SystemException se) {
410                            _log.error(se, se);
411    
412                            throw se;
413                    }
414            }
415    
416            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
417                    HttpPrincipal httpPrincipal, long groupId, int status, int start,
418                    int end,
419                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
420                    try {
421                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
422                                            "getGroupEntries", _getGroupEntriesParameterTypes11);
423    
424                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
425                                            status, start, end, obc);
426    
427                            Object returnObj = null;
428    
429                            try {
430                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
431                            }
432                            catch (Exception e) {
433                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
434                            }
435    
436                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
437                    }
438                    catch (com.liferay.portal.kernel.exception.SystemException se) {
439                            _log.error(se, se);
440    
441                            throw se;
442                    }
443            }
444    
445            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
446                    long groupId, java.util.Date displayDate, int status) {
447                    try {
448                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
449                                            "getGroupEntriesCount",
450                                            _getGroupEntriesCountParameterTypes12);
451    
452                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
453                                            displayDate, status);
454    
455                            Object returnObj = null;
456    
457                            try {
458                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
459                            }
460                            catch (Exception e) {
461                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
462                            }
463    
464                            return ((Integer)returnObj).intValue();
465                    }
466                    catch (com.liferay.portal.kernel.exception.SystemException se) {
467                            _log.error(se, se);
468    
469                            throw se;
470                    }
471            }
472    
473            public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
474                    long groupId, int status) {
475                    try {
476                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
477                                            "getGroupEntriesCount",
478                                            _getGroupEntriesCountParameterTypes13);
479    
480                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
481                                            status);
482    
483                            Object returnObj = null;
484    
485                            try {
486                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
487                            }
488                            catch (Exception e) {
489                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
490                            }
491    
492                            return ((Integer)returnObj).intValue();
493                    }
494                    catch (com.liferay.portal.kernel.exception.SystemException se) {
495                            _log.error(se, se);
496    
497                            throw se;
498                    }
499            }
500    
501            public static java.lang.String getGroupEntriesRSS(
502                    HttpPrincipal httpPrincipal, long groupId, java.util.Date displayDate,
503                    int status, int max, java.lang.String type, double version,
504                    java.lang.String displayStyle, java.lang.String feedURL,
505                    java.lang.String entryURL,
506                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
507                    throws com.liferay.portal.kernel.exception.PortalException {
508                    try {
509                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
510                                            "getGroupEntriesRSS", _getGroupEntriesRSSParameterTypes14);
511    
512                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
513                                            displayDate, status, max, type, version, displayStyle,
514                                            feedURL, entryURL, themeDisplay);
515    
516                            Object returnObj = null;
517    
518                            try {
519                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
520                            }
521                            catch (Exception e) {
522                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
523                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
524                                    }
525    
526                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
527                            }
528    
529                            return (java.lang.String)returnObj;
530                    }
531                    catch (com.liferay.portal.kernel.exception.SystemException se) {
532                            _log.error(se, se);
533    
534                            throw se;
535                    }
536            }
537    
538            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
539                    HttpPrincipal httpPrincipal, long companyId, long groupId,
540                    java.util.Date displayDate, int status, int max)
541                    throws com.liferay.portal.kernel.exception.PortalException {
542                    try {
543                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
544                                            "getGroupsEntries", _getGroupsEntriesParameterTypes15);
545    
546                            MethodHandler methodHandler = new MethodHandler(methodKey,
547                                            companyId, groupId, displayDate, status, max);
548    
549                            Object returnObj = null;
550    
551                            try {
552                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
553                            }
554                            catch (Exception e) {
555                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
556                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
557                                    }
558    
559                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
560                            }
561    
562                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
563                    }
564                    catch (com.liferay.portal.kernel.exception.SystemException se) {
565                            _log.error(se, se);
566    
567                            throw se;
568                    }
569            }
570    
571            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
572                    HttpPrincipal httpPrincipal, long groupId, long userId, int status,
573                    int start, int end,
574                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
575                    try {
576                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
577                                            "getGroupUserEntries", _getGroupUserEntriesParameterTypes16);
578    
579                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
580                                            userId, status, start, end, obc);
581    
582                            Object returnObj = null;
583    
584                            try {
585                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
586                            }
587                            catch (Exception e) {
588                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
589                            }
590    
591                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
592                    }
593                    catch (com.liferay.portal.kernel.exception.SystemException se) {
594                            _log.error(se, se);
595    
596                            throw se;
597                    }
598            }
599    
600            public static int getGroupUserEntriesCount(HttpPrincipal httpPrincipal,
601                    long groupId, long userId, int status) {
602                    try {
603                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
604                                            "getGroupUserEntriesCount",
605                                            _getGroupUserEntriesCountParameterTypes17);
606    
607                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
608                                            userId, status);
609    
610                            Object returnObj = null;
611    
612                            try {
613                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
614                            }
615                            catch (Exception e) {
616                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
617                            }
618    
619                            return ((Integer)returnObj).intValue();
620                    }
621                    catch (com.liferay.portal.kernel.exception.SystemException se) {
622                            _log.error(se, se);
623    
624                            throw se;
625                    }
626            }
627    
628            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
629                    HttpPrincipal httpPrincipal, long organizationId,
630                    java.util.Date displayDate, int status, int max)
631                    throws com.liferay.portal.kernel.exception.PortalException {
632                    try {
633                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
634                                            "getOrganizationEntries",
635                                            _getOrganizationEntriesParameterTypes18);
636    
637                            MethodHandler methodHandler = new MethodHandler(methodKey,
638                                            organizationId, displayDate, status, max);
639    
640                            Object returnObj = null;
641    
642                            try {
643                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
644                            }
645                            catch (Exception e) {
646                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
647                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
648                                    }
649    
650                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
651                            }
652    
653                            return (java.util.List<com.liferay.portlet.blogs.model.BlogsEntry>)returnObj;
654                    }
655                    catch (com.liferay.portal.kernel.exception.SystemException se) {
656                            _log.error(se, se);
657    
658                            throw se;
659                    }
660            }
661    
662            public static java.lang.String getOrganizationEntriesRSS(
663                    HttpPrincipal httpPrincipal, long organizationId,
664                    java.util.Date displayDate, int status, int max, java.lang.String type,
665                    double version, java.lang.String displayStyle,
666                    java.lang.String feedURL, java.lang.String entryURL,
667                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
668                    throws com.liferay.portal.kernel.exception.PortalException {
669                    try {
670                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
671                                            "getOrganizationEntriesRSS",
672                                            _getOrganizationEntriesRSSParameterTypes19);
673    
674                            MethodHandler methodHandler = new MethodHandler(methodKey,
675                                            organizationId, displayDate, status, max, type, version,
676                                            displayStyle, feedURL, entryURL, themeDisplay);
677    
678                            Object returnObj = null;
679    
680                            try {
681                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
682                            }
683                            catch (Exception e) {
684                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
685                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
686                                    }
687    
688                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
689                            }
690    
691                            return (java.lang.String)returnObj;
692                    }
693                    catch (com.liferay.portal.kernel.exception.SystemException se) {
694                            _log.error(se, se);
695    
696                            throw se;
697                    }
698            }
699    
700            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
701                    HttpPrincipal httpPrincipal, long entryId)
702                    throws com.liferay.portal.kernel.exception.PortalException {
703                    try {
704                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
705                                            "moveEntryToTrash", _moveEntryToTrashParameterTypes20);
706    
707                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
708    
709                            Object returnObj = null;
710    
711                            try {
712                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
713                            }
714                            catch (Exception e) {
715                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
716                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
717                                    }
718    
719                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
720                            }
721    
722                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
723                    }
724                    catch (com.liferay.portal.kernel.exception.SystemException se) {
725                            _log.error(se, se);
726    
727                            throw se;
728                    }
729            }
730    
731            public static void restoreEntryFromTrash(HttpPrincipal httpPrincipal,
732                    long entryId)
733                    throws com.liferay.portal.kernel.exception.PortalException {
734                    try {
735                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
736                                            "restoreEntryFromTrash",
737                                            _restoreEntryFromTrashParameterTypes21);
738    
739                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId);
740    
741                            try {
742                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
743                            }
744                            catch (Exception e) {
745                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
746                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
747                                    }
748    
749                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
750                            }
751                    }
752                    catch (com.liferay.portal.kernel.exception.SystemException se) {
753                            _log.error(se, se);
754    
755                            throw se;
756                    }
757            }
758    
759            public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
760                    throws com.liferay.portal.kernel.exception.PortalException {
761                    try {
762                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
763                                            "subscribe", _subscribeParameterTypes22);
764    
765                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
766    
767                            try {
768                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
769                            }
770                            catch (Exception e) {
771                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
772                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
773                                    }
774    
775                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
776                            }
777                    }
778                    catch (com.liferay.portal.kernel.exception.SystemException se) {
779                            _log.error(se, se);
780    
781                            throw se;
782                    }
783            }
784    
785            public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
786                    throws com.liferay.portal.kernel.exception.PortalException {
787                    try {
788                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
789                                            "unsubscribe", _unsubscribeParameterTypes23);
790    
791                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
792    
793                            try {
794                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
795                            }
796                            catch (Exception e) {
797                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
798                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
799                                    }
800    
801                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
802                            }
803                    }
804                    catch (com.liferay.portal.kernel.exception.SystemException se) {
805                            _log.error(se, se);
806    
807                            throw se;
808                    }
809            }
810    
811            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
812                    HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
813                    java.lang.String description, java.lang.String content,
814                    int displayDateMonth, int displayDateDay, int displayDateYear,
815                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
816                    boolean allowTrackbacks, java.lang.String[] trackbacks,
817                    boolean smallImage, java.lang.String smallImageURL,
818                    java.lang.String smallImageFileName,
819                    java.io.InputStream smallImageInputStream,
820                    com.liferay.portal.service.ServiceContext serviceContext)
821                    throws com.liferay.portal.kernel.exception.PortalException {
822                    try {
823                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
824                                            "updateEntry", _updateEntryParameterTypes24);
825    
826                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
827                                            title, description, content, displayDateMonth,
828                                            displayDateDay, displayDateYear, displayDateHour,
829                                            displayDateMinute, allowPingbacks, allowTrackbacks,
830                                            trackbacks, smallImage, smallImageURL, smallImageFileName,
831                                            smallImageInputStream, serviceContext);
832    
833                            Object returnObj = null;
834    
835                            try {
836                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
837                            }
838                            catch (Exception e) {
839                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
840                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
841                                    }
842    
843                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
844                            }
845    
846                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
847                    }
848                    catch (com.liferay.portal.kernel.exception.SystemException se) {
849                            _log.error(se, se);
850    
851                            throw se;
852                    }
853            }
854    
855            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
856                    HttpPrincipal httpPrincipal, long entryId, java.lang.String title,
857                    java.lang.String subtitle, java.lang.String description,
858                    java.lang.String content, int displayDateMonth, int displayDateDay,
859                    int displayDateYear, int displayDateHour, int displayDateMinute,
860                    boolean allowPingbacks, boolean allowTrackbacks,
861                    java.lang.String[] trackbacks, java.lang.String coverImageCaption,
862                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
863                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
864                    com.liferay.portal.service.ServiceContext serviceContext)
865                    throws com.liferay.portal.kernel.exception.PortalException {
866                    try {
867                            MethodKey methodKey = new MethodKey(BlogsEntryServiceUtil.class,
868                                            "updateEntry", _updateEntryParameterTypes25);
869    
870                            MethodHandler methodHandler = new MethodHandler(methodKey, entryId,
871                                            title, subtitle, description, content, displayDateMonth,
872                                            displayDateDay, displayDateYear, displayDateHour,
873                                            displayDateMinute, allowPingbacks, allowTrackbacks,
874                                            trackbacks, coverImageCaption, coverImageImageSelector,
875                                            smallImageImageSelector, serviceContext);
876    
877                            Object returnObj = null;
878    
879                            try {
880                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
881                            }
882                            catch (Exception e) {
883                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
884                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
885                                    }
886    
887                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
888                            }
889    
890                            return (com.liferay.portlet.blogs.model.BlogsEntry)returnObj;
891                    }
892                    catch (com.liferay.portal.kernel.exception.SystemException se) {
893                            _log.error(se, se);
894    
895                            throw se;
896                    }
897            }
898    
899            private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceHttp.class);
900            private static final Class<?>[] _addEntryParameterTypes0 = new Class[] {
901                            java.lang.String.class, java.lang.String.class,
902                            java.lang.String.class, int.class, int.class, int.class, int.class,
903                            int.class, boolean.class, boolean.class, java.lang.String[].class,
904                            boolean.class, java.lang.String.class, java.lang.String.class,
905                            java.io.InputStream.class,
906                            com.liferay.portal.service.ServiceContext.class
907                    };
908            private static final Class<?>[] _addEntryParameterTypes1 = new Class[] {
909                            java.lang.String.class, java.lang.String.class,
910                            java.lang.String.class, java.lang.String.class, int.class, int.class,
911                            int.class, int.class, int.class, boolean.class, boolean.class,
912                            java.lang.String[].class, java.lang.String.class,
913                            com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
914                            com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
915                            com.liferay.portal.service.ServiceContext.class
916                    };
917            private static final Class<?>[] _deleteEntryParameterTypes2 = new Class[] {
918                            long.class
919                    };
920            private static final Class<?>[] _getCompanyEntriesParameterTypes3 = new Class[] {
921                            long.class, java.util.Date.class, int.class, int.class
922                    };
923            private static final Class<?>[] _getCompanyEntriesRSSParameterTypes4 = new Class[] {
924                            long.class, java.util.Date.class, int.class, int.class,
925                            java.lang.String.class, double.class, java.lang.String.class,
926                            java.lang.String.class, java.lang.String.class,
927                            com.liferay.portal.theme.ThemeDisplay.class
928                    };
929            private static final Class<?>[] _getEntryParameterTypes5 = new Class[] {
930                            long.class
931                    };
932            private static final Class<?>[] _getEntryParameterTypes6 = new Class[] {
933                            long.class, java.lang.String.class
934                    };
935            private static final Class<?>[] _getGroupEntriesParameterTypes7 = new Class[] {
936                            long.class, java.util.Date.class, int.class, int.class
937                    };
938            private static final Class<?>[] _getGroupEntriesParameterTypes8 = new Class[] {
939                            long.class, java.util.Date.class, int.class, int.class, int.class
940                    };
941            private static final Class<?>[] _getGroupEntriesParameterTypes9 = new Class[] {
942                            long.class, int.class, int.class
943                    };
944            private static final Class<?>[] _getGroupEntriesParameterTypes10 = new Class[] {
945                            long.class, int.class, int.class, int.class
946                    };
947            private static final Class<?>[] _getGroupEntriesParameterTypes11 = new Class[] {
948                            long.class, int.class, int.class, int.class,
949                            com.liferay.portal.kernel.util.OrderByComparator.class
950                    };
951            private static final Class<?>[] _getGroupEntriesCountParameterTypes12 = new Class[] {
952                            long.class, java.util.Date.class, int.class
953                    };
954            private static final Class<?>[] _getGroupEntriesCountParameterTypes13 = new Class[] {
955                            long.class, int.class
956                    };
957            private static final Class<?>[] _getGroupEntriesRSSParameterTypes14 = new Class[] {
958                            long.class, java.util.Date.class, int.class, int.class,
959                            java.lang.String.class, double.class, java.lang.String.class,
960                            java.lang.String.class, java.lang.String.class,
961                            com.liferay.portal.theme.ThemeDisplay.class
962                    };
963            private static final Class<?>[] _getGroupsEntriesParameterTypes15 = new Class[] {
964                            long.class, long.class, java.util.Date.class, int.class, int.class
965                    };
966            private static final Class<?>[] _getGroupUserEntriesParameterTypes16 = new Class[] {
967                            long.class, long.class, int.class, int.class, int.class,
968                            com.liferay.portal.kernel.util.OrderByComparator.class
969                    };
970            private static final Class<?>[] _getGroupUserEntriesCountParameterTypes17 = new Class[] {
971                            long.class, long.class, int.class
972                    };
973            private static final Class<?>[] _getOrganizationEntriesParameterTypes18 = new Class[] {
974                            long.class, java.util.Date.class, int.class, int.class
975                    };
976            private static final Class<?>[] _getOrganizationEntriesRSSParameterTypes19 = new Class[] {
977                            long.class, java.util.Date.class, int.class, int.class,
978                            java.lang.String.class, double.class, java.lang.String.class,
979                            java.lang.String.class, java.lang.String.class,
980                            com.liferay.portal.theme.ThemeDisplay.class
981                    };
982            private static final Class<?>[] _moveEntryToTrashParameterTypes20 = new Class[] {
983                            long.class
984                    };
985            private static final Class<?>[] _restoreEntryFromTrashParameterTypes21 = new Class[] {
986                            long.class
987                    };
988            private static final Class<?>[] _subscribeParameterTypes22 = new Class[] {
989                            long.class
990                    };
991            private static final Class<?>[] _unsubscribeParameterTypes23 = new Class[] {
992                            long.class
993                    };
994            private static final Class<?>[] _updateEntryParameterTypes24 = new Class[] {
995                            long.class, java.lang.String.class, java.lang.String.class,
996                            java.lang.String.class, int.class, int.class, int.class, int.class,
997                            int.class, boolean.class, boolean.class, java.lang.String[].class,
998                            boolean.class, java.lang.String.class, java.lang.String.class,
999                            java.io.InputStream.class,
1000                            com.liferay.portal.service.ServiceContext.class
1001                    };
1002            private static final Class<?>[] _updateEntryParameterTypes25 = new Class[] {
1003                            long.class, java.lang.String.class, java.lang.String.class,
1004                            java.lang.String.class, java.lang.String.class, int.class, int.class,
1005                            int.class, int.class, int.class, boolean.class, boolean.class,
1006                            java.lang.String[].class, java.lang.String.class,
1007                            com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
1008                            com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector.class,
1009                            com.liferay.portal.service.ServiceContext.class
1010                    };
1011    }