001    /**
002     * Copyright (c) 2000-2011 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            /**
162            * Returns the journal article with the primary key.
163            *
164            * @param id the primary key of the journal article
165            * @return the journal article
166            * @throws PortalException if a journal article with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
170                    long id)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return getService().getJournalArticle(id);
174            }
175    
176            public static com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService().getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the journal article with the UUID in the group.
185            *
186            * @param uuid the UUID of journal article
187            * @param groupId the group id of the journal article
188            * @return the journal article
189            * @throws PortalException if a journal article with the UUID in the group could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return getService().getJournalArticleByUuidAndGroupId(uuid, groupId);
197            }
198    
199            /**
200            * Returns a range of all the journal articles.
201            *
202            * <p>
203            * 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.
204            * </p>
205            *
206            * @param start the lower bound of the range of journal articles
207            * @param end the upper bound of the range of journal articles (not inclusive)
208            * @return the range of journal articles
209            * @throws SystemException if a system exception occurred
210            */
211            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
212                    int start, int end)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getJournalArticles(start, end);
215            }
216    
217            /**
218            * Returns the number of journal articles.
219            *
220            * @return the number of journal articles
221            * @throws SystemException if a system exception occurred
222            */
223            public static int getJournalArticlesCount()
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return getService().getJournalArticlesCount();
226            }
227    
228            /**
229            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param journalArticle the journal article
232            * @return the journal article that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
236                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getService().updateJournalArticle(journalArticle);
239            }
240    
241            /**
242            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
243            *
244            * @param journalArticle the journal article
245            * @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.
246            * @return the journal article that was updated
247            * @throws SystemException if a system exception occurred
248            */
249            public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
250                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
251                    boolean merge)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    return getService().updateJournalArticle(journalArticle, merge);
254            }
255    
256            /**
257            * Returns the Spring bean ID for this bean.
258            *
259            * @return the Spring bean ID for this bean
260            */
261            public static java.lang.String getBeanIdentifier() {
262                    return getService().getBeanIdentifier();
263            }
264    
265            /**
266            * Sets the Spring bean ID for this bean.
267            *
268            * @param beanIdentifier the Spring bean ID for this bean
269            */
270            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
271                    getService().setBeanIdentifier(beanIdentifier);
272            }
273    
274            public static com.liferay.portlet.journal.model.JournalArticle addArticle(
275                    long userId, long groupId, long classNameId, long classPK,
276                    java.lang.String articleId, boolean autoArticleId, double version,
277                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
278                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
279                    java.lang.String content, java.lang.String type,
280                    java.lang.String structureId, java.lang.String templateId,
281                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
282                    int displayDateYear, int displayDateHour, int displayDateMinute,
283                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
284                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
285                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
286                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
287                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
288                    java.io.File smallImageFile,
289                    java.util.Map<java.lang.String, byte[]> images,
290                    java.lang.String articleURL,
291                    com.liferay.portal.service.ServiceContext serviceContext)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return getService()
295                                       .addArticle(userId, groupId, classNameId, classPK,
296                            articleId, autoArticleId, version, titleMap, descriptionMap,
297                            content, type, structureId, templateId, layoutUuid,
298                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
299                            displayDateMinute, expirationDateMonth, expirationDateDay,
300                            expirationDateYear, expirationDateHour, expirationDateMinute,
301                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
302                            reviewDateHour, reviewDateMinute, neverReview, indexable,
303                            smallImage, smallImageURL, smallImageFile, images, articleURL,
304                            serviceContext);
305            }
306    
307            public static void addArticleResources(
308                    com.liferay.portlet.journal.model.JournalArticle article,
309                    boolean addGroupPermissions, boolean addGuestPermissions)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    getService()
313                            .addArticleResources(article, addGroupPermissions,
314                            addGuestPermissions);
315            }
316    
317            public static void addArticleResources(
318                    com.liferay.portlet.journal.model.JournalArticle article,
319                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    getService()
323                            .addArticleResources(article, groupPermissions, guestPermissions);
324            }
325    
326            public static void addArticleResources(long groupId,
327                    java.lang.String articleId, boolean addGroupPermissions,
328                    boolean addGuestPermissions)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    getService()
332                            .addArticleResources(groupId, articleId, addGroupPermissions,
333                            addGuestPermissions);
334            }
335    
336            public static void addArticleResources(long groupId,
337                    java.lang.String articleId, java.lang.String[] groupPermissions,
338                    java.lang.String[] guestPermissions)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    getService()
342                            .addArticleResources(groupId, articleId, groupPermissions,
343                            guestPermissions);
344            }
345    
346            public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
347                    long groupId, java.lang.String articleId, double version)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    return getService()
351                                       .checkArticleResourcePrimKey(groupId, articleId, version);
352            }
353    
354            public static void checkArticles()
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    getService().checkArticles();
358            }
359    
360            public static void checkNewLine(long groupId, java.lang.String articleId,
361                    double version)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    getService().checkNewLine(groupId, articleId, version);
365            }
366    
367            public static void checkStructure(long groupId, java.lang.String articleId,
368                    double version)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    getService().checkStructure(groupId, articleId, version);
372            }
373    
374            public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
375                    long userId, long groupId, java.lang.String oldArticleId,
376                    java.lang.String newArticleId, boolean autoArticleId, double version)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return getService()
380                                       .copyArticle(userId, groupId, oldArticleId, newArticleId,
381                            autoArticleId, version);
382            }
383    
384            public static void deleteArticle(
385                    com.liferay.portlet.journal.model.JournalArticle article,
386                    java.lang.String articleURL,
387                    com.liferay.portal.service.ServiceContext serviceContext)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    getService().deleteArticle(article, articleURL, serviceContext);
391            }
392    
393            public static void deleteArticle(long groupId, java.lang.String articleId,
394                    double version, java.lang.String articleURL,
395                    com.liferay.portal.service.ServiceContext serviceContext)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    getService()
399                            .deleteArticle(groupId, articleId, version, articleURL,
400                            serviceContext);
401            }
402    
403            public static void deleteArticle(long groupId, java.lang.String articleId,
404                    com.liferay.portal.service.ServiceContext serviceContext)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    getService().deleteArticle(groupId, articleId, serviceContext);
408            }
409    
410            public static void deleteArticles(long groupId)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException {
413                    getService().deleteArticles(groupId);
414            }
415    
416            public static void deleteLayoutArticleReferences(long groupId,
417                    java.lang.String layoutUuid)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    getService().deleteLayoutArticleReferences(groupId, layoutUuid);
420            }
421    
422            public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
423                    long userId, long groupId, java.lang.String articleId, double version,
424                    java.lang.String articleURL,
425                    com.liferay.portal.service.ServiceContext serviceContext)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return getService()
429                                       .expireArticle(userId, groupId, articleId, version,
430                            articleURL, serviceContext);
431            }
432    
433            public static void expireArticle(long userId, long groupId,
434                    java.lang.String articleId, java.lang.String articleURL,
435                    com.liferay.portal.service.ServiceContext serviceContext)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException {
438                    getService()
439                            .expireArticle(userId, groupId, articleId, articleURL,
440                            serviceContext);
441            }
442    
443            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
444                    long id)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException {
447                    return getService().getArticle(id);
448            }
449    
450            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
451                    long groupId, java.lang.String articleId)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException {
454                    return getService().getArticle(groupId, articleId);
455            }
456    
457            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
458                    long groupId, java.lang.String articleId, double version)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException {
461                    return getService().getArticle(groupId, articleId, version);
462            }
463    
464            public static com.liferay.portlet.journal.model.JournalArticle getArticle(
465                    long groupId, java.lang.String className, long classPK)
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    return getService().getArticle(groupId, className, classPK);
469            }
470    
471            public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
472                    long groupId, java.lang.String urlTitle)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    return getService().getArticleByUrlTitle(groupId, urlTitle);
476            }
477    
478            public static java.lang.String getArticleContent(
479                    com.liferay.portlet.journal.model.JournalArticle article,
480                    java.lang.String templateId, java.lang.String viewMode,
481                    java.lang.String languageId,
482                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    return getService()
486                                       .getArticleContent(article, templateId, viewMode,
487                            languageId, themeDisplay);
488            }
489    
490            public static java.lang.String getArticleContent(long groupId,
491                    java.lang.String articleId, double version, java.lang.String viewMode,
492                    java.lang.String templateId, java.lang.String languageId,
493                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
494                    throws com.liferay.portal.kernel.exception.PortalException,
495                            com.liferay.portal.kernel.exception.SystemException {
496                    return getService()
497                                       .getArticleContent(groupId, articleId, version, viewMode,
498                            templateId, languageId, themeDisplay);
499            }
500    
501            public static java.lang.String getArticleContent(long groupId,
502                    java.lang.String articleId, double version, java.lang.String viewMode,
503                    java.lang.String languageId,
504                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    return getService()
508                                       .getArticleContent(groupId, articleId, version, viewMode,
509                            languageId, themeDisplay);
510            }
511    
512            public static java.lang.String getArticleContent(long groupId,
513                    java.lang.String articleId, java.lang.String viewMode,
514                    java.lang.String templateId, java.lang.String languageId,
515                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException {
518                    return getService()
519                                       .getArticleContent(groupId, articleId, viewMode, templateId,
520                            languageId, themeDisplay);
521            }
522    
523            public static java.lang.String getArticleContent(long groupId,
524                    java.lang.String articleId, java.lang.String viewMode,
525                    java.lang.String languageId,
526                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
527                    throws com.liferay.portal.kernel.exception.PortalException,
528                            com.liferay.portal.kernel.exception.SystemException {
529                    return getService()
530                                       .getArticleContent(groupId, articleId, viewMode, languageId,
531                            themeDisplay);
532            }
533    
534            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
535                    com.liferay.portlet.journal.model.JournalArticle article,
536                    java.lang.String templateId, java.lang.String viewMode,
537                    java.lang.String languageId, int page, java.lang.String xmlRequest,
538                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
539                    throws com.liferay.portal.kernel.exception.PortalException,
540                            com.liferay.portal.kernel.exception.SystemException {
541                    return getService()
542                                       .getArticleDisplay(article, templateId, viewMode,
543                            languageId, page, xmlRequest, themeDisplay);
544            }
545    
546            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
547                    long groupId, java.lang.String articleId, double version,
548                    java.lang.String templateId, java.lang.String viewMode,
549                    java.lang.String languageId, int page, java.lang.String xmlRequest,
550                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException {
553                    return getService()
554                                       .getArticleDisplay(groupId, articleId, version, templateId,
555                            viewMode, languageId, page, xmlRequest, themeDisplay);
556            }
557    
558            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
559                    long groupId, java.lang.String articleId, double version,
560                    java.lang.String templateId, java.lang.String viewMode,
561                    java.lang.String languageId,
562                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
563                    throws com.liferay.portal.kernel.exception.PortalException,
564                            com.liferay.portal.kernel.exception.SystemException {
565                    return getService()
566                                       .getArticleDisplay(groupId, articleId, version, templateId,
567                            viewMode, languageId, themeDisplay);
568            }
569    
570            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
571                    long groupId, java.lang.String articleId, java.lang.String viewMode,
572                    java.lang.String languageId, int page, java.lang.String xmlRequest,
573                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
574                    throws com.liferay.portal.kernel.exception.PortalException,
575                            com.liferay.portal.kernel.exception.SystemException {
576                    return getService()
577                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
578                            page, xmlRequest, themeDisplay);
579            }
580    
581            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
582                    long groupId, java.lang.String articleId, java.lang.String templateId,
583                    java.lang.String viewMode, java.lang.String languageId, int page,
584                    java.lang.String xmlRequest,
585                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
586                    throws com.liferay.portal.kernel.exception.PortalException,
587                            com.liferay.portal.kernel.exception.SystemException {
588                    return getService()
589                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
590                            languageId, page, xmlRequest, themeDisplay);
591            }
592    
593            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
594                    long groupId, java.lang.String articleId, java.lang.String templateId,
595                    java.lang.String viewMode, java.lang.String languageId,
596                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
597                    throws com.liferay.portal.kernel.exception.PortalException,
598                            com.liferay.portal.kernel.exception.SystemException {
599                    return getService()
600                                       .getArticleDisplay(groupId, articleId, templateId, viewMode,
601                            languageId, themeDisplay);
602            }
603    
604            public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
605                    long groupId, java.lang.String articleId, java.lang.String viewMode,
606                    java.lang.String languageId,
607                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
608                    throws com.liferay.portal.kernel.exception.PortalException,
609                            com.liferay.portal.kernel.exception.SystemException {
610                    return getService()
611                                       .getArticleDisplay(groupId, articleId, viewMode, languageId,
612                            themeDisplay);
613            }
614    
615            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
616                    throws com.liferay.portal.kernel.exception.SystemException {
617                    return getService().getArticles();
618            }
619    
620            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
621                    long groupId)
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return getService().getArticles(groupId);
624            }
625    
626            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
627                    long groupId, int start, int end)
628                    throws com.liferay.portal.kernel.exception.SystemException {
629                    return getService().getArticles(groupId, start, end);
630            }
631    
632            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
633                    long groupId, int start, int end,
634                    com.liferay.portal.kernel.util.OrderByComparator obc)
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    return getService().getArticles(groupId, start, end, obc);
637            }
638    
639            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
640                    long groupId, java.lang.String articleId)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getService().getArticles(groupId, articleId);
643            }
644    
645            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
646                    long smallImageId)
647                    throws com.liferay.portal.kernel.exception.SystemException {
648                    return getService().getArticlesBySmallImageId(smallImageId);
649            }
650    
651            public static int getArticlesCount(long groupId)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getService().getArticlesCount(groupId);
654            }
655    
656            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
657                    long companyId, double version, int status, int start, int end)
658                    throws com.liferay.portal.kernel.exception.SystemException {
659                    return getService()
660                                       .getCompanyArticles(companyId, version, status, start, end);
661            }
662    
663            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
664                    long companyId, int status, int start, int end)
665                    throws com.liferay.portal.kernel.exception.SystemException {
666                    return getService().getCompanyArticles(companyId, status, start, end);
667            }
668    
669            public static int getCompanyArticlesCount(long companyId, double version,
670                    int status, int start, int end)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getService()
673                                       .getCompanyArticlesCount(companyId, version, status, start,
674                            end);
675            }
676    
677            public static int getCompanyArticlesCount(long companyId, int status)
678                    throws com.liferay.portal.kernel.exception.SystemException {
679                    return getService().getCompanyArticlesCount(companyId, status);
680            }
681    
682            public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
683                    long groupId, java.lang.String articleId)
684                    throws com.liferay.portal.kernel.exception.PortalException,
685                            com.liferay.portal.kernel.exception.SystemException {
686                    return getService().getDisplayArticle(groupId, articleId);
687            }
688    
689            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
690                    long resourcePrimKey)
691                    throws com.liferay.portal.kernel.exception.PortalException,
692                            com.liferay.portal.kernel.exception.SystemException {
693                    return getService().getLatestArticle(resourcePrimKey);
694            }
695    
696            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
697                    long resourcePrimKey, int status)
698                    throws com.liferay.portal.kernel.exception.PortalException,
699                            com.liferay.portal.kernel.exception.SystemException {
700                    return getService().getLatestArticle(resourcePrimKey, status);
701            }
702    
703            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
704                    long resourcePrimKey, int status, boolean preferApproved)
705                    throws com.liferay.portal.kernel.exception.PortalException,
706                            com.liferay.portal.kernel.exception.SystemException {
707                    return getService()
708                                       .getLatestArticle(resourcePrimKey, status, preferApproved);
709            }
710    
711            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
712                    long groupId, java.lang.String articleId)
713                    throws com.liferay.portal.kernel.exception.PortalException,
714                            com.liferay.portal.kernel.exception.SystemException {
715                    return getService().getLatestArticle(groupId, articleId);
716            }
717    
718            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
719                    long groupId, java.lang.String articleId, int status)
720                    throws com.liferay.portal.kernel.exception.PortalException,
721                            com.liferay.portal.kernel.exception.SystemException {
722                    return getService().getLatestArticle(groupId, articleId, status);
723            }
724    
725            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
726                    long groupId, java.lang.String className, long classPK)
727                    throws com.liferay.portal.kernel.exception.PortalException,
728                            com.liferay.portal.kernel.exception.SystemException {
729                    return getService().getLatestArticle(groupId, className, classPK);
730            }
731    
732            public static com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
733                    long groupId, java.lang.String urlTitle, int status)
734                    throws com.liferay.portal.kernel.exception.PortalException,
735                            com.liferay.portal.kernel.exception.SystemException {
736                    return getService().getLatestArticleByUrlTitle(groupId, urlTitle, status);
737            }
738    
739            public static double getLatestVersion(long groupId,
740                    java.lang.String articleId)
741                    throws com.liferay.portal.kernel.exception.PortalException,
742                            com.liferay.portal.kernel.exception.SystemException {
743                    return getService().getLatestVersion(groupId, articleId);
744            }
745    
746            public static double getLatestVersion(long groupId,
747                    java.lang.String articleId, int status)
748                    throws com.liferay.portal.kernel.exception.PortalException,
749                            com.liferay.portal.kernel.exception.SystemException {
750                    return getService().getLatestVersion(groupId, articleId, status);
751            }
752    
753            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
754                    long groupId, java.lang.String structureId)
755                    throws com.liferay.portal.kernel.exception.SystemException {
756                    return getService().getStructureArticles(groupId, structureId);
757            }
758    
759            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
760                    long groupId, java.lang.String structureId, int start, int end,
761                    com.liferay.portal.kernel.util.OrderByComparator obc)
762                    throws com.liferay.portal.kernel.exception.SystemException {
763                    return getService()
764                                       .getStructureArticles(groupId, structureId, start, end, obc);
765            }
766    
767            public static int getStructureArticlesCount(long groupId,
768                    java.lang.String structureId)
769                    throws com.liferay.portal.kernel.exception.SystemException {
770                    return getService().getStructureArticlesCount(groupId, structureId);
771            }
772    
773            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
774                    long groupId, java.lang.String templateId)
775                    throws com.liferay.portal.kernel.exception.SystemException {
776                    return getService().getTemplateArticles(groupId, templateId);
777            }
778    
779            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
780                    long groupId, java.lang.String templateId, int start, int end,
781                    com.liferay.portal.kernel.util.OrderByComparator obc)
782                    throws com.liferay.portal.kernel.exception.SystemException {
783                    return getService()
784                                       .getTemplateArticles(groupId, templateId, start, end, obc);
785            }
786    
787            public static int getTemplateArticlesCount(long groupId,
788                    java.lang.String templateId)
789                    throws com.liferay.portal.kernel.exception.SystemException {
790                    return getService().getTemplateArticlesCount(groupId, templateId);
791            }
792    
793            public static boolean hasArticle(long groupId, java.lang.String articleId)
794                    throws com.liferay.portal.kernel.exception.SystemException {
795                    return getService().hasArticle(groupId, articleId);
796            }
797    
798            public static boolean isLatestVersion(long groupId,
799                    java.lang.String articleId, double version)
800                    throws com.liferay.portal.kernel.exception.PortalException,
801                            com.liferay.portal.kernel.exception.SystemException {
802                    return getService().isLatestVersion(groupId, articleId, version);
803            }
804    
805            public static boolean isLatestVersion(long groupId,
806                    java.lang.String articleId, double version, int status)
807                    throws com.liferay.portal.kernel.exception.PortalException,
808                            com.liferay.portal.kernel.exception.SystemException {
809                    return getService().isLatestVersion(groupId, articleId, version, status);
810            }
811    
812            public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
813                    long groupId, java.lang.String articleId, double version,
814                    java.lang.String languageId)
815                    throws com.liferay.portal.kernel.exception.PortalException,
816                            com.liferay.portal.kernel.exception.SystemException {
817                    return getService()
818                                       .removeArticleLocale(groupId, articleId, version, languageId);
819            }
820    
821            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
822                    long companyId, long groupId, long classNameId,
823                    java.lang.String keywords, java.lang.Double version,
824                    java.lang.String type, java.lang.String structureId,
825                    java.lang.String templateId, java.util.Date displayDateGT,
826                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
827                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
828                    throws com.liferay.portal.kernel.exception.SystemException {
829                    return getService()
830                                       .search(companyId, groupId, classNameId, keywords, version,
831                            type, structureId, templateId, displayDateGT, displayDateLT,
832                            status, reviewDate, start, end, obc);
833            }
834    
835            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
836                    long companyId, long groupId, long classNameId,
837                    java.lang.String articleId, java.lang.Double version,
838                    java.lang.String title, java.lang.String description,
839                    java.lang.String content, java.lang.String type,
840                    java.lang.String structureId, java.lang.String templateId,
841                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
842                    java.util.Date reviewDate, boolean andOperator, int start, int end,
843                    com.liferay.portal.kernel.util.OrderByComparator obc)
844                    throws com.liferay.portal.kernel.exception.SystemException {
845                    return getService()
846                                       .search(companyId, groupId, classNameId, articleId, version,
847                            title, description, content, type, structureId, templateId,
848                            displayDateGT, displayDateLT, status, reviewDate, andOperator,
849                            start, end, obc);
850            }
851    
852            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
853                    long companyId, long groupId, long classNameId,
854                    java.lang.String articleId, java.lang.Double version,
855                    java.lang.String title, java.lang.String description,
856                    java.lang.String content, java.lang.String type,
857                    java.lang.String[] structureIds, java.lang.String[] templateIds,
858                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
859                    java.util.Date reviewDate, boolean andOperator, int start, int end,
860                    com.liferay.portal.kernel.util.OrderByComparator obc)
861                    throws com.liferay.portal.kernel.exception.SystemException {
862                    return getService()
863                                       .search(companyId, groupId, classNameId, articleId, version,
864                            title, description, content, type, structureIds, templateIds,
865                            displayDateGT, displayDateLT, status, reviewDate, andOperator,
866                            start, end, obc);
867            }
868    
869            public static com.liferay.portal.kernel.search.Hits search(long companyId,
870                    long groupId, long classNameId, java.lang.String structureId,
871                    java.lang.String templateId, java.lang.String keywords,
872                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
873                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
874                    throws com.liferay.portal.kernel.exception.SystemException {
875                    return getService()
876                                       .search(companyId, groupId, classNameId, structureId,
877                            templateId, keywords, params, start, end, sort);
878            }
879    
880            public static com.liferay.portal.kernel.search.Hits search(long companyId,
881                    long groupId, long classNameId, java.lang.String articleId,
882                    java.lang.String title, java.lang.String description,
883                    java.lang.String content, java.lang.String type,
884                    java.lang.String status, java.lang.String structureId,
885                    java.lang.String templateId,
886                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
887                    boolean andSearch, int start, int end,
888                    com.liferay.portal.kernel.search.Sort sort)
889                    throws com.liferay.portal.kernel.exception.SystemException {
890                    return getService()
891                                       .search(companyId, groupId, classNameId, articleId, title,
892                            description, content, type, status, structureId, templateId,
893                            params, andSearch, start, end, sort);
894            }
895    
896            public static int searchCount(long companyId, long groupId,
897                    long classNameId, java.lang.String keywords, java.lang.Double version,
898                    java.lang.String type, java.lang.String structureId,
899                    java.lang.String templateId, java.util.Date displayDateGT,
900                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return getService()
903                                       .searchCount(companyId, groupId, classNameId, keywords,
904                            version, type, structureId, templateId, displayDateGT,
905                            displayDateLT, status, reviewDate);
906            }
907    
908            public static int searchCount(long companyId, long groupId,
909                    long classNameId, java.lang.String articleId, java.lang.Double version,
910                    java.lang.String title, java.lang.String description,
911                    java.lang.String content, java.lang.String type,
912                    java.lang.String structureId, java.lang.String templateId,
913                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
914                    java.util.Date reviewDate, boolean andOperator)
915                    throws com.liferay.portal.kernel.exception.SystemException {
916                    return getService()
917                                       .searchCount(companyId, groupId, classNameId, articleId,
918                            version, title, description, content, type, structureId,
919                            templateId, displayDateGT, displayDateLT, status, reviewDate,
920                            andOperator);
921            }
922    
923            public static int searchCount(long companyId, long groupId,
924                    long classNameId, java.lang.String articleId, java.lang.Double version,
925                    java.lang.String title, java.lang.String description,
926                    java.lang.String content, java.lang.String type,
927                    java.lang.String[] structureIds, java.lang.String[] templateIds,
928                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
929                    java.util.Date reviewDate, boolean andOperator)
930                    throws com.liferay.portal.kernel.exception.SystemException {
931                    return getService()
932                                       .searchCount(companyId, groupId, classNameId, articleId,
933                            version, title, description, content, type, structureIds,
934                            templateIds, displayDateGT, displayDateLT, status, reviewDate,
935                            andOperator);
936            }
937    
938            public static void subscribe(long userId, long groupId)
939                    throws com.liferay.portal.kernel.exception.PortalException,
940                            com.liferay.portal.kernel.exception.SystemException {
941                    getService().subscribe(userId, groupId);
942            }
943    
944            public static void unsubscribe(long userId, long groupId)
945                    throws com.liferay.portal.kernel.exception.PortalException,
946                            com.liferay.portal.kernel.exception.SystemException {
947                    getService().unsubscribe(userId, groupId);
948            }
949    
950            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
951                    long userId, long groupId, java.lang.String articleId, double version,
952                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
953                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
954                    java.lang.String content, java.lang.String layoutUuid,
955                    com.liferay.portal.service.ServiceContext serviceContext)
956                    throws com.liferay.portal.kernel.exception.PortalException,
957                            com.liferay.portal.kernel.exception.SystemException {
958                    return getService()
959                                       .updateArticle(userId, groupId, articleId, version,
960                            titleMap, descriptionMap, content, layoutUuid, serviceContext);
961            }
962    
963            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
964                    long userId, long groupId, java.lang.String articleId, double version,
965                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
966                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
967                    java.lang.String content, java.lang.String type,
968                    java.lang.String structureId, java.lang.String templateId,
969                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
970                    int displayDateYear, int displayDateHour, int displayDateMinute,
971                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
972                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
973                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
974                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
975                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
976                    java.io.File smallImageFile,
977                    java.util.Map<java.lang.String, byte[]> images,
978                    java.lang.String articleURL,
979                    com.liferay.portal.service.ServiceContext serviceContext)
980                    throws com.liferay.portal.kernel.exception.PortalException,
981                            com.liferay.portal.kernel.exception.SystemException {
982                    return getService()
983                                       .updateArticle(userId, groupId, articleId, version,
984                            titleMap, descriptionMap, content, type, structureId, templateId,
985                            layoutUuid, displayDateMonth, displayDateDay, displayDateYear,
986                            displayDateHour, displayDateMinute, expirationDateMonth,
987                            expirationDateDay, expirationDateYear, expirationDateHour,
988                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
989                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
990                            indexable, smallImage, smallImageURL, smallImageFile, images,
991                            articleURL, serviceContext);
992            }
993    
994            public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
995                    long userId, long groupId, java.lang.String articleId, double version,
996                    java.lang.String content,
997                    com.liferay.portal.service.ServiceContext serviceContext)
998                    throws com.liferay.portal.kernel.exception.PortalException,
999                            com.liferay.portal.kernel.exception.SystemException {
1000                    return getService()
1001                                       .updateArticle(userId, groupId, articleId, version, content,
1002                            serviceContext);
1003            }
1004    
1005            public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1006                    long groupId, java.lang.String articleId, double version,
1007                    java.util.Locale locale, java.lang.String title,
1008                    java.lang.String description, java.lang.String content)
1009                    throws com.liferay.portal.kernel.exception.PortalException,
1010                            com.liferay.portal.kernel.exception.SystemException {
1011                    return getService()
1012                                       .updateArticleTranslation(groupId, articleId, version,
1013                            locale, title, description, content);
1014            }
1015    
1016            public static void updateAsset(long userId,
1017                    com.liferay.portlet.journal.model.JournalArticle article,
1018                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
1019                    long[] assetLinkEntryIds)
1020                    throws com.liferay.portal.kernel.exception.PortalException,
1021                            com.liferay.portal.kernel.exception.SystemException {
1022                    getService()
1023                            .updateAsset(userId, article, assetCategoryIds, assetTagNames,
1024                            assetLinkEntryIds);
1025            }
1026    
1027            public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1028                    long groupId, java.lang.String articleId, double version,
1029                    java.lang.String content)
1030                    throws com.liferay.portal.kernel.exception.PortalException,
1031                            com.liferay.portal.kernel.exception.SystemException {
1032                    return getService().updateContent(groupId, articleId, version, content);
1033            }
1034    
1035            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1036                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
1037                    int status, java.lang.String articleURL,
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                                       .updateStatus(userId, article, status, articleURL,
1043                            serviceContext);
1044            }
1045    
1046            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1047                    long userId, long classPK, int status,
1048                    com.liferay.portal.service.ServiceContext serviceContext)
1049                    throws com.liferay.portal.kernel.exception.PortalException,
1050                            com.liferay.portal.kernel.exception.SystemException {
1051                    return getService().updateStatus(userId, classPK, status, serviceContext);
1052            }
1053    
1054            public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1055                    long userId, long groupId, java.lang.String articleId, double version,
1056                    int status, java.lang.String articleURL,
1057                    com.liferay.portal.service.ServiceContext serviceContext)
1058                    throws com.liferay.portal.kernel.exception.PortalException,
1059                            com.liferay.portal.kernel.exception.SystemException {
1060                    return getService()
1061                                       .updateStatus(userId, groupId, articleId, version, status,
1062                            articleURL, serviceContext);
1063            }
1064    
1065            public static void updateTemplateId(long groupId, long classNameId,
1066                    java.lang.String oldTemplateId, java.lang.String newTemplateId)
1067                    throws com.liferay.portal.kernel.exception.SystemException {
1068                    getService()
1069                            .updateTemplateId(groupId, classNameId, oldTemplateId, newTemplateId);
1070            }
1071    
1072            public static JournalArticleLocalService getService() {
1073                    if (_service == null) {
1074                            _service = (JournalArticleLocalService)PortalBeanLocatorUtil.locate(JournalArticleLocalService.class.getName());
1075    
1076                            ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1077                                    "_service");
1078                            MethodCache.remove(JournalArticleLocalService.class);
1079                    }
1080    
1081                    return _service;
1082            }
1083    
1084            public void setService(JournalArticleLocalService service) {
1085                    MethodCache.remove(JournalArticleLocalService.class);
1086    
1087                    _service = service;
1088    
1089                    ReferenceRegistry.registerReference(JournalArticleLocalServiceUtil.class,
1090                            "_service");
1091                    MethodCache.remove(JournalArticleLocalService.class);
1092            }
1093    
1094            private static JournalArticleLocalService _service;
1095    }