001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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, java.lang.String articleId,
059                    boolean autoArticleId, java.lang.String title,
060                    java.lang.String description, java.lang.String content,
061                    java.lang.String type, java.lang.String structureId,
062                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
063                    int displayDateYear, int displayDateHour, int displayDateMinute,
064                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
065                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
066                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
067                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
068                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
069                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
070                    java.lang.String articleURL,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    try {
075                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
076                                            "addArticle", _addArticleParameterTypes0);
077    
078                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
079                                            articleId, autoArticleId, title, description, content,
080                                            type, structureId, templateId, displayDateMonth,
081                                            displayDateDay, displayDateYear, displayDateHour,
082                                            displayDateMinute, expirationDateMonth, expirationDateDay,
083                                            expirationDateYear, expirationDateHour,
084                                            expirationDateMinute, neverExpire, reviewDateMonth,
085                                            reviewDateDay, reviewDateYear, reviewDateHour,
086                                            reviewDateMinute, neverReview, indexable, smallImage,
087                                            smallImageURL, smallFile, images, articleURL, serviceContext);
088    
089                            Object returnObj = null;
090    
091                            try {
092                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
093                            }
094                            catch (Exception e) {
095                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
096                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
097                                    }
098    
099                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
100                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
101                                    }
102    
103                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
104                            }
105    
106                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
107                    }
108                    catch (com.liferay.portal.kernel.exception.SystemException se) {
109                            _log.error(se, se);
110    
111                            throw se;
112                    }
113            }
114    
115            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
116                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
117                    boolean autoArticleId, java.lang.String title,
118                    java.lang.String description, java.lang.String content,
119                    java.lang.String type, java.lang.String structureId,
120                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
121                    int displayDateYear, int displayDateHour, int displayDateMinute,
122                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
123                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
124                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
125                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
126                    boolean indexable, java.lang.String articleURL,
127                    com.liferay.portal.service.ServiceContext serviceContext)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    try {
131                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
132                                            "addArticle", _addArticleParameterTypes1);
133    
134                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
135                                            articleId, autoArticleId, title, description, content,
136                                            type, structureId, templateId, displayDateMonth,
137                                            displayDateDay, displayDateYear, displayDateHour,
138                                            displayDateMinute, expirationDateMonth, expirationDateDay,
139                                            expirationDateYear, expirationDateHour,
140                                            expirationDateMinute, neverExpire, reviewDateMonth,
141                                            reviewDateDay, reviewDateYear, reviewDateHour,
142                                            reviewDateMinute, neverReview, indexable, articleURL,
143                                            serviceContext);
144    
145                            Object returnObj = null;
146    
147                            try {
148                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
149                            }
150                            catch (Exception e) {
151                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
152                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
153                                    }
154    
155                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
156                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
157                                    }
158    
159                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
160                            }
161    
162                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
163                    }
164                    catch (com.liferay.portal.kernel.exception.SystemException se) {
165                            _log.error(se, se);
166    
167                            throw se;
168                    }
169            }
170    
171            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
172                    HttpPrincipal httpPrincipal, long groupId,
173                    java.lang.String oldArticleId, java.lang.String newArticleId,
174                    boolean autoArticleId, double version)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    try {
178                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
179                                            "copyArticle", _copyArticleParameterTypes2);
180    
181                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
182                                            oldArticleId, newArticleId, autoArticleId, version);
183    
184                            Object returnObj = null;
185    
186                            try {
187                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
188                            }
189                            catch (Exception e) {
190                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
191                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
192                                    }
193    
194                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
195                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
196                                    }
197    
198                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
199                            }
200    
201                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
202                    }
203                    catch (com.liferay.portal.kernel.exception.SystemException se) {
204                            _log.error(se, se);
205    
206                            throw se;
207                    }
208            }
209    
210            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
211                    java.lang.String articleId, double version,
212                    java.lang.String articleURL,
213                    com.liferay.portal.service.ServiceContext serviceContext)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    try {
217                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
218                                            "deleteArticle", _deleteArticleParameterTypes3);
219    
220                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
221                                            articleId, version, articleURL, serviceContext);
222    
223                            try {
224                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
225                            }
226                            catch (Exception e) {
227                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
228                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
229                                    }
230    
231                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
232                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
233                                    }
234    
235                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
236                            }
237                    }
238                    catch (com.liferay.portal.kernel.exception.SystemException se) {
239                            _log.error(se, se);
240    
241                            throw se;
242                    }
243            }
244    
245            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
246                    java.lang.String articleId, java.lang.String articleURL,
247                    com.liferay.portal.service.ServiceContext serviceContext)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    try {
251                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
252                                            "deleteArticle", _deleteArticleParameterTypes4);
253    
254                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
255                                            articleId, articleURL, serviceContext);
256    
257                            try {
258                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
259                            }
260                            catch (Exception e) {
261                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
262                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
263                                    }
264    
265                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
266                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
267                                    }
268    
269                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
270                            }
271                    }
272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
273                            _log.error(se, se);
274    
275                            throw se;
276                    }
277            }
278    
279            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
280                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
281                    double version, java.lang.String articleURL,
282                    com.liferay.portal.service.ServiceContext serviceContext)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    try {
286                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
287                                            "expireArticle", _expireArticleParameterTypes5);
288    
289                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
290                                            articleId, version, articleURL, serviceContext);
291    
292                            Object returnObj = null;
293    
294                            try {
295                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
296                            }
297                            catch (Exception e) {
298                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
299                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
300                                    }
301    
302                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
303                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
304                                    }
305    
306                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
307                            }
308    
309                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
310                    }
311                    catch (com.liferay.portal.kernel.exception.SystemException se) {
312                            _log.error(se, se);
313    
314                            throw se;
315                    }
316            }
317    
318            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
319                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    try {
323                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
324                                            "getArticle", _getArticleParameterTypes6);
325    
326                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
327                                            articleId);
328    
329                            Object returnObj = null;
330    
331                            try {
332                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
333                            }
334                            catch (Exception e) {
335                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
336                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
337                                    }
338    
339                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
340                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
341                                    }
342    
343                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
344                            }
345    
346                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
347                    }
348                    catch (com.liferay.portal.kernel.exception.SystemException se) {
349                            _log.error(se, se);
350    
351                            throw se;
352                    }
353            }
354    
355            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
356                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
357                    double version)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    try {
361                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
362                                            "getArticle", _getArticleParameterTypes7);
363    
364                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
365                                            articleId, version);
366    
367                            Object returnObj = null;
368    
369                            try {
370                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
371                            }
372                            catch (Exception e) {
373                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
374                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
375                                    }
376    
377                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
378                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
379                                    }
380    
381                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
382                            }
383    
384                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
385                    }
386                    catch (com.liferay.portal.kernel.exception.SystemException se) {
387                            _log.error(se, se);
388    
389                            throw se;
390                    }
391            }
392    
393            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
394                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    try {
398                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
399                                            "getArticleByUrlTitle", _getArticleByUrlTitleParameterTypes8);
400    
401                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
402                                            urlTitle);
403    
404                            Object returnObj = null;
405    
406                            try {
407                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
408                            }
409                            catch (Exception e) {
410                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
411                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
412                                    }
413    
414                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
415                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
416                                    }
417    
418                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
419                            }
420    
421                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
422                    }
423                    catch (com.liferay.portal.kernel.exception.SystemException se) {
424                            _log.error(se, se);
425    
426                            throw se;
427                    }
428            }
429    
430            public static java.lang.String getArticleContent(
431                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
432                    double version, java.lang.String languageId,
433                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
434                    throws com.liferay.portal.kernel.exception.PortalException,
435                            com.liferay.portal.kernel.exception.SystemException {
436                    try {
437                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
438                                            "getArticleContent", _getArticleContentParameterTypes9);
439    
440                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
441                                            articleId, version, languageId, themeDisplay);
442    
443                            Object returnObj = null;
444    
445                            try {
446                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
447                            }
448                            catch (Exception e) {
449                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
450                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
451                                    }
452    
453                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
454                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
455                                    }
456    
457                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
458                            }
459    
460                            return (java.lang.String)returnObj;
461                    }
462                    catch (com.liferay.portal.kernel.exception.SystemException se) {
463                            _log.error(se, se);
464    
465                            throw se;
466                    }
467            }
468    
469            public static java.lang.String getArticleContent(
470                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
471                    java.lang.String languageId,
472                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    try {
476                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
477                                            "getArticleContent", _getArticleContentParameterTypes10);
478    
479                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
480                                            articleId, languageId, themeDisplay);
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 (java.lang.String)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 getLatestArticle(
509                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
510                    int status)
511                    throws com.liferay.portal.kernel.exception.PortalException,
512                            com.liferay.portal.kernel.exception.SystemException {
513                    try {
514                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
515                                            "getLatestArticle", _getLatestArticleParameterTypes11);
516    
517                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
518                                            articleId, status);
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 void removeArticleLocale(HttpPrincipal httpPrincipal,
547                    long companyId, java.lang.String languageId)
548                    throws com.liferay.portal.kernel.exception.PortalException,
549                            com.liferay.portal.kernel.exception.SystemException {
550                    try {
551                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
552                                            "removeArticleLocale", _removeArticleLocaleParameterTypes12);
553    
554                            MethodHandler methodHandler = new MethodHandler(methodKey,
555                                            companyId, languageId);
556    
557                            try {
558                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
559                            }
560                            catch (Exception e) {
561                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
562                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
563                                    }
564    
565                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
566                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
567                                    }
568    
569                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
570                            }
571                    }
572                    catch (com.liferay.portal.kernel.exception.SystemException se) {
573                            _log.error(se, se);
574    
575                            throw se;
576                    }
577            }
578    
579            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
580                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
581                    double version, java.lang.String languageId)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException {
584                    try {
585                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
586                                            "removeArticleLocale", _removeArticleLocaleParameterTypes13);
587    
588                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
589                                            articleId, version, languageId);
590    
591                            Object returnObj = null;
592    
593                            try {
594                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
595                            }
596                            catch (Exception e) {
597                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
598                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
599                                    }
600    
601                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
602                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
603                                    }
604    
605                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
606                            }
607    
608                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
609                    }
610                    catch (com.liferay.portal.kernel.exception.SystemException se) {
611                            _log.error(se, se);
612    
613                            throw se;
614                    }
615            }
616    
617            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
618                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
619                    double version, java.lang.String content)
620                    throws com.liferay.portal.kernel.exception.PortalException,
621                            com.liferay.portal.kernel.exception.SystemException {
622                    try {
623                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
624                                            "updateArticle", _updateArticleParameterTypes14);
625    
626                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
627                                            articleId, version, content);
628    
629                            Object returnObj = null;
630    
631                            try {
632                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
633                            }
634                            catch (Exception e) {
635                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
636                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
637                                    }
638    
639                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
640                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
641                                    }
642    
643                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
644                            }
645    
646                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
647                    }
648                    catch (com.liferay.portal.kernel.exception.SystemException se) {
649                            _log.error(se, se);
650    
651                            throw se;
652                    }
653            }
654    
655            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
656                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
657                    double version, java.lang.String title, java.lang.String description,
658                    java.lang.String content, java.lang.String type,
659                    java.lang.String structureId, java.lang.String templateId,
660                    int displayDateMonth, int displayDateDay, int displayDateYear,
661                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
662                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
663                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
664                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
665                    int reviewDateMinute, boolean neverReview, boolean indexable,
666                    boolean smallImage, java.lang.String smallImageURL,
667                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
668                    java.lang.String articleURL,
669                    com.liferay.portal.service.ServiceContext serviceContext)
670                    throws com.liferay.portal.kernel.exception.PortalException,
671                            com.liferay.portal.kernel.exception.SystemException {
672                    try {
673                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
674                                            "updateArticle", _updateArticleParameterTypes15);
675    
676                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
677                                            articleId, version, title, description, content, type,
678                                            structureId, templateId, displayDateMonth, displayDateDay,
679                                            displayDateYear, displayDateHour, displayDateMinute,
680                                            expirationDateMonth, expirationDateDay, expirationDateYear,
681                                            expirationDateHour, expirationDateMinute, neverExpire,
682                                            reviewDateMonth, reviewDateDay, reviewDateYear,
683                                            reviewDateHour, reviewDateMinute, neverReview, indexable,
684                                            smallImage, smallImageURL, smallFile, images, articleURL,
685                                            serviceContext);
686    
687                            Object returnObj = null;
688    
689                            try {
690                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
691                            }
692                            catch (Exception e) {
693                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
694                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
695                                    }
696    
697                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
698                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
699                                    }
700    
701                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
702                            }
703    
704                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
705                    }
706                    catch (com.liferay.portal.kernel.exception.SystemException se) {
707                            _log.error(se, se);
708    
709                            throw se;
710                    }
711            }
712    
713            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
714                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
715                    double version, java.lang.String content)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    try {
719                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
720                                            "updateContent", _updateContentParameterTypes16);
721    
722                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
723                                            articleId, version, content);
724    
725                            Object returnObj = null;
726    
727                            try {
728                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
729                            }
730                            catch (Exception e) {
731                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
732                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
733                                    }
734    
735                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
736                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
737                                    }
738    
739                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
740                            }
741    
742                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
743                    }
744                    catch (com.liferay.portal.kernel.exception.SystemException se) {
745                            _log.error(se, se);
746    
747                            throw se;
748                    }
749            }
750    
751            private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
752            private static final Class<?>[] _addArticleParameterTypes0 = new Class[] {
753                            long.class, java.lang.String.class, boolean.class,
754                            java.lang.String.class, java.lang.String.class,
755                            java.lang.String.class, java.lang.String.class,
756                            java.lang.String.class, java.lang.String.class, int.class, int.class,
757                            int.class, int.class, int.class, int.class, int.class, int.class,
758                            int.class, int.class, boolean.class, int.class, int.class, int.class,
759                            int.class, int.class, boolean.class, boolean.class, boolean.class,
760                            java.lang.String.class, java.io.File.class, java.util.Map.class,
761                            java.lang.String.class,
762                            com.liferay.portal.service.ServiceContext.class
763                    };
764            private static final Class<?>[] _addArticleParameterTypes1 = new Class[] {
765                            long.class, java.lang.String.class, boolean.class,
766                            java.lang.String.class, java.lang.String.class,
767                            java.lang.String.class, java.lang.String.class,
768                            java.lang.String.class, java.lang.String.class, int.class, int.class,
769                            int.class, int.class, int.class, int.class, int.class, int.class,
770                            int.class, int.class, boolean.class, int.class, int.class, int.class,
771                            int.class, int.class, boolean.class, boolean.class,
772                            java.lang.String.class,
773                            com.liferay.portal.service.ServiceContext.class
774                    };
775            private static final Class<?>[] _copyArticleParameterTypes2 = new Class[] {
776                            long.class, java.lang.String.class, java.lang.String.class,
777                            boolean.class, double.class
778                    };
779            private static final Class<?>[] _deleteArticleParameterTypes3 = new Class[] {
780                            long.class, java.lang.String.class, double.class,
781                            java.lang.String.class,
782                            com.liferay.portal.service.ServiceContext.class
783                    };
784            private static final Class<?>[] _deleteArticleParameterTypes4 = new Class[] {
785                            long.class, java.lang.String.class, java.lang.String.class,
786                            com.liferay.portal.service.ServiceContext.class
787                    };
788            private static final Class<?>[] _expireArticleParameterTypes5 = new Class[] {
789                            long.class, java.lang.String.class, double.class,
790                            java.lang.String.class,
791                            com.liferay.portal.service.ServiceContext.class
792                    };
793            private static final Class<?>[] _getArticleParameterTypes6 = new Class[] {
794                            long.class, java.lang.String.class
795                    };
796            private static final Class<?>[] _getArticleParameterTypes7 = new Class[] {
797                            long.class, java.lang.String.class, double.class
798                    };
799            private static final Class<?>[] _getArticleByUrlTitleParameterTypes8 = new Class[] {
800                            long.class, java.lang.String.class
801                    };
802            private static final Class<?>[] _getArticleContentParameterTypes9 = new Class[] {
803                            long.class, java.lang.String.class, double.class,
804                            java.lang.String.class, com.liferay.portal.theme.ThemeDisplay.class
805                    };
806            private static final Class<?>[] _getArticleContentParameterTypes10 = new Class[] {
807                            long.class, java.lang.String.class, java.lang.String.class,
808                            com.liferay.portal.theme.ThemeDisplay.class
809                    };
810            private static final Class<?>[] _getLatestArticleParameterTypes11 = new Class[] {
811                            long.class, java.lang.String.class, int.class
812                    };
813            private static final Class<?>[] _removeArticleLocaleParameterTypes12 = new Class[] {
814                            long.class, java.lang.String.class
815                    };
816            private static final Class<?>[] _removeArticleLocaleParameterTypes13 = new Class[] {
817                            long.class, java.lang.String.class, double.class,
818                            java.lang.String.class
819                    };
820            private static final Class<?>[] _updateArticleParameterTypes14 = new Class[] {
821                            long.class, java.lang.String.class, double.class,
822                            java.lang.String.class
823                    };
824            private static final Class<?>[] _updateArticleParameterTypes15 = new Class[] {
825                            long.class, java.lang.String.class, double.class,
826                            java.lang.String.class, java.lang.String.class,
827                            java.lang.String.class, java.lang.String.class,
828                            java.lang.String.class, java.lang.String.class, int.class, int.class,
829                            int.class, int.class, int.class, int.class, int.class, int.class,
830                            int.class, int.class, boolean.class, int.class, int.class, int.class,
831                            int.class, int.class, boolean.class, boolean.class, boolean.class,
832                            java.lang.String.class, java.io.File.class, java.util.Map.class,
833                            java.lang.String.class,
834                            com.liferay.portal.service.ServiceContext.class
835                    };
836            private static final Class<?>[] _updateContentParameterTypes16 = new Class[] {
837                            long.class, java.lang.String.class, double.class,
838                            java.lang.String.class
839                    };
840    }