001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the journal article remote service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see JournalArticleService
029     * @see com.liferay.portlet.journal.service.base.JournalArticleServiceBaseImpl
030     * @see com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl
031     * @generated
032     */
033    public class JournalArticleServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
059                    long groupId, long folderId, long classNameId, long classPK,
060                    java.lang.String articleId, boolean autoArticleId,
061                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    java.lang.String content, java.lang.String type,
064                    java.lang.String structureId, java.lang.String templateId,
065                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
066                    int displayDateYear, int displayDateHour, int displayDateMinute,
067                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
068                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
069                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
070                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
071                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
072                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
073                    java.lang.String articleURL,
074                    com.liferay.portal.service.ServiceContext serviceContext)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService()
078                                       .addArticle(groupId, folderId, classNameId, classPK,
079                            articleId, autoArticleId, titleMap, descriptionMap, content, type,
080                            structureId, templateId, layoutUuid, displayDateMonth,
081                            displayDateDay, displayDateYear, displayDateHour,
082                            displayDateMinute, expirationDateMonth, expirationDateDay,
083                            expirationDateYear, expirationDateHour, expirationDateMinute,
084                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
085                            reviewDateHour, reviewDateMinute, neverReview, indexable,
086                            smallImage, smallImageURL, smallFile, images, articleURL,
087                            serviceContext);
088            }
089    
090            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
091                    long groupId, long folderId, long classNameId, long classPK,
092                    java.lang.String articleId, boolean autoArticleId,
093                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
094                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
095                    java.lang.String content, java.lang.String type,
096                    java.lang.String structureId, java.lang.String templateId,
097                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
098                    int displayDateYear, int displayDateHour, int displayDateMinute,
099                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
100                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
101                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
102                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
103                    boolean indexable, java.lang.String articleURL,
104                    com.liferay.portal.service.ServiceContext serviceContext)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException {
107                    return getService()
108                                       .addArticle(groupId, folderId, classNameId, classPK,
109                            articleId, autoArticleId, titleMap, descriptionMap, content, type,
110                            structureId, templateId, layoutUuid, displayDateMonth,
111                            displayDateDay, displayDateYear, displayDateHour,
112                            displayDateMinute, expirationDateMonth, expirationDateDay,
113                            expirationDateYear, expirationDateHour, expirationDateMinute,
114                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
115                            reviewDateHour, reviewDateMinute, neverReview, indexable,
116                            articleURL, serviceContext);
117            }
118    
119            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
120                    long groupId, java.lang.String oldArticleId,
121                    java.lang.String newArticleId, boolean autoArticleId, double version)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return getService()
125                                       .copyArticle(groupId, oldArticleId, newArticleId,
126                            autoArticleId, version);
127            }
128    
129            public static void deleteArticle(long groupId, java.lang.String articleId,
130                    double version, java.lang.String articleURL,
131                    com.liferay.portal.service.ServiceContext serviceContext)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    getService()
135                            .deleteArticle(groupId, articleId, version, articleURL,
136                            serviceContext);
137            }
138    
139            public static void deleteArticle(long groupId, java.lang.String articleId,
140                    java.lang.String articleURL,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    getService()
145                            .deleteArticle(groupId, articleId, articleURL, serviceContext);
146            }
147    
148            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
149                    long groupId, java.lang.String articleId, double version,
150                    java.lang.String articleURL,
151                    com.liferay.portal.service.ServiceContext serviceContext)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .expireArticle(groupId, articleId, version, articleURL,
156                            serviceContext);
157            }
158    
159            public static void expireArticle(long groupId, java.lang.String articleId,
160                    java.lang.String articleURL,
161                    com.liferay.portal.service.ServiceContext serviceContext)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    getService()
165                            .expireArticle(groupId, articleId, articleURL, serviceContext);
166            }
167    
168            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
169                    long id)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return getService().getArticle(id);
173            }
174    
175            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
176                    long groupId, java.lang.String articleId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getService().getArticle(groupId, articleId);
180            }
181    
182            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
183                    long groupId, java.lang.String articleId, double version)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return getService().getArticle(groupId, articleId, version);
187            }
188    
189            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
190                    long groupId, java.lang.String className, long classPK)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    return getService().getArticle(groupId, className, classPK);
194            }
195    
196            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
197                    long groupId, java.lang.String urlTitle)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException {
200                    return getService().getArticleByUrlTitle(groupId, urlTitle);
201            }
202    
203            public static java.lang.String getArticleContent(long groupId,
204                    java.lang.String articleId, double version,
205                    java.lang.String languageId,
206                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return getService()
210                                       .getArticleContent(groupId, articleId, version, languageId,
211                            themeDisplay);
212            }
213    
214            public static java.lang.String getArticleContent(long groupId,
215                    java.lang.String articleId, java.lang.String languageId,
216                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return getService()
220                                       .getArticleContent(groupId, articleId, languageId,
221                            themeDisplay);
222            }
223    
224            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
225                    long groupId, long folderId)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getService().getArticles(groupId, folderId);
228            }
229    
230            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
231                    long groupId, long folderId, int start, int end,
232                    com.liferay.portal.kernel.util.OrderByComparator obc)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return getService().getArticles(groupId, folderId, start, end, obc);
235            }
236    
237            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByArticleId(
238                    long groupId, java.lang.String articleId, int start, int end,
239                    com.liferay.portal.kernel.util.OrderByComparator obc)
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    return getService()
242                                       .getArticlesByArticleId(groupId, articleId, start, end, obc);
243            }
244    
245            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid(
246                    long groupId, java.lang.String layoutUuid)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return getService().getArticlesByLayoutUuid(groupId, layoutUuid);
249            }
250    
251            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
252                    long groupId, long classNameId, java.lang.String structureId,
253                    int status, int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator obc)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    return getService()
257                                       .getArticlesByStructureId(groupId, classNameId, structureId,
258                            status, start, end, obc);
259            }
260    
261            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
262                    long groupId, java.lang.String structureId, int start, int end,
263                    com.liferay.portal.kernel.util.OrderByComparator obc)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getService()
266                                       .getArticlesByStructureId(groupId, structureId, start, end,
267                            obc);
268            }
269    
270            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByUserId(
271                    long groupId, long userId, long classNameId, int start, int end,
272                    com.liferay.portal.kernel.util.OrderByComparator obc)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getService()
275                                       .getArticlesByUserId(groupId, userId, classNameId, start,
276                            end, obc);
277            }
278    
279            public static int getArticlesCount(long groupId, long folderId)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    return getService().getArticlesCount(groupId, folderId);
282            }
283    
284            public static int getArticlesCountByArticleId(long groupId,
285                    java.lang.String articleId)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return getService().getArticlesCountByArticleId(groupId, articleId);
288            }
289    
290            public static int getArticlesCountByStructureId(long groupId,
291                    long classNameId, java.lang.String structureId, int status)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return getService()
294                                       .getArticlesCountByStructureId(groupId, classNameId,
295                            structureId, status);
296            }
297    
298            public static int getArticlesCountByStructureId(long groupId,
299                    java.lang.String structureId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getService().getArticlesCountByStructureId(groupId, structureId);
302            }
303    
304            public static int getArticlesCountByUserId(long groupId, long userId,
305                    long classNameId)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getService()
308                                       .getArticlesCountByUserId(groupId, userId, classNameId);
309            }
310    
311            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
312                    long groupId, java.lang.String urlTitle)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return getService().getDisplayArticleByUrlTitle(groupId, urlTitle);
316            }
317    
318            public static int getFoldersAndArticlesCount(long groupId,
319                    java.util.List<java.lang.Long> folderIds)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return getService().getFoldersAndArticlesCount(groupId, folderIds);
322            }
323    
324            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
325                    long resourcePrimKey)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    return getService().getLatestArticle(resourcePrimKey);
329            }
330    
331            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
332                    long groupId, java.lang.String articleId, int status)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return getService().getLatestArticle(groupId, articleId, status);
336            }
337    
338            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
339                    long groupId, java.lang.String className, long classPK)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return getService().getLatestArticle(groupId, className, classPK);
343            }
344    
345            public static void moveArticle(long groupId, java.lang.String articleId,
346                    long newFolderId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    getService().moveArticle(groupId, articleId, newFolderId);
350            }
351    
352            public static com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
353                    long groupId, java.lang.String articleId)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return getService().moveArticleToTrash(groupId, articleId);
357            }
358    
359            public static void removeArticleLocale(long companyId,
360                    java.lang.String languageId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    getService().removeArticleLocale(companyId, languageId);
364            }
365    
366            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
367                    long groupId, java.lang.String articleId, double version,
368                    java.lang.String languageId)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return getService()
372                                       .removeArticleLocale(groupId, articleId, version, languageId);
373            }
374    
375            public static void restoreArticleFromTrash(long resourcePrimKey)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    getService().restoreArticleFromTrash(resourcePrimKey);
379            }
380    
381            public static void restoreArticleFromTrash(long groupId,
382                    java.lang.String articleId)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException {
385                    getService().restoreArticleFromTrash(groupId, articleId);
386            }
387    
388            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
389                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
390                    long classNameId, java.lang.String keywords, java.lang.Double version,
391                    java.lang.String type, java.lang.String structureId,
392                    java.lang.String templateId, java.util.Date displayDateGT,
393                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
394                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return getService()
397                                       .search(companyId, groupId, folderIds, classNameId,
398                            keywords, version, type, structureId, templateId, displayDateGT,
399                            displayDateLT, status, reviewDate, start, end, obc);
400            }
401    
402            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
403                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
404                    long classNameId, java.lang.String articleId, java.lang.Double version,
405                    java.lang.String title, java.lang.String description,
406                    java.lang.String content, java.lang.String type,
407                    java.lang.String structureId, java.lang.String templateId,
408                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
409                    java.util.Date reviewDate, boolean andOperator, int start, int end,
410                    com.liferay.portal.kernel.util.OrderByComparator obc)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getService()
413                                       .search(companyId, groupId, folderIds, classNameId,
414                            articleId, version, title, description, content, type, structureId,
415                            templateId, displayDateGT, displayDateLT, status, reviewDate,
416                            andOperator, start, end, obc);
417            }
418    
419            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
420                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
421                    long classNameId, java.lang.String articleId, java.lang.Double version,
422                    java.lang.String title, java.lang.String description,
423                    java.lang.String content, java.lang.String type,
424                    java.lang.String[] structureIds, java.lang.String[] templateIds,
425                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
426                    java.util.Date reviewDate, boolean andOperator, int start, int end,
427                    com.liferay.portal.kernel.util.OrderByComparator obc)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return getService()
430                                       .search(companyId, groupId, folderIds, classNameId,
431                            articleId, version, title, description, content, type,
432                            structureIds, templateIds, displayDateGT, displayDateLT, status,
433                            reviewDate, andOperator, start, end, obc);
434            }
435    
436            public static int searchCount(long companyId, long groupId,
437                    java.util.List<java.lang.Long> folderIds, long classNameId,
438                    java.lang.String keywords, java.lang.Double version,
439                    java.lang.String type, java.lang.String structureId,
440                    java.lang.String templateId, java.util.Date displayDateGT,
441                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return getService()
444                                       .searchCount(companyId, groupId, folderIds, classNameId,
445                            keywords, version, type, structureId, templateId, displayDateGT,
446                            displayDateLT, status, reviewDate);
447            }
448    
449            public static int searchCount(long companyId, long groupId,
450                    java.util.List<java.lang.Long> folderIds, long classNameId,
451                    java.lang.String articleId, java.lang.Double version,
452                    java.lang.String title, java.lang.String description,
453                    java.lang.String content, java.lang.String type,
454                    java.lang.String structureId, java.lang.String templateId,
455                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
456                    java.util.Date reviewDate, boolean andOperator)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getService()
459                                       .searchCount(companyId, groupId, folderIds, classNameId,
460                            articleId, version, title, description, content, type, structureId,
461                            templateId, displayDateGT, displayDateLT, status, reviewDate,
462                            andOperator);
463            }
464    
465            public static int searchCount(long companyId, long groupId,
466                    java.util.List<java.lang.Long> folderIds, long classNameId,
467                    java.lang.String articleId, java.lang.Double version,
468                    java.lang.String title, java.lang.String description,
469                    java.lang.String content, java.lang.String type,
470                    java.lang.String[] structureIds, java.lang.String[] templateIds,
471                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
472                    java.util.Date reviewDate, boolean andOperator)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getService()
475                                       .searchCount(companyId, groupId, folderIds, classNameId,
476                            articleId, version, title, description, content, type,
477                            structureIds, templateIds, displayDateGT, displayDateLT, status,
478                            reviewDate, andOperator);
479            }
480    
481            public static void subscribe(long groupId)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    getService().subscribe(groupId);
485            }
486    
487            public static void unsubscribe(long groupId)
488                    throws com.liferay.portal.kernel.exception.PortalException,
489                            com.liferay.portal.kernel.exception.SystemException {
490                    getService().unsubscribe(groupId);
491            }
492    
493            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
494                    long userId, long groupId, long folderId, java.lang.String articleId,
495                    double version,
496                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
497                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
498                    java.lang.String content, java.lang.String layoutUuid,
499                    com.liferay.portal.service.ServiceContext serviceContext)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException {
502                    return getService()
503                                       .updateArticle(userId, groupId, folderId, articleId,
504                            version, titleMap, descriptionMap, content, layoutUuid,
505                            serviceContext);
506            }
507    
508            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
509                    long groupId, long folderId, java.lang.String articleId,
510                    double version,
511                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
512                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
513                    java.lang.String content, java.lang.String type,
514                    java.lang.String structureId, java.lang.String templateId,
515                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
516                    int displayDateYear, int displayDateHour, int displayDateMinute,
517                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
518                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
519                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
520                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
521                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
522                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
523                    java.lang.String articleURL,
524                    com.liferay.portal.service.ServiceContext serviceContext)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException {
527                    return getService()
528                                       .updateArticle(groupId, folderId, articleId, version,
529                            titleMap, descriptionMap, content, type, structureId, templateId,
530                            layoutUuid, displayDateMonth, displayDateDay, displayDateYear,
531                            displayDateHour, displayDateMinute, expirationDateMonth,
532                            expirationDateDay, expirationDateYear, expirationDateHour,
533                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
534                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
535                            indexable, smallImage, smallImageURL, smallFile, images,
536                            articleURL, serviceContext);
537            }
538    
539            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
540                    long groupId, long folderId, java.lang.String articleId,
541                    double version, java.lang.String content,
542                    com.liferay.portal.service.ServiceContext serviceContext)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException {
545                    return getService()
546                                       .updateArticle(groupId, folderId, articleId, version,
547                            content, serviceContext);
548            }
549    
550            /**
551            * @deprecated {@link #updateArticleTranslation(long, String, double,
552            Locale, String, String, String, Map, ServiceContext)}
553            */
554            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
555                    long groupId, java.lang.String articleId, double version,
556                    java.util.Locale locale, java.lang.String title,
557                    java.lang.String description, java.lang.String content,
558                    java.util.Map<java.lang.String, byte[]> images)
559                    throws com.liferay.portal.kernel.exception.PortalException,
560                            com.liferay.portal.kernel.exception.SystemException {
561                    return getService()
562                                       .updateArticleTranslation(groupId, articleId, version,
563                            locale, title, description, content, images);
564            }
565    
566            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
567                    long groupId, java.lang.String articleId, double version,
568                    java.util.Locale locale, java.lang.String title,
569                    java.lang.String description, java.lang.String content,
570                    java.util.Map<java.lang.String, byte[]> images,
571                    com.liferay.portal.service.ServiceContext serviceContext)
572                    throws com.liferay.portal.kernel.exception.PortalException,
573                            com.liferay.portal.kernel.exception.SystemException {
574                    return getService()
575                                       .updateArticleTranslation(groupId, articleId, version,
576                            locale, title, description, content, images, serviceContext);
577            }
578    
579            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
580                    long groupId, java.lang.String articleId, double version,
581                    java.lang.String content)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException {
584                    return getService().updateContent(groupId, articleId, version, content);
585            }
586    
587            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
588                    long groupId, java.lang.String articleId, double version, int status,
589                    java.lang.String articleURL,
590                    com.liferay.portal.service.ServiceContext serviceContext)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException {
593                    return getService()
594                                       .updateStatus(groupId, articleId, version, status,
595                            articleURL, serviceContext);
596            }
597    
598            public static JournalArticleService getService() {
599                    if (_service == null) {
600                            _service = (JournalArticleService)PortalBeanLocatorUtil.locate(JournalArticleService.class.getName());
601    
602                            ReferenceRegistry.registerReference(JournalArticleServiceUtil.class,
603                                    "_service");
604                    }
605    
606                    return _service;
607            }
608    
609            /**
610             * @deprecated
611             */
612            public void setService(JournalArticleService service) {
613            }
614    
615            private static JournalArticleService _service;
616    }