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.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * The utility for the journal article local service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
023     *
024     * <p>
025     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see JournalArticleLocalService
030     * @see com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl
031     * @see com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
032     * @generated
033     */
034    public class JournalArticleLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the journal article to the database. Also notifies the appropriate model listeners.
043            *
044            * @param journalArticle the journal article
045            * @return the journal article that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
049                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addJournalArticle(journalArticle);
052            }
053    
054            /**
055            * Creates a new journal article with the primary key. Does not add the journal article to the database.
056            *
057            * @param id the primary key for the new journal article
058            * @return the new journal article
059            */
060            public static com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
061                    long id) {
062                    return getService().createJournalArticle(id);
063            }
064    
065            /**
066            * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param id the primary key of the journal article
069            * @throws PortalException if a journal article with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static void deleteJournalArticle(long id)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    getService().deleteJournalArticle(id);
076            }
077    
078            /**
079            * Deletes the journal article from the database. Also notifies the appropriate model listeners.
080            *
081            * @param journalArticle the journal article
082            * @throws SystemException if a system exception occurred
083            */
084            public static void deleteJournalArticle(
085                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    getService().deleteJournalArticle(journalArticle);
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public static java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public static java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().dynamicQuery(dynamicQuery, start, end);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public static java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getService()
145                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146            }
147    
148            /**
149            * Returns the number of rows that match the dynamic query.
150            *
151            * @param dynamicQuery the dynamic query
152            * @return the number of rows that match the dynamic query
153            * @throws SystemException if a system exception occurred
154            */
155            public static long dynamicQueryCount(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getService().dynamicQueryCount(dynamicQuery);
159            }
160    
161            public static com.liferay.portlet.journal.model.JournalArticle fetchJournalArticle(
162                    long id) throws com.liferay.portal.kernel.exception.SystemException {
163                    return getService().fetchJournalArticle(id);
164            }
165    
166            /**
167            * Returns the journal article with the primary key.
168            *
169            * @param id the primary key of the journal article
170            * @return the journal article
171            * @throws PortalException if a journal article with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
175                    long id)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return getService().getJournalArticle(id);
179            }
180    
181            public static com.liferay.portal.model.PersistedModel getPersistedModel(
182                    java.io.Serializable primaryKeyObj)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getPersistedModel(primaryKeyObj);
186            }
187    
188            /**
189            * Returns the journal article with the UUID in the group.
190            *
191            * @param uuid the UUID of journal article
192            * @param groupId the group id of the journal article
193            * @return the journal article
194            * @throws PortalException if a journal article with the UUID in the group could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
198                    java.lang.String uuid, long groupId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
202            }
203    
204            /**
205            * Returns a range of all the journal articles.
206            *
207            * <p>
208            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
209            * </p>
210            *
211            * @param start the lower bound of the range of journal articles
212            * @param end the upper bound of the range of journal articles (not inclusive)
213            * @return the range of journal articles
214            * @throws SystemException if a system exception occurred
215            */
216            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
217                    int start, int end)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getService().getJournalArticles(start, end);
220            }
221    
222            /**
223            * Returns the number of journal articles.
224            *
225            * @return the number of journal articles
226            * @throws SystemException if a system exception occurred
227            */
228            public static int getJournalArticlesCount()
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getService().getJournalArticlesCount();
231            }
232    
233            /**
234            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param journalArticle the journal article
237            * @return the journal article that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
241                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getService().updateJournalArticle(journalArticle);
244            }
245    
246            /**
247            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
248            *
249            * @param journalArticle the journal article
250            * @param merge whether to merge the journal article with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
251            * @return the journal article that was updated
252            * @throws SystemException if a system exception occurred
253            */
254            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
255                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
256                    boolean merge)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return getService().updateJournalArticle(journalArticle, merge);
259            }
260    
261            /**
262            * Returns the Spring bean ID for this bean.
263            *
264            * @return the Spring bean ID for this bean
265            */
266            public static java.lang.String getBeanIdentifier() {
267                    return getService().getBeanIdentifier();
268            }
269    
270            /**
271            * Sets the Spring bean ID for this bean.
272            *
273            * @param beanIdentifier the Spring bean ID for this bean
274            */
275            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
276                    getService().setBeanIdentifier(beanIdentifier);
277            }
278    
279            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
280                    long userId, long groupId, long classNameId, long classPK,
281                    java.lang.String articleId, boolean autoArticleId, double version,
282                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
283                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
284                    java.lang.String content, java.lang.String type,
285                    java.lang.String structureId, java.lang.String templateId,
286                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
287                    int displayDateYear, int displayDateHour, int displayDateMinute,
288                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
289                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
290                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
291                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
292                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
293                    java.io.File smallImageFile,
294                    java.util.Map<java.lang.String, byte[]> images,
295                    java.lang.String articleURL,
296                    com.liferay.portal.service.ServiceContext serviceContext)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return getService()
300                                       .addArticle(userId, groupId, classNameId, classPK,
301                            articleId, autoArticleId, version, titleMap, descriptionMap,
302                            content, type, structureId, templateId, layoutUuid,
303                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
304                            displayDateMinute, expirationDateMonth, expirationDateDay,
305                            expirationDateYear, expirationDateHour, expirationDateMinute,
306                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
307                            reviewDateHour, reviewDateMinute, neverReview, indexable,
308                            smallImage, smallImageURL, smallImageFile, images, articleURL,
309                            serviceContext);
310            }
311    
312            public static void addArticleResources(
313                    com.liferay.portlet.journal.model.JournalArticle article,
314                    boolean addGroupPermissions, boolean addGuestPermissions)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    getService()
318                            .addArticleResources(article, addGroupPermissions,
319                            addGuestPermissions);
320            }
321    
322            public static void addArticleResources(
323                    com.liferay.portlet.journal.model.JournalArticle article,
324                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    getService()
328                            .addArticleResources(article, groupPermissions, guestPermissions);
329            }
330    
331            public static void addArticleResources(long groupId,
332                    java.lang.String articleId, boolean addGroupPermissions,
333                    boolean addGuestPermissions)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    getService()
337                            .addArticleResources(groupId, articleId, addGroupPermissions,
338                            addGuestPermissions);
339            }
340    
341            public static void addArticleResources(long groupId,
342                    java.lang.String articleId, java.lang.String[] groupPermissions,
343                    java.lang.String[] guestPermissions)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    getService()
347                            .addArticleResources(groupId, articleId, groupPermissions,
348                            guestPermissions);
349            }
350    
351            public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
352                    long groupId, java.lang.String articleId, double version)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return getService()
356                                       .checkArticleResourcePrimKey(groupId, articleId, version);
357            }
358    
359            public static void checkArticles()
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    getService().checkArticles();
363            }
364    
365            public static void checkNewLine(long groupId, java.lang.String articleId,
366                    double version)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    getService().checkNewLine(groupId, articleId, version);
370            }
371    
372            public static void checkStructure(long groupId, java.lang.String articleId,
373                    double version)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException {
376                    getService().checkStructure(groupId, articleId, version);
377            }
378    
379            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
380                    long userId, long groupId, java.lang.String oldArticleId,
381                    java.lang.String newArticleId, boolean autoArticleId, double version)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    return getService()
385                                       .copyArticle(userId, groupId, oldArticleId, newArticleId,
386                            autoArticleId, version);
387            }
388    
389            public static void deleteArticle(
390                    com.liferay.portlet.journal.model.JournalArticle article,
391                    java.lang.String articleURL,
392                    com.liferay.portal.service.ServiceContext serviceContext)
393                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException {
395                    getService().deleteArticle(article, articleURL, serviceContext);
396            }
397    
398            public static void deleteArticle(long groupId, java.lang.String articleId,
399                    double version, java.lang.String articleURL,
400                    com.liferay.portal.service.ServiceContext serviceContext)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException {
403                    getService()
404                            .deleteArticle(groupId, articleId, version, articleURL,
405                            serviceContext);
406            }
407    
408            public static void deleteArticle(long groupId, java.lang.String articleId,
409                    com.liferay.portal.service.ServiceContext serviceContext)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    getService().deleteArticle(groupId, articleId, serviceContext);
413            }
414    
415            public static void deleteArticles(long groupId)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    getService().deleteArticles(groupId);
419            }
420    
421            public static void deleteLayoutArticleReferences(long groupId,
422                    java.lang.String layoutUuid)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    getService().deleteLayoutArticleReferences(groupId, layoutUuid);
425            }
426    
427            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
428                    long userId, long groupId, java.lang.String articleId, double version,
429                    java.lang.String articleURL,
430                    com.liferay.portal.service.ServiceContext serviceContext)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    return getService()
434                                       .expireArticle(userId, groupId, articleId, version,
435                            articleURL, serviceContext);
436            }
437    
438            public static void expireArticle(long userId, long groupId,
439                    java.lang.String articleId, java.lang.String articleURL,
440                    com.liferay.portal.service.ServiceContext serviceContext)
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    getService()
444                            .expireArticle(userId, groupId, articleId, articleURL,
445                            serviceContext);
446            }
447    
448            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
449                    long id)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return getService().getArticle(id);
453            }
454    
455            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
456                    long groupId, java.lang.String articleId)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return getService().getArticle(groupId, articleId);
460            }
461    
462            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
463                    long groupId, java.lang.String articleId, double version)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException {
466                    return getService().getArticle(groupId, articleId, version);
467            }
468    
469            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
470                    long groupId, java.lang.String className, long classPK)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException {
473                    return getService().getArticle(groupId, className, classPK);
474            }
475    
476            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
477                    long groupId, java.lang.String urlTitle)
478                    throws com.liferay.portal.kernel.exception.PortalException,
479                            com.liferay.portal.kernel.exception.SystemException {
480                    return getService().getArticleByUrlTitle(groupId, urlTitle);
481            }
482    
483            public static java.lang.String getArticleContent(
484                    com.liferay.portlet.journal.model.JournalArticle article,
485                    java.lang.String templateId, java.lang.String viewMode,
486                    java.lang.String languageId,
487                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
488                    throws com.liferay.portal.kernel.exception.PortalException,
489                            com.liferay.portal.kernel.exception.SystemException {
490                    return getService()
491                                       .getArticleContent(article, templateId, viewMode,
492                            languageId, themeDisplay);
493            }
494    
495            public static java.lang.String getArticleContent(long groupId,
496                    java.lang.String articleId, double version, java.lang.String viewMode,
497                    java.lang.String templateId, java.lang.String languageId,
498                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
499                    throws com.liferay.portal.kernel.exception.PortalException,
500                            com.liferay.portal.kernel.exception.SystemException {
501                    return getService()
502                                       .getArticleContent(groupId, articleId, version, viewMode,
503                            templateId, languageId, themeDisplay);
504            }
505    
506            public static java.lang.String getArticleContent(long groupId,
507                    java.lang.String articleId, double version, java.lang.String viewMode,
508                    java.lang.String languageId,
509                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    return getService()
513                                       .getArticleContent(groupId, articleId, version, viewMode,
514                            languageId, themeDisplay);
515            }
516    
517            public static java.lang.String getArticleContent(long groupId,
518                    java.lang.String articleId, java.lang.String viewMode,
519                    java.lang.String templateId, java.lang.String languageId,
520                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException {
523                    return getService()
524                                       .getArticleContent(groupId, articleId, viewMode, templateId,
525                            languageId, themeDisplay);
526            }
527    
528            public static java.lang.String getArticleContent(long groupId,
529                    java.lang.String articleId, java.lang.String viewMode,
530                    java.lang.String languageId,
531                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    return getService()
535                                       .getArticleContent(groupId, articleId, viewMode, languageId,
536                            themeDisplay);
537            }
538    
539            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
540                    com.liferay.portlet.journal.model.JournalArticle article,
541                    java.lang.String templateId, java.lang.String viewMode,
542                    java.lang.String languageId, int page, java.lang.String xmlRequest,
543                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
544                    throws com.liferay.portal.kernel.exception.PortalException,
545                            com.liferay.portal.kernel.exception.SystemException {
546                    return getService()
547                                       .getArticleDisplay(article, templateId, viewMode,
548                            languageId, page, xmlRequest, themeDisplay);
549            }
550    
551            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
552                    long groupId, java.lang.String articleId, double version,
553                    java.lang.String templateId, java.lang.String viewMode,
554                    java.lang.String languageId, int page, java.lang.String xmlRequest,
555                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return getService()
559                                       .getArticleDisplay(groupId, articleId, version, templateId,
560                            viewMode, languageId, page, xmlRequest, themeDisplay);
561            }
562    
563            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
564                    long groupId, java.lang.String articleId, double version,
565                    java.lang.String templateId, java.lang.String viewMode,
566                    java.lang.String languageId,
567                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
568                    throws com.liferay.portal.kernel.exception.PortalException,
569                            com.liferay.portal.kernel.exception.SystemException {
570                    return getService()
571                                       .getArticleDisplay(groupId, articleId, version, templateId,
572                            viewMode, languageId, themeDisplay);
573            }
574    
575            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
576                    long groupId, java.lang.String articleId, java.lang.String viewMode,
577                    java.lang.String languageId, int page, java.lang.String xmlRequest,
578                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
579                    throws com.liferay.portal.kernel.exception.PortalException,
580                            com.liferay.portal.kernel.exception.SystemException {
581                    return getService()
582                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
583                            page, xmlRequest, themeDisplay);
584            }
585    
586            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
587                    long groupId, java.lang.String articleId, java.lang.String templateId,
588                    java.lang.String viewMode, java.lang.String languageId, int page,
589                    java.lang.String xmlRequest,
590                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException {
593                    return getService()
594                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
595                            languageId, page, xmlRequest, themeDisplay);
596            }
597    
598            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
599                    long groupId, java.lang.String articleId, java.lang.String templateId,
600                    java.lang.String viewMode, java.lang.String languageId,
601                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
602                    throws com.liferay.portal.kernel.exception.PortalException,
603                            com.liferay.portal.kernel.exception.SystemException {
604                    return getService()
605                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
606                            languageId, themeDisplay);
607            }
608    
609            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
610                    long groupId, java.lang.String articleId, java.lang.String viewMode,
611                    java.lang.String languageId,
612                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
613                    throws com.liferay.portal.kernel.exception.PortalException,
614                            com.liferay.portal.kernel.exception.SystemException {
615                    return getService()
616                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
617                            themeDisplay);
618            }
619    
620            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
621                    throws com.liferay.portal.kernel.exception.SystemException {
622                    return getService().getArticles();
623            }
624    
625            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
626                    long groupId)
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    return getService().getArticles(groupId);
629            }
630    
631            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
632                    long groupId, int start, int end)
633                    throws com.liferay.portal.kernel.exception.SystemException {
634                    return getService().getArticles(groupId, start, end);
635            }
636    
637            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
638                    long groupId, int start, int end,
639                    com.liferay.portal.kernel.util.OrderByComparator obc)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getService().getArticles(groupId, start, end, obc);
642            }
643    
644            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
645                    long groupId, java.lang.String articleId)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    return getService().getArticles(groupId, articleId);
648            }
649    
650            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
651                    long smallImageId)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getService().getArticlesBySmallImageId(smallImageId);
654            }
655    
656            public static int getArticlesCount(long groupId)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    return getService().getArticlesCount(groupId);
659            }
660    
661            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
662                    long companyId, double version, int status, int start, int end)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return getService()
665                                       .getCompanyArticles(companyId, version, status, start, end);
666            }
667    
668            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
669                    long companyId, int status, int start, int end)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    return getService().getCompanyArticles(companyId, status, start, end);
672            }
673    
674            public static int getCompanyArticlesCount(long companyId, double version,
675                    int status, int start, int end)
676                    throws com.liferay.portal.kernel.exception.SystemException {
677                    return getService()
678                                       .getCompanyArticlesCount(companyId, version, status, start,
679                            end);
680            }
681    
682            public static int getCompanyArticlesCount(long companyId, int status)
683                    throws com.liferay.portal.kernel.exception.SystemException {
684                    return getService().getCompanyArticlesCount(companyId, status);
685            }
686    
687            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
688                    long groupId, java.lang.String articleId)
689                    throws com.liferay.portal.kernel.exception.PortalException,
690                            com.liferay.portal.kernel.exception.SystemException {
691                    return getService().getDisplayArticle(groupId, articleId);
692            }
693    
694            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
695                    long groupId, java.lang.String urlTitle)
696                    throws com.liferay.portal.kernel.exception.PortalException,
697                            com.liferay.portal.kernel.exception.SystemException {
698                    return getService().getDisplayArticleByUrlTitle(groupId, urlTitle);
699            }
700    
701            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
702                    long resourcePrimKey)
703                    throws com.liferay.portal.kernel.exception.PortalException,
704                            com.liferay.portal.kernel.exception.SystemException {
705                    return getService().getLatestArticle(resourcePrimKey);
706            }
707    
708            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
709                    long resourcePrimKey, int status)
710                    throws com.liferay.portal.kernel.exception.PortalException,
711                            com.liferay.portal.kernel.exception.SystemException {
712                    return getService().getLatestArticle(resourcePrimKey, status);
713            }
714    
715            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
716                    long resourcePrimKey, int status, boolean preferApproved)
717                    throws com.liferay.portal.kernel.exception.PortalException,
718                            com.liferay.portal.kernel.exception.SystemException {
719                    return getService()
720                                       .getLatestArticle(resourcePrimKey, status, preferApproved);
721            }
722    
723            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
724                    long groupId, java.lang.String articleId)
725                    throws com.liferay.portal.kernel.exception.PortalException,
726                            com.liferay.portal.kernel.exception.SystemException {
727                    return getService().getLatestArticle(groupId, articleId);
728            }
729    
730            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
731                    long groupId, java.lang.String articleId, int status)
732                    throws com.liferay.portal.kernel.exception.PortalException,
733                            com.liferay.portal.kernel.exception.SystemException {
734                    return getService().getLatestArticle(groupId, articleId, status);
735            }
736    
737            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
738                    long groupId, java.lang.String className, long classPK)
739                    throws com.liferay.portal.kernel.exception.PortalException,
740                            com.liferay.portal.kernel.exception.SystemException {
741                    return getService().getLatestArticle(groupId, className, classPK);
742            }
743    
744            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
745                    long groupId, java.lang.String urlTitle, int status)
746                    throws com.liferay.portal.kernel.exception.PortalException,
747                            com.liferay.portal.kernel.exception.SystemException {
748                    return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
749            }
750    
751            public static double getLatestVersion(long groupId,
752                    java.lang.String articleId)
753                    throws com.liferay.portal.kernel.exception.PortalException,
754                            com.liferay.portal.kernel.exception.SystemException {
755                    return getService().getLatestVersion(groupId, articleId);
756            }
757    
758            public static double getLatestVersion(long groupId,
759                    java.lang.String articleId, int status)
760                    throws com.liferay.portal.kernel.exception.PortalException,
761                            com.liferay.portal.kernel.exception.SystemException {
762                    return getService().getLatestVersion(groupId, articleId, status);
763            }
764    
765            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
766                    long groupId, java.lang.String structureId)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    return getService().getStructureArticles(groupId, structureId);
769            }
770    
771            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
772                    long groupId, java.lang.String structureId, int start, int end,
773                    com.liferay.portal.kernel.util.OrderByComparator obc)
774                    throws com.liferay.portal.kernel.exception.SystemException {
775                    return getService()
776                                       .getStructureArticles(groupId, structureId, start, end, obc);
777            }
778    
779            public static int getStructureArticlesCount(long groupId,
780                    java.lang.String structureId)
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return getService().getStructureArticlesCount(groupId, structureId);
783            }
784    
785            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
786                    long groupId, java.lang.String templateId)
787                    throws com.liferay.portal.kernel.exception.SystemException {
788                    return getService().getTemplateArticles(groupId, templateId);
789            }
790    
791            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
792                    long groupId, java.lang.String templateId, int start, int end,
793                    com.liferay.portal.kernel.util.OrderByComparator obc)
794                    throws com.liferay.portal.kernel.exception.SystemException {
795                    return getService()
796                                       .getTemplateArticles(groupId, templateId, start, end, obc);
797            }
798    
799            public static int getTemplateArticlesCount(long groupId,
800                    java.lang.String templateId)
801                    throws com.liferay.portal.kernel.exception.SystemException {
802                    return getService().getTemplateArticlesCount(groupId, templateId);
803            }
804    
805            public static boolean hasArticle(long groupId, java.lang.String articleId)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    return getService().hasArticle(groupId, articleId);
808            }
809    
810            public static boolean isLatestVersion(long groupId,
811                    java.lang.String articleId, double version)
812                    throws com.liferay.portal.kernel.exception.PortalException,
813                            com.liferay.portal.kernel.exception.SystemException {
814                    return getService().isLatestVersion(groupId, articleId, version);
815            }
816    
817            public static boolean isLatestVersion(long groupId,
818                    java.lang.String articleId, double version, int status)
819                    throws com.liferay.portal.kernel.exception.PortalException,
820                            com.liferay.portal.kernel.exception.SystemException {
821                    return getService().isLatestVersion(groupId, articleId, version, status);
822            }
823    
824            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
825                    long groupId, java.lang.String articleId, double version,
826                    java.lang.String languageId)
827                    throws com.liferay.portal.kernel.exception.PortalException,
828                            com.liferay.portal.kernel.exception.SystemException {
829                    return getService()
830                                       .removeArticleLocale(groupId, articleId, version, languageId);
831            }
832    
833            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
834                    long companyId, long groupId, long classNameId,
835                    java.lang.String keywords, java.lang.Double version,
836                    java.lang.String type, java.lang.String structureId,
837                    java.lang.String templateId, java.util.Date displayDateGT,
838                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
839                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
840                    throws com.liferay.portal.kernel.exception.SystemException {
841                    return getService()
842                                       .search(companyId, groupId, classNameId, keywords, version,
843                            type, structureId, templateId, displayDateGT, displayDateLT,
844                            status, reviewDate, start, end, obc);
845            }
846    
847            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
848                    long companyId, long groupId, long classNameId,
849                    java.lang.String articleId, java.lang.Double version,
850                    java.lang.String title, java.lang.String description,
851                    java.lang.String content, java.lang.String type,
852                    java.lang.String structureId, java.lang.String templateId,
853                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
854                    java.util.Date reviewDate, boolean andOperator, int start, int end,
855                    com.liferay.portal.kernel.util.OrderByComparator obc)
856                    throws com.liferay.portal.kernel.exception.SystemException {
857                    return getService()
858                                       .search(companyId, groupId, classNameId, articleId, version,
859                            title, description, content, type, structureId, templateId,
860                            displayDateGT, displayDateLT, status, reviewDate, andOperator,
861                            start, end, obc);
862            }
863    
864            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
865                    long companyId, long groupId, long classNameId,
866                    java.lang.String articleId, java.lang.Double version,
867                    java.lang.String title, java.lang.String description,
868                    java.lang.String content, java.lang.String type,
869                    java.lang.String[] structureIds, java.lang.String[] templateIds,
870                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
871                    java.util.Date reviewDate, boolean andOperator, int start, int end,
872                    com.liferay.portal.kernel.util.OrderByComparator obc)
873                    throws com.liferay.portal.kernel.exception.SystemException {
874                    return getService()
875                                       .search(companyId, groupId, classNameId, articleId, version,
876                            title, description, content, type, structureIds, templateIds,
877                            displayDateGT, displayDateLT, status, reviewDate, andOperator,
878                            start, end, obc);
879            }
880    
881            public static com.liferay.portal.kernel.search.Hits search(long companyId,
882                    long groupId, long classNameId, java.lang.String structureId,
883                    java.lang.String templateId, java.lang.String keywords,
884                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
885                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
886                    throws com.liferay.portal.kernel.exception.SystemException {
887                    return getService()
888                                       .search(companyId, groupId, classNameId, structureId,
889                            templateId, keywords, params, start, end, sort);
890            }
891    
892            public static com.liferay.portal.kernel.search.Hits search(long companyId,
893                    long groupId, long classNameId, java.lang.String articleId,
894                    java.lang.String title, java.lang.String description,
895                    java.lang.String content, java.lang.String type,
896                    java.lang.String status, java.lang.String structureId,
897                    java.lang.String templateId,
898                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
899                    boolean andSearch, int start, int end,
900                    com.liferay.portal.kernel.search.Sort sort)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return getService()
903                                       .search(companyId, groupId, classNameId, articleId, title,
904                            description, content, type, status, structureId, templateId,
905                            params, andSearch, start, end, sort);
906            }
907    
908            public static int searchCount(long companyId, long groupId,
909                    long classNameId, java.lang.String keywords, java.lang.Double version,
910                    java.lang.String type, java.lang.String structureId,
911                    java.lang.String templateId, java.util.Date displayDateGT,
912                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
913                    throws com.liferay.portal.kernel.exception.SystemException {
914                    return getService()
915                                       .searchCount(companyId, groupId, classNameId, keywords,
916                            version, type, structureId, templateId, displayDateGT,
917                            displayDateLT, status, reviewDate);
918            }
919    
920            public static int searchCount(long companyId, long groupId,
921                    long classNameId, java.lang.String articleId, java.lang.Double version,
922                    java.lang.String title, java.lang.String description,
923                    java.lang.String content, java.lang.String type,
924                    java.lang.String structureId, java.lang.String templateId,
925                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
926                    java.util.Date reviewDate, boolean andOperator)
927                    throws com.liferay.portal.kernel.exception.SystemException {
928                    return getService()
929                                       .searchCount(companyId, groupId, classNameId, articleId,
930                            version, title, description, content, type, structureId,
931                            templateId, displayDateGT, displayDateLT, status, reviewDate,
932                            andOperator);
933            }
934    
935            public static int searchCount(long companyId, long groupId,
936                    long classNameId, java.lang.String articleId, java.lang.Double version,
937                    java.lang.String title, java.lang.String description,
938                    java.lang.String content, java.lang.String type,
939                    java.lang.String[] structureIds, java.lang.String[] templateIds,
940                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
941                    java.util.Date reviewDate, boolean andOperator)
942                    throws com.liferay.portal.kernel.exception.SystemException {
943                    return getService()
944                                       .searchCount(companyId, groupId, classNameId, articleId,
945                            version, title, description, content, type, structureIds,
946                            templateIds, displayDateGT, displayDateLT, status, reviewDate,
947                            andOperator);
948            }
949    
950            public static void subscribe(long userId, long groupId)
951                    throws com.liferay.portal.kernel.exception.PortalException,
952                            com.liferay.portal.kernel.exception.SystemException {
953                    getService().subscribe(userId, groupId);
954            }
955    
956            public static void unsubscribe(long userId, long groupId)
957                    throws com.liferay.portal.kernel.exception.PortalException,
958                            com.liferay.portal.kernel.exception.SystemException {
959                    getService().unsubscribe(userId, groupId);
960            }
961    
962            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
963                    long userId, long groupId, java.lang.String articleId, double version,
964                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
965                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
966                    java.lang.String content, java.lang.String layoutUuid,
967                    com.liferay.portal.service.ServiceContext serviceContext)
968                    throws com.liferay.portal.kernel.exception.PortalException,
969                            com.liferay.portal.kernel.exception.SystemException {
970                    return getService()
971                                       .updateArticle(userId, groupId, articleId, version,
972                            titleMap, descriptionMap, content, layoutUuid, serviceContext);
973            }
974    
975            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
976                    long userId, long groupId, java.lang.String articleId, double version,
977                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
978                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
979                    java.lang.String content, java.lang.String type,
980                    java.lang.String structureId, java.lang.String templateId,
981                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
982                    int displayDateYear, int displayDateHour, int displayDateMinute,
983                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
984                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
985                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
986                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
987                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
988                    java.io.File smallImageFile,
989                    java.util.Map<java.lang.String, byte[]> images,
990                    java.lang.String articleURL,
991                    com.liferay.portal.service.ServiceContext serviceContext)
992                    throws com.liferay.portal.kernel.exception.PortalException,
993                            com.liferay.portal.kernel.exception.SystemException {
994                    return getService()
995                                       .updateArticle(userId, groupId, articleId, version,
996                            titleMap, descriptionMap, content, type, structureId, templateId,
997                            layoutUuid, displayDateMonth, displayDateDay, displayDateYear,
998                            displayDateHour, displayDateMinute, expirationDateMonth,
999                            expirationDateDay, expirationDateYear, expirationDateHour,
1000                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
1001                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
1002                            indexable, smallImage, smallImageURL, smallImageFile, images,
1003                            articleURL, serviceContext);
1004            }
1005    
1006            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1007                    long userId, long groupId, java.lang.String articleId, double version,
1008                    java.lang.String content,
1009                    com.liferay.portal.service.ServiceContext serviceContext)
1010                    throws com.liferay.portal.kernel.exception.PortalException,
1011                            com.liferay.portal.kernel.exception.SystemException {
1012                    return getService()
1013                                       .updateArticle(userId, groupId, articleId, version, content,
1014                            serviceContext);
1015            }
1016    
1017            /**
1018            * @deprecated {@link #updateArticleTranslation(long, String, double,
1019            Locale, String, String, String, Map, ServiceContext)}
1020            */
1021            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1022                    long groupId, java.lang.String articleId, double version,
1023                    java.util.Locale locale, java.lang.String title,
1024                    java.lang.String description, java.lang.String content,
1025                    java.util.Map<java.lang.String, byte[]> images)
1026                    throws com.liferay.portal.kernel.exception.PortalException,
1027                            com.liferay.portal.kernel.exception.SystemException {
1028                    return getService()
1029                                       .updateArticleTranslation(groupId, articleId, version,
1030                            locale, title, description, content, images);
1031            }
1032    
1033            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1034                    long groupId, java.lang.String articleId, double version,
1035                    java.util.Locale locale, java.lang.String title,
1036                    java.lang.String description, java.lang.String content,
1037                    java.util.Map<java.lang.String, byte[]> images,
1038                    com.liferay.portal.service.ServiceContext serviceContext)
1039                    throws com.liferay.portal.kernel.exception.PortalException,
1040                            com.liferay.portal.kernel.exception.SystemException {
1041                    return getService()
1042                                       .updateArticleTranslation(groupId, articleId, version,
1043                            locale, title, description, content, images, serviceContext);
1044            }
1045    
1046            public static void updateAsset(long userId,
1047                    com.liferay.portlet.journal.model.JournalArticle article,
1048                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
1049                    long[] assetLinkEntryIds)
1050                    throws com.liferay.portal.kernel.exception.PortalException,
1051                            com.liferay.portal.kernel.exception.SystemException {
1052                    getService()
1053                            .updateAsset(userId, article, assetCategoryIds, assetTagNames,
1054                            assetLinkEntryIds);
1055            }
1056    
1057            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1058                    long groupId, java.lang.String articleId, double version,
1059                    java.lang.String content)
1060                    throws com.liferay.portal.kernel.exception.PortalException,
1061                            com.liferay.portal.kernel.exception.SystemException {
1062                    return getService().updateContent(groupId, articleId, version, content);
1063            }
1064    
1065            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1066                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
1067                    int status, java.lang.String articleURL,
1068                    com.liferay.portal.service.ServiceContext serviceContext)
1069                    throws com.liferay.portal.kernel.exception.PortalException,
1070                            com.liferay.portal.kernel.exception.SystemException {
1071                    return getService()
1072                                       .updateStatus(userId, article, status, articleURL,
1073                            serviceContext);
1074            }
1075    
1076            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1077                    long userId, long classPK, int status,
1078                    com.liferay.portal.service.ServiceContext serviceContext)
1079                    throws com.liferay.portal.kernel.exception.PortalException,
1080                            com.liferay.portal.kernel.exception.SystemException {
1081                    return getService().updateStatus(userId, classPK, status, serviceContext);
1082            }
1083    
1084            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1085                    long userId, long groupId, java.lang.String articleId, double version,
1086                    int status, java.lang.String articleURL,
1087                    com.liferay.portal.service.ServiceContext serviceContext)
1088                    throws com.liferay.portal.kernel.exception.PortalException,
1089                            com.liferay.portal.kernel.exception.SystemException {
1090                    return getService()
1091                                       .updateStatus(userId, groupId, articleId, version, status,
1092                            articleURL, serviceContext);
1093            }
1094    
1095            public static void updateTemplateId(long groupId, long classNameId,
1096                    java.lang.String oldTemplateId, java.lang.String newTemplateId)
1097                    throws com.liferay.portal.kernel.exception.SystemException {
1098                    getService()
1099                            .updateTemplateId(groupId, classNameId, oldTemplateId, newTemplateId);
1100            }
1101    
1102            public static JournalArticleLocalService getService() {
1103                    if (_service == null) {
1104                            _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
1105    
1106                            ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1107                                    "_service");
1108                            MethodCache.remove(JournalArticleLocalService.class);
1109                    }
1110    
1111                    return _service;
1112            }
1113    
1114            public void setService(JournalArticleLocalService service) {
1115                    MethodCache.remove(JournalArticleLocalService.class);
1116    
1117                    _service = service;
1118    
1119                    ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1120                            "_service");
1121                    MethodCache.remove(JournalArticleLocalService.class);
1122            }
1123    
1124            private static JournalArticleLocalService _service;
1125    }