001    /**
002     * Copyright (c) 2000-2012 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     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.journal.service.JournalArticleServiceUtil} service utility. The
030     * static methods of this class calls the same methods of the service utility.
031     * However, the signatures are different because it requires an additional
032     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
033     * </p>
034     *
035     * <p>
036     * The benefits of using the HTTP utility is that it is fast and allows for
037     * tunneling without the cost of serializing to text. The drawback is that it
038     * only works with Java.
039     * </p>
040     *
041     * <p>
042     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
043     * configure security.
044     * </p>
045     *
046     * <p>
047     * The HTTP utility is only generated for remote services.
048     * </p>
049     *
050     * @author    Brian Wing Shun Chan
051     * @see       JournalArticleServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.journal.service.JournalArticleServiceUtil
054     * @generated
055     */
056    public class JournalArticleServiceHttp {
057            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
058                    HttpPrincipal httpPrincipal, long groupId, long folderId,
059                    long classNameId, long classPK, java.lang.String articleId,
060                    boolean autoArticleId,
061                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    java.lang.String content, java.lang.String type,
064                    java.lang.String structureId, java.lang.String templateId,
065                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
066                    int displayDateYear, int displayDateHour, int displayDateMinute,
067                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
068                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
069                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
070                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
071                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
072                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
073                    java.lang.String articleURL,
074                    com.liferay.portal.service.ServiceContext serviceContext)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    try {
078                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
079                                            "addArticle", _addArticleParameterTypes0);
080    
081                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
082                                            folderId, classNameId, classPK, articleId, autoArticleId,
083                                            titleMap, descriptionMap, content, type, structureId,
084                                            templateId, layoutUuid, displayDateMonth, displayDateDay,
085                                            displayDateYear, displayDateHour, displayDateMinute,
086                                            expirationDateMonth, expirationDateDay, expirationDateYear,
087                                            expirationDateHour, expirationDateMinute, neverExpire,
088                                            reviewDateMonth, reviewDateDay, reviewDateYear,
089                                            reviewDateHour, reviewDateMinute, neverReview, indexable,
090                                            smallImage, smallImageURL, smallFile, images, articleURL,
091                                            serviceContext);
092    
093                            Object returnObj = null;
094    
095                            try {
096                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
097                            }
098                            catch (Exception e) {
099                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
100                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
101                                    }
102    
103                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
104                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
105                                    }
106    
107                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
108                            }
109    
110                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
111                    }
112                    catch (com.liferay.portal.kernel.exception.SystemException se) {
113                            _log.error(se, se);
114    
115                            throw se;
116                    }
117            }
118    
119            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
120                    HttpPrincipal httpPrincipal, long groupId, long folderId,
121                    long classNameId, long classPK, java.lang.String articleId,
122                    boolean autoArticleId,
123                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
124                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
125                    java.lang.String content, java.lang.String type,
126                    java.lang.String structureId, java.lang.String templateId,
127                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
128                    int displayDateYear, int displayDateHour, int displayDateMinute,
129                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
130                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
131                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
132                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
133                    boolean indexable, java.lang.String articleURL,
134                    com.liferay.portal.service.ServiceContext serviceContext)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException {
137                    try {
138                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
139                                            "addArticle", _addArticleParameterTypes1);
140    
141                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
142                                            folderId, classNameId, classPK, articleId, autoArticleId,
143                                            titleMap, descriptionMap, content, type, structureId,
144                                            templateId, layoutUuid, displayDateMonth, displayDateDay,
145                                            displayDateYear, displayDateHour, displayDateMinute,
146                                            expirationDateMonth, expirationDateDay, expirationDateYear,
147                                            expirationDateHour, expirationDateMinute, neverExpire,
148                                            reviewDateMonth, reviewDateDay, reviewDateYear,
149                                            reviewDateHour, reviewDateMinute, neverReview, indexable,
150                                            articleURL, serviceContext);
151    
152                            Object returnObj = null;
153    
154                            try {
155                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
156                            }
157                            catch (Exception e) {
158                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
159                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
160                                    }
161    
162                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
163                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
164                                    }
165    
166                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
167                            }
168    
169                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
170                    }
171                    catch (com.liferay.portal.kernel.exception.SystemException se) {
172                            _log.error(se, se);
173    
174                            throw se;
175                    }
176            }
177    
178            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
179                    HttpPrincipal httpPrincipal, long groupId,
180                    java.lang.String oldArticleId, java.lang.String newArticleId,
181                    boolean autoArticleId, double version)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    try {
185                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
186                                            "copyArticle", _copyArticleParameterTypes2);
187    
188                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
189                                            oldArticleId, newArticleId, autoArticleId, version);
190    
191                            Object returnObj = null;
192    
193                            try {
194                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
195                            }
196                            catch (Exception e) {
197                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
198                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
199                                    }
200    
201                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
202                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
203                                    }
204    
205                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
206                            }
207    
208                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
209                    }
210                    catch (com.liferay.portal.kernel.exception.SystemException se) {
211                            _log.error(se, se);
212    
213                            throw se;
214                    }
215            }
216    
217            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
218                    java.lang.String articleId, double version,
219                    java.lang.String articleURL,
220                    com.liferay.portal.service.ServiceContext serviceContext)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    try {
224                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
225                                            "deleteArticle", _deleteArticleParameterTypes3);
226    
227                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
228                                            articleId, version, articleURL, serviceContext);
229    
230                            try {
231                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
232                            }
233                            catch (Exception e) {
234                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
235                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
236                                    }
237    
238                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
239                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
240                                    }
241    
242                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
243                            }
244                    }
245                    catch (com.liferay.portal.kernel.exception.SystemException se) {
246                            _log.error(se, se);
247    
248                            throw se;
249                    }
250            }
251    
252            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
253                    java.lang.String articleId, java.lang.String articleURL,
254                    com.liferay.portal.service.ServiceContext serviceContext)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    try {
258                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
259                                            "deleteArticle", _deleteArticleParameterTypes4);
260    
261                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
262                                            articleId, articleURL, serviceContext);
263    
264                            try {
265                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
266                            }
267                            catch (Exception e) {
268                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
269                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
270                                    }
271    
272                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
273                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
274                                    }
275    
276                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
277                            }
278                    }
279                    catch (com.liferay.portal.kernel.exception.SystemException se) {
280                            _log.error(se, se);
281    
282                            throw se;
283                    }
284            }
285    
286            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
287                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
288                    double version, java.lang.String articleURL,
289                    com.liferay.portal.service.ServiceContext serviceContext)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    try {
293                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
294                                            "expireArticle", _expireArticleParameterTypes5);
295    
296                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
297                                            articleId, version, articleURL, serviceContext);
298    
299                            Object returnObj = null;
300    
301                            try {
302                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
303                            }
304                            catch (Exception e) {
305                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
306                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
307                                    }
308    
309                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
310                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
311                                    }
312    
313                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
314                            }
315    
316                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
317                    }
318                    catch (com.liferay.portal.kernel.exception.SystemException se) {
319                            _log.error(se, se);
320    
321                            throw se;
322                    }
323            }
324    
325            public static void expireArticle(HttpPrincipal httpPrincipal, long groupId,
326                    java.lang.String articleId, java.lang.String articleURL,
327                    com.liferay.portal.service.ServiceContext serviceContext)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    try {
331                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
332                                            "expireArticle", _expireArticleParameterTypes6);
333    
334                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
335                                            articleId, articleURL, serviceContext);
336    
337                            try {
338                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
339                            }
340                            catch (Exception e) {
341                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
342                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
343                                    }
344    
345                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
346                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
347                                    }
348    
349                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
350                            }
351                    }
352                    catch (com.liferay.portal.kernel.exception.SystemException se) {
353                            _log.error(se, se);
354    
355                            throw se;
356                    }
357            }
358    
359            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
360                    HttpPrincipal httpPrincipal, long id)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    try {
364                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
365                                            "getArticle", _getArticleParameterTypes7);
366    
367                            MethodHandler methodHandler = new MethodHandler(methodKey, id);
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 groupId, java.lang.String articleId)
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, groupId,
404                                            articleId);
405    
406                            Object returnObj = null;
407    
408                            try {
409                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
410                            }
411                            catch (Exception e) {
412                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
413                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
414                                    }
415    
416                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
417                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
418                                    }
419    
420                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
421                            }
422    
423                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
424                    }
425                    catch (com.liferay.portal.kernel.exception.SystemException se) {
426                            _log.error(se, se);
427    
428                            throw se;
429                    }
430            }
431    
432            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
433                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
434                    double version)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException {
437                    try {
438                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
439                                            "getArticle", _getArticleParameterTypes9);
440    
441                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
442                                            articleId, version);
443    
444                            Object returnObj = null;
445    
446                            try {
447                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
448                            }
449                            catch (Exception e) {
450                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
451                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
452                                    }
453    
454                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
455                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
456                                    }
457    
458                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
459                            }
460    
461                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
462                    }
463                    catch (com.liferay.portal.kernel.exception.SystemException se) {
464                            _log.error(se, se);
465    
466                            throw se;
467                    }
468            }
469    
470            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
471                    HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
472                    long classPK)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    try {
476                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
477                                            "getArticle", _getArticleParameterTypes10);
478    
479                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
480                                            className, classPK);
481    
482                            Object returnObj = null;
483    
484                            try {
485                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
486                            }
487                            catch (Exception e) {
488                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
489                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
490                                    }
491    
492                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
493                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
494                                    }
495    
496                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
497                            }
498    
499                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
500                    }
501                    catch (com.liferay.portal.kernel.exception.SystemException se) {
502                            _log.error(se, se);
503    
504                            throw se;
505                    }
506            }
507    
508            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
509                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    try {
513                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
514                                            "getArticleByUrlTitle",
515                                            _getArticleByUrlTitleParameterTypes11);
516    
517                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
518                                            urlTitle);
519    
520                            Object returnObj = null;
521    
522                            try {
523                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
524                            }
525                            catch (Exception e) {
526                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
527                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
528                                    }
529    
530                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
531                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
532                                    }
533    
534                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
535                            }
536    
537                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
538                    }
539                    catch (com.liferay.portal.kernel.exception.SystemException se) {
540                            _log.error(se, se);
541    
542                            throw se;
543                    }
544            }
545    
546            public static java.lang.String getArticleContent(
547                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
548                    double version, java.lang.String languageId,
549                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
550                    throws com.liferay.portal.kernel.exception.PortalException,
551                            com.liferay.portal.kernel.exception.SystemException {
552                    try {
553                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
554                                            "getArticleContent", _getArticleContentParameterTypes12);
555    
556                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
557                                            articleId, version, languageId, themeDisplay);
558    
559                            Object returnObj = null;
560    
561                            try {
562                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
563                            }
564                            catch (Exception e) {
565                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
566                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
567                                    }
568    
569                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
570                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
571                                    }
572    
573                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
574                            }
575    
576                            return (java.lang.String)returnObj;
577                    }
578                    catch (com.liferay.portal.kernel.exception.SystemException se) {
579                            _log.error(se, se);
580    
581                            throw se;
582                    }
583            }
584    
585            public static java.lang.String getArticleContent(
586                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
587                    java.lang.String languageId,
588                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
589                    throws com.liferay.portal.kernel.exception.PortalException,
590                            com.liferay.portal.kernel.exception.SystemException {
591                    try {
592                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
593                                            "getArticleContent", _getArticleContentParameterTypes13);
594    
595                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
596                                            articleId, languageId, themeDisplay);
597    
598                            Object returnObj = null;
599    
600                            try {
601                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
602                            }
603                            catch (Exception e) {
604                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
605                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
606                                    }
607    
608                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
609                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
610                                    }
611    
612                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
613                            }
614    
615                            return (java.lang.String)returnObj;
616                    }
617                    catch (com.liferay.portal.kernel.exception.SystemException se) {
618                            _log.error(se, se);
619    
620                            throw se;
621                    }
622            }
623    
624            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
625                    HttpPrincipal httpPrincipal, long groupId, long folderId)
626                    throws com.liferay.portal.kernel.exception.SystemException {
627                    try {
628                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
629                                            "getArticles", _getArticlesParameterTypes14);
630    
631                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
632                                            folderId);
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.SystemException) {
641                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
642                                    }
643    
644                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
645                            }
646    
647                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
648                    }
649                    catch (com.liferay.portal.kernel.exception.SystemException se) {
650                            _log.error(se, se);
651    
652                            throw se;
653                    }
654            }
655    
656            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
657                    HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
658                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    try {
661                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
662                                            "getArticles", _getArticlesParameterTypes15);
663    
664                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
665                                            folderId, start, end, obc);
666    
667                            Object returnObj = null;
668    
669                            try {
670                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
671                            }
672                            catch (Exception e) {
673                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
674                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
675                                    }
676    
677                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
678                            }
679    
680                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
681                    }
682                    catch (com.liferay.portal.kernel.exception.SystemException se) {
683                            _log.error(se, se);
684    
685                            throw se;
686                    }
687            }
688    
689            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByArticleId(
690                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
691                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
692                    throws com.liferay.portal.kernel.exception.SystemException {
693                    try {
694                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
695                                            "getArticlesByArticleId",
696                                            _getArticlesByArticleIdParameterTypes16);
697    
698                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
699                                            articleId, start, end, obc);
700    
701                            Object returnObj = null;
702    
703                            try {
704                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
705                            }
706                            catch (Exception e) {
707                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
708                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
709                                    }
710    
711                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
712                            }
713    
714                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
715                    }
716                    catch (com.liferay.portal.kernel.exception.SystemException se) {
717                            _log.error(se, se);
718    
719                            throw se;
720                    }
721            }
722    
723            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid(
724                    HttpPrincipal httpPrincipal, long groupId, java.lang.String layoutUuid)
725                    throws com.liferay.portal.kernel.exception.SystemException {
726                    try {
727                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
728                                            "getArticlesByLayoutUuid",
729                                            _getArticlesByLayoutUuidParameterTypes17);
730    
731                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
732                                            layoutUuid);
733    
734                            Object returnObj = null;
735    
736                            try {
737                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
738                            }
739                            catch (Exception e) {
740                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
741                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
742                                    }
743    
744                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
745                            }
746    
747                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
748                    }
749                    catch (com.liferay.portal.kernel.exception.SystemException se) {
750                            _log.error(se, se);
751    
752                            throw se;
753                    }
754            }
755    
756            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
757                    HttpPrincipal httpPrincipal, long groupId,
758                    java.lang.String structureId, int start, int end,
759                    com.liferay.portal.kernel.util.OrderByComparator obc)
760                    throws com.liferay.portal.kernel.exception.SystemException {
761                    try {
762                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
763                                            "getArticlesByStructureId",
764                                            _getArticlesByStructureIdParameterTypes18);
765    
766                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
767                                            structureId, start, end, obc);
768    
769                            Object returnObj = null;
770    
771                            try {
772                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
773                            }
774                            catch (Exception e) {
775                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
776                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
777                                    }
778    
779                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
780                            }
781    
782                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
783                    }
784                    catch (com.liferay.portal.kernel.exception.SystemException se) {
785                            _log.error(se, se);
786    
787                            throw se;
788                    }
789            }
790    
791            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByUserId(
792                    HttpPrincipal httpPrincipal, long groupId, long userId,
793                    long classNameId, int start, int end,
794                    com.liferay.portal.kernel.util.OrderByComparator obc)
795                    throws com.liferay.portal.kernel.exception.SystemException {
796                    try {
797                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
798                                            "getArticlesByUserId", _getArticlesByUserIdParameterTypes19);
799    
800                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
801                                            userId, classNameId, start, end, obc);
802    
803                            Object returnObj = null;
804    
805                            try {
806                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
807                            }
808                            catch (Exception e) {
809                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
810                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
811                                    }
812    
813                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
814                            }
815    
816                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
817                    }
818                    catch (com.liferay.portal.kernel.exception.SystemException se) {
819                            _log.error(se, se);
820    
821                            throw se;
822                    }
823            }
824    
825            public static int getArticlesCount(HttpPrincipal httpPrincipal,
826                    long groupId, long folderId)
827                    throws com.liferay.portal.kernel.exception.SystemException {
828                    try {
829                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
830                                            "getArticlesCount", _getArticlesCountParameterTypes20);
831    
832                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
833                                            folderId);
834    
835                            Object returnObj = null;
836    
837                            try {
838                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
839                            }
840                            catch (Exception e) {
841                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
842                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
843                                    }
844    
845                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
846                            }
847    
848                            return ((Integer)returnObj).intValue();
849                    }
850                    catch (com.liferay.portal.kernel.exception.SystemException se) {
851                            _log.error(se, se);
852    
853                            throw se;
854                    }
855            }
856    
857            public static int getArticlesCountByArticleId(HttpPrincipal httpPrincipal,
858                    long groupId, java.lang.String articleId)
859                    throws com.liferay.portal.kernel.exception.SystemException {
860                    try {
861                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
862                                            "getArticlesCountByArticleId",
863                                            _getArticlesCountByArticleIdParameterTypes21);
864    
865                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
866                                            articleId);
867    
868                            Object returnObj = null;
869    
870                            try {
871                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
872                            }
873                            catch (Exception e) {
874                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
875                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
876                                    }
877    
878                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
879                            }
880    
881                            return ((Integer)returnObj).intValue();
882                    }
883                    catch (com.liferay.portal.kernel.exception.SystemException se) {
884                            _log.error(se, se);
885    
886                            throw se;
887                    }
888            }
889    
890            public static int getArticlesCountByStructureId(
891                    HttpPrincipal httpPrincipal, long groupId, java.lang.String structureId)
892                    throws com.liferay.portal.kernel.exception.SystemException {
893                    try {
894                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
895                                            "getArticlesCountByStructureId",
896                                            _getArticlesCountByStructureIdParameterTypes22);
897    
898                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
899                                            structureId);
900    
901                            Object returnObj = null;
902    
903                            try {
904                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
905                            }
906                            catch (Exception e) {
907                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
908                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
909                                    }
910    
911                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
912                            }
913    
914                            return ((Integer)returnObj).intValue();
915                    }
916                    catch (com.liferay.portal.kernel.exception.SystemException se) {
917                            _log.error(se, se);
918    
919                            throw se;
920                    }
921            }
922    
923            public static int getArticlesCountByUserId(HttpPrincipal httpPrincipal,
924                    long groupId, long userId, long classNameId)
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    try {
927                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
928                                            "getArticlesCountByUserId",
929                                            _getArticlesCountByUserIdParameterTypes23);
930    
931                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
932                                            userId, classNameId);
933    
934                            Object returnObj = null;
935    
936                            try {
937                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
938                            }
939                            catch (Exception e) {
940                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
941                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
942                                    }
943    
944                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
945                            }
946    
947                            return ((Integer)returnObj).intValue();
948                    }
949                    catch (com.liferay.portal.kernel.exception.SystemException se) {
950                            _log.error(se, se);
951    
952                            throw se;
953                    }
954            }
955    
956            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
957                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
958                    throws com.liferay.portal.kernel.exception.PortalException,
959                            com.liferay.portal.kernel.exception.SystemException {
960                    try {
961                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
962                                            "getDisplayArticleByUrlTitle",
963                                            _getDisplayArticleByUrlTitleParameterTypes24);
964    
965                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
966                                            urlTitle);
967    
968                            Object returnObj = null;
969    
970                            try {
971                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
972                            }
973                            catch (Exception e) {
974                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
975                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
976                                    }
977    
978                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
979                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
980                                    }
981    
982                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
983                            }
984    
985                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
986                    }
987                    catch (com.liferay.portal.kernel.exception.SystemException se) {
988                            _log.error(se, se);
989    
990                            throw se;
991                    }
992            }
993    
994            public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
995                    long groupId, java.util.List<java.lang.Long> folderIds)
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    try {
998                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
999                                            "getFoldersAndArticlesCount",
1000                                            _getFoldersAndArticlesCountParameterTypes25);
1001    
1002                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1003                                            folderIds);
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 getLatestArticle(
1028                    HttpPrincipal httpPrincipal, long resourcePrimKey)
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                                            "getLatestArticle", _getLatestArticleParameterTypes26);
1034    
1035                            MethodHandler methodHandler = new MethodHandler(methodKey,
1036                                            resourcePrimKey);
1037    
1038                            Object returnObj = null;
1039    
1040                            try {
1041                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1042                            }
1043                            catch (Exception e) {
1044                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1045                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1046                                    }
1047    
1048                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1049                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1050                                    }
1051    
1052                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1053                            }
1054    
1055                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1056                    }
1057                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1058                            _log.error(se, se);
1059    
1060                            throw se;
1061                    }
1062            }
1063    
1064            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1065                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1066                    int status)
1067                    throws com.liferay.portal.kernel.exception.PortalException,
1068                            com.liferay.portal.kernel.exception.SystemException {
1069                    try {
1070                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1071                                            "getLatestArticle", _getLatestArticleParameterTypes27);
1072    
1073                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1074                                            articleId, status);
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.PortalException) {
1083                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1084                                    }
1085    
1086                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1087                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1088                                    }
1089    
1090                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1091                            }
1092    
1093                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1094                    }
1095                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1096                            _log.error(se, se);
1097    
1098                            throw se;
1099                    }
1100            }
1101    
1102            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1103                    HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
1104                    long classPK)
1105                    throws com.liferay.portal.kernel.exception.PortalException,
1106                            com.liferay.portal.kernel.exception.SystemException {
1107                    try {
1108                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1109                                            "getLatestArticle", _getLatestArticleParameterTypes28);
1110    
1111                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1112                                            className, classPK);
1113    
1114                            Object returnObj = null;
1115    
1116                            try {
1117                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1118                            }
1119                            catch (Exception e) {
1120                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1121                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1122                                    }
1123    
1124                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1125                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1126                                    }
1127    
1128                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1129                            }
1130    
1131                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1132                    }
1133                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1134                            _log.error(se, se);
1135    
1136                            throw se;
1137                    }
1138            }
1139    
1140            public static void moveArticle(HttpPrincipal httpPrincipal, long groupId,
1141                    java.lang.String articleId, long newFolderId)
1142                    throws com.liferay.portal.kernel.exception.PortalException,
1143                            com.liferay.portal.kernel.exception.SystemException {
1144                    try {
1145                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1146                                            "moveArticle", _moveArticleParameterTypes29);
1147    
1148                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1149                                            articleId, newFolderId);
1150    
1151                            try {
1152                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1153                            }
1154                            catch (Exception e) {
1155                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1156                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1157                                    }
1158    
1159                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1160                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1161                                    }
1162    
1163                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1164                            }
1165                    }
1166                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1167                            _log.error(se, se);
1168    
1169                            throw se;
1170                    }
1171            }
1172    
1173            public static void removeArticleLocale(HttpPrincipal httpPrincipal,
1174                    long companyId, java.lang.String languageId)
1175                    throws com.liferay.portal.kernel.exception.PortalException,
1176                            com.liferay.portal.kernel.exception.SystemException {
1177                    try {
1178                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1179                                            "removeArticleLocale", _removeArticleLocaleParameterTypes30);
1180    
1181                            MethodHandler methodHandler = new MethodHandler(methodKey,
1182                                            companyId, languageId);
1183    
1184                            try {
1185                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1186                            }
1187                            catch (Exception e) {
1188                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1189                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1190                                    }
1191    
1192                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1193                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1194                                    }
1195    
1196                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1197                            }
1198                    }
1199                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1200                            _log.error(se, se);
1201    
1202                            throw se;
1203                    }
1204            }
1205    
1206            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1207                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1208                    double version, java.lang.String languageId)
1209                    throws com.liferay.portal.kernel.exception.PortalException,
1210                            com.liferay.portal.kernel.exception.SystemException {
1211                    try {
1212                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1213                                            "removeArticleLocale", _removeArticleLocaleParameterTypes31);
1214    
1215                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1216                                            articleId, version, languageId);
1217    
1218                            Object returnObj = null;
1219    
1220                            try {
1221                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1222                            }
1223                            catch (Exception e) {
1224                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1225                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1226                                    }
1227    
1228                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1229                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1230                                    }
1231    
1232                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1233                            }
1234    
1235                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1236                    }
1237                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1238                            _log.error(se, se);
1239    
1240                            throw se;
1241                    }
1242            }
1243    
1244            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1245                    HttpPrincipal httpPrincipal, long companyId, long groupId,
1246                    java.util.List<java.lang.Long> folderIds, long classNameId,
1247                    java.lang.String keywords, java.lang.Double version,
1248                    java.lang.String type, java.lang.String structureId,
1249                    java.lang.String templateId, java.util.Date displayDateGT,
1250                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1251                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1252                    throws com.liferay.portal.kernel.exception.SystemException {
1253                    try {
1254                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1255                                            "search", _searchParameterTypes32);
1256    
1257                            MethodHandler methodHandler = new MethodHandler(methodKey,
1258                                            companyId, groupId, folderIds, classNameId, keywords,
1259                                            version, type, structureId, templateId, displayDateGT,
1260                                            displayDateLT, status, reviewDate, start, end, obc);
1261    
1262                            Object returnObj = null;
1263    
1264                            try {
1265                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1266                            }
1267                            catch (Exception e) {
1268                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1269                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1270                                    }
1271    
1272                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1273                            }
1274    
1275                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1276                    }
1277                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1278                            _log.error(se, se);
1279    
1280                            throw se;
1281                    }
1282            }
1283    
1284            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1285                    HttpPrincipal httpPrincipal, long companyId, long groupId,
1286                    java.util.List<java.lang.Long> folderIds, long classNameId,
1287                    java.lang.String articleId, java.lang.Double version,
1288                    java.lang.String title, java.lang.String description,
1289                    java.lang.String content, java.lang.String type,
1290                    java.lang.String structureId, java.lang.String templateId,
1291                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1292                    java.util.Date reviewDate, boolean andOperator, int start, int end,
1293                    com.liferay.portal.kernel.util.OrderByComparator obc)
1294                    throws com.liferay.portal.kernel.exception.SystemException {
1295                    try {
1296                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1297                                            "search", _searchParameterTypes33);
1298    
1299                            MethodHandler methodHandler = new MethodHandler(methodKey,
1300                                            companyId, groupId, folderIds, classNameId, articleId,
1301                                            version, title, description, content, type, structureId,
1302                                            templateId, displayDateGT, displayDateLT, status,
1303                                            reviewDate, andOperator, start, end, obc);
1304    
1305                            Object returnObj = null;
1306    
1307                            try {
1308                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1309                            }
1310                            catch (Exception e) {
1311                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1312                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1313                                    }
1314    
1315                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1316                            }
1317    
1318                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1319                    }
1320                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1321                            _log.error(se, se);
1322    
1323                            throw se;
1324                    }
1325            }
1326    
1327            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1328                    HttpPrincipal httpPrincipal, long companyId, long groupId,
1329                    java.util.List<java.lang.Long> folderIds, long classNameId,
1330                    java.lang.String articleId, java.lang.Double version,
1331                    java.lang.String title, java.lang.String description,
1332                    java.lang.String content, java.lang.String type,
1333                    java.lang.String[] structureIds, java.lang.String[] templateIds,
1334                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1335                    java.util.Date reviewDate, boolean andOperator, int start, int end,
1336                    com.liferay.portal.kernel.util.OrderByComparator obc)
1337                    throws com.liferay.portal.kernel.exception.SystemException {
1338                    try {
1339                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1340                                            "search", _searchParameterTypes34);
1341    
1342                            MethodHandler methodHandler = new MethodHandler(methodKey,
1343                                            companyId, groupId, folderIds, classNameId, articleId,
1344                                            version, title, description, content, type, structureIds,
1345                                            templateIds, displayDateGT, displayDateLT, status,
1346                                            reviewDate, andOperator, start, end, obc);
1347    
1348                            Object returnObj = null;
1349    
1350                            try {
1351                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1352                            }
1353                            catch (Exception e) {
1354                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1355                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1356                                    }
1357    
1358                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1359                            }
1360    
1361                            return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1362                    }
1363                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1364                            _log.error(se, se);
1365    
1366                            throw se;
1367                    }
1368            }
1369    
1370            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1371                    long groupId, java.util.List<java.lang.Long> folderIds,
1372                    long classNameId, java.lang.String keywords, java.lang.Double version,
1373                    java.lang.String type, java.lang.String structureId,
1374                    java.lang.String templateId, java.util.Date displayDateGT,
1375                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
1376                    throws com.liferay.portal.kernel.exception.SystemException {
1377                    try {
1378                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1379                                            "searchCount", _searchCountParameterTypes35);
1380    
1381                            MethodHandler methodHandler = new MethodHandler(methodKey,
1382                                            companyId, groupId, folderIds, classNameId, keywords,
1383                                            version, type, structureId, templateId, displayDateGT,
1384                                            displayDateLT, status, reviewDate);
1385    
1386                            Object returnObj = null;
1387    
1388                            try {
1389                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1390                            }
1391                            catch (Exception e) {
1392                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1393                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1394                                    }
1395    
1396                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1397                            }
1398    
1399                            return ((Integer)returnObj).intValue();
1400                    }
1401                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1402                            _log.error(se, se);
1403    
1404                            throw se;
1405                    }
1406            }
1407    
1408            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1409                    long groupId, java.util.List<java.lang.Long> folderIds,
1410                    long classNameId, java.lang.String articleId, java.lang.Double version,
1411                    java.lang.String title, java.lang.String description,
1412                    java.lang.String content, java.lang.String type,
1413                    java.lang.String structureId, java.lang.String templateId,
1414                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1415                    java.util.Date reviewDate, boolean andOperator)
1416                    throws com.liferay.portal.kernel.exception.SystemException {
1417                    try {
1418                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1419                                            "searchCount", _searchCountParameterTypes36);
1420    
1421                            MethodHandler methodHandler = new MethodHandler(methodKey,
1422                                            companyId, groupId, folderIds, classNameId, articleId,
1423                                            version, title, description, content, type, structureId,
1424                                            templateId, displayDateGT, displayDateLT, status,
1425                                            reviewDate, andOperator);
1426    
1427                            Object returnObj = null;
1428    
1429                            try {
1430                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1431                            }
1432                            catch (Exception e) {
1433                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1434                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1435                                    }
1436    
1437                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1438                            }
1439    
1440                            return ((Integer)returnObj).intValue();
1441                    }
1442                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1443                            _log.error(se, se);
1444    
1445                            throw se;
1446                    }
1447            }
1448    
1449            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1450                    long groupId, java.util.List<java.lang.Long> folderIds,
1451                    long classNameId, java.lang.String articleId, java.lang.Double version,
1452                    java.lang.String title, java.lang.String description,
1453                    java.lang.String content, java.lang.String type,
1454                    java.lang.String[] structureIds, java.lang.String[] templateIds,
1455                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1456                    java.util.Date reviewDate, boolean andOperator)
1457                    throws com.liferay.portal.kernel.exception.SystemException {
1458                    try {
1459                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1460                                            "searchCount", _searchCountParameterTypes37);
1461    
1462                            MethodHandler methodHandler = new MethodHandler(methodKey,
1463                                            companyId, groupId, folderIds, classNameId, articleId,
1464                                            version, title, description, content, type, structureIds,
1465                                            templateIds, displayDateGT, displayDateLT, status,
1466                                            reviewDate, andOperator);
1467    
1468                            Object returnObj = null;
1469    
1470                            try {
1471                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1472                            }
1473                            catch (Exception e) {
1474                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1475                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1476                                    }
1477    
1478                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1479                            }
1480    
1481                            return ((Integer)returnObj).intValue();
1482                    }
1483                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1484                            _log.error(se, se);
1485    
1486                            throw se;
1487                    }
1488            }
1489    
1490            public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
1491                    throws com.liferay.portal.kernel.exception.PortalException,
1492                            com.liferay.portal.kernel.exception.SystemException {
1493                    try {
1494                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1495                                            "subscribe", _subscribeParameterTypes38);
1496    
1497                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
1498    
1499                            try {
1500                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1501                            }
1502                            catch (Exception e) {
1503                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1504                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1505                                    }
1506    
1507                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1508                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1509                                    }
1510    
1511                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1512                            }
1513                    }
1514                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1515                            _log.error(se, se);
1516    
1517                            throw se;
1518                    }
1519            }
1520    
1521            public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
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                                            "unsubscribe", _unsubscribeParameterTypes39);
1527    
1528                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
1529    
1530                            try {
1531                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1532                            }
1533                            catch (Exception e) {
1534                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1535                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1536                                    }
1537    
1538                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1539                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1540                                    }
1541    
1542                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1543                            }
1544                    }
1545                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1546                            _log.error(se, se);
1547    
1548                            throw se;
1549                    }
1550            }
1551    
1552            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1553                    HttpPrincipal httpPrincipal, long userId, long groupId, long folderId,
1554                    java.lang.String articleId, double version,
1555                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1556                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1557                    java.lang.String content, java.lang.String layoutUuid,
1558                    com.liferay.portal.service.ServiceContext serviceContext)
1559                    throws com.liferay.portal.kernel.exception.PortalException,
1560                            com.liferay.portal.kernel.exception.SystemException {
1561                    try {
1562                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1563                                            "updateArticle", _updateArticleParameterTypes40);
1564    
1565                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1566                                            groupId, folderId, articleId, version, titleMap,
1567                                            descriptionMap, content, layoutUuid, serviceContext);
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 com.liferay.portlet.journal.model.JournalArticle updateArticle(
1596                    HttpPrincipal httpPrincipal, long groupId, long folderId,
1597                    java.lang.String articleId, double version,
1598                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1599                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1600                    java.lang.String content, java.lang.String type,
1601                    java.lang.String structureId, java.lang.String templateId,
1602                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1603                    int displayDateYear, int displayDateHour, int displayDateMinute,
1604                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1605                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1606                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1607                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
1608                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1609                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
1610                    java.lang.String articleURL,
1611                    com.liferay.portal.service.ServiceContext serviceContext)
1612                    throws com.liferay.portal.kernel.exception.PortalException,
1613                            com.liferay.portal.kernel.exception.SystemException {
1614                    try {
1615                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1616                                            "updateArticle", _updateArticleParameterTypes41);
1617    
1618                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1619                                            folderId, articleId, version, titleMap, descriptionMap,
1620                                            content, type, structureId, templateId, layoutUuid,
1621                                            displayDateMonth, displayDateDay, displayDateYear,
1622                                            displayDateHour, displayDateMinute, expirationDateMonth,
1623                                            expirationDateDay, expirationDateYear, expirationDateHour,
1624                                            expirationDateMinute, neverExpire, reviewDateMonth,
1625                                            reviewDateDay, reviewDateYear, reviewDateHour,
1626                                            reviewDateMinute, neverReview, indexable, smallImage,
1627                                            smallImageURL, smallFile, images, articleURL, serviceContext);
1628    
1629                            Object returnObj = null;
1630    
1631                            try {
1632                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1633                            }
1634                            catch (Exception e) {
1635                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1636                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1637                                    }
1638    
1639                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1640                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1641                                    }
1642    
1643                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1644                            }
1645    
1646                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1647                    }
1648                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1649                            _log.error(se, se);
1650    
1651                            throw se;
1652                    }
1653            }
1654    
1655            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1656                    HttpPrincipal httpPrincipal, long groupId, long folderId,
1657                    java.lang.String articleId, double version, java.lang.String content,
1658                    com.liferay.portal.service.ServiceContext serviceContext)
1659                    throws com.liferay.portal.kernel.exception.PortalException,
1660                            com.liferay.portal.kernel.exception.SystemException {
1661                    try {
1662                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1663                                            "updateArticle", _updateArticleParameterTypes42);
1664    
1665                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1666                                            folderId, articleId, version, content, serviceContext);
1667    
1668                            Object returnObj = null;
1669    
1670                            try {
1671                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1672                            }
1673                            catch (Exception e) {
1674                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1675                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1676                                    }
1677    
1678                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1679                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1680                                    }
1681    
1682                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1683                            }
1684    
1685                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1686                    }
1687                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1688                            _log.error(se, se);
1689    
1690                            throw se;
1691                    }
1692            }
1693    
1694            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1695                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1696                    double version, java.util.Locale locale, java.lang.String title,
1697                    java.lang.String description, java.lang.String content,
1698                    java.util.Map<java.lang.String, byte[]> images)
1699                    throws com.liferay.portal.kernel.exception.PortalException,
1700                            com.liferay.portal.kernel.exception.SystemException {
1701                    try {
1702                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1703                                            "updateArticleTranslation",
1704                                            _updateArticleTranslationParameterTypes43);
1705    
1706                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1707                                            articleId, version, locale, title, description, content,
1708                                            images);
1709    
1710                            Object returnObj = null;
1711    
1712                            try {
1713                                    returnObj = 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                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1728                    }
1729                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1730                            _log.error(se, se);
1731    
1732                            throw se;
1733                    }
1734            }
1735    
1736            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1737                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1738                    double version, java.util.Locale locale, java.lang.String title,
1739                    java.lang.String description, java.lang.String content,
1740                    java.util.Map<java.lang.String, byte[]> images,
1741                    com.liferay.portal.service.ServiceContext serviceContext)
1742                    throws com.liferay.portal.kernel.exception.PortalException,
1743                            com.liferay.portal.kernel.exception.SystemException {
1744                    try {
1745                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1746                                            "updateArticleTranslation",
1747                                            _updateArticleTranslationParameterTypes44);
1748    
1749                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1750                                            articleId, version, locale, title, description, content,
1751                                            images, serviceContext);
1752    
1753                            Object returnObj = null;
1754    
1755                            try {
1756                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1757                            }
1758                            catch (Exception e) {
1759                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1760                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1761                                    }
1762    
1763                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1764                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1765                                    }
1766    
1767                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1768                            }
1769    
1770                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1771                    }
1772                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1773                            _log.error(se, se);
1774    
1775                            throw se;
1776                    }
1777            }
1778    
1779            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1780                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1781                    double version, java.lang.String content)
1782                    throws com.liferay.portal.kernel.exception.PortalException,
1783                            com.liferay.portal.kernel.exception.SystemException {
1784                    try {
1785                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1786                                            "updateContent", _updateContentParameterTypes45);
1787    
1788                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1789                                            articleId, version, content);
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.PortalException) {
1798                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1799                                    }
1800    
1801                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1802                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1803                                    }
1804    
1805                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1806                            }
1807    
1808                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1809                    }
1810                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1811                            _log.error(se, se);
1812    
1813                            throw se;
1814                    }
1815            }
1816    
1817            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1818                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1819                    double version, int status, java.lang.String articleURL,
1820                    com.liferay.portal.service.ServiceContext serviceContext)
1821                    throws com.liferay.portal.kernel.exception.PortalException,
1822                            com.liferay.portal.kernel.exception.SystemException {
1823                    try {
1824                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1825                                            "updateStatus", _updateStatusParameterTypes46);
1826    
1827                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1828                                            articleId, version, status, articleURL, serviceContext);
1829    
1830                            Object returnObj = null;
1831    
1832                            try {
1833                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1834                            }
1835                            catch (Exception e) {
1836                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1837                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1838                                    }
1839    
1840                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1841                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1842                                    }
1843    
1844                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1845                            }
1846    
1847                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1848                    }
1849                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1850                            _log.error(se, se);
1851    
1852                            throw se;
1853                    }
1854            }
1855    
1856            private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
1857            private static final Class<?>[] _addArticleParameterTypes0 = new Class[] {
1858                            long.class, long.class, long.class, long.class,
1859                            java.lang.String.class, boolean.class, java.util.Map.class,
1860                            java.util.Map.class, java.lang.String.class, java.lang.String.class,
1861                            java.lang.String.class, java.lang.String.class,
1862                            java.lang.String.class, int.class, int.class, int.class, int.class,
1863                            int.class, int.class, int.class, int.class, int.class, int.class,
1864                            boolean.class, int.class, int.class, int.class, int.class, int.class,
1865                            boolean.class, boolean.class, boolean.class, java.lang.String.class,
1866                            java.io.File.class, java.util.Map.class, java.lang.String.class,
1867                            com.liferay.portal.service.ServiceContext.class
1868                    };
1869            private static final Class<?>[] _addArticleParameterTypes1 = new Class[] {
1870                            long.class, long.class, long.class, long.class,
1871                            java.lang.String.class, boolean.class, java.util.Map.class,
1872                            java.util.Map.class, java.lang.String.class, java.lang.String.class,
1873                            java.lang.String.class, java.lang.String.class,
1874                            java.lang.String.class, int.class, int.class, int.class, int.class,
1875                            int.class, int.class, int.class, int.class, int.class, int.class,
1876                            boolean.class, int.class, int.class, int.class, int.class, int.class,
1877                            boolean.class, boolean.class, java.lang.String.class,
1878                            com.liferay.portal.service.ServiceContext.class
1879                    };
1880            private static final Class<?>[] _copyArticleParameterTypes2 = new Class[] {
1881                            long.class, java.lang.String.class, java.lang.String.class,
1882                            boolean.class, double.class
1883                    };
1884            private static final Class<?>[] _deleteArticleParameterTypes3 = new Class[] {
1885                            long.class, java.lang.String.class, double.class,
1886                            java.lang.String.class,
1887                            com.liferay.portal.service.ServiceContext.class
1888                    };
1889            private static final Class<?>[] _deleteArticleParameterTypes4 = new Class[] {
1890                            long.class, java.lang.String.class, java.lang.String.class,
1891                            com.liferay.portal.service.ServiceContext.class
1892                    };
1893            private static final Class<?>[] _expireArticleParameterTypes5 = new Class[] {
1894                            long.class, java.lang.String.class, double.class,
1895                            java.lang.String.class,
1896                            com.liferay.portal.service.ServiceContext.class
1897                    };
1898            private static final Class<?>[] _expireArticleParameterTypes6 = new Class[] {
1899                            long.class, java.lang.String.class, java.lang.String.class,
1900                            com.liferay.portal.service.ServiceContext.class
1901                    };
1902            private static final Class<?>[] _getArticleParameterTypes7 = new Class[] {
1903                            long.class
1904                    };
1905            private static final Class<?>[] _getArticleParameterTypes8 = new Class[] {
1906                            long.class, java.lang.String.class
1907                    };
1908            private static final Class<?>[] _getArticleParameterTypes9 = new Class[] {
1909                            long.class, java.lang.String.class, double.class
1910                    };
1911            private static final Class<?>[] _getArticleParameterTypes10 = new Class[] {
1912                            long.class, java.lang.String.class, long.class
1913                    };
1914            private static final Class<?>[] _getArticleByUrlTitleParameterTypes11 = new Class[] {
1915                            long.class, java.lang.String.class
1916                    };
1917            private static final Class<?>[] _getArticleContentParameterTypes12 = new Class[] {
1918                            long.class, java.lang.String.class, double.class,
1919                            java.lang.String.class, com.liferay.portal.theme.ThemeDisplay.class
1920                    };
1921            private static final Class<?>[] _getArticleContentParameterTypes13 = new Class[] {
1922                            long.class, java.lang.String.class, java.lang.String.class,
1923                            com.liferay.portal.theme.ThemeDisplay.class
1924                    };
1925            private static final Class<?>[] _getArticlesParameterTypes14 = new Class[] {
1926                            long.class, long.class
1927                    };
1928            private static final Class<?>[] _getArticlesParameterTypes15 = new Class[] {
1929                            long.class, long.class, int.class, int.class,
1930                            com.liferay.portal.kernel.util.OrderByComparator.class
1931                    };
1932            private static final Class<?>[] _getArticlesByArticleIdParameterTypes16 = new Class[] {
1933                            long.class, java.lang.String.class, int.class, int.class,
1934                            com.liferay.portal.kernel.util.OrderByComparator.class
1935                    };
1936            private static final Class<?>[] _getArticlesByLayoutUuidParameterTypes17 = new Class[] {
1937                            long.class, java.lang.String.class
1938                    };
1939            private static final Class<?>[] _getArticlesByStructureIdParameterTypes18 = new Class[] {
1940                            long.class, java.lang.String.class, int.class, int.class,
1941                            com.liferay.portal.kernel.util.OrderByComparator.class
1942                    };
1943            private static final Class<?>[] _getArticlesByUserIdParameterTypes19 = new Class[] {
1944                            long.class, long.class, long.class, int.class, int.class,
1945                            com.liferay.portal.kernel.util.OrderByComparator.class
1946                    };
1947            private static final Class<?>[] _getArticlesCountParameterTypes20 = new Class[] {
1948                            long.class, long.class
1949                    };
1950            private static final Class<?>[] _getArticlesCountByArticleIdParameterTypes21 =
1951                    new Class[] { long.class, java.lang.String.class };
1952            private static final Class<?>[] _getArticlesCountByStructureIdParameterTypes22 =
1953                    new Class[] { long.class, java.lang.String.class };
1954            private static final Class<?>[] _getArticlesCountByUserIdParameterTypes23 = new Class[] {
1955                            long.class, long.class, long.class
1956                    };
1957            private static final Class<?>[] _getDisplayArticleByUrlTitleParameterTypes24 =
1958                    new Class[] { long.class, java.lang.String.class };
1959            private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes25 = new Class[] {
1960                            long.class, java.util.List.class
1961                    };
1962            private static final Class<?>[] _getLatestArticleParameterTypes26 = new Class[] {
1963                            long.class
1964                    };
1965            private static final Class<?>[] _getLatestArticleParameterTypes27 = new Class[] {
1966                            long.class, java.lang.String.class, int.class
1967                    };
1968            private static final Class<?>[] _getLatestArticleParameterTypes28 = new Class[] {
1969                            long.class, java.lang.String.class, long.class
1970                    };
1971            private static final Class<?>[] _moveArticleParameterTypes29 = new Class[] {
1972                            long.class, java.lang.String.class, long.class
1973                    };
1974            private static final Class<?>[] _removeArticleLocaleParameterTypes30 = new Class[] {
1975                            long.class, java.lang.String.class
1976                    };
1977            private static final Class<?>[] _removeArticleLocaleParameterTypes31 = new Class[] {
1978                            long.class, java.lang.String.class, double.class,
1979                            java.lang.String.class
1980                    };
1981            private static final Class<?>[] _searchParameterTypes32 = new Class[] {
1982                            long.class, long.class, java.util.List.class, long.class,
1983                            java.lang.String.class, java.lang.Double.class,
1984                            java.lang.String.class, java.lang.String.class,
1985                            java.lang.String.class, java.util.Date.class, java.util.Date.class,
1986                            int.class, java.util.Date.class, int.class, int.class,
1987                            com.liferay.portal.kernel.util.OrderByComparator.class
1988                    };
1989            private static final Class<?>[] _searchParameterTypes33 = new Class[] {
1990                            long.class, long.class, java.util.List.class, long.class,
1991                            java.lang.String.class, java.lang.Double.class,
1992                            java.lang.String.class, java.lang.String.class,
1993                            java.lang.String.class, java.lang.String.class,
1994                            java.lang.String.class, java.lang.String.class, java.util.Date.class,
1995                            java.util.Date.class, int.class, java.util.Date.class, boolean.class,
1996                            int.class, int.class,
1997                            com.liferay.portal.kernel.util.OrderByComparator.class
1998                    };
1999            private static final Class<?>[] _searchParameterTypes34 = new Class[] {
2000                            long.class, long.class, java.util.List.class, long.class,
2001                            java.lang.String.class, java.lang.Double.class,
2002                            java.lang.String.class, java.lang.String.class,
2003                            java.lang.String.class, java.lang.String.class,
2004                            java.lang.String[].class, java.lang.String[].class,
2005                            java.util.Date.class, java.util.Date.class, int.class,
2006                            java.util.Date.class, boolean.class, int.class, int.class,
2007                            com.liferay.portal.kernel.util.OrderByComparator.class
2008                    };
2009            private static final Class<?>[] _searchCountParameterTypes35 = new Class[] {
2010                            long.class, long.class, java.util.List.class, long.class,
2011                            java.lang.String.class, java.lang.Double.class,
2012                            java.lang.String.class, java.lang.String.class,
2013                            java.lang.String.class, java.util.Date.class, java.util.Date.class,
2014                            int.class, java.util.Date.class
2015                    };
2016            private static final Class<?>[] _searchCountParameterTypes36 = new Class[] {
2017                            long.class, long.class, java.util.List.class, long.class,
2018                            java.lang.String.class, java.lang.Double.class,
2019                            java.lang.String.class, java.lang.String.class,
2020                            java.lang.String.class, java.lang.String.class,
2021                            java.lang.String.class, java.lang.String.class, java.util.Date.class,
2022                            java.util.Date.class, int.class, java.util.Date.class, boolean.class
2023                    };
2024            private static final Class<?>[] _searchCountParameterTypes37 = new Class[] {
2025                            long.class, long.class, java.util.List.class, long.class,
2026                            java.lang.String.class, java.lang.Double.class,
2027                            java.lang.String.class, java.lang.String.class,
2028                            java.lang.String.class, java.lang.String.class,
2029                            java.lang.String[].class, java.lang.String[].class,
2030                            java.util.Date.class, java.util.Date.class, int.class,
2031                            java.util.Date.class, boolean.class
2032                    };
2033            private static final Class<?>[] _subscribeParameterTypes38 = new Class[] {
2034                            long.class
2035                    };
2036            private static final Class<?>[] _unsubscribeParameterTypes39 = new Class[] {
2037                            long.class
2038                    };
2039            private static final Class<?>[] _updateArticleParameterTypes40 = new Class[] {
2040                            long.class, long.class, long.class, java.lang.String.class,
2041                            double.class, java.util.Map.class, java.util.Map.class,
2042                            java.lang.String.class, java.lang.String.class,
2043                            com.liferay.portal.service.ServiceContext.class
2044                    };
2045            private static final Class<?>[] _updateArticleParameterTypes41 = new Class[] {
2046                            long.class, long.class, java.lang.String.class, double.class,
2047                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
2048                            java.lang.String.class, java.lang.String.class,
2049                            java.lang.String.class, java.lang.String.class, int.class, int.class,
2050                            int.class, int.class, int.class, int.class, int.class, int.class,
2051                            int.class, int.class, boolean.class, int.class, int.class, int.class,
2052                            int.class, int.class, boolean.class, boolean.class, boolean.class,
2053                            java.lang.String.class, java.io.File.class, java.util.Map.class,
2054                            java.lang.String.class,
2055                            com.liferay.portal.service.ServiceContext.class
2056                    };
2057            private static final Class<?>[] _updateArticleParameterTypes42 = new Class[] {
2058                            long.class, long.class, java.lang.String.class, double.class,
2059                            java.lang.String.class,
2060                            com.liferay.portal.service.ServiceContext.class
2061                    };
2062            private static final Class<?>[] _updateArticleTranslationParameterTypes43 = new Class[] {
2063                            long.class, java.lang.String.class, double.class,
2064                            java.util.Locale.class, java.lang.String.class,
2065                            java.lang.String.class, java.lang.String.class, java.util.Map.class
2066                    };
2067            private static final Class<?>[] _updateArticleTranslationParameterTypes44 = new Class[] {
2068                            long.class, java.lang.String.class, double.class,
2069                            java.util.Locale.class, java.lang.String.class,
2070                            java.lang.String.class, java.lang.String.class, java.util.Map.class,
2071                            com.liferay.portal.service.ServiceContext.class
2072                    };
2073            private static final Class<?>[] _updateContentParameterTypes45 = new Class[] {
2074                            long.class, java.lang.String.class, double.class,
2075                            java.lang.String.class
2076                    };
2077            private static final Class<?>[] _updateStatusParameterTypes46 = new Class[] {
2078                            long.class, java.lang.String.class, double.class, int.class,
2079                            java.lang.String.class,
2080                            com.liferay.portal.service.ServiceContext.class
2081                    };
2082    }