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.journal.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.journal.service.JournalArticleServiceUtil;
025    
026    /**
027     * Provides the HTTP utility for the
028     * {@link com.liferay.portlet.journal.service.JournalArticleServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see JournalArticleServiceSoap
050     * @see com.liferay.portal.security.auth.HttpPrincipal
051     * @see com.liferay.portlet.journal.service.JournalArticleServiceUtil
052     * @generated
053     */
054    public class JournalArticleServiceHttp {
055            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
056                    HttpPrincipal httpPrincipal, long groupId, long folderId,
057                    long classNameId, long classPK, java.lang.String articleId,
058                    boolean autoArticleId,
059                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
060                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061                    java.lang.String content, java.lang.String type,
062                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
063                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
064                    int displayDateYear, int displayDateHour, int displayDateMinute,
065                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
066                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
067                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
068                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
069                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
070                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
071                    java.lang.String articleURL,
072                    com.liferay.portal.service.ServiceContext serviceContext)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    try {
076                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
077                                            "addArticle", _addArticleParameterTypes0);
078    
079                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
080                                            folderId, classNameId, classPK, articleId, autoArticleId,
081                                            titleMap, descriptionMap, content, type, ddmStructureKey,
082                                            ddmTemplateKey, layoutUuid, displayDateMonth,
083                                            displayDateDay, displayDateYear, displayDateHour,
084                                            displayDateMinute, expirationDateMonth, expirationDateDay,
085                                            expirationDateYear, expirationDateHour,
086                                            expirationDateMinute, neverExpire, reviewDateMonth,
087                                            reviewDateDay, reviewDateYear, reviewDateHour,
088                                            reviewDateMinute, neverReview, indexable, smallImage,
089                                            smallImageURL, smallFile, images, articleURL, serviceContext);
090    
091                            Object returnObj = null;
092    
093                            try {
094                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
095                            }
096                            catch (Exception e) {
097                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
098                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
099                                    }
100    
101                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
102                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
103                                    }
104    
105                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
106                            }
107    
108                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
109                    }
110                    catch (com.liferay.portal.kernel.exception.SystemException se) {
111                            _log.error(se, se);
112    
113                            throw se;
114                    }
115            }
116    
117            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
118                    HttpPrincipal httpPrincipal, long groupId, long folderId,
119                    long classNameId, long classPK, java.lang.String articleId,
120                    boolean autoArticleId,
121                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
122                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
123                    java.lang.String content, java.lang.String type,
124                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
125                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
126                    int displayDateYear, int displayDateHour, int displayDateMinute,
127                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
128                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
129                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
130                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
131                    boolean indexable, java.lang.String articleURL,
132                    com.liferay.portal.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    try {
136                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
137                                            "addArticle", _addArticleParameterTypes1);
138    
139                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
140                                            folderId, classNameId, classPK, articleId, autoArticleId,
141                                            titleMap, descriptionMap, content, type, ddmStructureKey,
142                                            ddmTemplateKey, layoutUuid, displayDateMonth,
143                                            displayDateDay, displayDateYear, displayDateHour,
144                                            displayDateMinute, expirationDateMonth, expirationDateDay,
145                                            expirationDateYear, expirationDateHour,
146                                            expirationDateMinute, neverExpire, reviewDateMonth,
147                                            reviewDateDay, reviewDateYear, reviewDateHour,
148                                            reviewDateMinute, neverReview, indexable, articleURL,
149                                            serviceContext);
150    
151                            Object returnObj = null;
152    
153                            try {
154                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
155                            }
156                            catch (Exception e) {
157                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
158                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
159                                    }
160    
161                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
162                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
163                                    }
164    
165                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
166                            }
167    
168                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
169                    }
170                    catch (com.liferay.portal.kernel.exception.SystemException se) {
171                            _log.error(se, se);
172    
173                            throw se;
174                    }
175            }
176    
177            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
178                    HttpPrincipal httpPrincipal, long groupId,
179                    java.lang.String oldArticleId, java.lang.String newArticleId,
180                    boolean autoArticleId, double version)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    try {
184                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
185                                            "copyArticle", _copyArticleParameterTypes2);
186    
187                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
188                                            oldArticleId, newArticleId, autoArticleId, version);
189    
190                            Object returnObj = null;
191    
192                            try {
193                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
194                            }
195                            catch (Exception e) {
196                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
197                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
198                                    }
199    
200                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
201                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
202                                    }
203    
204                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
205                            }
206    
207                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
208                    }
209                    catch (com.liferay.portal.kernel.exception.SystemException se) {
210                            _log.error(se, se);
211    
212                            throw se;
213                    }
214            }
215    
216            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
217                    java.lang.String articleId, double version,
218                    java.lang.String articleURL,
219                    com.liferay.portal.service.ServiceContext serviceContext)
220                    throws com.liferay.portal.kernel.exception.PortalException,
221                            com.liferay.portal.kernel.exception.SystemException {
222                    try {
223                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
224                                            "deleteArticle", _deleteArticleParameterTypes3);
225    
226                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
227                                            articleId, version, articleURL, serviceContext);
228    
229                            try {
230                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
245                            _log.error(se, se);
246    
247                            throw se;
248                    }
249            }
250    
251            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
252                    java.lang.String articleId, java.lang.String articleURL,
253                    com.liferay.portal.service.ServiceContext serviceContext)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    try {
257                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
258                                            "deleteArticle", _deleteArticleParameterTypes4);
259    
260                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
261                                            articleId, articleURL, serviceContext);
262    
263                            try {
264                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
265                            }
266                            catch (Exception e) {
267                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
268                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
269                                    }
270    
271                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
272                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
273                                    }
274    
275                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
276                            }
277                    }
278                    catch (com.liferay.portal.kernel.exception.SystemException se) {
279                            _log.error(se, se);
280    
281                            throw se;
282                    }
283            }
284    
285            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
286                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
287                    double version, java.lang.String articleURL,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    try {
292                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
293                                            "expireArticle", _expireArticleParameterTypes5);
294    
295                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
296                                            articleId, version, articleURL, serviceContext);
297    
298                            Object returnObj = null;
299    
300                            try {
301                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
302                            }
303                            catch (Exception e) {
304                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
305                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
306                                    }
307    
308                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
309                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
310                                    }
311    
312                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
313                            }
314    
315                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
316                    }
317                    catch (com.liferay.portal.kernel.exception.SystemException se) {
318                            _log.error(se, se);
319    
320                            throw se;
321                    }
322            }
323    
324            public static void expireArticle(HttpPrincipal httpPrincipal, long groupId,
325                    java.lang.String articleId, java.lang.String articleURL,
326                    com.liferay.portal.service.ServiceContext serviceContext)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    try {
330                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
331                                            "expireArticle", _expireArticleParameterTypes6);
332    
333                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
334                                            articleId, articleURL, serviceContext);
335    
336                            try {
337                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
338                            }
339                            catch (Exception e) {
340                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
341                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
342                                    }
343    
344                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
345                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
346                                    }
347    
348                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
349                            }
350                    }
351                    catch (com.liferay.portal.kernel.exception.SystemException se) {
352                            _log.error(se, se);
353    
354                            throw se;
355                    }
356            }
357    
358            public static com.liferay.portlet.journal.model.JournalArticle fetchArticle(
359                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    try {
363                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
364                                            "fetchArticle", _fetchArticleParameterTypes7);
365    
366                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
367                                            articleId);
368    
369                            Object returnObj = null;
370    
371                            try {
372                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
373                            }
374                            catch (Exception e) {
375                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
376                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
377                                    }
378    
379                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
380                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
381                                    }
382    
383                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
384                            }
385    
386                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
387                    }
388                    catch (com.liferay.portal.kernel.exception.SystemException se) {
389                            _log.error(se, se);
390    
391                            throw se;
392                    }
393            }
394    
395            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
396                    HttpPrincipal httpPrincipal, long id)
397                    throws com.liferay.portal.kernel.exception.PortalException,
398                            com.liferay.portal.kernel.exception.SystemException {
399                    try {
400                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
401                                            "getArticle", _getArticleParameterTypes8);
402    
403                            MethodHandler methodHandler = new MethodHandler(methodKey, id);
404    
405                            Object returnObj = null;
406    
407                            try {
408                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
409                            }
410                            catch (Exception e) {
411                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
412                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
413                                    }
414    
415                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
416                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
417                                    }
418    
419                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
420                            }
421    
422                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
423                    }
424                    catch (com.liferay.portal.kernel.exception.SystemException se) {
425                            _log.error(se, se);
426    
427                            throw se;
428                    }
429            }
430    
431            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
432                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    try {
436                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
437                                            "getArticle", _getArticleParameterTypes9);
438    
439                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
440                                            articleId);
441    
442                            Object returnObj = null;
443    
444                            try {
445                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
446                            }
447                            catch (Exception e) {
448                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
449                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
450                                    }
451    
452                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
453                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
454                                    }
455    
456                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
457                            }
458    
459                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
460                    }
461                    catch (com.liferay.portal.kernel.exception.SystemException se) {
462                            _log.error(se, se);
463    
464                            throw se;
465                    }
466            }
467    
468            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
469                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
470                    double version)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException {
473                    try {
474                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
475                                            "getArticle", _getArticleParameterTypes10);
476    
477                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
478                                            articleId, version);
479    
480                            Object returnObj = null;
481    
482                            try {
483                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
484                            }
485                            catch (Exception e) {
486                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
487                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
488                                    }
489    
490                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
491                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
492                                    }
493    
494                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
495                            }
496    
497                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
498                    }
499                    catch (com.liferay.portal.kernel.exception.SystemException se) {
500                            _log.error(se, se);
501    
502                            throw se;
503                    }
504            }
505    
506            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
507                    HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
508                    long classPK)
509                    throws com.liferay.portal.kernel.exception.PortalException,
510                            com.liferay.portal.kernel.exception.SystemException {
511                    try {
512                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
513                                            "getArticle", _getArticleParameterTypes11);
514    
515                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
516                                            className, classPK);
517    
518                            Object returnObj = null;
519    
520                            try {
521                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
522                            }
523                            catch (Exception e) {
524                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
525                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
526                                    }
527    
528                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
529                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
530                                    }
531    
532                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
533                            }
534    
535                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
536                    }
537                    catch (com.liferay.portal.kernel.exception.SystemException se) {
538                            _log.error(se, se);
539    
540                            throw se;
541                    }
542            }
543    
544            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
545                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
546                    throws com.liferay.portal.kernel.exception.PortalException,
547                            com.liferay.portal.kernel.exception.SystemException {
548                    try {
549                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
550                                            "getArticleByUrlTitle",
551                                            _getArticleByUrlTitleParameterTypes12);
552    
553                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
554                                            urlTitle);
555    
556                            Object returnObj = null;
557    
558                            try {
559                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
560                            }
561                            catch (Exception e) {
562                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
563                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
564                                    }
565    
566                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
567                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
568                                    }
569    
570                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
571                            }
572    
573                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
574                    }
575                    catch (com.liferay.portal.kernel.exception.SystemException se) {
576                            _log.error(se, se);
577    
578                            throw se;
579                    }
580            }
581    
582            public static java.lang.String getArticleContent(
583                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
584                    double version, java.lang.String languageId,
585                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
586                    throws com.liferay.portal.kernel.exception.PortalException,
587                            com.liferay.portal.kernel.exception.SystemException {
588                    try {
589                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
590                                            "getArticleContent", _getArticleContentParameterTypes13);
591    
592                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
593                                            articleId, version, languageId, themeDisplay);
594    
595                            Object returnObj = null;
596    
597                            try {
598                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
599                            }
600                            catch (Exception e) {
601                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
602                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
603                                    }
604    
605                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
606                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
607                                    }
608    
609                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
610                            }
611    
612                            return (java.lang.String)returnObj;
613                    }
614                    catch (com.liferay.portal.kernel.exception.SystemException se) {
615                            _log.error(se, se);
616    
617                            throw se;
618                    }
619            }
620    
621            public static java.lang.String getArticleContent(
622                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
623                    java.lang.String languageId,
624                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
625                    throws com.liferay.portal.kernel.exception.PortalException,
626                            com.liferay.portal.kernel.exception.SystemException {
627                    try {
628                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
629                                            "getArticleContent", _getArticleContentParameterTypes14);
630    
631                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
632                                            articleId, languageId, themeDisplay);
633    
634                            Object returnObj = null;
635    
636                            try {
637                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
638                            }
639                            catch (Exception e) {
640                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
641                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
642                                    }
643    
644                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
645                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
646                                    }
647    
648                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
649                            }
650    
651                            return (java.lang.String)returnObj;
652                    }
653                    catch (com.liferay.portal.kernel.exception.SystemException se) {
654                            _log.error(se, se);
655    
656                            throw se;
657                    }
658            }
659    
660            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
661                    HttpPrincipal httpPrincipal, long groupId, long folderId)
662                    throws com.liferay.portal.kernel.exception.SystemException {
663                    try {
664                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
665                                            "getArticles", _getArticlesParameterTypes15);
666    
667                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
668                                            folderId);
669    
670                            Object returnObj = null;
671    
672                            try {
673                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
674                            }
675                            catch (Exception e) {
676                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
677                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
678                                    }
679    
680                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
681                            }
682    
683                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
684                    }
685                    catch (com.liferay.portal.kernel.exception.SystemException se) {
686                            _log.error(se, se);
687    
688                            throw se;
689                    }
690            }
691    
692            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
693                    HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
694                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    try {
697                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
698                                            "getArticles", _getArticlesParameterTypes16);
699    
700                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
701                                            folderId, start, end, obc);
702    
703                            Object returnObj = null;
704    
705                            try {
706                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
707                            }
708                            catch (Exception e) {
709                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
710                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
711                                    }
712    
713                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
714                            }
715    
716                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
717                    }
718                    catch (com.liferay.portal.kernel.exception.SystemException se) {
719                            _log.error(se, se);
720    
721                            throw se;
722                    }
723            }
724    
725            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByArticleId(
726                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
727                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
728                    throws com.liferay.portal.kernel.exception.SystemException {
729                    try {
730                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
731                                            "getArticlesByArticleId",
732                                            _getArticlesByArticleIdParameterTypes17);
733    
734                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
735                                            articleId, start, end, obc);
736    
737                            Object returnObj = null;
738    
739                            try {
740                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
741                            }
742                            catch (Exception e) {
743                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
744                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
745                                    }
746    
747                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
748                            }
749    
750                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
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 java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid(
760                    HttpPrincipal httpPrincipal, long groupId, java.lang.String layoutUuid)
761                    throws com.liferay.portal.kernel.exception.SystemException {
762                    try {
763                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
764                                            "getArticlesByLayoutUuid",
765                                            _getArticlesByLayoutUuidParameterTypes18);
766    
767                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
768                                            layoutUuid);
769    
770                            Object returnObj = null;
771    
772                            try {
773                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
774                            }
775                            catch (Exception e) {
776                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
777                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
778                                    }
779    
780                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
781                            }
782    
783                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
784                    }
785                    catch (com.liferay.portal.kernel.exception.SystemException se) {
786                            _log.error(se, se);
787    
788                            throw se;
789                    }
790            }
791    
792            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
793                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
794                    java.lang.String ddmStructureKey, int status, int start, int end,
795                    com.liferay.portal.kernel.util.OrderByComparator obc)
796                    throws com.liferay.portal.kernel.exception.SystemException {
797                    try {
798                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
799                                            "getArticlesByStructureId",
800                                            _getArticlesByStructureIdParameterTypes19);
801    
802                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
803                                            classNameId, ddmStructureKey, status, start, end, obc);
804    
805                            Object returnObj = null;
806    
807                            try {
808                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
809                            }
810                            catch (Exception e) {
811                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
812                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
813                                    }
814    
815                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
816                            }
817    
818                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
819                    }
820                    catch (com.liferay.portal.kernel.exception.SystemException se) {
821                            _log.error(se, se);
822    
823                            throw se;
824                    }
825            }
826    
827            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
828                    HttpPrincipal httpPrincipal, long groupId,
829                    java.lang.String ddmStructureKey, int start, int end,
830                    com.liferay.portal.kernel.util.OrderByComparator obc)
831                    throws com.liferay.portal.kernel.exception.SystemException {
832                    try {
833                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
834                                            "getArticlesByStructureId",
835                                            _getArticlesByStructureIdParameterTypes20);
836    
837                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
838                                            ddmStructureKey, start, end, obc);
839    
840                            Object returnObj = null;
841    
842                            try {
843                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
844                            }
845                            catch (Exception e) {
846                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
847                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
848                                    }
849    
850                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
851                            }
852    
853                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
854                    }
855                    catch (com.liferay.portal.kernel.exception.SystemException se) {
856                            _log.error(se, se);
857    
858                            throw se;
859                    }
860            }
861    
862            public static int getArticlesCount(HttpPrincipal httpPrincipal,
863                    long groupId, long folderId)
864                    throws com.liferay.portal.kernel.exception.SystemException {
865                    try {
866                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
867                                            "getArticlesCount", _getArticlesCountParameterTypes21);
868    
869                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
870                                            folderId);
871    
872                            Object returnObj = null;
873    
874                            try {
875                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
876                            }
877                            catch (Exception e) {
878                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
879                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
880                                    }
881    
882                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
883                            }
884    
885                            return ((Integer)returnObj).intValue();
886                    }
887                    catch (com.liferay.portal.kernel.exception.SystemException se) {
888                            _log.error(se, se);
889    
890                            throw se;
891                    }
892            }
893    
894            public static int getArticlesCount(HttpPrincipal httpPrincipal,
895                    long groupId, long folderId, int status)
896                    throws com.liferay.portal.kernel.exception.SystemException {
897                    try {
898                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
899                                            "getArticlesCount", _getArticlesCountParameterTypes22);
900    
901                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
902                                            folderId, status);
903    
904                            Object returnObj = null;
905    
906                            try {
907                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
908                            }
909                            catch (Exception e) {
910                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
911                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
912                                    }
913    
914                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
915                            }
916    
917                            return ((Integer)returnObj).intValue();
918                    }
919                    catch (com.liferay.portal.kernel.exception.SystemException se) {
920                            _log.error(se, se);
921    
922                            throw se;
923                    }
924            }
925    
926            public static int getArticlesCountByArticleId(HttpPrincipal httpPrincipal,
927                    long groupId, java.lang.String articleId)
928                    throws com.liferay.portal.kernel.exception.SystemException {
929                    try {
930                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
931                                            "getArticlesCountByArticleId",
932                                            _getArticlesCountByArticleIdParameterTypes23);
933    
934                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
935                                            articleId);
936    
937                            Object returnObj = null;
938    
939                            try {
940                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
941                            }
942                            catch (Exception e) {
943                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
944                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
945                                    }
946    
947                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
948                            }
949    
950                            return ((Integer)returnObj).intValue();
951                    }
952                    catch (com.liferay.portal.kernel.exception.SystemException se) {
953                            _log.error(se, se);
954    
955                            throw se;
956                    }
957            }
958    
959            public static int getArticlesCountByStructureId(
960                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
961                    java.lang.String ddmStructureKey, int status)
962                    throws com.liferay.portal.kernel.exception.SystemException {
963                    try {
964                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
965                                            "getArticlesCountByStructureId",
966                                            _getArticlesCountByStructureIdParameterTypes24);
967    
968                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
969                                            classNameId, ddmStructureKey, status);
970    
971                            Object returnObj = null;
972    
973                            try {
974                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
975                            }
976                            catch (Exception e) {
977                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
978                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
979                                    }
980    
981                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
982                            }
983    
984                            return ((Integer)returnObj).intValue();
985                    }
986                    catch (com.liferay.portal.kernel.exception.SystemException se) {
987                            _log.error(se, se);
988    
989                            throw se;
990                    }
991            }
992    
993            public static int getArticlesCountByStructureId(
994                    HttpPrincipal httpPrincipal, long groupId,
995                    java.lang.String ddmStructureKey)
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    try {
998                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
999                                            "getArticlesCountByStructureId",
1000                                            _getArticlesCountByStructureIdParameterTypes25);
1001    
1002                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1003                                            ddmStructureKey);
1004    
1005                            Object returnObj = null;
1006    
1007                            try {
1008                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1009                            }
1010                            catch (Exception e) {
1011                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1012                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1013                                    }
1014    
1015                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1016                            }
1017    
1018                            return ((Integer)returnObj).intValue();
1019                    }
1020                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1021                            _log.error(se, se);
1022    
1023                            throw se;
1024                    }
1025            }
1026    
1027            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
1028                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
1029                    throws com.liferay.portal.kernel.exception.PortalException,
1030                            com.liferay.portal.kernel.exception.SystemException {
1031                    try {
1032                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1033                                            "getDisplayArticleByUrlTitle",
1034                                            _getDisplayArticleByUrlTitleParameterTypes26);
1035    
1036                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1037                                            urlTitle);
1038    
1039                            Object returnObj = null;
1040    
1041                            try {
1042                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1043                            }
1044                            catch (Exception e) {
1045                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1046                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1047                                    }
1048    
1049                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1050                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1051                                    }
1052    
1053                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1054                            }
1055    
1056                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1057                    }
1058                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1059                            _log.error(se, se);
1060    
1061                            throw se;
1062                    }
1063            }
1064    
1065            public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
1066                    long groupId, java.util.List<java.lang.Long> folderIds)
1067                    throws com.liferay.portal.kernel.exception.SystemException {
1068                    try {
1069                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1070                                            "getFoldersAndArticlesCount",
1071                                            _getFoldersAndArticlesCountParameterTypes27);
1072    
1073                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1074                                            folderIds);
1075    
1076                            Object returnObj = null;
1077    
1078                            try {
1079                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1080                            }
1081                            catch (Exception e) {
1082                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1083                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1084                                    }
1085    
1086                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1087                            }
1088    
1089                            return ((Integer)returnObj).intValue();
1090                    }
1091                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1092                            _log.error(se, se);
1093    
1094                            throw se;
1095                    }
1096            }
1097    
1098            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles(
1099                    HttpPrincipal httpPrincipal, long groupId, long userId,
1100                    long rootFolderId, int status, boolean includeOwner, int start,
1101                    int end,
1102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1103                    throws com.liferay.portal.kernel.exception.PortalException,
1104                            com.liferay.portal.kernel.exception.SystemException {
1105                    try {
1106                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1107                                            "getGroupArticles", _getGroupArticlesParameterTypes28);
1108    
1109                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1110                                            userId, rootFolderId, status, includeOwner, start, end,
1111                                            orderByComparator);
1112    
1113                            Object returnObj = null;
1114    
1115                            try {
1116                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1117                            }
1118                            catch (Exception e) {
1119                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1120                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1121                                    }
1122    
1123                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1124                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1125                                    }
1126    
1127                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1128                            }
1129    
1130                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1131                    }
1132                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1133                            _log.error(se, se);
1134    
1135                            throw se;
1136                    }
1137            }
1138    
1139            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles(
1140                    HttpPrincipal httpPrincipal, long groupId, long userId,
1141                    long rootFolderId, int status, int start, int end,
1142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1143                    throws com.liferay.portal.kernel.exception.PortalException,
1144                            com.liferay.portal.kernel.exception.SystemException {
1145                    try {
1146                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1147                                            "getGroupArticles", _getGroupArticlesParameterTypes29);
1148    
1149                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1150                                            userId, rootFolderId, status, start, end, orderByComparator);
1151    
1152                            Object returnObj = null;
1153    
1154                            try {
1155                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1156                            }
1157                            catch (Exception e) {
1158                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1159                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1160                                    }
1161    
1162                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1163                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1164                                    }
1165    
1166                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1167                            }
1168    
1169                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1170                    }
1171                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1172                            _log.error(se, se);
1173    
1174                            throw se;
1175                    }
1176            }
1177    
1178            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles(
1179                    HttpPrincipal httpPrincipal, long groupId, long userId,
1180                    long rootFolderId, int start, int end,
1181                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1182                    throws com.liferay.portal.kernel.exception.PortalException,
1183                            com.liferay.portal.kernel.exception.SystemException {
1184                    try {
1185                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1186                                            "getGroupArticles", _getGroupArticlesParameterTypes30);
1187    
1188                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1189                                            userId, rootFolderId, start, end, orderByComparator);
1190    
1191                            Object returnObj = null;
1192    
1193                            try {
1194                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1195                            }
1196                            catch (Exception e) {
1197                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1198                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1199                                    }
1200    
1201                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1202                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1203                                    }
1204    
1205                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1206                            }
1207    
1208                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1209                    }
1210                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1211                            _log.error(se, se);
1212    
1213                            throw se;
1214                    }
1215            }
1216    
1217            public static int getGroupArticlesCount(HttpPrincipal httpPrincipal,
1218                    long groupId, long userId, long rootFolderId)
1219                    throws com.liferay.portal.kernel.exception.PortalException,
1220                            com.liferay.portal.kernel.exception.SystemException {
1221                    try {
1222                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1223                                            "getGroupArticlesCount",
1224                                            _getGroupArticlesCountParameterTypes31);
1225    
1226                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1227                                            userId, rootFolderId);
1228    
1229                            Object returnObj = null;
1230    
1231                            try {
1232                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1233                            }
1234                            catch (Exception e) {
1235                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1236                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1237                                    }
1238    
1239                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1240                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1241                                    }
1242    
1243                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1244                            }
1245    
1246                            return ((Integer)returnObj).intValue();
1247                    }
1248                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1249                            _log.error(se, se);
1250    
1251                            throw se;
1252                    }
1253            }
1254    
1255            public static int getGroupArticlesCount(HttpPrincipal httpPrincipal,
1256                    long groupId, long userId, long rootFolderId, int status)
1257                    throws com.liferay.portal.kernel.exception.PortalException,
1258                            com.liferay.portal.kernel.exception.SystemException {
1259                    try {
1260                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1261                                            "getGroupArticlesCount",
1262                                            _getGroupArticlesCountParameterTypes32);
1263    
1264                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1265                                            userId, rootFolderId, status);
1266    
1267                            Object returnObj = null;
1268    
1269                            try {
1270                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1271                            }
1272                            catch (Exception e) {
1273                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1274                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1275                                    }
1276    
1277                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1278                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1279                                    }
1280    
1281                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1282                            }
1283    
1284                            return ((Integer)returnObj).intValue();
1285                    }
1286                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1287                            _log.error(se, se);
1288    
1289                            throw se;
1290                    }
1291            }
1292    
1293            public static int getGroupArticlesCount(HttpPrincipal httpPrincipal,
1294                    long groupId, long userId, long rootFolderId, int status,
1295                    boolean includeOwner)
1296                    throws com.liferay.portal.kernel.exception.PortalException,
1297                            com.liferay.portal.kernel.exception.SystemException {
1298                    try {
1299                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1300                                            "getGroupArticlesCount",
1301                                            _getGroupArticlesCountParameterTypes33);
1302    
1303                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1304                                            userId, rootFolderId, status, includeOwner);
1305    
1306                            Object returnObj = null;
1307    
1308                            try {
1309                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1310                            }
1311                            catch (Exception e) {
1312                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1313                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1314                                    }
1315    
1316                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1317                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1318                                    }
1319    
1320                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1321                            }
1322    
1323                            return ((Integer)returnObj).intValue();
1324                    }
1325                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1326                            _log.error(se, se);
1327    
1328                            throw se;
1329                    }
1330            }
1331    
1332            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1333                    HttpPrincipal httpPrincipal, long resourcePrimKey)
1334                    throws com.liferay.portal.kernel.exception.PortalException,
1335                            com.liferay.portal.kernel.exception.SystemException {
1336                    try {
1337                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1338                                            "getLatestArticle", _getLatestArticleParameterTypes34);
1339    
1340                            MethodHandler methodHandler = new MethodHandler(methodKey,
1341                                            resourcePrimKey);
1342    
1343                            Object returnObj = null;
1344    
1345                            try {
1346                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1347                            }
1348                            catch (Exception e) {
1349                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1350                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1351                                    }
1352    
1353                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1354                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1355                                    }
1356    
1357                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1358                            }
1359    
1360                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1361                    }
1362                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1363                            _log.error(se, se);
1364    
1365                            throw se;
1366                    }
1367            }
1368    
1369            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1370                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1371                    int status)
1372                    throws com.liferay.portal.kernel.exception.PortalException,
1373                            com.liferay.portal.kernel.exception.SystemException {
1374                    try {
1375                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1376                                            "getLatestArticle", _getLatestArticleParameterTypes35);
1377    
1378                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1379                                            articleId, status);
1380    
1381                            Object returnObj = null;
1382    
1383                            try {
1384                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1385                            }
1386                            catch (Exception e) {
1387                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1388                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1389                                    }
1390    
1391                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1392                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1393                                    }
1394    
1395                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1396                            }
1397    
1398                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1399                    }
1400                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1401                            _log.error(se, se);
1402    
1403                            throw se;
1404                    }
1405            }
1406    
1407            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1408                    HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
1409                    long classPK)
1410                    throws com.liferay.portal.kernel.exception.PortalException,
1411                            com.liferay.portal.kernel.exception.SystemException {
1412                    try {
1413                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1414                                            "getLatestArticle", _getLatestArticleParameterTypes36);
1415    
1416                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1417                                            className, classPK);
1418    
1419                            Object returnObj = null;
1420    
1421                            try {
1422                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1423                            }
1424                            catch (Exception e) {
1425                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1426                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1427                                    }
1428    
1429                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1430                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1431                                    }
1432    
1433                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1434                            }
1435    
1436                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1437                    }
1438                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1439                            _log.error(se, se);
1440    
1441                            throw se;
1442                    }
1443            }
1444    
1445            public static void moveArticle(HttpPrincipal httpPrincipal, long groupId,
1446                    java.lang.String articleId, long newFolderId)
1447                    throws com.liferay.portal.kernel.exception.PortalException,
1448                            com.liferay.portal.kernel.exception.SystemException {
1449                    try {
1450                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1451                                            "moveArticle", _moveArticleParameterTypes37);
1452    
1453                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1454                                            articleId, newFolderId);
1455    
1456                            try {
1457                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1458                            }
1459                            catch (Exception e) {
1460                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1461                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1462                                    }
1463    
1464                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1465                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1466                                    }
1467    
1468                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1469                            }
1470                    }
1471                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1472                            _log.error(se, se);
1473    
1474                            throw se;
1475                    }
1476            }
1477    
1478            public static com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1479                    HttpPrincipal httpPrincipal, long groupId, long resourcePrimKey,
1480                    long newFolderId,
1481                    com.liferay.portal.service.ServiceContext serviceContext)
1482                    throws com.liferay.portal.kernel.exception.PortalException,
1483                            com.liferay.portal.kernel.exception.SystemException {
1484                    try {
1485                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1486                                            "moveArticleFromTrash",
1487                                            _moveArticleFromTrashParameterTypes38);
1488    
1489                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1490                                            resourcePrimKey, newFolderId, serviceContext);
1491    
1492                            Object returnObj = null;
1493    
1494                            try {
1495                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1496                            }
1497                            catch (Exception e) {
1498                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1499                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1500                                    }
1501    
1502                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1503                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1504                                    }
1505    
1506                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1507                            }
1508    
1509                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1510                    }
1511                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1512                            _log.error(se, se);
1513    
1514                            throw se;
1515                    }
1516            }
1517    
1518            public static com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1519                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1520                    long newFolderId,
1521                    com.liferay.portal.service.ServiceContext serviceContext)
1522                    throws com.liferay.portal.kernel.exception.PortalException,
1523                            com.liferay.portal.kernel.exception.SystemException {
1524                    try {
1525                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1526                                            "moveArticleFromTrash",
1527                                            _moveArticleFromTrashParameterTypes39);
1528    
1529                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1530                                            articleId, newFolderId, serviceContext);
1531    
1532                            Object returnObj = null;
1533    
1534                            try {
1535                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1536                            }
1537                            catch (Exception e) {
1538                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1539                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1540                                    }
1541    
1542                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1543                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1544                                    }
1545    
1546                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1547                            }
1548    
1549                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1550                    }
1551                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1552                            _log.error(se, se);
1553    
1554                            throw se;
1555                    }
1556            }
1557    
1558            public static com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
1559                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
1560                    throws com.liferay.portal.kernel.exception.PortalException,
1561                            com.liferay.portal.kernel.exception.SystemException {
1562                    try {
1563                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1564                                            "moveArticleToTrash", _moveArticleToTrashParameterTypes40);
1565    
1566                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1567                                            articleId);
1568    
1569                            Object returnObj = null;
1570    
1571                            try {
1572                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1573                            }
1574                            catch (Exception e) {
1575                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1576                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1577                                    }
1578    
1579                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1580                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1581                                    }
1582    
1583                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1584                            }
1585    
1586                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1587                    }
1588                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1589                            _log.error(se, se);
1590    
1591                            throw se;
1592                    }
1593            }
1594    
1595            public static void removeArticleLocale(HttpPrincipal httpPrincipal,
1596                    long companyId, java.lang.String languageId)
1597                    throws com.liferay.portal.kernel.exception.PortalException,
1598                            com.liferay.portal.kernel.exception.SystemException {
1599                    try {
1600                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1601                                            "removeArticleLocale", _removeArticleLocaleParameterTypes41);
1602    
1603                            MethodHandler methodHandler = new MethodHandler(methodKey,
1604                                            companyId, languageId);
1605    
1606                            try {
1607                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1608                            }
1609                            catch (Exception e) {
1610                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1611                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1612                                    }
1613    
1614                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1615                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1616                                    }
1617    
1618                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1619                            }
1620                    }
1621                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1622                            _log.error(se, se);
1623    
1624                            throw se;
1625                    }
1626            }
1627    
1628            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1629                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1630                    double version, java.lang.String languageId)
1631                    throws com.liferay.portal.kernel.exception.PortalException,
1632                            com.liferay.portal.kernel.exception.SystemException {
1633                    try {
1634                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1635                                            "removeArticleLocale", _removeArticleLocaleParameterTypes42);
1636    
1637                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1638                                            articleId, version, languageId);
1639    
1640                            Object returnObj = null;
1641    
1642                            try {
1643                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1644                            }
1645                            catch (Exception e) {
1646                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1647                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1648                                    }
1649    
1650                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1651                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1652                                    }
1653    
1654                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1655                            }
1656    
1657                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1658                    }
1659                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1660                            _log.error(se, se);
1661    
1662                            throw se;
1663                    }
1664            }
1665    
1666            public static void restoreArticleFromTrash(HttpPrincipal httpPrincipal,
1667                    long resourcePrimKey)
1668                    throws com.liferay.portal.kernel.exception.PortalException,
1669                            com.liferay.portal.kernel.exception.SystemException {
1670                    try {
1671                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1672                                            "restoreArticleFromTrash",
1673                                            _restoreArticleFromTrashParameterTypes43);
1674    
1675                            MethodHandler methodHandler = new MethodHandler(methodKey,
1676                                            resourcePrimKey);
1677    
1678                            try {
1679                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1680                            }
1681                            catch (Exception e) {
1682                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1683                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1684                                    }
1685    
1686                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1687                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1688                                    }
1689    
1690                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1691                            }
1692                    }
1693                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1694                            _log.error(se, se);
1695    
1696                            throw se;
1697                    }
1698            }
1699    
1700            public static void restoreArticleFromTrash(HttpPrincipal httpPrincipal,
1701                    long groupId, java.lang.String articleId)
1702                    throws com.liferay.portal.kernel.exception.PortalException,
1703                            com.liferay.portal.kernel.exception.SystemException {
1704                    try {
1705                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1706                                            "restoreArticleFromTrash",
1707                                            _restoreArticleFromTrashParameterTypes44);
1708    
1709                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1710                                            articleId);
1711    
1712                            try {
1713                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1714                            }
1715                            catch (Exception e) {
1716                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1717                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1718                                    }
1719    
1720                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1721                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1722                                    }
1723    
1724                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1725                            }
1726                    }
1727                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1728                            _log.error(se, se);
1729    
1730                            throw se;
1731                    }
1732            }
1733    
1734            public static com.liferay.portal.kernel.search.Hits search(
1735                    HttpPrincipal httpPrincipal, long groupId, long creatorUserId,
1736                    int status, int start, int end)
1737                    throws com.liferay.portal.kernel.exception.PortalException,
1738                            com.liferay.portal.kernel.exception.SystemException {
1739                    try {
1740                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1741                                            "search", _searchParameterTypes45);
1742    
1743                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1744                                            creatorUserId, status, start, end);
1745    
1746                            Object returnObj = null;
1747    
1748                            try {
1749                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1750                            }
1751                            catch (Exception e) {
1752                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1753                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1754                                    }
1755    
1756                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1757                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1758                                    }
1759    
1760                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1761                            }
1762    
1763                            return (com.liferay.portal.kernel.search.Hits)returnObj;
1764                    }
1765                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1766                            _log.error(se, se);
1767    
1768                            throw se;
1769                    }
1770            }
1771    
1772            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1773                    HttpPrincipal httpPrincipal, long companyId, long groupId,
1774                    java.util.List<java.lang.Long> folderIds, long classNameId,
1775                    java.lang.String keywords, java.lang.Double version,
1776                    java.lang.String type, java.lang.String ddmStructureKey,
1777                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1778                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1779                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1780                    throws com.liferay.portal.kernel.exception.SystemException {
1781                    try {
1782                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1783                                            "search", _searchParameterTypes46);
1784    
1785                            MethodHandler methodHandler = new MethodHandler(methodKey,
1786                                            companyId, groupId, folderIds, classNameId, keywords,
1787                                            version, type, ddmStructureKey, ddmTemplateKey,
1788                                            displayDateGT, displayDateLT, status, reviewDate, start,
1789                                            end, obc);
1790    
1791                            Object returnObj = null;
1792    
1793                            try {
1794                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1795                            }
1796                            catch (Exception e) {
1797                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1798                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1799                                    }
1800    
1801                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1802                            }
1803    
1804                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1805                    }
1806                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1807                            _log.error(se, se);
1808    
1809                            throw se;
1810                    }
1811            }
1812    
1813            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1814                    HttpPrincipal httpPrincipal, long companyId, long groupId,
1815                    java.util.List<java.lang.Long> folderIds, long classNameId,
1816                    java.lang.String articleId, java.lang.Double version,
1817                    java.lang.String title, java.lang.String description,
1818                    java.lang.String content, java.lang.String type,
1819                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1820                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1821                    java.util.Date reviewDate, boolean andOperator, int start, int end,
1822                    com.liferay.portal.kernel.util.OrderByComparator obc)
1823                    throws com.liferay.portal.kernel.exception.SystemException {
1824                    try {
1825                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1826                                            "search", _searchParameterTypes47);
1827    
1828                            MethodHandler methodHandler = new MethodHandler(methodKey,
1829                                            companyId, groupId, folderIds, classNameId, articleId,
1830                                            version, title, description, content, type,
1831                                            ddmStructureKey, ddmTemplateKey, displayDateGT,
1832                                            displayDateLT, status, reviewDate, andOperator, start, end,
1833                                            obc);
1834    
1835                            Object returnObj = null;
1836    
1837                            try {
1838                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1839                            }
1840                            catch (Exception e) {
1841                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1842                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1843                                    }
1844    
1845                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1846                            }
1847    
1848                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1849                    }
1850                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1851                            _log.error(se, se);
1852    
1853                            throw se;
1854                    }
1855            }
1856    
1857            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1858                    HttpPrincipal httpPrincipal, long companyId, long groupId,
1859                    java.util.List<java.lang.Long> folderIds, long classNameId,
1860                    java.lang.String articleId, java.lang.Double version,
1861                    java.lang.String title, java.lang.String description,
1862                    java.lang.String content, java.lang.String type,
1863                    java.lang.String[] ddmStructureKeys,
1864                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1865                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1866                    boolean andOperator, int start, int end,
1867                    com.liferay.portal.kernel.util.OrderByComparator obc)
1868                    throws com.liferay.portal.kernel.exception.SystemException {
1869                    try {
1870                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1871                                            "search", _searchParameterTypes48);
1872    
1873                            MethodHandler methodHandler = new MethodHandler(methodKey,
1874                                            companyId, groupId, folderIds, classNameId, articleId,
1875                                            version, title, description, content, type,
1876                                            ddmStructureKeys, ddmTemplateKeys, displayDateGT,
1877                                            displayDateLT, status, reviewDate, andOperator, start, end,
1878                                            obc);
1879    
1880                            Object returnObj = null;
1881    
1882                            try {
1883                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1884                            }
1885                            catch (Exception e) {
1886                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1887                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1888                                    }
1889    
1890                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1891                            }
1892    
1893                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1894                    }
1895                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1896                            _log.error(se, se);
1897    
1898                            throw se;
1899                    }
1900            }
1901    
1902            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1903                    long groupId, java.util.List<java.lang.Long> folderIds,
1904                    long classNameId, java.lang.String keywords, java.lang.Double version,
1905                    java.lang.String type, java.lang.String ddmStructureKey,
1906                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1907                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
1908                    throws com.liferay.portal.kernel.exception.SystemException {
1909                    try {
1910                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1911                                            "searchCount", _searchCountParameterTypes49);
1912    
1913                            MethodHandler methodHandler = new MethodHandler(methodKey,
1914                                            companyId, groupId, folderIds, classNameId, keywords,
1915                                            version, type, ddmStructureKey, ddmTemplateKey,
1916                                            displayDateGT, displayDateLT, status, reviewDate);
1917    
1918                            Object returnObj = null;
1919    
1920                            try {
1921                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1922                            }
1923                            catch (Exception e) {
1924                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1925                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1926                                    }
1927    
1928                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1929                            }
1930    
1931                            return ((Integer)returnObj).intValue();
1932                    }
1933                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1934                            _log.error(se, se);
1935    
1936                            throw se;
1937                    }
1938            }
1939    
1940            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1941                    long groupId, java.util.List<java.lang.Long> folderIds,
1942                    long classNameId, java.lang.String articleId, java.lang.Double version,
1943                    java.lang.String title, java.lang.String description,
1944                    java.lang.String content, java.lang.String type,
1945                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1946                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1947                    java.util.Date reviewDate, boolean andOperator)
1948                    throws com.liferay.portal.kernel.exception.SystemException {
1949                    try {
1950                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1951                                            "searchCount", _searchCountParameterTypes50);
1952    
1953                            MethodHandler methodHandler = new MethodHandler(methodKey,
1954                                            companyId, groupId, folderIds, classNameId, articleId,
1955                                            version, title, description, content, type,
1956                                            ddmStructureKey, ddmTemplateKey, displayDateGT,
1957                                            displayDateLT, status, reviewDate, andOperator);
1958    
1959                            Object returnObj = null;
1960    
1961                            try {
1962                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1963                            }
1964                            catch (Exception e) {
1965                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1966                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1967                                    }
1968    
1969                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1970                            }
1971    
1972                            return ((Integer)returnObj).intValue();
1973                    }
1974                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1975                            _log.error(se, se);
1976    
1977                            throw se;
1978                    }
1979            }
1980    
1981            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1982                    long groupId, java.util.List<java.lang.Long> folderIds,
1983                    long classNameId, java.lang.String articleId, java.lang.Double version,
1984                    java.lang.String title, java.lang.String description,
1985                    java.lang.String content, java.lang.String type,
1986                    java.lang.String[] ddmStructureKeys,
1987                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1988                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1989                    boolean andOperator)
1990                    throws com.liferay.portal.kernel.exception.SystemException {
1991                    try {
1992                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1993                                            "searchCount", _searchCountParameterTypes51);
1994    
1995                            MethodHandler methodHandler = new MethodHandler(methodKey,
1996                                            companyId, groupId, folderIds, classNameId, articleId,
1997                                            version, title, description, content, type,
1998                                            ddmStructureKeys, ddmTemplateKeys, displayDateGT,
1999                                            displayDateLT, status, reviewDate, andOperator);
2000    
2001                            Object returnObj = null;
2002    
2003                            try {
2004                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2005                            }
2006                            catch (Exception e) {
2007                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2008                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2009                                    }
2010    
2011                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2012                            }
2013    
2014                            return ((Integer)returnObj).intValue();
2015                    }
2016                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2017                            _log.error(se, se);
2018    
2019                            throw se;
2020                    }
2021            }
2022    
2023            public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
2024                    throws com.liferay.portal.kernel.exception.PortalException,
2025                            com.liferay.portal.kernel.exception.SystemException {
2026                    try {
2027                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2028                                            "subscribe", _subscribeParameterTypes52);
2029    
2030                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
2031    
2032                            try {
2033                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
2034                            }
2035                            catch (Exception e) {
2036                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2037                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2038                                    }
2039    
2040                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2041                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2042                                    }
2043    
2044                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2045                            }
2046                    }
2047                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2048                            _log.error(se, se);
2049    
2050                            throw se;
2051                    }
2052            }
2053    
2054            public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
2055                    throws com.liferay.portal.kernel.exception.PortalException,
2056                            com.liferay.portal.kernel.exception.SystemException {
2057                    try {
2058                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2059                                            "unsubscribe", _unsubscribeParameterTypes53);
2060    
2061                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
2062    
2063                            try {
2064                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
2065                            }
2066                            catch (Exception e) {
2067                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2068                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2069                                    }
2070    
2071                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2072                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2073                                    }
2074    
2075                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2076                            }
2077                    }
2078                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2079                            _log.error(se, se);
2080    
2081                            throw se;
2082                    }
2083            }
2084    
2085            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
2086                    HttpPrincipal httpPrincipal, long userId, long groupId, long folderId,
2087                    java.lang.String articleId, double version,
2088                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
2089                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
2090                    java.lang.String content, java.lang.String layoutUuid,
2091                    com.liferay.portal.service.ServiceContext serviceContext)
2092                    throws com.liferay.portal.kernel.exception.PortalException,
2093                            com.liferay.portal.kernel.exception.SystemException {
2094                    try {
2095                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2096                                            "updateArticle", _updateArticleParameterTypes54);
2097    
2098                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
2099                                            groupId, folderId, articleId, version, titleMap,
2100                                            descriptionMap, content, layoutUuid, serviceContext);
2101    
2102                            Object returnObj = null;
2103    
2104                            try {
2105                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2106                            }
2107                            catch (Exception e) {
2108                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2109                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2110                                    }
2111    
2112                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2113                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2114                                    }
2115    
2116                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2117                            }
2118    
2119                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2120                    }
2121                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2122                            _log.error(se, se);
2123    
2124                            throw se;
2125                    }
2126            }
2127    
2128            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
2129                    HttpPrincipal httpPrincipal, long groupId, long folderId,
2130                    java.lang.String articleId, double version,
2131                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
2132                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
2133                    java.lang.String content, java.lang.String type,
2134                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2135                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
2136                    int displayDateYear, int displayDateHour, int displayDateMinute,
2137                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
2138                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
2139                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
2140                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
2141                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
2142                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
2143                    java.lang.String articleURL,
2144                    com.liferay.portal.service.ServiceContext serviceContext)
2145                    throws com.liferay.portal.kernel.exception.PortalException,
2146                            com.liferay.portal.kernel.exception.SystemException {
2147                    try {
2148                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2149                                            "updateArticle", _updateArticleParameterTypes55);
2150    
2151                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2152                                            folderId, articleId, version, titleMap, descriptionMap,
2153                                            content, type, ddmStructureKey, ddmTemplateKey, layoutUuid,
2154                                            displayDateMonth, displayDateDay, displayDateYear,
2155                                            displayDateHour, displayDateMinute, expirationDateMonth,
2156                                            expirationDateDay, expirationDateYear, expirationDateHour,
2157                                            expirationDateMinute, neverExpire, reviewDateMonth,
2158                                            reviewDateDay, reviewDateYear, reviewDateHour,
2159                                            reviewDateMinute, neverReview, indexable, smallImage,
2160                                            smallImageURL, smallFile, images, articleURL, serviceContext);
2161    
2162                            Object returnObj = null;
2163    
2164                            try {
2165                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2166                            }
2167                            catch (Exception e) {
2168                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2169                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2170                                    }
2171    
2172                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2173                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2174                                    }
2175    
2176                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2177                            }
2178    
2179                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2180                    }
2181                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2182                            _log.error(se, se);
2183    
2184                            throw se;
2185                    }
2186            }
2187    
2188            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
2189                    HttpPrincipal httpPrincipal, long groupId, long folderId,
2190                    java.lang.String articleId, double version, java.lang.String content,
2191                    com.liferay.portal.service.ServiceContext serviceContext)
2192                    throws com.liferay.portal.kernel.exception.PortalException,
2193                            com.liferay.portal.kernel.exception.SystemException {
2194                    try {
2195                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2196                                            "updateArticle", _updateArticleParameterTypes56);
2197    
2198                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2199                                            folderId, articleId, version, content, serviceContext);
2200    
2201                            Object returnObj = null;
2202    
2203                            try {
2204                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2205                            }
2206                            catch (Exception e) {
2207                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2208                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2209                                    }
2210    
2211                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2212                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2213                                    }
2214    
2215                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2216                            }
2217    
2218                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2219                    }
2220                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2221                            _log.error(se, se);
2222    
2223                            throw se;
2224                    }
2225            }
2226    
2227            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
2228                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
2229                    double version, java.util.Locale locale, java.lang.String title,
2230                    java.lang.String description, java.lang.String content,
2231                    java.util.Map<java.lang.String, byte[]> images)
2232                    throws com.liferay.portal.kernel.exception.PortalException,
2233                            com.liferay.portal.kernel.exception.SystemException {
2234                    try {
2235                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2236                                            "updateArticleTranslation",
2237                                            _updateArticleTranslationParameterTypes57);
2238    
2239                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2240                                            articleId, version, locale, title, description, content,
2241                                            images);
2242    
2243                            Object returnObj = null;
2244    
2245                            try {
2246                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2247                            }
2248                            catch (Exception e) {
2249                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2250                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2251                                    }
2252    
2253                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2254                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2255                                    }
2256    
2257                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2258                            }
2259    
2260                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2261                    }
2262                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2263                            _log.error(se, se);
2264    
2265                            throw se;
2266                    }
2267            }
2268    
2269            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
2270                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
2271                    double version, java.util.Locale locale, java.lang.String title,
2272                    java.lang.String description, java.lang.String content,
2273                    java.util.Map<java.lang.String, byte[]> images,
2274                    com.liferay.portal.service.ServiceContext serviceContext)
2275                    throws com.liferay.portal.kernel.exception.PortalException,
2276                            com.liferay.portal.kernel.exception.SystemException {
2277                    try {
2278                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2279                                            "updateArticleTranslation",
2280                                            _updateArticleTranslationParameterTypes58);
2281    
2282                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2283                                            articleId, version, locale, title, description, content,
2284                                            images, serviceContext);
2285    
2286                            Object returnObj = null;
2287    
2288                            try {
2289                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2290                            }
2291                            catch (Exception e) {
2292                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2293                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2294                                    }
2295    
2296                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2297                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2298                                    }
2299    
2300                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2301                            }
2302    
2303                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2304                    }
2305                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2306                            _log.error(se, se);
2307    
2308                            throw se;
2309                    }
2310            }
2311    
2312            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
2313                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
2314                    double version, java.lang.String content)
2315                    throws com.liferay.portal.kernel.exception.PortalException,
2316                            com.liferay.portal.kernel.exception.SystemException {
2317                    try {
2318                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2319                                            "updateContent", _updateContentParameterTypes59);
2320    
2321                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2322                                            articleId, version, content);
2323    
2324                            Object returnObj = null;
2325    
2326                            try {
2327                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2328                            }
2329                            catch (Exception e) {
2330                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2331                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2332                                    }
2333    
2334                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2335                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2336                                    }
2337    
2338                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2339                            }
2340    
2341                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2342                    }
2343                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2344                            _log.error(se, se);
2345    
2346                            throw se;
2347                    }
2348            }
2349    
2350            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
2351                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
2352                    double version, int status, java.lang.String articleURL,
2353                    com.liferay.portal.service.ServiceContext serviceContext)
2354                    throws com.liferay.portal.kernel.exception.PortalException,
2355                            com.liferay.portal.kernel.exception.SystemException {
2356                    try {
2357                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
2358                                            "updateStatus", _updateStatusParameterTypes60);
2359    
2360                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2361                                            articleId, version, status, articleURL, serviceContext);
2362    
2363                            Object returnObj = null;
2364    
2365                            try {
2366                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2367                            }
2368                            catch (Exception e) {
2369                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2370                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2371                                    }
2372    
2373                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2374                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2375                                    }
2376    
2377                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2378                            }
2379    
2380                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2381                    }
2382                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2383                            _log.error(se, se);
2384    
2385                            throw se;
2386                    }
2387            }
2388    
2389            private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
2390            private static final Class<?>[] _addArticleParameterTypes0 = new Class[] {
2391                            long.class, long.class, long.class, long.class,
2392                            java.lang.String.class, boolean.class, java.util.Map.class,
2393                            java.util.Map.class, java.lang.String.class, java.lang.String.class,
2394                            java.lang.String.class, java.lang.String.class,
2395                            java.lang.String.class, int.class, int.class, int.class, int.class,
2396                            int.class, int.class, int.class, int.class, int.class, int.class,
2397                            boolean.class, int.class, int.class, int.class, int.class, int.class,
2398                            boolean.class, boolean.class, boolean.class, java.lang.String.class,
2399                            java.io.File.class, java.util.Map.class, java.lang.String.class,
2400                            com.liferay.portal.service.ServiceContext.class
2401                    };
2402            private static final Class<?>[] _addArticleParameterTypes1 = new Class[] {
2403                            long.class, long.class, long.class, long.class,
2404                            java.lang.String.class, boolean.class, java.util.Map.class,
2405                            java.util.Map.class, java.lang.String.class, java.lang.String.class,
2406                            java.lang.String.class, java.lang.String.class,
2407                            java.lang.String.class, int.class, int.class, int.class, int.class,
2408                            int.class, int.class, int.class, int.class, int.class, int.class,
2409                            boolean.class, int.class, int.class, int.class, int.class, int.class,
2410                            boolean.class, boolean.class, java.lang.String.class,
2411                            com.liferay.portal.service.ServiceContext.class
2412                    };
2413            private static final Class<?>[] _copyArticleParameterTypes2 = new Class[] {
2414                            long.class, java.lang.String.class, java.lang.String.class,
2415                            boolean.class, double.class
2416                    };
2417            private static final Class<?>[] _deleteArticleParameterTypes3 = new Class[] {
2418                            long.class, java.lang.String.class, double.class,
2419                            java.lang.String.class,
2420                            com.liferay.portal.service.ServiceContext.class
2421                    };
2422            private static final Class<?>[] _deleteArticleParameterTypes4 = new Class[] {
2423                            long.class, java.lang.String.class, java.lang.String.class,
2424                            com.liferay.portal.service.ServiceContext.class
2425                    };
2426            private static final Class<?>[] _expireArticleParameterTypes5 = new Class[] {
2427                            long.class, java.lang.String.class, double.class,
2428                            java.lang.String.class,
2429                            com.liferay.portal.service.ServiceContext.class
2430                    };
2431            private static final Class<?>[] _expireArticleParameterTypes6 = new Class[] {
2432                            long.class, java.lang.String.class, java.lang.String.class,
2433                            com.liferay.portal.service.ServiceContext.class
2434                    };
2435            private static final Class<?>[] _fetchArticleParameterTypes7 = new Class[] {
2436                            long.class, java.lang.String.class
2437                    };
2438            private static final Class<?>[] _getArticleParameterTypes8 = new Class[] {
2439                            long.class
2440                    };
2441            private static final Class<?>[] _getArticleParameterTypes9 = new Class[] {
2442                            long.class, java.lang.String.class
2443                    };
2444            private static final Class<?>[] _getArticleParameterTypes10 = new Class[] {
2445                            long.class, java.lang.String.class, double.class
2446                    };
2447            private static final Class<?>[] _getArticleParameterTypes11 = new Class[] {
2448                            long.class, java.lang.String.class, long.class
2449                    };
2450            private static final Class<?>[] _getArticleByUrlTitleParameterTypes12 = new Class[] {
2451                            long.class, java.lang.String.class
2452                    };
2453            private static final Class<?>[] _getArticleContentParameterTypes13 = new Class[] {
2454                            long.class, java.lang.String.class, double.class,
2455                            java.lang.String.class, com.liferay.portal.theme.ThemeDisplay.class
2456                    };
2457            private static final Class<?>[] _getArticleContentParameterTypes14 = new Class[] {
2458                            long.class, java.lang.String.class, java.lang.String.class,
2459                            com.liferay.portal.theme.ThemeDisplay.class
2460                    };
2461            private static final Class<?>[] _getArticlesParameterTypes15 = new Class[] {
2462                            long.class, long.class
2463                    };
2464            private static final Class<?>[] _getArticlesParameterTypes16 = new Class[] {
2465                            long.class, long.class, int.class, int.class,
2466                            com.liferay.portal.kernel.util.OrderByComparator.class
2467                    };
2468            private static final Class<?>[] _getArticlesByArticleIdParameterTypes17 = new Class[] {
2469                            long.class, java.lang.String.class, int.class, int.class,
2470                            com.liferay.portal.kernel.util.OrderByComparator.class
2471                    };
2472            private static final Class<?>[] _getArticlesByLayoutUuidParameterTypes18 = new Class[] {
2473                            long.class, java.lang.String.class
2474                    };
2475            private static final Class<?>[] _getArticlesByStructureIdParameterTypes19 = new Class[] {
2476                            long.class, long.class, java.lang.String.class, int.class, int.class,
2477                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
2478                    };
2479            private static final Class<?>[] _getArticlesByStructureIdParameterTypes20 = new Class[] {
2480                            long.class, java.lang.String.class, int.class, int.class,
2481                            com.liferay.portal.kernel.util.OrderByComparator.class
2482                    };
2483            private static final Class<?>[] _getArticlesCountParameterTypes21 = new Class[] {
2484                            long.class, long.class
2485                    };
2486            private static final Class<?>[] _getArticlesCountParameterTypes22 = new Class[] {
2487                            long.class, long.class, int.class
2488                    };
2489            private static final Class<?>[] _getArticlesCountByArticleIdParameterTypes23 =
2490                    new Class[] { long.class, java.lang.String.class };
2491            private static final Class<?>[] _getArticlesCountByStructureIdParameterTypes24 =
2492                    new Class[] { long.class, long.class, java.lang.String.class, int.class };
2493            private static final Class<?>[] _getArticlesCountByStructureIdParameterTypes25 =
2494                    new Class[] { long.class, java.lang.String.class };
2495            private static final Class<?>[] _getDisplayArticleByUrlTitleParameterTypes26 =
2496                    new Class[] { long.class, java.lang.String.class };
2497            private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes27 = new Class[] {
2498                            long.class, java.util.List.class
2499                    };
2500            private static final Class<?>[] _getGroupArticlesParameterTypes28 = new Class[] {
2501                            long.class, long.class, long.class, int.class, boolean.class,
2502                            int.class, int.class,
2503                            com.liferay.portal.kernel.util.OrderByComparator.class
2504                    };
2505            private static final Class<?>[] _getGroupArticlesParameterTypes29 = new Class[] {
2506                            long.class, long.class, long.class, int.class, int.class, int.class,
2507                            com.liferay.portal.kernel.util.OrderByComparator.class
2508                    };
2509            private static final Class<?>[] _getGroupArticlesParameterTypes30 = new Class[] {
2510                            long.class, long.class, long.class, int.class, int.class,
2511                            com.liferay.portal.kernel.util.OrderByComparator.class
2512                    };
2513            private static final Class<?>[] _getGroupArticlesCountParameterTypes31 = new Class[] {
2514                            long.class, long.class, long.class
2515                    };
2516            private static final Class<?>[] _getGroupArticlesCountParameterTypes32 = new Class[] {
2517                            long.class, long.class, long.class, int.class
2518                    };
2519            private static final Class<?>[] _getGroupArticlesCountParameterTypes33 = new Class[] {
2520                            long.class, long.class, long.class, int.class, boolean.class
2521                    };
2522            private static final Class<?>[] _getLatestArticleParameterTypes34 = new Class[] {
2523                            long.class
2524                    };
2525            private static final Class<?>[] _getLatestArticleParameterTypes35 = new Class[] {
2526                            long.class, java.lang.String.class, int.class
2527                    };
2528            private static final Class<?>[] _getLatestArticleParameterTypes36 = new Class[] {
2529                            long.class, java.lang.String.class, long.class
2530                    };
2531            private static final Class<?>[] _moveArticleParameterTypes37 = new Class[] {
2532                            long.class, java.lang.String.class, long.class
2533                    };
2534            private static final Class<?>[] _moveArticleFromTrashParameterTypes38 = new Class[] {
2535                            long.class, long.class, long.class,
2536                            com.liferay.portal.service.ServiceContext.class
2537                    };
2538            private static final Class<?>[] _moveArticleFromTrashParameterTypes39 = new Class[] {
2539                            long.class, java.lang.String.class, long.class,
2540                            com.liferay.portal.service.ServiceContext.class
2541                    };
2542            private static final Class<?>[] _moveArticleToTrashParameterTypes40 = new Class[] {
2543                            long.class, java.lang.String.class
2544                    };
2545            private static final Class<?>[] _removeArticleLocaleParameterTypes41 = new Class[] {
2546                            long.class, java.lang.String.class
2547                    };
2548            private static final Class<?>[] _removeArticleLocaleParameterTypes42 = new Class[] {
2549                            long.class, java.lang.String.class, double.class,
2550                            java.lang.String.class
2551                    };
2552            private static final Class<?>[] _restoreArticleFromTrashParameterTypes43 = new Class[] {
2553                            long.class
2554                    };
2555            private static final Class<?>[] _restoreArticleFromTrashParameterTypes44 = new Class[] {
2556                            long.class, java.lang.String.class
2557                    };
2558            private static final Class<?>[] _searchParameterTypes45 = new Class[] {
2559                            long.class, long.class, int.class, int.class, int.class
2560                    };
2561            private static final Class<?>[] _searchParameterTypes46 = new Class[] {
2562                            long.class, long.class, java.util.List.class, long.class,
2563                            java.lang.String.class, java.lang.Double.class,
2564                            java.lang.String.class, java.lang.String.class,
2565                            java.lang.String.class, java.util.Date.class, java.util.Date.class,
2566                            int.class, java.util.Date.class, int.class, int.class,
2567                            com.liferay.portal.kernel.util.OrderByComparator.class
2568                    };
2569            private static final Class<?>[] _searchParameterTypes47 = new Class[] {
2570                            long.class, long.class, java.util.List.class, long.class,
2571                            java.lang.String.class, java.lang.Double.class,
2572                            java.lang.String.class, java.lang.String.class,
2573                            java.lang.String.class, java.lang.String.class,
2574                            java.lang.String.class, java.lang.String.class, java.util.Date.class,
2575                            java.util.Date.class, int.class, java.util.Date.class, boolean.class,
2576                            int.class, int.class,
2577                            com.liferay.portal.kernel.util.OrderByComparator.class
2578                    };
2579            private static final Class<?>[] _searchParameterTypes48 = new Class[] {
2580                            long.class, long.class, java.util.List.class, long.class,
2581                            java.lang.String.class, java.lang.Double.class,
2582                            java.lang.String.class, java.lang.String.class,
2583                            java.lang.String.class, java.lang.String.class,
2584                            java.lang.String[].class, java.lang.String[].class,
2585                            java.util.Date.class, java.util.Date.class, int.class,
2586                            java.util.Date.class, boolean.class, int.class, int.class,
2587                            com.liferay.portal.kernel.util.OrderByComparator.class
2588                    };
2589            private static final Class<?>[] _searchCountParameterTypes49 = new Class[] {
2590                            long.class, long.class, java.util.List.class, long.class,
2591                            java.lang.String.class, java.lang.Double.class,
2592                            java.lang.String.class, java.lang.String.class,
2593                            java.lang.String.class, java.util.Date.class, java.util.Date.class,
2594                            int.class, java.util.Date.class
2595                    };
2596            private static final Class<?>[] _searchCountParameterTypes50 = new Class[] {
2597                            long.class, long.class, java.util.List.class, long.class,
2598                            java.lang.String.class, java.lang.Double.class,
2599                            java.lang.String.class, java.lang.String.class,
2600                            java.lang.String.class, java.lang.String.class,
2601                            java.lang.String.class, java.lang.String.class, java.util.Date.class,
2602                            java.util.Date.class, int.class, java.util.Date.class, boolean.class
2603                    };
2604            private static final Class<?>[] _searchCountParameterTypes51 = new Class[] {
2605                            long.class, long.class, java.util.List.class, long.class,
2606                            java.lang.String.class, java.lang.Double.class,
2607                            java.lang.String.class, java.lang.String.class,
2608                            java.lang.String.class, java.lang.String.class,
2609                            java.lang.String[].class, java.lang.String[].class,
2610                            java.util.Date.class, java.util.Date.class, int.class,
2611                            java.util.Date.class, boolean.class
2612                    };
2613            private static final Class<?>[] _subscribeParameterTypes52 = new Class[] {
2614                            long.class
2615                    };
2616            private static final Class<?>[] _unsubscribeParameterTypes53 = new Class[] {
2617                            long.class
2618                    };
2619            private static final Class<?>[] _updateArticleParameterTypes54 = new Class[] {
2620                            long.class, long.class, long.class, java.lang.String.class,
2621                            double.class, java.util.Map.class, java.util.Map.class,
2622                            java.lang.String.class, java.lang.String.class,
2623                            com.liferay.portal.service.ServiceContext.class
2624                    };
2625            private static final Class<?>[] _updateArticleParameterTypes55 = new Class[] {
2626                            long.class, long.class, java.lang.String.class, double.class,
2627                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
2628                            java.lang.String.class, java.lang.String.class,
2629                            java.lang.String.class, java.lang.String.class, int.class, int.class,
2630                            int.class, int.class, int.class, int.class, int.class, int.class,
2631                            int.class, int.class, boolean.class, int.class, int.class, int.class,
2632                            int.class, int.class, boolean.class, boolean.class, boolean.class,
2633                            java.lang.String.class, java.io.File.class, java.util.Map.class,
2634                            java.lang.String.class,
2635                            com.liferay.portal.service.ServiceContext.class
2636                    };
2637            private static final Class<?>[] _updateArticleParameterTypes56 = new Class[] {
2638                            long.class, long.class, java.lang.String.class, double.class,
2639                            java.lang.String.class,
2640                            com.liferay.portal.service.ServiceContext.class
2641                    };
2642            private static final Class<?>[] _updateArticleTranslationParameterTypes57 = new Class[] {
2643                            long.class, java.lang.String.class, double.class,
2644                            java.util.Locale.class, java.lang.String.class,
2645                            java.lang.String.class, java.lang.String.class, java.util.Map.class
2646                    };
2647            private static final Class<?>[] _updateArticleTranslationParameterTypes58 = new Class[] {
2648                            long.class, java.lang.String.class, double.class,
2649                            java.util.Locale.class, java.lang.String.class,
2650                            java.lang.String.class, java.lang.String.class, java.util.Map.class,
2651                            com.liferay.portal.service.ServiceContext.class
2652                    };
2653            private static final Class<?>[] _updateContentParameterTypes59 = new Class[] {
2654                            long.class, java.lang.String.class, double.class,
2655                            java.lang.String.class
2656                    };
2657            private static final Class<?>[] _updateStatusParameterTypes60 = new Class[] {
2658                            long.class, java.lang.String.class, double.class, int.class,
2659                            java.lang.String.class,
2660                            com.liferay.portal.service.ServiceContext.class
2661                    };
2662    }