001    /**
002     * Copyright (c) 2000-2010 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, 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", long.class, java.lang.String.class,
077                                            boolean.class, java.lang.String.class,
078                                            java.lang.String.class, java.lang.String.class,
079                                            java.lang.String.class, java.lang.String.class,
080                                            java.lang.String.class, int.class, int.class, int.class,
081                                            int.class, int.class, int.class, int.class, int.class,
082                                            int.class, int.class, boolean.class, int.class, int.class,
083                                            int.class, int.class, int.class, boolean.class,
084                                            boolean.class, boolean.class, java.lang.String.class,
085                                            java.io.File.class, java.util.Map.class,
086                                            java.lang.String.class,
087                                            com.liferay.portal.service.ServiceContext.class);
088    
089                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
090                                            articleId, autoArticleId, title, description, content,
091                                            type, structureId, templateId, displayDateMonth,
092                                            displayDateDay, displayDateYear, displayDateHour,
093                                            displayDateMinute, expirationDateMonth, expirationDateDay,
094                                            expirationDateYear, expirationDateHour,
095                                            expirationDateMinute, neverExpire, reviewDateMonth,
096                                            reviewDateDay, reviewDateYear, reviewDateHour,
097                                            reviewDateMinute, neverReview, indexable, smallImage,
098                                            smallImageURL, smallFile, images, articleURL, serviceContext);
099    
100                            Object returnObj = null;
101    
102                            try {
103                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
104                            }
105                            catch (Exception e) {
106                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
107                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
108                                    }
109    
110                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
111                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
112                                    }
113    
114                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
115                            }
116    
117                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
118                    }
119                    catch (com.liferay.portal.kernel.exception.SystemException se) {
120                            _log.error(se, se);
121    
122                            throw se;
123                    }
124            }
125    
126            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
127                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
128                    boolean autoArticleId, java.lang.String title,
129                    java.lang.String description, java.lang.String content,
130                    java.lang.String type, java.lang.String structureId,
131                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
132                    int displayDateYear, int displayDateHour, int displayDateMinute,
133                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
134                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
135                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
136                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
137                    boolean indexable, java.lang.String articleURL,
138                    com.liferay.portal.service.ServiceContext serviceContext)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    try {
142                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
143                                            "addArticle", long.class, java.lang.String.class,
144                                            boolean.class, java.lang.String.class,
145                                            java.lang.String.class, java.lang.String.class,
146                                            java.lang.String.class, java.lang.String.class,
147                                            java.lang.String.class, int.class, int.class, int.class,
148                                            int.class, int.class, int.class, int.class, int.class,
149                                            int.class, int.class, boolean.class, int.class, int.class,
150                                            int.class, int.class, int.class, boolean.class,
151                                            boolean.class, java.lang.String.class,
152                                            com.liferay.portal.service.ServiceContext.class);
153    
154                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
155                                            articleId, autoArticleId, title, description, content,
156                                            type, structureId, templateId, displayDateMonth,
157                                            displayDateDay, displayDateYear, displayDateHour,
158                                            displayDateMinute, expirationDateMonth, expirationDateDay,
159                                            expirationDateYear, expirationDateHour,
160                                            expirationDateMinute, neverExpire, reviewDateMonth,
161                                            reviewDateDay, reviewDateYear, reviewDateHour,
162                                            reviewDateMinute, neverReview, indexable, articleURL,
163                                            serviceContext);
164    
165                            Object returnObj = null;
166    
167                            try {
168                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
169                            }
170                            catch (Exception e) {
171                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
172                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
173                                    }
174    
175                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
176                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
177                                    }
178    
179                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
180                            }
181    
182                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
183                    }
184                    catch (com.liferay.portal.kernel.exception.SystemException se) {
185                            _log.error(se, se);
186    
187                            throw se;
188                    }
189            }
190    
191            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
192                    HttpPrincipal httpPrincipal, long groupId,
193                    java.lang.String oldArticleId, java.lang.String newArticleId,
194                    boolean autoArticleId, double version)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    try {
198                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
199                                            "copyArticle", long.class, java.lang.String.class,
200                                            java.lang.String.class, boolean.class, double.class);
201    
202                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
203                                            oldArticleId, newArticleId, autoArticleId, version);
204    
205                            Object returnObj = null;
206    
207                            try {
208                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
209                            }
210                            catch (Exception e) {
211                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
212                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
213                                    }
214    
215                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
216                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
217                                    }
218    
219                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
220                            }
221    
222                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
223                    }
224                    catch (com.liferay.portal.kernel.exception.SystemException se) {
225                            _log.error(se, se);
226    
227                            throw se;
228                    }
229            }
230    
231            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
232                    java.lang.String articleId, double version,
233                    java.lang.String articleURL,
234                    com.liferay.portal.service.ServiceContext serviceContext)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    try {
238                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
239                                            "deleteArticle", long.class, java.lang.String.class,
240                                            double.class, java.lang.String.class,
241                                            com.liferay.portal.service.ServiceContext.class);
242    
243                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
244                                            articleId, version, articleURL, serviceContext);
245    
246                            try {
247                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
248                            }
249                            catch (Exception e) {
250                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
251                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
252                                    }
253    
254                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
255                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
256                                    }
257    
258                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
259                            }
260                    }
261                    catch (com.liferay.portal.kernel.exception.SystemException se) {
262                            _log.error(se, se);
263    
264                            throw se;
265                    }
266            }
267    
268            public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
269                    java.lang.String articleId, java.lang.String articleURL,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    try {
274                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
275                                            "deleteArticle", long.class, java.lang.String.class,
276                                            java.lang.String.class,
277                                            com.liferay.portal.service.ServiceContext.class);
278    
279                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
280                                            articleId, articleURL, serviceContext);
281    
282                            try {
283                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
284                            }
285                            catch (Exception e) {
286                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
287                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
288                                    }
289    
290                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
291                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
292                                    }
293    
294                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
295                            }
296                    }
297                    catch (com.liferay.portal.kernel.exception.SystemException se) {
298                            _log.error(se, se);
299    
300                            throw se;
301                    }
302            }
303    
304            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
305                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
306                    double version, java.lang.String articleURL,
307                    com.liferay.portal.service.ServiceContext serviceContext)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    try {
311                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
312                                            "expireArticle", long.class, java.lang.String.class,
313                                            double.class, java.lang.String.class,
314                                            com.liferay.portal.service.ServiceContext.class);
315    
316                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
317                                            articleId, version, articleURL, serviceContext);
318    
319                            Object returnObj = null;
320    
321                            try {
322                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
323                            }
324                            catch (Exception e) {
325                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
326                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
327                                    }
328    
329                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
330                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
331                                    }
332    
333                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
334                            }
335    
336                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
337                    }
338                    catch (com.liferay.portal.kernel.exception.SystemException se) {
339                            _log.error(se, se);
340    
341                            throw se;
342                    }
343            }
344    
345            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
346                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    try {
350                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
351                                            "getArticle", long.class, java.lang.String.class);
352    
353                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
354                                            articleId);
355    
356                            Object returnObj = null;
357    
358                            try {
359                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
360                            }
361                            catch (Exception e) {
362                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
363                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
364                                    }
365    
366                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
367                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
368                                    }
369    
370                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
371                            }
372    
373                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
374                    }
375                    catch (com.liferay.portal.kernel.exception.SystemException se) {
376                            _log.error(se, se);
377    
378                            throw se;
379                    }
380            }
381    
382            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
383                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
384                    double version)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    try {
388                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
389                                            "getArticle", long.class, java.lang.String.class,
390                                            double.class);
391    
392                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
393                                            articleId, version);
394    
395                            Object returnObj = null;
396    
397                            try {
398                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
399                            }
400                            catch (Exception e) {
401                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
402                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
403                                    }
404    
405                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
406                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
407                                    }
408    
409                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
410                            }
411    
412                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
413                    }
414                    catch (com.liferay.portal.kernel.exception.SystemException se) {
415                            _log.error(se, se);
416    
417                            throw se;
418                    }
419            }
420    
421            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
422                    HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
423                    throws com.liferay.portal.kernel.exception.PortalException,
424                            com.liferay.portal.kernel.exception.SystemException {
425                    try {
426                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
427                                            "getArticleByUrlTitle", long.class, java.lang.String.class);
428    
429                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
430                                            urlTitle);
431    
432                            Object returnObj = null;
433    
434                            try {
435                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
436                            }
437                            catch (Exception e) {
438                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
439                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
440                                    }
441    
442                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
443                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
444                                    }
445    
446                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
447                            }
448    
449                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
450                    }
451                    catch (com.liferay.portal.kernel.exception.SystemException se) {
452                            _log.error(se, se);
453    
454                            throw se;
455                    }
456            }
457    
458            public static java.lang.String getArticleContent(
459                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
460                    double version, java.lang.String languageId,
461                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    try {
465                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
466                                            "getArticleContent", long.class, java.lang.String.class,
467                                            double.class, java.lang.String.class,
468                                            com.liferay.portal.theme.ThemeDisplay.class);
469    
470                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
471                                            articleId, version, languageId, themeDisplay);
472    
473                            Object returnObj = null;
474    
475                            try {
476                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
477                            }
478                            catch (Exception e) {
479                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
480                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
481                                    }
482    
483                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
484                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
485                                    }
486    
487                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
488                            }
489    
490                            return (java.lang.String)returnObj;
491                    }
492                    catch (com.liferay.portal.kernel.exception.SystemException se) {
493                            _log.error(se, se);
494    
495                            throw se;
496                    }
497            }
498    
499            public static java.lang.String getArticleContent(
500                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
501                    java.lang.String languageId,
502                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
503                    throws com.liferay.portal.kernel.exception.PortalException,
504                            com.liferay.portal.kernel.exception.SystemException {
505                    try {
506                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
507                                            "getArticleContent", long.class, java.lang.String.class,
508                                            java.lang.String.class,
509                                            com.liferay.portal.theme.ThemeDisplay.class);
510    
511                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
512                                            articleId, languageId, themeDisplay);
513    
514                            Object returnObj = null;
515    
516                            try {
517                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
518                            }
519                            catch (Exception e) {
520                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
521                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
522                                    }
523    
524                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
525                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
526                                    }
527    
528                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
529                            }
530    
531                            return (java.lang.String)returnObj;
532                    }
533                    catch (com.liferay.portal.kernel.exception.SystemException se) {
534                            _log.error(se, se);
535    
536                            throw se;
537                    }
538            }
539    
540            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
541                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
542                    int status)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException {
545                    try {
546                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
547                                            "getLatestArticle", long.class, java.lang.String.class,
548                                            int.class);
549    
550                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
551                                            articleId, status);
552    
553                            Object returnObj = null;
554    
555                            try {
556                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
557                            }
558                            catch (Exception e) {
559                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
560                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
561                                    }
562    
563                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
564                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
565                                    }
566    
567                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
568                            }
569    
570                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
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 void removeArticleLocale(HttpPrincipal httpPrincipal,
580                    long companyId, java.lang.String languageId)
581                    throws com.liferay.portal.kernel.exception.PortalException,
582                            com.liferay.portal.kernel.exception.SystemException {
583                    try {
584                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
585                                            "removeArticleLocale", long.class, java.lang.String.class);
586    
587                            MethodHandler methodHandler = new MethodHandler(methodKey,
588                                            companyId, languageId);
589    
590                            try {
591                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
592                            }
593                            catch (Exception e) {
594                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
595                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
596                                    }
597    
598                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
599                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
600                                    }
601    
602                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
603                            }
604                    }
605                    catch (com.liferay.portal.kernel.exception.SystemException se) {
606                            _log.error(se, se);
607    
608                            throw se;
609                    }
610            }
611    
612            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
613                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
614                    double version, java.lang.String languageId)
615                    throws com.liferay.portal.kernel.exception.PortalException,
616                            com.liferay.portal.kernel.exception.SystemException {
617                    try {
618                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
619                                            "removeArticleLocale", long.class, java.lang.String.class,
620                                            double.class, java.lang.String.class);
621    
622                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
623                                            articleId, version, languageId);
624    
625                            Object returnObj = null;
626    
627                            try {
628                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
629                            }
630                            catch (Exception e) {
631                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
632                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
633                                    }
634    
635                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
636                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
637                                    }
638    
639                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
640                            }
641    
642                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
643                    }
644                    catch (com.liferay.portal.kernel.exception.SystemException se) {
645                            _log.error(se, se);
646    
647                            throw se;
648                    }
649            }
650    
651            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
652                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
653                    double version, java.lang.String content)
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException {
656                    try {
657                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
658                                            "updateArticle", long.class, java.lang.String.class,
659                                            double.class, java.lang.String.class);
660    
661                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
662                                            articleId, version, content);
663    
664                            Object returnObj = null;
665    
666                            try {
667                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
668                            }
669                            catch (Exception e) {
670                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
671                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
672                                    }
673    
674                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
675                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
676                                    }
677    
678                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
679                            }
680    
681                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
682                    }
683                    catch (com.liferay.portal.kernel.exception.SystemException se) {
684                            _log.error(se, se);
685    
686                            throw se;
687                    }
688            }
689    
690            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
691                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
692                    double version, java.lang.String title, java.lang.String description,
693                    java.lang.String content, java.lang.String type,
694                    java.lang.String structureId, java.lang.String templateId,
695                    int displayDateMonth, int displayDateDay, int displayDateYear,
696                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
697                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
698                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
699                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
700                    int reviewDateMinute, boolean neverReview, boolean indexable,
701                    boolean smallImage, java.lang.String smallImageURL,
702                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
703                    java.lang.String articleURL,
704                    com.liferay.portal.service.ServiceContext serviceContext)
705                    throws com.liferay.portal.kernel.exception.PortalException,
706                            com.liferay.portal.kernel.exception.SystemException {
707                    try {
708                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
709                                            "updateArticle", long.class, java.lang.String.class,
710                                            double.class, java.lang.String.class,
711                                            java.lang.String.class, java.lang.String.class,
712                                            java.lang.String.class, java.lang.String.class,
713                                            java.lang.String.class, int.class, int.class, int.class,
714                                            int.class, int.class, int.class, int.class, int.class,
715                                            int.class, int.class, boolean.class, int.class, int.class,
716                                            int.class, int.class, int.class, boolean.class,
717                                            boolean.class, boolean.class, java.lang.String.class,
718                                            java.io.File.class, java.util.Map.class,
719                                            java.lang.String.class,
720                                            com.liferay.portal.service.ServiceContext.class);
721    
722                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
723                                            articleId, version, title, description, content, type,
724                                            structureId, templateId, displayDateMonth, displayDateDay,
725                                            displayDateYear, displayDateHour, displayDateMinute,
726                                            expirationDateMonth, expirationDateDay, expirationDateYear,
727                                            expirationDateHour, expirationDateMinute, neverExpire,
728                                            reviewDateMonth, reviewDateDay, reviewDateYear,
729                                            reviewDateHour, reviewDateMinute, neverReview, indexable,
730                                            smallImage, smallImageURL, smallFile, images, articleURL,
731                                            serviceContext);
732    
733                            Object returnObj = null;
734    
735                            try {
736                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
737                            }
738                            catch (Exception e) {
739                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
740                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
741                                    }
742    
743                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
744                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
745                                    }
746    
747                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
748                            }
749    
750                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
751                    }
752                    catch (com.liferay.portal.kernel.exception.SystemException se) {
753                            _log.error(se, se);
754    
755                            throw se;
756                    }
757            }
758    
759            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
760                    HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
761                    double version, java.lang.String content)
762                    throws com.liferay.portal.kernel.exception.PortalException,
763                            com.liferay.portal.kernel.exception.SystemException {
764                    try {
765                            MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
766                                            "updateContent", long.class, java.lang.String.class,
767                                            double.class, java.lang.String.class);
768    
769                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
770                                            articleId, version, content);
771    
772                            Object returnObj = null;
773    
774                            try {
775                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
776                            }
777                            catch (Exception e) {
778                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
779                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
780                                    }
781    
782                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
783                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
784                                    }
785    
786                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
787                            }
788    
789                            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
790                    }
791                    catch (com.liferay.portal.kernel.exception.SystemException se) {
792                            _log.error(se, se);
793    
794                            throw se;
795                    }
796            }
797    
798            private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
799    }