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