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.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link JournalArticleLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see JournalArticleLocalService
024     * @generated
025     */
026    public class JournalArticleLocalServiceWrapper
027            implements JournalArticleLocalService,
028                    ServiceWrapper<JournalArticleLocalService> {
029            public JournalArticleLocalServiceWrapper(
030                    JournalArticleLocalService journalArticleLocalService) {
031                    _journalArticleLocalService = journalArticleLocalService;
032            }
033    
034            /**
035            * Adds the journal article to the database. Also notifies the appropriate model listeners.
036            *
037            * @param journalArticle the journal article
038            * @return the journal article that was added
039            * @throws SystemException if a system exception occurred
040            */
041            @Override
042            public com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
043                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _journalArticleLocalService.addJournalArticle(journalArticle);
046            }
047    
048            /**
049            * Creates a new journal article with the primary key. Does not add the journal article to the database.
050            *
051            * @param id the primary key for the new journal article
052            * @return the new journal article
053            */
054            @Override
055            public com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
056                    long id) {
057                    return _journalArticleLocalService.createJournalArticle(id);
058            }
059    
060            /**
061            * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param id the primary key of the journal article
064            * @return the journal article that was removed
065            * @throws PortalException if a journal article with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            @Override
069            public com.liferay.portlet.journal.model.JournalArticle deleteJournalArticle(
070                    long id)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return _journalArticleLocalService.deleteJournalArticle(id);
074            }
075    
076            /**
077            * Deletes the journal article from the database. Also notifies the appropriate model listeners.
078            *
079            * @param journalArticle the journal article
080            * @return the journal article that was removed
081            * @throws SystemException if a system exception occurred
082            */
083            @Override
084            public com.liferay.portlet.journal.model.JournalArticle deleteJournalArticle(
085                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return _journalArticleLocalService.deleteJournalArticle(journalArticle);
088            }
089    
090            @Override
091            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
092                    return _journalArticleLocalService.dynamicQuery();
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns the matching rows.
097            *
098            * @param dynamicQuery the dynamic query
099            * @return the matching rows
100            * @throws SystemException if a system exception occurred
101            */
102            @Override
103            @SuppressWarnings("rawtypes")
104            public java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _journalArticleLocalService.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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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            @Override
124            @SuppressWarnings("rawtypes")
125            public java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return _journalArticleLocalService.dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @Override
146            @SuppressWarnings("rawtypes")
147            public java.util.List dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149                    int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _journalArticleLocalService.dynamicQuery(dynamicQuery, start,
153                            end, orderByComparator);
154            }
155    
156            /**
157            * Returns the number of rows that match the dynamic query.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the number of rows that match the dynamic query
161            * @throws SystemException if a system exception occurred
162            */
163            @Override
164            public long dynamicQueryCount(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _journalArticleLocalService.dynamicQueryCount(dynamicQuery);
168            }
169    
170            /**
171            * Returns the number of rows that match the dynamic query.
172            *
173            * @param dynamicQuery the dynamic query
174            * @param projection the projection to apply to the query
175            * @return the number of rows that match the dynamic query
176            * @throws SystemException if a system exception occurred
177            */
178            @Override
179            public long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _journalArticleLocalService.dynamicQueryCount(dynamicQuery,
184                            projection);
185            }
186    
187            @Override
188            public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticle(
189                    long id) throws com.liferay.portal.kernel.exception.SystemException {
190                    return _journalArticleLocalService.fetchJournalArticle(id);
191            }
192    
193            /**
194            * Returns the journal article with the matching UUID and company.
195            *
196            * @param uuid the journal article's UUID
197            * @param companyId the primary key of the company
198            * @return the matching journal article, or <code>null</code> if a matching journal article could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Override
202            public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticleByUuidAndCompanyId(
203                    java.lang.String uuid, long companyId)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _journalArticleLocalService.fetchJournalArticleByUuidAndCompanyId(uuid,
206                            companyId);
207            }
208    
209            /**
210            * Returns the journal article matching the UUID and group.
211            *
212            * @param uuid the journal article's UUID
213            * @param groupId the primary key of the group
214            * @return the matching journal article, or <code>null</code> if a matching journal article could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            @Override
218            public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticleByUuidAndGroupId(
219                    java.lang.String uuid, long groupId)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _journalArticleLocalService.fetchJournalArticleByUuidAndGroupId(uuid,
222                            groupId);
223            }
224    
225            /**
226            * Returns the journal article with the primary key.
227            *
228            * @param id the primary key of the journal article
229            * @return the journal article
230            * @throws PortalException if a journal article with the primary key could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
235                    long id)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _journalArticleLocalService.getJournalArticle(id);
239            }
240    
241            @Override
242            public com.liferay.portal.model.PersistedModel getPersistedModel(
243                    java.io.Serializable primaryKeyObj)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _journalArticleLocalService.getPersistedModel(primaryKeyObj);
247            }
248    
249            /**
250            * Returns the journal article with the matching UUID and company.
251            *
252            * @param uuid the journal article's UUID
253            * @param companyId the primary key of the company
254            * @return the matching journal article
255            * @throws PortalException if a matching journal article could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndCompanyId(
260                    java.lang.String uuid, long companyId)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _journalArticleLocalService.getJournalArticleByUuidAndCompanyId(uuid,
264                            companyId);
265            }
266    
267            /**
268            * Returns the journal article matching the UUID and group.
269            *
270            * @param uuid the journal article's UUID
271            * @param groupId the primary key of the group
272            * @return the matching journal article
273            * @throws PortalException if a matching journal article could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            @Override
277            public com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
278                    java.lang.String uuid, long groupId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _journalArticleLocalService.getJournalArticleByUuidAndGroupId(uuid,
282                            groupId);
283            }
284    
285            /**
286            * Returns a range of all the journal articles.
287            *
288            * <p>
289            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
290            * </p>
291            *
292            * @param start the lower bound of the range of journal articles
293            * @param end the upper bound of the range of journal articles (not inclusive)
294            * @return the range of journal articles
295            * @throws SystemException if a system exception occurred
296            */
297            @Override
298            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
299                    int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _journalArticleLocalService.getJournalArticles(start, end);
302            }
303    
304            /**
305            * Returns the number of journal articles.
306            *
307            * @return the number of journal articles
308            * @throws SystemException if a system exception occurred
309            */
310            @Override
311            public int getJournalArticlesCount()
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _journalArticleLocalService.getJournalArticlesCount();
314            }
315    
316            /**
317            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
318            *
319            * @param journalArticle the journal article
320            * @return the journal article that was updated
321            * @throws SystemException if a system exception occurred
322            */
323            @Override
324            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
325                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _journalArticleLocalService.updateJournalArticle(journalArticle);
328            }
329    
330            /**
331            * Returns the Spring bean ID for this bean.
332            *
333            * @return the Spring bean ID for this bean
334            */
335            @Override
336            public java.lang.String getBeanIdentifier() {
337                    return _journalArticleLocalService.getBeanIdentifier();
338            }
339    
340            /**
341            * Sets the Spring bean ID for this bean.
342            *
343            * @param beanIdentifier the Spring bean ID for this bean
344            */
345            @Override
346            public void setBeanIdentifier(java.lang.String beanIdentifier) {
347                    _journalArticleLocalService.setBeanIdentifier(beanIdentifier);
348            }
349    
350            /**
351            * Adds a web content article with additional parameters.
352            *
353            * @param userId the primary key of the web content article's creator/owner
354            * @param groupId the primary key of the web content article's group
355            * @param folderId the primary key of the web content article folder
356            * @param classNameId the primary key of the DDMStructure class if the web
357            content article is related to a DDM structure, the primary key of
358            the class name associated with the article, or {@link
359            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
360            * @param classPK the primary key of the DDM structure, if the primary key
361            of the DDMStructure class is given as the
362            <code>classNameId</code> parameter, the primary key of the class
363            associated with the web content article, or <code>0</code>
364            otherwise
365            * @param articleId the primary key of the web content article
366            * @param autoArticleId whether to auto generate the web content article ID
367            * @param version the web content article's version
368            * @param titleMap the web content article's locales and localized titles
369            * @param descriptionMap the web content article's locales and localized
370            descriptions
371            * @param content the HTML content wrapped in XML. For more information,
372            see the content example in the class description for {@link
373            JournalArticleLocalServiceImpl}.
374            * @param type the structure's type, if the web content article is related
375            to a DDM structure. For more information, see {@link
376            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
377            * @param ddmStructureKey the primary key of the web content article's DDM
378            structure, if the article is related to a DDM structure, or
379            <code>null</code> otherwise
380            * @param ddmTemplateKey the primary key of the web content article's DDM
381            template (optionally <code>null</code>). If the article is
382            related to a DDM structure, the template's structure must match
383            it.
384            * @param layoutUuid the unique string identifying the web content
385            article's display page
386            * @param displayDateMonth the month the web content article is set to
387            display
388            * @param displayDateDay the calendar day the web content article is set to
389            display
390            * @param displayDateYear the year the web content article is set to
391            display
392            * @param displayDateHour the hour the web content article is set to
393            display
394            * @param displayDateMinute the minute the web content article is set to
395            display
396            * @param expirationDateMonth the month the web content article is set to
397            expire
398            * @param expirationDateDay the calendar day the web content article is set
399            to expire
400            * @param expirationDateYear the year the web content article is set to
401            expire
402            * @param expirationDateHour the hour the web content article is set to
403            expire
404            * @param expirationDateMinute the minute the web content article is set to
405            expire
406            * @param neverExpire whether the web content article is not set to auto
407            expire
408            * @param reviewDateMonth the month the web content article is set for
409            review
410            * @param reviewDateDay the calendar day the web content article is set for
411            review
412            * @param reviewDateYear the year the web content article is set for review
413            * @param reviewDateHour the hour the web content article is set for review
414            * @param reviewDateMinute the minute the web content article is set for
415            review
416            * @param neverReview whether the web content article is not set for review
417            * @param indexable whether the web content article is searchable
418            * @param smallImage whether the web content article has a small image
419            * @param smallImageURL the web content article's small image URL
420            * @param smallImageFile the web content article's small image file
421            * @param images the web content's images
422            * @param articleURL the web content article's accessible URL
423            * @param serviceContext the service context to be applied. Can set the
424            UUID, creation date, modification date, expando bridge
425            attributes, guest permissions, group permissions, asset category
426            IDs, asset tag names, asset link entry IDs, the "urlTitle"
427            attribute, and workflow actions for the web content article. Can
428            also set whether to add the default guest and group permissions.
429            * @return the web content article
430            * @throws PortalException if a portal exception occurred
431            * @throws SystemException if a system exception occurred
432            */
433            @Override
434            public com.liferay.portlet.journal.model.JournalArticle addArticle(
435                    long userId, long groupId, long folderId, long classNameId,
436                    long classPK, java.lang.String articleId, boolean autoArticleId,
437                    double version,
438                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
439                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
440                    java.lang.String content, java.lang.String type,
441                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
442                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
443                    int displayDateYear, int displayDateHour, int displayDateMinute,
444                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
445                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
446                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
447                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
448                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
449                    java.io.File smallImageFile,
450                    java.util.Map<java.lang.String, byte[]> images,
451                    java.lang.String articleURL,
452                    com.liferay.portal.service.ServiceContext serviceContext)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _journalArticleLocalService.addArticle(userId, groupId,
456                            folderId, classNameId, classPK, articleId, autoArticleId, version,
457                            titleMap, descriptionMap, content, type, ddmStructureKey,
458                            ddmTemplateKey, layoutUuid, displayDateMonth, displayDateDay,
459                            displayDateYear, displayDateHour, displayDateMinute,
460                            expirationDateMonth, expirationDateDay, expirationDateYear,
461                            expirationDateHour, expirationDateMinute, neverExpire,
462                            reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
463                            reviewDateMinute, neverReview, indexable, smallImage,
464                            smallImageURL, smallImageFile, images, articleURL, serviceContext);
465            }
466    
467            /**
468            * Adds a web content article.
469            *
470            * @param userId the primary key of the web content article's creator/owner
471            * @param groupId the primary key of the web content article's group
472            * @param folderId the primary key of the web content article folder
473            * @param titleMap the web content article's locales and localized titles
474            * @param descriptionMap the web content article's locales and localized
475            descriptions
476            * @param content the HTML content wrapped in XML. For more information,
477            see the content example in the class description for {@link
478            JournalArticleLocalServiceImpl}.
479            * @param ddmStructureKey the primary key of the web content article's DDM
480            structure, if the article is related to a DDM structure, or
481            <code>null</code> otherwise
482            * @param ddmTemplateKey the primary key of the web content article's DDM
483            template (optionally <code>null</code>). If the article is
484            related to a DDM structure, the template's structure must match
485            it.
486            * @param serviceContext the service context to be applied. Can set the
487            UUID, creation date, modification date, expando bridge
488            attributes, guest permissions, group permissions, asset category
489            IDs, asset tag names, asset link entry IDs, the "urlTitle"
490            attribute, and workflow actions for the web content article. Can
491            also set whether to add the default guest and group permissions.
492            * @return the web content article
493            * @throws PortalException if a portal exception occurred
494            * @throws SystemException if a system exception occurred
495            */
496            @Override
497            public com.liferay.portlet.journal.model.JournalArticle addArticle(
498                    long userId, long groupId, long folderId,
499                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
500                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
501                    java.lang.String content, java.lang.String ddmStructureKey,
502                    java.lang.String ddmTemplateKey,
503                    com.liferay.portal.service.ServiceContext serviceContext)
504                    throws com.liferay.portal.kernel.exception.PortalException,
505                            com.liferay.portal.kernel.exception.SystemException {
506                    return _journalArticleLocalService.addArticle(userId, groupId,
507                            folderId, titleMap, descriptionMap, content, ddmStructureKey,
508                            ddmTemplateKey, serviceContext);
509            }
510    
511            /**
512            * Adds the resources to the web content article.
513            *
514            * @param article the web content article
515            * @param addGroupPermissions whether to add group permissions
516            * @param addGuestPermissions whether to add guest permissions
517            * @throws PortalException if no portal actions could be found associated
518            with the web content article or if a portal exception occurred
519            * @throws SystemException if a system exception occurred
520            */
521            @Override
522            public void addArticleResources(
523                    com.liferay.portlet.journal.model.JournalArticle article,
524                    boolean addGroupPermissions, boolean addGuestPermissions)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException {
527                    _journalArticleLocalService.addArticleResources(article,
528                            addGroupPermissions, addGuestPermissions);
529            }
530    
531            /**
532            * Adds the model resources with the permissions to the web content article.
533            *
534            * @param article the web content article to add resources to
535            * @param groupPermissions the group permissions to be added
536            * @param guestPermissions the guest permissions to be added
537            * @throws PortalException if a portal exception occurred
538            * @throws SystemException if a system exception occurred
539            */
540            @Override
541            public void addArticleResources(
542                    com.liferay.portlet.journal.model.JournalArticle article,
543                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
544                    throws com.liferay.portal.kernel.exception.PortalException,
545                            com.liferay.portal.kernel.exception.SystemException {
546                    _journalArticleLocalService.addArticleResources(article,
547                            groupPermissions, guestPermissions);
548            }
549    
550            /**
551            * Adds the resources to the most recently created web content article.
552            *
553            * @param groupId the primary key of the web content article's group
554            * @param articleId the primary key of the web content article
555            * @param addGroupPermissions whether to add group permissions
556            * @param addGuestPermissions whether to add guest permissions
557            * @throws PortalException if a portal exception occurred
558            * @throws SystemException if a system exception occurred
559            */
560            @Override
561            public void addArticleResources(long groupId, java.lang.String articleId,
562                    boolean addGroupPermissions, boolean addGuestPermissions)
563                    throws com.liferay.portal.kernel.exception.PortalException,
564                            com.liferay.portal.kernel.exception.SystemException {
565                    _journalArticleLocalService.addArticleResources(groupId, articleId,
566                            addGroupPermissions, addGuestPermissions);
567            }
568    
569            /**
570            * Adds the resources with the permissions to the most recently created web
571            * content article.
572            *
573            * @param groupId the primary key of the web content article's group
574            * @param articleId the primary key of the web content article
575            * @param groupPermissions the group permissions to be added
576            * @param guestPermissions the guest permissions to be added
577            * @throws PortalException if a portal exception occurred
578            * @throws SystemException if a system exception occurred
579            */
580            @Override
581            public void addArticleResources(long groupId, java.lang.String articleId,
582                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
583                    throws com.liferay.portal.kernel.exception.PortalException,
584                            com.liferay.portal.kernel.exception.SystemException {
585                    _journalArticleLocalService.addArticleResources(groupId, articleId,
586                            groupPermissions, guestPermissions);
587            }
588    
589            /**
590            * Returns the web content article with the group, article ID, and version.
591            * This method checks for the article's resource primary key and, if not
592            * found, creates a new one.
593            *
594            * @param groupId the primary key of the web content article's group
595            * @param articleId the primary key of the web content article
596            * @param version the web content article's version
597            * @return the matching web content article
598            * @throws PortalException if a matching web content article could not be
599            found
600            * @throws SystemException if a system exception occurred
601            */
602            @Override
603            public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
604                    long groupId, java.lang.String articleId, double version)
605                    throws com.liferay.portal.kernel.exception.PortalException,
606                            com.liferay.portal.kernel.exception.SystemException {
607                    return _journalArticleLocalService.checkArticleResourcePrimKey(groupId,
608                            articleId, version);
609            }
610    
611            /**
612            * Checks all web content articles by handling their expirations and sending
613            * review notifications based on their current workflow.
614            *
615            * @throws PortalException if a portal exception occurred
616            * @throws SystemException if a system exception occurred
617            */
618            @Override
619            public void checkArticles()
620                    throws com.liferay.portal.kernel.exception.PortalException,
621                            com.liferay.portal.kernel.exception.SystemException {
622                    _journalArticleLocalService.checkArticles();
623            }
624    
625            /**
626            * Checks the web content article matching the group, article ID, and
627            * version, replacing escaped newline and return characters with non-escaped
628            * newline and return characters.
629            *
630            * @param groupId the primary key of the web content article's group
631            * @param articleId the primary key of the web content article
632            * @param version the web content article's version
633            * @throws PortalException if a matching web content article could not be
634            found
635            * @throws SystemException if a system exception occurred
636            */
637            @Override
638            public void checkNewLine(long groupId, java.lang.String articleId,
639                    double version)
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    _journalArticleLocalService.checkNewLine(groupId, articleId, version);
643            }
644    
645            /**
646            * Checks the web content article matching the group, article ID, and
647            * version for an associated structure. If no structure is associated,
648            * return; otherwise check that the article and structure match.
649            *
650            * @param groupId the primary key of the web content article's group
651            * @param articleId the primary key of the web content article
652            * @param version the web content article's version
653            * @throws PortalException if a matching web content article could not be
654            found, if the article's structure does not match it, or if a
655            portal exception occurred
656            * @throws SystemException if a system exception occurred
657            */
658            @Override
659            public void checkStructure(long groupId, java.lang.String articleId,
660                    double version)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException {
663                    _journalArticleLocalService.checkStructure(groupId, articleId, version);
664            }
665    
666            /**
667            * Copies the web content article matching the group, article ID, and
668            * version. This method creates a new article, extracting all the values
669            * from the old one and updating its article ID.
670            *
671            * @param userId the primary key of the web content article's creator/owner
672            * @param groupId the primary key of the web content article's group
673            * @param oldArticleId the primary key of the old web content article
674            * @param newArticleId the primary key of the new web content article
675            * @param autoArticleId whether to auto-generate the web content article ID
676            * @param version the web content article's version
677            * @return the new web content article
678            * @throws PortalException if a matching web content article could not be
679            found or if a portal exception occurred
680            * @throws SystemException if a system exception occurred
681            */
682            @Override
683            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
684                    long userId, long groupId, java.lang.String oldArticleId,
685                    java.lang.String newArticleId, boolean autoArticleId, double version)
686                    throws com.liferay.portal.kernel.exception.PortalException,
687                            com.liferay.portal.kernel.exception.SystemException {
688                    return _journalArticleLocalService.copyArticle(userId, groupId,
689                            oldArticleId, newArticleId, autoArticleId, version);
690            }
691    
692            /**
693            * Deletes the web content article and its resources.
694            *
695            * @param article the web content article
696            * @throws PortalException if a portal exception occurred
697            * @throws SystemException if a system exception occurred
698            */
699            @Override
700            public void deleteArticle(
701                    com.liferay.portlet.journal.model.JournalArticle article)
702                    throws com.liferay.portal.kernel.exception.PortalException,
703                            com.liferay.portal.kernel.exception.SystemException {
704                    _journalArticleLocalService.deleteArticle(article);
705            }
706    
707            /**
708            * Deletes the web content article and its resources, optionally sending
709            * email notifying denial of the article if it had not yet been approved.
710            *
711            * @param article the web content article
712            * @param articleURL the web content article's accessible URL to include in
713            email notifications (optionally <code>null</code>)
714            * @param serviceContext the service context to be applied (optionally
715            <code>null</code>). Can set the portlet preferences that include
716            email information to notify recipients of the unapproved web
717            content's denial.
718            * @throws PortalException if a portal exception occurred
719            * @throws SystemException if a system exception occurred
720            */
721            @Override
722            public void deleteArticle(
723                    com.liferay.portlet.journal.model.JournalArticle article,
724                    java.lang.String articleURL,
725                    com.liferay.portal.service.ServiceContext serviceContext)
726                    throws com.liferay.portal.kernel.exception.PortalException,
727                            com.liferay.portal.kernel.exception.SystemException {
728                    _journalArticleLocalService.deleteArticle(article, articleURL,
729                            serviceContext);
730            }
731    
732            /**
733            * Deletes the web content article and its resources matching the group,
734            * article ID, and version, optionally sending email notifying denial of the
735            * web content article if it had not yet been approved.
736            *
737            * @param groupId the primary key of the web content article's group
738            * @param articleId the primary key of the web content article
739            * @param version the web content article's version
740            * @param articleURL the web content article's accessible URL
741            * @param serviceContext the service context to be applied. Can set the
742            portlet preferences that include email information to notify
743            recipients of the unapproved web content article's denial.
744            * @throws PortalException if a matching web content article could not be
745            found or if a portal exception occurred
746            * @throws SystemException if a system exception occurred
747            */
748            @Override
749            public void deleteArticle(long groupId, java.lang.String articleId,
750                    double version, java.lang.String articleURL,
751                    com.liferay.portal.service.ServiceContext serviceContext)
752                    throws com.liferay.portal.kernel.exception.PortalException,
753                            com.liferay.portal.kernel.exception.SystemException {
754                    _journalArticleLocalService.deleteArticle(groupId, articleId, version,
755                            articleURL, serviceContext);
756            }
757    
758            /**
759            * Deletes all web content articles and their resources matching the group
760            * and article ID, optionally sending email notifying denial of article if
761            * it had not yet been approved.
762            *
763            * @param groupId the primary key of the web content article's group
764            * @param articleId the primary key of the web content article
765            * @param serviceContext the service context to be applied. Can set the
766            portlet preferences that include email information to notify
767            recipients of the unapproved web content article's denial.
768            * @throws PortalException if a portal exception occurred
769            * @throws SystemException if a system exception occurred
770            */
771            @Override
772            public void deleteArticle(long groupId, java.lang.String articleId,
773                    com.liferay.portal.service.ServiceContext serviceContext)
774                    throws com.liferay.portal.kernel.exception.PortalException,
775                            com.liferay.portal.kernel.exception.SystemException {
776                    _journalArticleLocalService.deleteArticle(groupId, articleId,
777                            serviceContext);
778            }
779    
780            /**
781            * Deletes all the group's web content articles and resources.
782            *
783            * @param groupId the primary key of the web content article's group
784            * @throws PortalException if a portal exception occurred
785            * @throws SystemException if a system exception occurred
786            */
787            @Override
788            public void deleteArticles(long groupId)
789                    throws com.liferay.portal.kernel.exception.PortalException,
790                            com.liferay.portal.kernel.exception.SystemException {
791                    _journalArticleLocalService.deleteArticles(groupId);
792            }
793    
794            /**
795            * Deletes all the group's web content articles and resources in the folder,
796            * including recycled articles.
797            *
798            * @param groupId the primary key of the web content article's group
799            * @param folderId the primary key of the web content article folder
800            * @throws PortalException if a portal exception occurred
801            * @throws SystemException if a system exception occurred
802            */
803            @Override
804            public void deleteArticles(long groupId, long folderId)
805                    throws com.liferay.portal.kernel.exception.PortalException,
806                            com.liferay.portal.kernel.exception.SystemException {
807                    _journalArticleLocalService.deleteArticles(groupId, folderId);
808            }
809    
810            /**
811            * Deletes all the group's web content articles and resources in the folder,
812            * optionally including recycled articles.
813            *
814            * @param groupId the primary key of the web content article's group
815            * @param folderId the primary key of the web content article folder
816            * @param includeTrashedEntries whether to include recycled web content
817            articles
818            * @throws PortalException if a portal exception occurred
819            * @throws SystemException if a system exception occurred
820            */
821            @Override
822            public void deleteArticles(long groupId, long folderId,
823                    boolean includeTrashedEntries)
824                    throws com.liferay.portal.kernel.exception.PortalException,
825                            com.liferay.portal.kernel.exception.SystemException {
826                    _journalArticleLocalService.deleteArticles(groupId, folderId,
827                            includeTrashedEntries);
828            }
829    
830            /**
831            * Deletes the layout's association with the web content articles for the
832            * group.
833            *
834            * @param groupId the primary key of the web content article's group
835            * @param layoutUuid the unique string identifying the web content
836            article's display page
837            * @throws SystemException if a system exception occurred
838            */
839            @Override
840            public void deleteLayoutArticleReferences(long groupId,
841                    java.lang.String layoutUuid)
842                    throws com.liferay.portal.kernel.exception.SystemException {
843                    _journalArticleLocalService.deleteLayoutArticleReferences(groupId,
844                            layoutUuid);
845            }
846    
847            /**
848            * Expires the web content article matching the group, article ID, and
849            * version.
850            *
851            * @param userId the primary key of the user updating the web content
852            article
853            * @param groupId the primary key of the web content article's group
854            * @param articleId the primary key of the web content article
855            * @param version the web content article's version
856            * @param articleURL the web content article's accessible URL
857            * @param serviceContext the service context to be applied. Can set the
858            modification date, status date, portlet preferences, and can set
859            whether to add the default command update for the web content
860            article. With respect to social activities, by setting the
861            service context's command to {@link
862            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
863            is considered a web content update activity; otherwise it is
864            considered a web content add activity.
865            * @return the web content article
866            * @throws PortalException if a matching web content article could not be
867            found or if a portal exception occurred
868            * @throws SystemException if a system exception occurred
869            */
870            @Override
871            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
872                    long userId, long groupId, java.lang.String articleId, double version,
873                    java.lang.String articleURL,
874                    com.liferay.portal.service.ServiceContext serviceContext)
875                    throws com.liferay.portal.kernel.exception.PortalException,
876                            com.liferay.portal.kernel.exception.SystemException {
877                    return _journalArticleLocalService.expireArticle(userId, groupId,
878                            articleId, version, articleURL, serviceContext);
879            }
880    
881            /**
882            * Expires the web content article matching the group and article ID,
883            * expiring all of its versions if the
884            * <code>journal.article.expire.all.versions</code> portal property is
885            * <code>true</code>, otherwise expiring only its latest approved version.
886            *
887            * @param userId the primary key of the user updating the web content
888            article
889            * @param groupId the primary key of the web content article's group
890            * @param articleId the primary key of the web content article
891            * @param articleURL the web content article's accessible URL
892            * @param serviceContext the service context to be applied. Can set the
893            modification date, status date, portlet preferences, and can set
894            whether to add the default command update for the web content
895            article. With respect to social activities, by setting the
896            service context's command to {@link
897            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
898            is considered a web content update activity; otherwise it is
899            considered a web content add activity.
900            * @throws PortalException if a matching web content article could not be
901            found or if a portal exception occurred
902            * @throws SystemException if a system exception occurred
903            */
904            @Override
905            public void expireArticle(long userId, long groupId,
906                    java.lang.String articleId, java.lang.String articleURL,
907                    com.liferay.portal.service.ServiceContext serviceContext)
908                    throws com.liferay.portal.kernel.exception.PortalException,
909                            com.liferay.portal.kernel.exception.SystemException {
910                    _journalArticleLocalService.expireArticle(userId, groupId, articleId,
911                            articleURL, serviceContext);
912            }
913    
914            @Override
915            public com.liferay.portlet.journal.model.JournalArticle fetchArticle(
916                    long groupId, java.lang.String articleId, double version)
917                    throws com.liferay.portal.kernel.exception.SystemException {
918                    return _journalArticleLocalService.fetchArticle(groupId, articleId,
919                            version);
920            }
921    
922            @Override
923            public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle(
924                    long resourcePrimKey, int status, boolean preferApproved)
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey,
927                            status, preferApproved);
928            }
929    
930            @Override
931            public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle(
932                    long groupId, java.lang.String articleId, int status)
933                    throws com.liferay.portal.kernel.exception.SystemException {
934                    return _journalArticleLocalService.fetchLatestArticle(groupId,
935                            articleId, status);
936            }
937    
938            @Override
939            public com.liferay.portlet.journal.model.JournalArticle fetchLatestIndexableArticle(
940                    long resourcePrimKey)
941                    throws com.liferay.portal.kernel.exception.SystemException {
942                    return _journalArticleLocalService.fetchLatestIndexableArticle(resourcePrimKey);
943            }
944    
945            /**
946            * Returns the web content article with the ID.
947            *
948            * @param id the primary key of the web content article
949            * @return the web content article with the ID
950            * @throws PortalException if a matching web content article could not be
951            found
952            * @throws SystemException if a system exception occurred
953            */
954            @Override
955            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
956                    throws com.liferay.portal.kernel.exception.PortalException,
957                            com.liferay.portal.kernel.exception.SystemException {
958                    return _journalArticleLocalService.getArticle(id);
959            }
960    
961            /**
962            * Returns the latest approved web content article, or the latest unapproved
963            * article if none are approved. Both approved and unapproved articles must
964            * match the group and article ID.
965            *
966            * @param groupId the primary key of the web content article's group
967            * @param articleId the primary key of the web content article
968            * @return the matching web content article
969            * @throws PortalException if a matching web content article could not be
970            found
971            * @throws SystemException if a system exception occurred
972            */
973            @Override
974            public com.liferay.portlet.journal.model.JournalArticle getArticle(
975                    long groupId, java.lang.String articleId)
976                    throws com.liferay.portal.kernel.exception.PortalException,
977                            com.liferay.portal.kernel.exception.SystemException {
978                    return _journalArticleLocalService.getArticle(groupId, articleId);
979            }
980    
981            /**
982            * Returns the web content article matching the group, article ID, and
983            * version.
984            *
985            * @param groupId the primary key of the web content article's group
986            * @param articleId the primary key of the web content article
987            * @param version the web content article's version
988            * @return the matching web content article
989            * @throws PortalException if a matching web content article could not be
990            found
991            * @throws SystemException if a system exception occurred
992            */
993            @Override
994            public com.liferay.portlet.journal.model.JournalArticle getArticle(
995                    long groupId, java.lang.String articleId, double version)
996                    throws com.liferay.portal.kernel.exception.PortalException,
997                            com.liferay.portal.kernel.exception.SystemException {
998                    return _journalArticleLocalService.getArticle(groupId, articleId,
999                            version);
1000            }
1001    
1002            /**
1003            * Returns the web content article matching the group, class name, and class
1004            * PK.
1005            *
1006            * @param groupId the primary key of the web content article's group
1007            * @param className the DDMStructure class name if the web content article
1008            is related to a DDM structure, the primary key of the class name
1009            associated with the article, or {@link
1010            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1011            * @param classPK the primary key of the DDM structure, if the the
1012            DDMStructure class name is given as the <code>className</code>
1013            parameter, the primary key of the class associated with the web
1014            content article, or <code>0</code> otherwise
1015            * @return the matching web content article
1016            * @throws PortalException if a matching web content article could not be
1017            found
1018            * @throws SystemException if a system exception occurred
1019            */
1020            @Override
1021            public com.liferay.portlet.journal.model.JournalArticle getArticle(
1022                    long groupId, java.lang.String className, long classPK)
1023                    throws com.liferay.portal.kernel.exception.PortalException,
1024                            com.liferay.portal.kernel.exception.SystemException {
1025                    return _journalArticleLocalService.getArticle(groupId, className,
1026                            classPK);
1027            }
1028    
1029            /**
1030            * Returns the latest web content article that is approved, or the latest
1031            * unapproved article if none are approved. Both approved and unapproved
1032            * articles must match the group and URL title.
1033            *
1034            * @param groupId the primary key of the web content article's group
1035            * @param urlTitle the web content article's accessible URL title
1036            * @return the matching web content article
1037            * @throws PortalException if a portal exception occurred
1038            * @throws SystemException if a system exception occurred
1039            */
1040            @Override
1041            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
1042                    long groupId, java.lang.String urlTitle)
1043                    throws com.liferay.portal.kernel.exception.PortalException,
1044                            com.liferay.portal.kernel.exception.SystemException {
1045                    return _journalArticleLocalService.getArticleByUrlTitle(groupId,
1046                            urlTitle);
1047            }
1048    
1049            /**
1050            * Returns the web content associated with the web content article and DDM
1051            * template.
1052            *
1053            * @param article the web content article
1054            * @param ddmTemplateKey the primary key of the web content article's DDM
1055            template (optionally <code>null</code>). If the article is
1056            related to a DDM structure, the template's structure must match
1057            it.
1058            * @param viewMode the mode in which the web content is being viewed
1059            * @param languageId the primary key of the language translation to get
1060            * @param themeDisplay the theme display
1061            * @return the web content associated with the DDM template
1062            * @throws PortalException if a matching DDM template could not be found or
1063            if a portal exception occurred
1064            * @throws SystemException if a system exception occurred
1065            */
1066            @Override
1067            public java.lang.String getArticleContent(
1068                    com.liferay.portlet.journal.model.JournalArticle article,
1069                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1070                    java.lang.String languageId,
1071                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1072                    throws com.liferay.portal.kernel.exception.PortalException,
1073                            com.liferay.portal.kernel.exception.SystemException {
1074                    return _journalArticleLocalService.getArticleContent(article,
1075                            ddmTemplateKey, viewMode, languageId, themeDisplay);
1076            }
1077    
1078            /**
1079            * Returns the web content matching the group, article ID, and version, and
1080            * associated with the DDM template.
1081            *
1082            * @param groupId the primary key of the web content article's group
1083            * @param articleId the primary key of the web content article
1084            * @param version the web content article's version
1085            * @param viewMode the mode in which the web content is being viewed
1086            * @param ddmTemplateKey the primary key of the web content article's DDM
1087            template (optionally <code>null</code>). If the article is
1088            related to a DDM structure, the template's structure must match
1089            it.
1090            * @param languageId the primary key of the language translation to get
1091            * @param themeDisplay the theme display
1092            * @return the matching web content
1093            * @throws PortalException if a matching web content article or DDM template
1094            could not be found, or if a portal exception occurred
1095            * @throws SystemException if a system exception occurred
1096            */
1097            @Override
1098            public java.lang.String getArticleContent(long groupId,
1099                    java.lang.String articleId, double version, java.lang.String viewMode,
1100                    java.lang.String ddmTemplateKey, java.lang.String languageId,
1101                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1102                    throws com.liferay.portal.kernel.exception.PortalException,
1103                            com.liferay.portal.kernel.exception.SystemException {
1104                    return _journalArticleLocalService.getArticleContent(groupId,
1105                            articleId, version, viewMode, ddmTemplateKey, languageId,
1106                            themeDisplay);
1107            }
1108    
1109            /**
1110            * Returns the web content matching the group, article ID, and version.
1111            *
1112            * @param groupId the primary key of the web content article's group
1113            * @param articleId the primary key of the web content article
1114            * @param version the web content article's version
1115            * @param viewMode the mode in which the web content is being viewed
1116            * @param languageId the primary key of the language translation to get
1117            * @param themeDisplay the theme display
1118            * @return the matching web content
1119            * @throws PortalException if a matching web content article or DDM template
1120            could not be found, or if a portal exception occurred
1121            * @throws SystemException if a system exception occurred
1122            */
1123            @Override
1124            public java.lang.String getArticleContent(long groupId,
1125                    java.lang.String articleId, double version, java.lang.String viewMode,
1126                    java.lang.String languageId,
1127                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1128                    throws com.liferay.portal.kernel.exception.PortalException,
1129                            com.liferay.portal.kernel.exception.SystemException {
1130                    return _journalArticleLocalService.getArticleContent(groupId,
1131                            articleId, version, viewMode, languageId, themeDisplay);
1132            }
1133    
1134            /**
1135            * Returns the latest web content matching the group and article ID, and
1136            * associated with DDM template key.
1137            *
1138            * @param groupId the primary key of the web content article's group
1139            * @param articleId the primary key of the web content article
1140            * @param viewMode the mode in which the web content is being viewed
1141            * @param ddmTemplateKey the primary key of the web content article's DDM
1142            template (optionally <code>null</code>). If the article is
1143            related to a DDM structure, the template's structure must match
1144            it.
1145            * @param languageId the primary key of the language translation to get
1146            * @param themeDisplay the theme display
1147            * @return the matching web content
1148            * @throws PortalException if a matching web content article or DDM template
1149            could not be found, or if a portal exception occurred
1150            * @throws SystemException if a system exception occurred
1151            */
1152            @Override
1153            public java.lang.String getArticleContent(long groupId,
1154                    java.lang.String articleId, java.lang.String viewMode,
1155                    java.lang.String ddmTemplateKey, java.lang.String languageId,
1156                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1157                    throws com.liferay.portal.kernel.exception.PortalException,
1158                            com.liferay.portal.kernel.exception.SystemException {
1159                    return _journalArticleLocalService.getArticleContent(groupId,
1160                            articleId, viewMode, ddmTemplateKey, languageId, themeDisplay);
1161            }
1162    
1163            /**
1164            * Returns the latest web content matching the group and article ID.
1165            *
1166            * @param groupId the primary key of the web content article's group
1167            * @param articleId the primary key of the web content article
1168            * @param viewMode the mode in which the web content is being viewed
1169            * @param languageId the primary key of the language translation to get
1170            * @param themeDisplay the theme display
1171            * @return the matching web content
1172            * @throws PortalException if a matching web content article or DDM template
1173            could not be found, or if a portal exception occurred
1174            * @throws SystemException if a system exception occurred
1175            */
1176            @Override
1177            public java.lang.String getArticleContent(long groupId,
1178                    java.lang.String articleId, java.lang.String viewMode,
1179                    java.lang.String languageId,
1180                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1181                    throws com.liferay.portal.kernel.exception.PortalException,
1182                            com.liferay.portal.kernel.exception.SystemException {
1183                    return _journalArticleLocalService.getArticleContent(groupId,
1184                            articleId, viewMode, languageId, themeDisplay);
1185            }
1186    
1187            /**
1188            * Returns a web content article display for the specified page of the
1189            * latest version of the web content article, optionally based on the DDM
1190            * template if the article is template driven. If the article is template
1191            * driven, web content transformation tokens are added from the theme
1192            * display (if not <code>null</code>) or the XML request otherwise.
1193            *
1194            * @param article the web content article
1195            * @param ddmTemplateKey the primary key of the web content article's DDM
1196            template (optionally <code>null</code>). If the article is
1197            related to a DDM structure, the template's structure must match
1198            it.
1199            * @param viewMode the mode in which the web content is being viewed
1200            * @param languageId the primary key of the language translation to get
1201            * @param page the web content's page number. Page numbers start at
1202            <code>1</code>.
1203            * @param xmlRequest the request that serializes the web content into a
1204            hierarchical hash map (optionally <code>null</code>)
1205            * @param themeDisplay the theme display
1206            * @return the web content article display
1207            * @throws PortalException if a matching DDM template could not be found or
1208            if a portal exception occurred
1209            * @throws SystemException if a system exception occurred
1210            */
1211            @Override
1212            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1213                    com.liferay.portlet.journal.model.JournalArticle article,
1214                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1215                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1216                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1217                    throws com.liferay.portal.kernel.exception.PortalException,
1218                            com.liferay.portal.kernel.exception.SystemException {
1219                    return _journalArticleLocalService.getArticleDisplay(article,
1220                            ddmTemplateKey, viewMode, languageId, page, xmlRequest, themeDisplay);
1221            }
1222    
1223            /**
1224            * Returns a web content article display for the first page of the specified
1225            * version of the web content article, optionally based on the DDM template
1226            * if the article is template driven. If the article is template driven, web
1227            * content transformation tokens are added from the theme display (if not
1228            * <code>null</code>) or the XML request otherwise.
1229            *
1230            * @param groupId the primary key of the web content article's group
1231            * @param articleId the primary key of the web content article
1232            * @param version the web content article's version
1233            * @param ddmTemplateKey the primary key of the web content article's DDM
1234            template (optionally <code>null</code>). If the article is
1235            related to a DDM structure, the template's structure must match
1236            it.
1237            * @param viewMode the mode in which the web content is being viewed
1238            * @param languageId the primary key of the language translation to get
1239            * @param page the web content's page number
1240            * @param xmlRequest the request that serializes the web content into a
1241            hierarchical hash map
1242            * @param themeDisplay the theme display
1243            * @return the web content article display, or <code>null</code> if the
1244            article has expired or if article's display date/time is after
1245            the current date/time
1246            * @throws PortalException if a matching web content article or DDM template
1247            could not be found, or if a portal exception occurred
1248            * @throws SystemException if a system exception occurred
1249            */
1250            @Override
1251            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1252                    long groupId, java.lang.String articleId, double version,
1253                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1254                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1255                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1256                    throws com.liferay.portal.kernel.exception.PortalException,
1257                            com.liferay.portal.kernel.exception.SystemException {
1258                    return _journalArticleLocalService.getArticleDisplay(groupId,
1259                            articleId, version, ddmTemplateKey, viewMode, languageId, page,
1260                            xmlRequest, themeDisplay);
1261            }
1262    
1263            /**
1264            * Returns a web content article display for the first page of the specified
1265            * version of the web content article matching the group and article ID,
1266            * optionally based on the DDM template if the article is template driven.
1267            * If the article is template driven, web content transformation tokens are
1268            * added from the theme display (if not <code>null</code>).
1269            *
1270            * @param groupId the primary key of the web content article's group
1271            * @param articleId the primary key of the web content article
1272            * @param version the web content article's version
1273            * @param ddmTemplateKey the primary key of the web content article's DDM
1274            template (optionally <code>null</code>). If the article is
1275            related to a DDM structure, the template's structure must match
1276            it.
1277            * @param viewMode the mode in which the web content is being viewed
1278            * @param languageId the primary key of the language translation to get
1279            * @param themeDisplay the theme display
1280            * @return the web content article display, or <code>null</code> if the
1281            article has expired or if article's display date/time is after
1282            the current date/time
1283            * @throws PortalException if a matching web content article or DDM template
1284            could not be found, or if a portal exception occurred
1285            * @throws SystemException if a system exception occurred
1286            */
1287            @Override
1288            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1289                    long groupId, java.lang.String articleId, double version,
1290                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1291                    java.lang.String languageId,
1292                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1293                    throws com.liferay.portal.kernel.exception.PortalException,
1294                            com.liferay.portal.kernel.exception.SystemException {
1295                    return _journalArticleLocalService.getArticleDisplay(groupId,
1296                            articleId, version, ddmTemplateKey, viewMode, languageId,
1297                            themeDisplay);
1298            }
1299    
1300            /**
1301            * Returns a web content article display for the first page of the latest
1302            * version of the web content article matching the group and article ID. If
1303            * the article is template driven, web content transformation tokens are
1304            * added from the theme display (if not <code>null</code>) or the XML
1305            * request otherwise.
1306            *
1307            * @param groupId the primary key of the web content article's group
1308            * @param articleId the primary key of the web content article
1309            * @param viewMode the mode in which the web content is being viewed
1310            * @param languageId the primary key of the language translation to get
1311            * @param page the web content's page number
1312            * @param xmlRequest the request that serializes the web content into a
1313            hierarchical hash map
1314            * @param themeDisplay the theme display
1315            * @return the web content article display, or <code>null</code> if the
1316            article has expired or if article's display date/time is after
1317            the current date/time
1318            * @throws PortalException if a matching web content article or DDM template
1319            could not be found, or if a portal exception occurred
1320            * @throws SystemException if a system exception occurred
1321            */
1322            @Override
1323            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1324                    long groupId, java.lang.String articleId, java.lang.String viewMode,
1325                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1326                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1327                    throws com.liferay.portal.kernel.exception.PortalException,
1328                            com.liferay.portal.kernel.exception.SystemException {
1329                    return _journalArticleLocalService.getArticleDisplay(groupId,
1330                            articleId, viewMode, languageId, page, xmlRequest, themeDisplay);
1331            }
1332    
1333            /**
1334            * Returns a web content article display for the specified page of the
1335            * latest version of the web content article matching the group and article
1336            * ID, optionally based on the DDM template if the article is template
1337            * driven. If the article is template driven, web content transformation
1338            * tokens are added from the theme display (if not <code>null</code>) or the
1339            * XML request otherwise.
1340            *
1341            * @param groupId the primary key of the web content article's group
1342            * @param articleId the primary key of the web content article
1343            * @param ddmTemplateKey the primary key of the web content article's DDM
1344            template (optionally <code>null</code>). If the article is
1345            related to a DDM structure, the template's structure must match
1346            it.
1347            * @param viewMode the mode in which the web content is being viewed
1348            * @param languageId the primary key of the language translation to get
1349            * @param page the web content's page number
1350            * @param xmlRequest the request that serializes the web content into a
1351            hierarchical hash map
1352            * @param themeDisplay the theme display
1353            * @return the web content article display, or <code>null</code> if the
1354            article has expired or if article's display date/time is after
1355            the current date/time
1356            * @throws PortalException if a matching web content article or DDM template
1357            could not be found, or if a portal exception occurred
1358            * @throws SystemException if a system exception occurred
1359            */
1360            @Override
1361            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1362                    long groupId, java.lang.String articleId,
1363                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1364                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1365                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1366                    throws com.liferay.portal.kernel.exception.PortalException,
1367                            com.liferay.portal.kernel.exception.SystemException {
1368                    return _journalArticleLocalService.getArticleDisplay(groupId,
1369                            articleId, ddmTemplateKey, viewMode, languageId, page, xmlRequest,
1370                            themeDisplay);
1371            }
1372    
1373            /**
1374            * Returns a web content article display for the first page of the latest
1375            * version of the web content article matching the group and article ID,
1376            * optionally based on the DDM template if the article is template driven.
1377            * If the article is template driven, web content transformation tokens are
1378            * added from the theme display (if not <code>null</code>).
1379            *
1380            * @param groupId the primary key of the web content article's group
1381            * @param articleId the primary key of the web content article
1382            * @param ddmTemplateKey the primary key of the web content article's DDM
1383            template (optionally <code>null</code>). If the article is
1384            related to a DDM structure, the template's structure must match
1385            it.
1386            * @param viewMode the mode in which the web content is being viewed
1387            * @param languageId the primary key of the language translation to get
1388            * @param themeDisplay the theme display
1389            * @return the web content article display, or <code>null</code> if the
1390            article has expired or if article's display date/time is after
1391            the current date/time
1392            * @throws PortalException if a matching web content article or DDM template
1393            could not be found, or if a portal exception occurred
1394            * @throws SystemException if a system exception occurred
1395            */
1396            @Override
1397            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1398                    long groupId, java.lang.String articleId,
1399                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1400                    java.lang.String languageId,
1401                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1402                    throws com.liferay.portal.kernel.exception.PortalException,
1403                            com.liferay.portal.kernel.exception.SystemException {
1404                    return _journalArticleLocalService.getArticleDisplay(groupId,
1405                            articleId, ddmTemplateKey, viewMode, languageId, themeDisplay);
1406            }
1407    
1408            /**
1409            * Returns a web content article display for the first page of the latest
1410            * version of the web content article matching the group and article ID. If
1411            * the article is template driven, web content transformation tokens are
1412            * added from the theme display (if not <code>null</code>).
1413            *
1414            * @param groupId the primary key of the web content article's group
1415            * @param articleId the primary key of the web content article
1416            * @param viewMode the mode in which the web content is being viewed
1417            * @param languageId the primary key of the language translation to get
1418            * @param themeDisplay the theme display
1419            * @return the web content article display, or <code>null</code> if the
1420            article has expired or if article's display date/time is after
1421            the current date/time
1422            * @throws PortalException if a matching web content article or DDM template
1423            could not be found, or if a portal exception occurred
1424            * @throws SystemException if a system exception occurred
1425            */
1426            @Override
1427            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1428                    long groupId, java.lang.String articleId, java.lang.String viewMode,
1429                    java.lang.String languageId,
1430                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1431                    throws com.liferay.portal.kernel.exception.PortalException,
1432                            com.liferay.portal.kernel.exception.SystemException {
1433                    return _journalArticleLocalService.getArticleDisplay(groupId,
1434                            articleId, viewMode, languageId, themeDisplay);
1435            }
1436    
1437            /**
1438            * Returns all the web content articles present in the system.
1439            *
1440            * @return the web content articles present in the system
1441            * @throws SystemException if a system exception occurred
1442            */
1443            @Override
1444            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
1445                    throws com.liferay.portal.kernel.exception.SystemException {
1446                    return _journalArticleLocalService.getArticles();
1447            }
1448    
1449            /**
1450            * Returns all the web content articles belonging to the group.
1451            *
1452            * @param groupId the primary key of the web content article's group
1453            * @return the web content articles belonging to the group
1454            * @throws SystemException if a system exception occurred
1455            */
1456            @Override
1457            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1458                    long groupId)
1459                    throws com.liferay.portal.kernel.exception.SystemException {
1460                    return _journalArticleLocalService.getArticles(groupId);
1461            }
1462    
1463            /**
1464            * Returns a range of all the web content articles belonging to the group.
1465            *
1466            * <p>
1467            * Useful when paginating results. Returns a maximum of <code>end -
1468            * start</code> instances. <code>start</code> and <code>end</code> are not
1469            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1470            * refers to the first result in the set. Setting both <code>start</code>
1471            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1472            * result set.
1473            * </p>
1474            *
1475            * @param groupId the primary key of the web content article's group
1476            * @param start the lower bound of the range of web content articles to
1477            return
1478            * @param end the upper bound of the range of web content articles to
1479            return (not inclusive)
1480            * @return the range of matching web content articles
1481            * @throws SystemException if a system exception occurred
1482            */
1483            @Override
1484            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1485                    long groupId, int start, int end)
1486                    throws com.liferay.portal.kernel.exception.SystemException {
1487                    return _journalArticleLocalService.getArticles(groupId, start, end);
1488            }
1489    
1490            /**
1491            * Returns an ordered range of all the web content articles belonging to the
1492            * group.
1493            *
1494            * <p>
1495            * Useful when paginating results. Returns a maximum of <code>end -
1496            * start</code> instances. <code>start</code> and <code>end</code> are not
1497            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1498            * refers to the first result in the set. Setting both <code>start</code>
1499            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1500            * result set.
1501            * </p>
1502            *
1503            * @param groupId the primary key of the web content article's group
1504            * @param start the lower bound of the range of web content articles to
1505            return
1506            * @param end the upper bound of the range of web content articles to
1507            return (not inclusive)
1508            * @param obc the comparator to order the web content articles
1509            * @return the range of matching web content articles ordered by the
1510            comparator
1511            * @throws SystemException if a system exception occurred
1512            */
1513            @Override
1514            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1515                    long groupId, int start, int end,
1516                    com.liferay.portal.kernel.util.OrderByComparator obc)
1517                    throws com.liferay.portal.kernel.exception.SystemException {
1518                    return _journalArticleLocalService.getArticles(groupId, start, end, obc);
1519            }
1520    
1521            /**
1522            * Returns all the web content articles matching the group and folder.
1523            *
1524            * @param groupId the primary key of the web content article's group
1525            * @param folderId the primary key of the web content article folder
1526            * @return the matching web content articles
1527            * @throws SystemException if a system exception occurred
1528            */
1529            @Override
1530            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1531                    long groupId, long folderId)
1532                    throws com.liferay.portal.kernel.exception.SystemException {
1533                    return _journalArticleLocalService.getArticles(groupId, folderId);
1534            }
1535    
1536            /**
1537            * Returns a range of all the web content articles matching the group and
1538            * folder.
1539            *
1540            * <p>
1541            * Useful when paginating results. Returns a maximum of <code>end -
1542            * start</code> instances. <code>start</code> and <code>end</code> are not
1543            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1544            * refers to the first result in the set. Setting both <code>start</code>
1545            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1546            * result set.
1547            * </p>
1548            *
1549            * @param groupId the primary key of the web content article's group
1550            * @param folderId the primary key of the web content article's folder
1551            * @param start the lower bound of the range of web content articles to
1552            return
1553            * @param end the upper bound of the range of web content articles to
1554            return (not inclusive)
1555            * @return the range of matching web content articles
1556            * @throws SystemException if a system exception occurred
1557            */
1558            @Override
1559            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1560                    long groupId, long folderId, int start, int end)
1561                    throws com.liferay.portal.kernel.exception.SystemException {
1562                    return _journalArticleLocalService.getArticles(groupId, folderId,
1563                            start, end);
1564            }
1565    
1566            /**
1567            * Returns an ordered range of all the web content articles matching the
1568            * group and folder.
1569            *
1570            * <p>
1571            * Useful when paginating results. Returns a maximum of <code>end -
1572            * start</code> instances. <code>start</code> and <code>end</code> are not
1573            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1574            * refers to the first result in the set. Setting both <code>start</code>
1575            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1576            * result set.
1577            * </p>
1578            *
1579            * @param groupId the primary key of the web content article's group
1580            * @param folderId the primary key of the web content article's folder
1581            * @param start the lower bound of the range of web content articles to
1582            return
1583            * @param end the upper bound of the range of web content articles to
1584            return (not inclusive)
1585            * @param orderByComparator the comparator to order the web content
1586            articles
1587            * @return the range of matching web content articles ordered by the
1588            comparator
1589            * @throws SystemException if a system exception occurred
1590            */
1591            @Override
1592            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1593                    long groupId, long folderId, int start, int end,
1594                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1595                    throws com.liferay.portal.kernel.exception.SystemException {
1596                    return _journalArticleLocalService.getArticles(groupId, folderId,
1597                            start, end, orderByComparator);
1598            }
1599    
1600            /**
1601            * Returns all the web content articles matching the group and article ID.
1602            *
1603            * @param groupId the primary key of the web content article's group
1604            * @param articleId the primary key of the web content article
1605            * @return the matching web content articles
1606            * @throws SystemException if a system exception occurred
1607            */
1608            @Override
1609            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1610                    long groupId, java.lang.String articleId)
1611                    throws com.liferay.portal.kernel.exception.SystemException {
1612                    return _journalArticleLocalService.getArticles(groupId, articleId);
1613            }
1614    
1615            @Override
1616            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByResourcePrimKey(
1617                    long resourcePrimKey)
1618                    throws com.liferay.portal.kernel.exception.SystemException {
1619                    return _journalArticleLocalService.getArticlesByResourcePrimKey(resourcePrimKey);
1620            }
1621    
1622            /**
1623            * Returns all the web content articles matching the small image ID.
1624            *
1625            * @param smallImageId the primary key of the web content article's small
1626            image
1627            * @return the web content articles matching the small image ID
1628            * @throws SystemException if a system exception occurred
1629            */
1630            @Override
1631            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
1632                    long smallImageId)
1633                    throws com.liferay.portal.kernel.exception.SystemException {
1634                    return _journalArticleLocalService.getArticlesBySmallImageId(smallImageId);
1635            }
1636    
1637            /**
1638            * Returns the number of web content articles belonging to the group.
1639            *
1640            * @param groupId the primary key of the web content article's group
1641            * @return the number of web content articles belonging to the group
1642            * @throws SystemException if a system exception occurred
1643            */
1644            @Override
1645            public int getArticlesCount(long groupId)
1646                    throws com.liferay.portal.kernel.exception.SystemException {
1647                    return _journalArticleLocalService.getArticlesCount(groupId);
1648            }
1649    
1650            /**
1651            * Returns the number of web content articles matching the group and folder.
1652            *
1653            * @param groupId the primary key of the web content article's group
1654            * @param folderId the primary key of the web content article's folder
1655            * @return the number of matching web content articles
1656            * @throws SystemException if a system exception occurred
1657            */
1658            @Override
1659            public int getArticlesCount(long groupId, long folderId)
1660                    throws com.liferay.portal.kernel.exception.SystemException {
1661                    return _journalArticleLocalService.getArticlesCount(groupId, folderId);
1662            }
1663    
1664            /**
1665            * Returns an ordered range of all the web content articles matching the
1666            * company, version, and workflow status.
1667            *
1668            * <p>
1669            * Useful when paginating results. Returns a maximum of <code>end -
1670            * start</code> instances. <code>start</code> and <code>end</code> are not
1671            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1672            * refers to the first result in the set. Setting both <code>start</code>
1673            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1674            * result set.
1675            * </p>
1676            *
1677            * @param companyId the primary key of the web content article's company
1678            * @param version the web content article's version
1679            * @param status the web content article's workflow status. For more
1680            information see {@link WorkflowConstants} for constants starting
1681            with the "STATUS_" prefix.
1682            * @param start the lower bound of the range of web content articles to
1683            return
1684            * @param end the upper bound of the range of web content articles to
1685            return (not inclusive)
1686            * @return the range of matching web content articles ordered by article ID
1687            * @throws SystemException if a system exception occurred
1688            */
1689            @Override
1690            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
1691                    long companyId, double version, int status, int start, int end)
1692                    throws com.liferay.portal.kernel.exception.SystemException {
1693                    return _journalArticleLocalService.getCompanyArticles(companyId,
1694                            version, status, start, end);
1695            }
1696    
1697            /**
1698            * Returns an ordered range of all the web content articles matching the
1699            * company and workflow status.
1700            *
1701            * <p>
1702            * Useful when paginating results. Returns a maximum of <code>end -
1703            * start</code> instances. <code>start</code> and <code>end</code> are not
1704            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1705            * refers to the first result in the set. Setting both <code>start</code>
1706            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1707            * result set.
1708            * </p>
1709            *
1710            * @param companyId the primary key of the web content article's company
1711            * @param status the web content article's workflow status. For more
1712            information see {@link WorkflowConstants} for constants starting
1713            with the "STATUS_" prefix.
1714            * @param start the lower bound of the range of web content articles to
1715            return
1716            * @param end the upper bound of the range of web content articles to
1717            return (not inclusive)
1718            * @return the range of matching web content articles ordered by article ID
1719            * @throws SystemException if a system exception occurred
1720            */
1721            @Override
1722            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
1723                    long companyId, int status, int start, int end)
1724                    throws com.liferay.portal.kernel.exception.SystemException {
1725                    return _journalArticleLocalService.getCompanyArticles(companyId,
1726                            status, start, end);
1727            }
1728    
1729            /**
1730            * Returns the number of web content articles matching the company, version,
1731            * and workflow status.
1732            *
1733            * <p>
1734            * Useful when paginating results. Returns a maximum of <code>end -
1735            * start</code> instances. <code>start</code> and <code>end</code> are not
1736            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1737            * refers to the first result in the set. Setting both <code>start</code>
1738            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1739            * result set.
1740            * </p>
1741            *
1742            * @param companyId the primary key of the web content article's company
1743            * @param version the web content article's version
1744            * @param status the web content article's workflow status. For more
1745            information see {@link WorkflowConstants} for constants starting
1746            with the "STATUS_" prefix.
1747            * @param start the lower bound of the range of web content articles to
1748            return
1749            * @param end the upper bound of the range of web content articles to
1750            return (not inclusive)
1751            * @return the number of matching web content articles
1752            * @throws SystemException if a system exception occurred
1753            */
1754            @Override
1755            public int getCompanyArticlesCount(long companyId, double version,
1756                    int status, int start, int end)
1757                    throws com.liferay.portal.kernel.exception.SystemException {
1758                    return _journalArticleLocalService.getCompanyArticlesCount(companyId,
1759                            version, status, start, end);
1760            }
1761    
1762            /**
1763            * Returns the number of web content articles matching the company and
1764            * workflow status.
1765            *
1766            * @param companyId the primary key of the web content article's company
1767            * @param status the web content article's workflow status. For more
1768            information see {@link WorkflowConstants} for constants starting
1769            with the "STATUS_" prefix.
1770            * @return the number of matching web content articles
1771            * @throws SystemException if a system exception occurred
1772            */
1773            @Override
1774            public int getCompanyArticlesCount(long companyId, int status)
1775                    throws com.liferay.portal.kernel.exception.SystemException {
1776                    return _journalArticleLocalService.getCompanyArticlesCount(companyId,
1777                            status);
1778            }
1779    
1780            /**
1781            * Returns the matching web content article currently displayed or next to
1782            * be displayed if no article is currently displayed.
1783            *
1784            * @param groupId the primary key of the web content article's group
1785            * @param articleId the primary key of the web content article
1786            * @return the matching web content article currently displayed, or the next
1787            one to be displayed if no version of the article is currently
1788            displayed
1789            * @throws PortalException if no approved matching web content articles
1790            could be found
1791            * @throws SystemException if a system exception occurred
1792            */
1793            @Override
1794            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
1795                    long groupId, java.lang.String articleId)
1796                    throws com.liferay.portal.kernel.exception.PortalException,
1797                            com.liferay.portal.kernel.exception.SystemException {
1798                    return _journalArticleLocalService.getDisplayArticle(groupId, articleId);
1799            }
1800    
1801            /**
1802            * Returns the web content article matching the URL title that is currently
1803            * displayed or next to be displayed if no article is currently displayed.
1804            *
1805            * @param groupId the primary key of the web content article's group
1806            * @param urlTitle the web content article's accessible URL title
1807            * @return the web content article matching the URL title that is currently
1808            displayed, or next one to be displayed if no version of the
1809            article is currently displayed
1810            * @throws PortalException if no approved matching web content articles
1811            could be found
1812            * @throws SystemException if a system exception occurred
1813            */
1814            @Override
1815            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
1816                    long groupId, java.lang.String urlTitle)
1817                    throws com.liferay.portal.kernel.exception.PortalException,
1818                            com.liferay.portal.kernel.exception.SystemException {
1819                    return _journalArticleLocalService.getDisplayArticleByUrlTitle(groupId,
1820                            urlTitle);
1821            }
1822    
1823            /**
1824            * Returns the latest web content article matching the resource primary key,
1825            * preferring articles with approved workflow status.
1826            *
1827            * @param resourcePrimKey the primary key of the resource instance
1828            * @return the latest web content article matching the resource primary key,
1829            preferring articles with approved workflow status
1830            * @throws PortalException if a matching web content article could not be
1831            found
1832            * @throws SystemException if a system exception occurred
1833            */
1834            @Override
1835            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1836                    long resourcePrimKey)
1837                    throws com.liferay.portal.kernel.exception.PortalException,
1838                            com.liferay.portal.kernel.exception.SystemException {
1839                    return _journalArticleLocalService.getLatestArticle(resourcePrimKey);
1840            }
1841    
1842            /**
1843            * Returns the latest web content article matching the resource primary key
1844            * and workflow status, preferring articles with approved workflow status.
1845            *
1846            * @param resourcePrimKey the primary key of the resource instance
1847            * @param status the web content article's workflow status. For more
1848            information see {@link WorkflowConstants} for constants starting
1849            with the "STATUS_" prefix.
1850            * @return the latest web content article matching the resource primary key
1851            and workflow status, preferring articles with approved workflow
1852            status
1853            * @throws PortalException if a matching web content article could not be
1854            found
1855            * @throws SystemException if a system exception occurred
1856            */
1857            @Override
1858            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1859                    long resourcePrimKey, int status)
1860                    throws com.liferay.portal.kernel.exception.PortalException,
1861                            com.liferay.portal.kernel.exception.SystemException {
1862                    return _journalArticleLocalService.getLatestArticle(resourcePrimKey,
1863                            status);
1864            }
1865    
1866            /**
1867            * Returns the latest web content article matching the resource primary key
1868            * and workflow status, optionally preferring articles with approved
1869            * workflow status.
1870            *
1871            * @param resourcePrimKey the primary key of the resource instance
1872            * @param status the web content article's workflow status. For more
1873            information see {@link WorkflowConstants} for constants starting
1874            with the "STATUS_" prefix.
1875            * @param preferApproved whether to prefer returning the latest matching
1876            article that has workflow status {@link
1877            WorkflowConstants#STATUS_APPROVED} over returning one that has a
1878            different status
1879            * @return the latest web content article matching the resource primary key
1880            and workflow status, optionally preferring articles with approved
1881            workflow status
1882            * @throws PortalException if a matching web content article could not be
1883            found
1884            * @throws SystemException if a system exception occurred
1885            */
1886            @Override
1887            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1888                    long resourcePrimKey, int status, boolean preferApproved)
1889                    throws com.liferay.portal.kernel.exception.PortalException,
1890                            com.liferay.portal.kernel.exception.SystemException {
1891                    return _journalArticleLocalService.getLatestArticle(resourcePrimKey,
1892                            status, preferApproved);
1893            }
1894    
1895            /**
1896            * Returns the latest web content article with the group and article ID.
1897            *
1898            * @param groupId the primary key of the web content article's group
1899            * @param articleId the primary key of the web content article
1900            * @return the latest matching web content article
1901            * @throws PortalException if a matching web content article could not be
1902            found
1903            * @throws SystemException if a system exception occurred
1904            */
1905            @Override
1906            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1907                    long groupId, java.lang.String articleId)
1908                    throws com.liferay.portal.kernel.exception.PortalException,
1909                            com.liferay.portal.kernel.exception.SystemException {
1910                    return _journalArticleLocalService.getLatestArticle(groupId, articleId);
1911            }
1912    
1913            /**
1914            * Returns the latest web content article matching the group, article ID,
1915            * and workflow status.
1916            *
1917            * @param groupId the primary key of the web content article's group
1918            * @param articleId the primary key of the web content article
1919            * @param status the web content article's workflow status. For more
1920            information see {@link WorkflowConstants} for constants starting
1921            with the "STATUS_" prefix.
1922            * @return the latest matching web content article
1923            * @throws PortalException if a matching web content article could not be
1924            found
1925            * @throws SystemException if a system exception occurred
1926            */
1927            @Override
1928            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1929                    long groupId, java.lang.String articleId, int status)
1930                    throws com.liferay.portal.kernel.exception.PortalException,
1931                            com.liferay.portal.kernel.exception.SystemException {
1932                    return _journalArticleLocalService.getLatestArticle(groupId, articleId,
1933                            status);
1934            }
1935    
1936            /**
1937            * Returns the latest web content article matching the group, class name ID,
1938            * and class PK.
1939            *
1940            * @param groupId the primary key of the web content article's group
1941            * @param className the DDMStructure class name if the web content article
1942            is related to a DDM structure, the class name associated with the
1943            article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT}
1944            otherwise
1945            * @param classPK the primary key of the DDM structure, if the DDMStructure
1946            class name is given as the <code>className</code> parameter, the
1947            primary key of the class associated with the web content article,
1948            or <code>0</code> otherwise
1949            * @return the latest matching web content article
1950            * @throws PortalException if a matching web content article could not be
1951            found
1952            * @throws SystemException if a system exception occurred
1953            */
1954            @Override
1955            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1956                    long groupId, java.lang.String className, long classPK)
1957                    throws com.liferay.portal.kernel.exception.PortalException,
1958                            com.liferay.portal.kernel.exception.SystemException {
1959                    return _journalArticleLocalService.getLatestArticle(groupId, className,
1960                            classPK);
1961            }
1962    
1963            /**
1964            * Returns the latest web content article matching the group, URL title, and
1965            * workflow status.
1966            *
1967            * @param groupId the primary key of the web content article's group
1968            * @param urlTitle the web content article's accessible URL title
1969            * @param status the web content article's workflow status. For more
1970            information see {@link WorkflowConstants} for constants starting
1971            with the "STATUS_" prefix.
1972            * @return the latest matching web content article
1973            * @throws PortalException if a matching web content article could not be
1974            found
1975            * @throws SystemException if a system exception occurred
1976            */
1977            @Override
1978            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
1979                    long groupId, java.lang.String urlTitle, int status)
1980                    throws com.liferay.portal.kernel.exception.PortalException,
1981                            com.liferay.portal.kernel.exception.SystemException {
1982                    return _journalArticleLocalService.getLatestArticleByUrlTitle(groupId,
1983                            urlTitle, status);
1984            }
1985    
1986            /**
1987            * Returns the latest version number of the web content with the group and
1988            * article ID.
1989            *
1990            * @param groupId the primary key of the web content article's group
1991            * @param articleId the primary key of the web content article
1992            * @return the latest version number of the matching web content
1993            * @throws PortalException if a matching web content article could not be
1994            found
1995            * @throws SystemException if a system exception occurred
1996            */
1997            @Override
1998            public double getLatestVersion(long groupId, java.lang.String articleId)
1999                    throws com.liferay.portal.kernel.exception.PortalException,
2000                            com.liferay.portal.kernel.exception.SystemException {
2001                    return _journalArticleLocalService.getLatestVersion(groupId, articleId);
2002            }
2003    
2004            /**
2005            * Returns the latest version number of the web content with the group,
2006            * article ID, and workflow status.
2007            *
2008            * @param groupId the primary key of the web content article's group
2009            * @param articleId the primary key of the web content article
2010            * @param status the web content article's workflow status. For more
2011            information see {@link WorkflowConstants} for constants starting
2012            with the "STATUS_" prefix.
2013            * @return the latest version number of the matching web content
2014            * @throws PortalException if a matching web content article could not be
2015            found
2016            * @throws SystemException if a system exception occurred
2017            */
2018            @Override
2019            public double getLatestVersion(long groupId, java.lang.String articleId,
2020                    int status)
2021                    throws com.liferay.portal.kernel.exception.PortalException,
2022                            com.liferay.portal.kernel.exception.SystemException {
2023                    return _journalArticleLocalService.getLatestVersion(groupId, articleId,
2024                            status);
2025            }
2026    
2027            /**
2028            * Returns the number of web content articles that are not recycled.
2029            *
2030            * @param groupId the primary key of the web content article's group
2031            * @param folderId the primary key of the web content article folder
2032            * @return the number of web content articles that are not recycled
2033            * @throws SystemException if a system exception occurred
2034            */
2035            @Override
2036            public int getNotInTrashArticlesCount(long groupId, long folderId)
2037                    throws com.liferay.portal.kernel.exception.SystemException {
2038                    return _journalArticleLocalService.getNotInTrashArticlesCount(groupId,
2039                            folderId);
2040            }
2041    
2042            /**
2043            * Returns the web content articles matching the group and DDM structure
2044            * key.
2045            *
2046            * @param groupId the primary key of the web content article's group
2047            * @param ddmStructureKey the primary key of the web content article's DDM
2048            structure
2049            * @return the matching web content articles
2050            * @throws SystemException if a system exception occurred
2051            */
2052            @Override
2053            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
2054                    long groupId, java.lang.String ddmStructureKey)
2055                    throws com.liferay.portal.kernel.exception.SystemException {
2056                    return _journalArticleLocalService.getStructureArticles(groupId,
2057                            ddmStructureKey);
2058            }
2059    
2060            /**
2061            * Returns an ordered range of all the web content articles matching the
2062            * group and DDM structure key.
2063            *
2064            * <p>
2065            * Useful when paginating results. Returns a maximum of <code>end -
2066            * start</code> instances. <code>start</code> and <code>end</code> are not
2067            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2068            * refers to the first result in the set. Setting both <code>start</code>
2069            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2070            * result set.
2071            * </p>
2072            *
2073            * @param groupId the primary key of the web content article's group
2074            * @param ddmStructureKey the primary key of the web content article's DDM
2075            structure
2076            * @param start the lower bound of the range of web content articles to
2077            return
2078            * @param end the upper bound of the range of web content articles to
2079            return (not inclusive)
2080            * @param obc the comparator to order the web content articles
2081            * @return the range of matching web content articles ordered by the
2082            comparator
2083            * @throws SystemException if a system exception occurred
2084            */
2085            @Override
2086            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
2087                    long groupId, java.lang.String ddmStructureKey, int start, int end,
2088                    com.liferay.portal.kernel.util.OrderByComparator obc)
2089                    throws com.liferay.portal.kernel.exception.SystemException {
2090                    return _journalArticleLocalService.getStructureArticles(groupId,
2091                            ddmStructureKey, start, end, obc);
2092            }
2093    
2094            @Override
2095            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
2096                    java.lang.String[] ddmStructureKeys)
2097                    throws com.liferay.portal.kernel.exception.SystemException {
2098                    return _journalArticleLocalService.getStructureArticles(ddmStructureKeys);
2099            }
2100    
2101            /**
2102            * Returns the number of web content articles matching the group and DDM
2103            * structure key.
2104            *
2105            * @param groupId the primary key of the web content article's group
2106            * @param ddmStructureKey the primary key of the web content article's DDM
2107            structure
2108            * @return the number of matching web content articles
2109            * @throws SystemException if a system exception occurred
2110            */
2111            @Override
2112            public int getStructureArticlesCount(long groupId,
2113                    java.lang.String ddmStructureKey)
2114                    throws com.liferay.portal.kernel.exception.SystemException {
2115                    return _journalArticleLocalService.getStructureArticlesCount(groupId,
2116                            ddmStructureKey);
2117            }
2118    
2119            /**
2120            * Returns the web content articles matching the group and DDM template key.
2121            *
2122            * @param groupId the primary key of the web content article's group
2123            * @param ddmTemplateKey the primary key of the web content article's DDM
2124            template (optionally <code>null</code>). If the article is
2125            related to a DDM structure, the template's structure must match
2126            it.
2127            * @return the matching web content articles
2128            * @throws SystemException if a system exception occurred
2129            */
2130            @Override
2131            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
2132                    long groupId, java.lang.String ddmTemplateKey)
2133                    throws com.liferay.portal.kernel.exception.SystemException {
2134                    return _journalArticleLocalService.getTemplateArticles(groupId,
2135                            ddmTemplateKey);
2136            }
2137    
2138            /**
2139            * Returns an ordered range of all the web content articles matching the
2140            * group and DDM template key.
2141            *
2142            * <p>
2143            * Useful when paginating results. Returns a maximum of <code>end -
2144            * start</code> instances. <code>start</code> and <code>end</code> are not
2145            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2146            * refers to the first result in the set. Setting both <code>start</code>
2147            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2148            * result set.
2149            * </p>
2150            *
2151            * @param groupId the primary key of the web content article's group
2152            * @param ddmTemplateKey the primary key of the web content article's DDM
2153            template (optionally <code>null</code>). If the article is
2154            related to a DDM structure, the template's structure must match
2155            it.
2156            * @param start the lower bound of the range of web content articles to
2157            return
2158            * @param end the upper bound of the range of web content articles to
2159            return (not inclusive)
2160            * @param obc the comparator to order the web content articles
2161            * @return the range of matching web content articles ordered by the
2162            comparator
2163            * @throws SystemException if a system exception occurred
2164            */
2165            @Override
2166            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
2167                    long groupId, java.lang.String ddmTemplateKey, int start, int end,
2168                    com.liferay.portal.kernel.util.OrderByComparator obc)
2169                    throws com.liferay.portal.kernel.exception.SystemException {
2170                    return _journalArticleLocalService.getTemplateArticles(groupId,
2171                            ddmTemplateKey, start, end, obc);
2172            }
2173    
2174            /**
2175            * Returns the number of web content articles matching the group and DDM
2176            * template key.
2177            *
2178            * @param groupId the primary key of the web content article's group
2179            * @param ddmTemplateKey the primary key of the web content article's DDM
2180            template (optionally <code>null</code>). If the article is
2181            related to a DDM structure, the template's structure must match
2182            it.
2183            * @return the number of matching web content articles
2184            * @throws SystemException if a system exception occurred
2185            */
2186            @Override
2187            public int getTemplateArticlesCount(long groupId,
2188                    java.lang.String ddmTemplateKey)
2189                    throws com.liferay.portal.kernel.exception.SystemException {
2190                    return _journalArticleLocalService.getTemplateArticlesCount(groupId,
2191                            ddmTemplateKey);
2192            }
2193    
2194            @Override
2195            public java.lang.String getUniqueUrlTitle(long groupId,
2196                    java.lang.String articleId, java.lang.String urlTitle)
2197                    throws com.liferay.portal.kernel.exception.PortalException,
2198                            com.liferay.portal.kernel.exception.SystemException {
2199                    return _journalArticleLocalService.getUniqueUrlTitle(groupId,
2200                            articleId, urlTitle);
2201            }
2202    
2203            /**
2204            * Returns <code>true</code> if the specified web content article exists.
2205            *
2206            * @param groupId the primary key of the group
2207            * @param articleId the primary key of the web content article
2208            * @return <code>true</code> if the specified web content article exists;
2209            <code>false</code> otherwise
2210            * @throws SystemException if a system exception occurred
2211            */
2212            @Override
2213            public boolean hasArticle(long groupId, java.lang.String articleId)
2214                    throws com.liferay.portal.kernel.exception.SystemException {
2215                    return _journalArticleLocalService.hasArticle(groupId, articleId);
2216            }
2217    
2218            /**
2219            * Returns <code>true</code> if the web content article, specified by group
2220            * and article ID, is the latest version.
2221            *
2222            * @param groupId the primary key of the web content article's group
2223            * @param articleId the primary key of the web content article
2224            * @param version the web content article's version
2225            * @return <code>true</code> if the specified web content article is the
2226            latest version; <code>false</code> otherwise
2227            * @throws PortalException if a matching web content article could not be
2228            found
2229            * @throws SystemException if a system exception occurred
2230            */
2231            @Override
2232            public boolean isLatestVersion(long groupId, java.lang.String articleId,
2233                    double version)
2234                    throws com.liferay.portal.kernel.exception.PortalException,
2235                            com.liferay.portal.kernel.exception.SystemException {
2236                    return _journalArticleLocalService.isLatestVersion(groupId, articleId,
2237                            version);
2238            }
2239    
2240            /**
2241            * Returns <code>true</code> if the web content article, specified by group,
2242            * article ID, and workflow status, is the latest version.
2243            *
2244            * @param groupId the primary key of the web content article's group
2245            * @param articleId the primary key of the web content article
2246            * @param version the web content article's version
2247            * @param status the web content article's workflow status. For more
2248            information see {@link WorkflowConstants} for constants starting
2249            with the "STATUS_" prefix.
2250            * @return <code>true</code> if the specified web content article is the
2251            latest version; <code>false</code> otherwise
2252            * @throws PortalException if a matching web content article could not be
2253            found
2254            * @throws SystemException if a system exception occurred
2255            */
2256            @Override
2257            public boolean isLatestVersion(long groupId, java.lang.String articleId,
2258                    double version, int status)
2259                    throws com.liferay.portal.kernel.exception.PortalException,
2260                            com.liferay.portal.kernel.exception.SystemException {
2261                    return _journalArticleLocalService.isLatestVersion(groupId, articleId,
2262                            version, status);
2263            }
2264    
2265            /**
2266            * Moves the web content article matching the group and article ID to a new
2267            * folder.
2268            *
2269            * @param groupId the primary key of the web content article's group
2270            * @param articleId the primary key of the web content article
2271            * @param newFolderId the primary key of the web content article's new
2272            folder
2273            * @return the updated web content article, which was moved to a new folder
2274            * @throws PortalException if a matching web content article could not be
2275            found
2276            * @throws SystemException if a system exception occurred
2277            */
2278            @Override
2279            public com.liferay.portlet.journal.model.JournalArticle moveArticle(
2280                    long groupId, java.lang.String articleId, long newFolderId)
2281                    throws com.liferay.portal.kernel.exception.PortalException,
2282                            com.liferay.portal.kernel.exception.SystemException {
2283                    return _journalArticleLocalService.moveArticle(groupId, articleId,
2284                            newFolderId);
2285            }
2286    
2287            /**
2288            * Moves the web content article from the Recycle Bin to a new folder.
2289            *
2290            * @param userId the primary key of the user updating the web content
2291            article
2292            * @param groupId the primary key of the web content article's group
2293            * @param article the web content article
2294            * @param newFolderId the primary key of the web content article's new
2295            folder
2296            * @param serviceContext the service context to be applied. Can set the
2297            modification date, portlet preferences, and can set whether to
2298            add the default command update for the web content article. With
2299            respect to social activities, by setting the service context's
2300            command to {@link
2301            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
2302            is considered a web content update activity; otherwise it is
2303            considered a web content add activity.
2304            * @return the updated web content article, which was moved from the Recycle
2305            Bin to a new folder
2306            * @throws PortalException if a trashed web content article with the primary
2307            key could not be found or if a portal exception occurred
2308            * @throws SystemException if a system exception occurred
2309            */
2310            @Override
2311            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
2312                    long userId, long groupId,
2313                    com.liferay.portlet.journal.model.JournalArticle article,
2314                    long newFolderId,
2315                    com.liferay.portal.service.ServiceContext serviceContext)
2316                    throws com.liferay.portal.kernel.exception.PortalException,
2317                            com.liferay.portal.kernel.exception.SystemException {
2318                    return _journalArticleLocalService.moveArticleFromTrash(userId,
2319                            groupId, article, newFolderId, serviceContext);
2320            }
2321    
2322            /**
2323            * Moves the latest version of the web content article matching the group
2324            * and article ID to the recycle bin.
2325            *
2326            * @param userId the primary key of the user updating the web content
2327            article
2328            * @param article the web content article
2329            * @return the updated web content article, which was moved to the Recycle
2330            Bin
2331            * @throws PortalException if the user did not have permission to move the
2332            article to the Recycle Bin or if a portal exception occurred
2333            * @throws SystemException if a system exception occurred
2334            */
2335            @Override
2336            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
2337                    long userId, com.liferay.portlet.journal.model.JournalArticle article)
2338                    throws com.liferay.portal.kernel.exception.PortalException,
2339                            com.liferay.portal.kernel.exception.SystemException {
2340                    return _journalArticleLocalService.moveArticleToTrash(userId, article);
2341            }
2342    
2343            /**
2344            * Moves the latest version of the web content article matching the group
2345            * and article ID to the recycle bin.
2346            *
2347            * @param userId the primary key of the user updating the web content
2348            article
2349            * @param groupId the primary key of the web content article's group
2350            * @param articleId the primary key of the web content article
2351            * @return the moved web content article or <code>null</code> if no matching
2352            article was found
2353            * @throws PortalException if the user did not have permission to move the
2354            article to the Recycle Bin or if a portal exception occurred
2355            * @throws SystemException if a system exception occurred
2356            */
2357            @Override
2358            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
2359                    long userId, long groupId, java.lang.String articleId)
2360                    throws com.liferay.portal.kernel.exception.PortalException,
2361                            com.liferay.portal.kernel.exception.SystemException {
2362                    return _journalArticleLocalService.moveArticleToTrash(userId, groupId,
2363                            articleId);
2364            }
2365    
2366            /**
2367            * Removes the web content of the web content article matching the group,
2368            * article ID, and version, and language.
2369            *
2370            * @param groupId the primary key of the web content article's group
2371            * @param articleId the primary key of the web content article
2372            * @param version the web content article's version
2373            * @param languageId the primary key of the language locale to remove
2374            * @return the updated web content article with the locale removed
2375            * @throws PortalException if a matching web content article could not be
2376            found
2377            * @throws SystemException if a system exception occurred
2378            */
2379            @Override
2380            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
2381                    long groupId, java.lang.String articleId, double version,
2382                    java.lang.String languageId)
2383                    throws com.liferay.portal.kernel.exception.PortalException,
2384                            com.liferay.portal.kernel.exception.SystemException {
2385                    return _journalArticleLocalService.removeArticleLocale(groupId,
2386                            articleId, version, languageId);
2387            }
2388    
2389            /**
2390            * Restores the web content article from the Recycle Bin.
2391            *
2392            * @param userId the primary key of the user restoring the web content
2393            article
2394            * @param article the web content article
2395            * @throws PortalException if the web content article with the primary key
2396            could not be found in the Recycle Bin, if the user did not have
2397            permission to restore the article, or if a portal exception
2398            occurred
2399            * @throws SystemException if a system exception occurred
2400            */
2401            @Override
2402            public void restoreArticleFromTrash(long userId,
2403                    com.liferay.portlet.journal.model.JournalArticle article)
2404                    throws com.liferay.portal.kernel.exception.PortalException,
2405                            com.liferay.portal.kernel.exception.SystemException {
2406                    _journalArticleLocalService.restoreArticleFromTrash(userId, article);
2407            }
2408    
2409            /**
2410            * Returns an ordered range of all the web content articles matching the
2411            * parameters without using the indexer, including a keywords parameter for
2412            * matching with the article's ID, title, description, and content, a DDM
2413            * structure key parameter, and a DDM template key parameter. It is
2414            * preferable to use the indexed version {@link #search(long, long, List,
2415            * long, String, String, String, LinkedHashMap, int, int, Sort)} instead of
2416            * this method wherever possible for performance reasons.
2417            *
2418            * <p>
2419            * Useful when paginating results. Returns a maximum of <code>end -
2420            * start</code> instances. <code>start</code> and <code>end</code> are not
2421            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2422            * refers to the first result in the set. Setting both <code>start</code>
2423            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2424            * result set.
2425            * </p>
2426            *
2427            * @param companyId the primary key of the web content article's company
2428            * @param groupId the primary key of the group (optionally <code>0</code>)
2429            * @param folderIds the primary keys of the web content article folders
2430            (optionally {@link java.util.Collections#EMPTY_LIST})
2431            * @param classNameId the primary key of the DDMStructure class if the web
2432            content article is related to a DDM structure, the primary key of
2433            the class name associated with the article, or {@link
2434            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2435            * @param keywords the keywords (space separated), which may occur in the
2436            web content article ID, title, description, or content
2437            (optionally <code>null</code>). If the keywords value is not
2438            <code>null</code>, the search uses the OR operator in connecting
2439            query criteria; otherwise it uses the AND operator.
2440            * @param version the web content article's version (optionally
2441            <code>null</code>)
2442            * @param type the web content article's type (optionally
2443            <code>null</code>)
2444            * @param ddmStructureKey the primary key of the web content article's DDM
2445            structure, if the article is related to a DDM structure, or
2446            <code>null</code> otherwise
2447            * @param ddmTemplateKey the primary key of the web content article's DDM
2448            template (optionally <code>null</code>). If the article is
2449            related to a DDM structure, the template's structure must match
2450            it.
2451            * @param displayDateGT the date after which a matching web content
2452            article's display date must be after (optionally
2453            <code>null</code>)
2454            * @param displayDateLT the date before which a matching web content
2455            article's display date must be before (optionally
2456            <code>null</code>)
2457            * @param status the web content article's workflow status. For more
2458            information see {@link WorkflowConstants} for constants starting
2459            with the "STATUS_" prefix.
2460            * @param reviewDate the web content article's scheduled review date
2461            (optionally <code>null</code>)
2462            * @param start the lower bound of the range of web content articles to
2463            return
2464            * @param end the upper bound of the range of web content articles to
2465            return (not inclusive)
2466            * @param obc the comparator to order the web content articles
2467            * @return the range of matching web content articles ordered by the
2468            comparator
2469            * @throws SystemException if a system exception occurred
2470            */
2471            @Override
2472            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
2473                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
2474                    long classNameId, java.lang.String keywords, java.lang.Double version,
2475                    java.lang.String type, java.lang.String ddmStructureKey,
2476                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
2477                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
2478                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2479                    throws com.liferay.portal.kernel.exception.SystemException {
2480                    return _journalArticleLocalService.search(companyId, groupId,
2481                            folderIds, classNameId, keywords, version, type, ddmStructureKey,
2482                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate,
2483                            start, end, obc);
2484            }
2485    
2486            /**
2487            * Returns an ordered range of all the web content articles matching the
2488            * parameters without using the indexer, including keyword parameters for
2489            * article ID, title, description, and content, a DDM structure key
2490            * parameter, a DDM template key parameter, and an AND operator switch. It
2491            * is preferable to use the indexed version {@link #search(long, long, List,
2492            * long, String, String, String, String, String, String, String, String,
2493            * LinkedHashMap, boolean, int, int, Sort)} instead of this method wherever
2494            * possible for performance reasons.
2495            *
2496            * <p>
2497            * Useful when paginating results. Returns a maximum of <code>end -
2498            * start</code> instances. <code>start</code> and <code>end</code> are not
2499            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2500            * refers to the first result in the set. Setting both <code>start</code>
2501            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2502            * result set.
2503            * </p>
2504            *
2505            * @param companyId the primary key of the web content article's company
2506            * @param groupId the primary key of the group (optionally <code>0</code>)
2507            * @param folderIds the primary keys of the web content article folders
2508            (optionally {@link java.util.Collections#EMPTY_LIST})
2509            * @param classNameId the primary key of the DDMStructure class if the web
2510            content article is related to a DDM structure, the primary key of
2511            the class name associated with the article, or {@link
2512            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2513            * @param articleId the article ID keywords (space separated, optionally
2514            <code>null</code>)
2515            * @param version the web content article's version (optionally
2516            <code>null</code>)
2517            * @param title the title keywords (space separated, optionally
2518            <code>null</code>)
2519            * @param description the description keywords (space separated, optionally
2520            <code>null</code>)
2521            * @param content the content keywords (space separated, optionally
2522            <code>null</code>)
2523            * @param type the web content article's type (optionally
2524            <code>null</code>)
2525            * @param ddmStructureKey the primary key of the web content article's DDM
2526            structure, if the article is related to a DDM structure, or
2527            <code>null</code> otherwise
2528            * @param ddmTemplateKey the primary key of the web content article's DDM
2529            template (optionally <code>null</code>). If the article is
2530            related to a DDM structure, the template's structure must match
2531            it.
2532            * @param displayDateGT the date after which a matching web content
2533            article's display date must be after (optionally
2534            <code>null</code>)
2535            * @param displayDateLT the date before which a matching web content
2536            article's display date must be before (optionally
2537            <code>null</code>)
2538            * @param status the web content article's workflow status. For more
2539            information see {@link WorkflowConstants} for constants starting
2540            with the "STATUS_" prefix.
2541            * @param reviewDate the web content article's scheduled review date
2542            (optionally <code>null</code>)
2543            * @param andOperator whether every field must match its value or keywords,
2544            or just one field must match. Company, group, folder IDs, class
2545            name ID, and status must all match their values.
2546            * @param start the lower bound of the range of web content articles to
2547            return
2548            * @param end the upper bound of the range of web content articles to
2549            return (not inclusive)
2550            * @param obc the comparator to order the web content articles
2551            * @return the range of matching web content articles ordered by the
2552            comparator
2553            * @throws SystemException if a system exception occurred
2554            */
2555            @Override
2556            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
2557                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
2558                    long classNameId, java.lang.String articleId, java.lang.Double version,
2559                    java.lang.String title, java.lang.String description,
2560                    java.lang.String content, java.lang.String type,
2561                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2562                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
2563                    java.util.Date reviewDate, boolean andOperator, int start, int end,
2564                    com.liferay.portal.kernel.util.OrderByComparator obc)
2565                    throws com.liferay.portal.kernel.exception.SystemException {
2566                    return _journalArticleLocalService.search(companyId, groupId,
2567                            folderIds, classNameId, articleId, version, title, description,
2568                            content, type, ddmStructureKey, ddmTemplateKey, displayDateGT,
2569                            displayDateLT, status, reviewDate, andOperator, start, end, obc);
2570            }
2571    
2572            /**
2573            * Returns an ordered range of all the web content articles matching the
2574            * parameters without using the indexer, including keyword parameters for
2575            * article ID, title, description, and content, a DDM structure keys
2576            * (plural) parameter, a DDM template keys (plural) parameter, and an AND
2577            * operator switch.
2578            *
2579            * <p>
2580            * Useful when paginating results. Returns a maximum of <code>end -
2581            * start</code> instances. <code>start</code> and <code>end</code> are not
2582            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2583            * refers to the first result in the set. Setting both <code>start</code>
2584            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2585            * result set.
2586            * </p>
2587            *
2588            * @param companyId the primary key of the web content article's company
2589            * @param groupId the primary key of the group (optionally <code>0</code>)
2590            * @param folderIds the primary keys of the web content article folders
2591            (optionally {@link java.util.Collections#EMPTY_LIST})
2592            * @param classNameId the primary key of the DDMStructure class if the web
2593            content article is related to a DDM structure, the primary key of
2594            the class name associated with the article, or {@link
2595            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2596            * @param articleId the article ID keywords (space separated, optionally
2597            <code>null</code>)
2598            * @param version the web content article's version (optionally
2599            <code>null</code>)
2600            * @param title the title keywords (space separated, optionally
2601            <code>null</code>)
2602            * @param description the description keywords (space separated, optionally
2603            <code>null</code>)
2604            * @param content the content keywords (space separated, optionally
2605            <code>null</code>)
2606            * @param type the web content article's type (optionally
2607            <code>null</code>)
2608            * @param ddmStructureKeys the primary keys of the web content article's
2609            DDM structures, if the article is related to a DDM structure, or
2610            <code>null</code> otherwise
2611            * @param ddmTemplateKeys the primary keys of the web content article's DDM
2612            templates (originally <code>null</code>). If the articles are
2613            related to a DDM structure, the template's structure must match
2614            it.
2615            * @param displayDateGT the date after which a matching web content
2616            article's display date must be after (optionally
2617            <code>null</code>)
2618            * @param displayDateLT the date before which a matching web content
2619            article's display date must be before (optionally
2620            <code>null</code>)
2621            * @param status the web content article's workflow status. For more
2622            information see {@link WorkflowConstants} for constants starting
2623            with the "STATUS_" prefix.
2624            * @param reviewDate the web content article's scheduled review date
2625            (optionally <code>null</code>)
2626            * @param andOperator whether every field must match its value or keywords,
2627            or just one field must match.  Company, group, folder IDs, class
2628            name ID, and status must all match their values.
2629            * @param start the lower bound of the range of web content articles to
2630            return
2631            * @param end the upper bound of the range of web content articles to
2632            return (not inclusive)
2633            * @param obc the comparator to order the web content articles
2634            * @return the range of matching web content articles ordered by the
2635            comparator
2636            * @throws SystemException if a system exception occurred
2637            */
2638            @Override
2639            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
2640                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
2641                    long classNameId, java.lang.String articleId, java.lang.Double version,
2642                    java.lang.String title, java.lang.String description,
2643                    java.lang.String content, java.lang.String type,
2644                    java.lang.String[] ddmStructureKeys,
2645                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
2646                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
2647                    boolean andOperator, int start, int end,
2648                    com.liferay.portal.kernel.util.OrderByComparator obc)
2649                    throws com.liferay.portal.kernel.exception.SystemException {
2650                    return _journalArticleLocalService.search(companyId, groupId,
2651                            folderIds, classNameId, articleId, version, title, description,
2652                            content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
2653                            displayDateLT, status, reviewDate, andOperator, start, end, obc);
2654            }
2655    
2656            /**
2657            * Returns an ordered range of all the web content articles matching the
2658            * parameters using the indexer, including a keywords parameter for matching
2659            * an article's ID, title, description, or content, a DDM structure key
2660            * parameter, a DDM template key parameter, and a finder hash map parameter.
2661            * It is preferable to use this method instead of the non-indexed version
2662            * whenever possible for performance reasons.
2663            *
2664            * <p>
2665            * Useful when paginating results. Returns a maximum of <code>end -
2666            * start</code> instances. <code>start</code> and <code>end</code> are not
2667            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2668            * refers to the first result in the set. Setting both <code>start</code>
2669            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2670            * result set.
2671            * </p>
2672            *
2673            * @param companyId the primary key of the web content article's company
2674            * @param groupId the primary key of the group (optionally <code>0</code>)
2675            * @param folderIds the primary keys of the web content article folders
2676            (optionally {@link java.util.Collections#EMPTY_LIST})
2677            * @param classNameId the primary key of the DDMStructure class if the web
2678            content article is related to a DDM structure, the primary key of
2679            the class name associated with the article, or {@link
2680            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2681            * @param ddmStructureKey the primary key of the web content article's DDM
2682            structure, if the article is related to a DDM structure, or
2683            <code>null</code> otherwise
2684            * @param ddmTemplateKey the primary key of the web content article's DDM
2685            template (optionally <code>null</code>). If the article is
2686            related to a DDM structure, the template's structure must match
2687            it.
2688            * @param keywords the keywords (space separated), which may occur in the
2689            web content article ID, title, description, or content
2690            (optionally <code>null</code>). If the keywords value is not
2691            <code>null</code>, the search uses the OR operator in connecting
2692            query criteria; otherwise it uses the AND operator.
2693            * @param params the finder parameters (optionally <code>null</code>)
2694            * @param start the lower bound of the range of web content articles to
2695            return
2696            * @param end the upper bound of the range of web content articles to
2697            return (not inclusive)
2698            * @param sort the field, type, and direction by which to sort (optionally
2699            <code>null</code>)
2700            * @return the matching web content articles ordered by <code>sort</code>
2701            * @throws SystemException if a system exception occurred
2702            */
2703            @Override
2704            public com.liferay.portal.kernel.search.Hits search(long companyId,
2705                    long groupId, java.util.List<java.lang.Long> folderIds,
2706                    long classNameId, java.lang.String ddmStructureKey,
2707                    java.lang.String ddmTemplateKey, java.lang.String keywords,
2708                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2709                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
2710                    throws com.liferay.portal.kernel.exception.SystemException {
2711                    return _journalArticleLocalService.search(companyId, groupId,
2712                            folderIds, classNameId, ddmStructureKey, ddmTemplateKey, keywords,
2713                            params, start, end, sort);
2714            }
2715    
2716            /**
2717            * Returns an ordered range of all the web content articles matching the
2718            * parameters using the indexer, including a keywords parameter for matching
2719            * an article's ID, title, description, or content, a DDM structure key
2720            * parameter, a DDM template key parameter, an AND operator switch, and
2721            * parameters for type, status, a finder hash map. It is preferable to use
2722            * this method instead of the non-indexed version whenever possible for
2723            * performance reasons.
2724            *
2725            * <p>
2726            * Useful when paginating results. Returns a maximum of <code>end -
2727            * start</code> instances. <code>start</code> and <code>end</code> are not
2728            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2729            * refers to the first result in the set. Setting both <code>start</code>
2730            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2731            * result set.
2732            * </p>
2733            *
2734            * @param companyId the primary key of the web content article's company
2735            * @param groupId the primary key of the group (optionally <code>0</code>)
2736            * @param folderIds the primary keys of the web content article folders
2737            (optionally {@link java.util.Collections#EMPTY_LIST})
2738            * @param classNameId the primary key of the DDMStructure class if the web
2739            content article is related to a DDM structure, the primary key of
2740            the class name associated with the article, or {@link
2741            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2742            * @param articleId the article ID keywords (space separated, optionally
2743            <code>null</code>)
2744            * @param title the title keywords (space separated, optionally
2745            <code>null</code>)
2746            * @param description the description keywords (space separated, optionally
2747            <code>null</code>)
2748            * @param content the content keywords (space separated, optionally
2749            <code>null</code>)
2750            * @param type the web content article's type (optionally
2751            <code>null</code>)
2752            * @param status the web content article's workflow status. For more
2753            information see {@link WorkflowConstants} for constants starting
2754            with the "STATUS_" prefix.
2755            * @param ddmStructureKey the primary key of the web content article's DDM
2756            structure, if the article is related to a DDM structure, or
2757            <code>null</code> otherwise
2758            * @param ddmTemplateKey the primary key of the web content article's DDM
2759            template (optionally <code>null</code>). If the article is
2760            related to a DDM structure, the template's structure must match
2761            it.
2762            * @param params the finder parameters (optionally <code>null</code>). Can
2763            set parameter <code>"includeDiscussions"</code> to
2764            <code>true</code> to search for the keywords in the web content
2765            article discussions.
2766            * @param andSearch whether every field must match its value or keywords,
2767            or just one field must match
2768            * @param start the lower bound of the range of web content articles to
2769            return
2770            * @param end the upper bound of the range of web content articles to
2771            return (not inclusive)
2772            * @param sort the field, type, and direction by which to sort (optionally
2773            <code>null</code>)
2774            * @return the matching web content articles ordered by <code>sort</code>
2775            * @throws SystemException if a system exception occurred
2776            */
2777            @Override
2778            public com.liferay.portal.kernel.search.Hits search(long companyId,
2779                    long groupId, java.util.List<java.lang.Long> folderIds,
2780                    long classNameId, java.lang.String articleId, java.lang.String title,
2781                    java.lang.String description, java.lang.String content,
2782                    java.lang.String type, java.lang.String status,
2783                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2784                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2785                    boolean andSearch, int start, int end,
2786                    com.liferay.portal.kernel.search.Sort sort)
2787                    throws com.liferay.portal.kernel.exception.SystemException {
2788                    return _journalArticleLocalService.search(companyId, groupId,
2789                            folderIds, classNameId, articleId, title, description, content,
2790                            type, status, ddmStructureKey, ddmTemplateKey, params, andSearch,
2791                            start, end, sort);
2792            }
2793    
2794            @Override
2795            public com.liferay.portal.kernel.search.Hits search(long groupId,
2796                    long userId, long creatorUserId, int status, int start, int end)
2797                    throws com.liferay.portal.kernel.exception.PortalException,
2798                            com.liferay.portal.kernel.exception.SystemException {
2799                    return _journalArticleLocalService.search(groupId, userId,
2800                            creatorUserId, status, start, end);
2801            }
2802    
2803            /**
2804            * Returns the number of web content articles matching the parameters,
2805            * including a keywords parameter for matching with the article's ID, title,
2806            * description, and content, a DDM structure key parameter, and a DDM
2807            * template key parameter.
2808            *
2809            * @param companyId the primary key of the web content article's company
2810            * @param groupId the primary key of the group (optionally <code>0</code>)
2811            * @param folderIds the primary keys of the web content article folders
2812            (optionally {@link java.util.Collections#EMPTY_LIST})
2813            * @param classNameId the primary key of the DDMStructure class if the web
2814            content article is related to a DDM structure, the primary key of
2815            the class name associated with the article, or {@link
2816            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2817            * @param keywords the keywords (space separated), which may occur in the
2818            web content article ID, title, description, or content
2819            (optionally <code>null</code>). If the keywords value is not
2820            <code>null</code>, the search uses the OR operator in connecting
2821            query criteria; otherwise it uses the AND operator.
2822            * @param version the web content article's version (optionally
2823            <code>null</code>)
2824            * @param type the web content article's type (optionally
2825            <code>null</code>)
2826            * @param ddmStructureKey the primary key of the web content article's DDM
2827            structure, if the article is related to a DDM structure, or
2828            <code>null</code> otherwise
2829            * @param ddmTemplateKey the primary key of the web content article's DDM
2830            template (optionally <code>null</code>). If the article is
2831            related to a DDM structure, the template's structure must match
2832            it.
2833            * @param displayDateGT the date after which a matching web content
2834            article's display date must be after (optionally
2835            <code>null</code>)
2836            * @param displayDateLT the date before which a matching web content
2837            article's display date must be before (optionally
2838            <code>null</code>)
2839            * @param status the web content article's workflow status. For more
2840            information see {@link WorkflowConstants} for constants starting
2841            with the "STATUS_" prefix.
2842            * @param reviewDate the web content article's scheduled review date
2843            (optionally <code>null</code>)
2844            * @return the number of matching web content articles
2845            * @throws SystemException if a system exception occurred
2846            */
2847            @Override
2848            public int searchCount(long companyId, long groupId,
2849                    java.util.List<java.lang.Long> folderIds, long classNameId,
2850                    java.lang.String keywords, java.lang.Double version,
2851                    java.lang.String type, java.lang.String ddmStructureKey,
2852                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
2853                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
2854                    throws com.liferay.portal.kernel.exception.SystemException {
2855                    return _journalArticleLocalService.searchCount(companyId, groupId,
2856                            folderIds, classNameId, keywords, version, type, ddmStructureKey,
2857                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate);
2858            }
2859    
2860            /**
2861            * Returns the number of web content articles matching the parameters,
2862            * including keyword parameters for article ID, title, description, and
2863            * content, a DDM structure key parameter, a DDM template key parameter, and
2864            * an AND operator switch.
2865            *
2866            * @param companyId the primary key of the web content article's company
2867            * @param groupId the primary key of the group (optionally <code>0</code>)
2868            * @param folderIds the primary keys of the web content article folders
2869            (optionally {@link java.util.Collections#EMPTY_LIST})
2870            * @param classNameId the primary key of the DDMStructure class if the web
2871            content article is related to a DDM structure, the primary key of
2872            the class name associated with the article, or {@link
2873            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2874            * @param articleId the article ID keywords (space separated, optionally
2875            <code>null</code>)
2876            * @param version the web content article's version (optionally
2877            <code>null</code>)
2878            * @param title the title keywords (space separated, optionally
2879            <code>null</code>)
2880            * @param description the description keywords (space separated, optionally
2881            <code>null</code>)
2882            * @param content the content keywords (space separated, optionally
2883            <code>null</code>)
2884            * @param type the web content article's type (optionally
2885            <code>null</code>)
2886            * @param ddmStructureKey the primary key of the web content article's DDM
2887            structure, if the article is related to a DDM structure, or
2888            <code>null</code> otherwise
2889            * @param ddmTemplateKey the primary key of the web content article's DDM
2890            template (optionally <code>null</code>). If the article is
2891            related to a DDM structure, the template's structure must match
2892            it.
2893            * @param displayDateGT the date after which a matching web content
2894            article's display date must be after (optionally
2895            <code>null</code>)
2896            * @param displayDateLT the date before which a matching web content
2897            article's display date must be before (optionally
2898            <code>null</code>)
2899            * @param status the web content article's workflow status. For more
2900            information see {@link WorkflowConstants} for constants starting
2901            with the "STATUS_" prefix.
2902            * @param reviewDate the web content article's scheduled review date
2903            (optionally <code>null</code>)
2904            * @param andOperator whether every field must match its value or keywords,
2905            or just one field must match. Group, folder IDs, class name ID,
2906            and status must all match their values.
2907            * @return the number of matching web content articles
2908            * @throws SystemException if a system exception occurred
2909            */
2910            @Override
2911            public int searchCount(long companyId, long groupId,
2912                    java.util.List<java.lang.Long> folderIds, long classNameId,
2913                    java.lang.String articleId, java.lang.Double version,
2914                    java.lang.String title, java.lang.String description,
2915                    java.lang.String content, java.lang.String type,
2916                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2917                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
2918                    java.util.Date reviewDate, boolean andOperator)
2919                    throws com.liferay.portal.kernel.exception.SystemException {
2920                    return _journalArticleLocalService.searchCount(companyId, groupId,
2921                            folderIds, classNameId, articleId, version, title, description,
2922                            content, type, ddmStructureKey, ddmTemplateKey, displayDateGT,
2923                            displayDateLT, status, reviewDate, andOperator);
2924            }
2925    
2926            /**
2927            * Returns the number of web content articles matching the parameters,
2928            * including keyword parameters for article ID, title, description, and
2929            * content, a DDM structure keys (plural) parameter, a DDM template keys
2930            * (plural) parameter, and an AND operator switch.
2931            *
2932            * @param companyId the primary key of the web content article's company
2933            * @param groupId the primary key of the group (optionally <code>0</code>)
2934            * @param folderIds the primary keys of the web content article folders
2935            (optionally {@link java.util.Collections#EMPTY_LIST})
2936            * @param classNameId the primary key of the DDMStructure class if the web
2937            content article is related to a DDM structure, the primary key of
2938            the class name associated with the article, or {@link
2939            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2940            * @param articleId the article ID keywords (space separated, optionally
2941            <code>null</code>)
2942            * @param version the web content article's version (optionally
2943            <code>null</code>)
2944            * @param title the title keywords (space separated, optionally
2945            <code>null</code>)
2946            * @param description the description keywords (space separated, optionally
2947            <code>null</code>)
2948            * @param content the content keywords (space separated, optionally
2949            <code>null</code>)
2950            * @param type the web content article's type (optionally
2951            <code>null</code>)
2952            * @param ddmStructureKeys the primary keys of the web content article's
2953            DDM structures, if the article is related to a DDM structure, or
2954            <code>null</code> otherwise
2955            * @param ddmTemplateKeys the primary keys of the web content article's DDM
2956            templates (originally <code>null</code>). If the articles are
2957            related to a DDM structure, the template's structure must match
2958            it.
2959            * @param displayDateGT the date after which a matching web content
2960            article's display date must be after (optionally
2961            <code>null</code>)
2962            * @param displayDateLT the date before which a matching web content
2963            article's display date must be before (optionally
2964            <code>null</code>)
2965            * @param status the web content article's workflow status. For more
2966            information see {@link WorkflowConstants} for constants starting
2967            with the "STATUS_" prefix.
2968            * @param reviewDate the web content article's scheduled review date
2969            (optionally <code>null</code>)
2970            * @param andOperator whether every field must match its value or keywords,
2971            or just one field must match.  Group, folder IDs, class name ID,
2972            and status must all match their values.
2973            * @return the number of matching web content articles
2974            * @throws SystemException if a system exception occurred
2975            */
2976            @Override
2977            public int searchCount(long companyId, long groupId,
2978                    java.util.List<java.lang.Long> folderIds, long classNameId,
2979                    java.lang.String articleId, java.lang.Double version,
2980                    java.lang.String title, java.lang.String description,
2981                    java.lang.String content, java.lang.String type,
2982                    java.lang.String[] ddmStructureKeys,
2983                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
2984                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
2985                    boolean andOperator)
2986                    throws com.liferay.portal.kernel.exception.SystemException {
2987                    return _journalArticleLocalService.searchCount(companyId, groupId,
2988                            folderIds, classNameId, articleId, version, title, description,
2989                            content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
2990                            displayDateLT, status, reviewDate, andOperator);
2991            }
2992    
2993            /**
2994            * Subscribes the user to notifications for the web content article matching
2995            * the group, notifying him the instant versions of the article are created,
2996            * deleted, or modified.
2997            *
2998            * @param userId the primary key of the user to subscribe
2999            * @param groupId the primary key of the group
3000            * @throws PortalException if a matching user or group could not be found
3001            * @throws SystemException if a system exception occurred
3002            */
3003            @Override
3004            public void subscribe(long userId, long groupId)
3005                    throws com.liferay.portal.kernel.exception.PortalException,
3006                            com.liferay.portal.kernel.exception.SystemException {
3007                    _journalArticleLocalService.subscribe(userId, groupId);
3008            }
3009    
3010            /**
3011            * Unsubscribes the user from notifications for the web content article
3012            * matching the group.
3013            *
3014            * @param userId the primary key of the user to unsubscribe
3015            * @param groupId the primary key of the group
3016            * @throws PortalException if a matching user or subscription could not be
3017            found
3018            * @throws SystemException if a system exception occurred
3019            */
3020            @Override
3021            public void unsubscribe(long userId, long groupId)
3022                    throws com.liferay.portal.kernel.exception.PortalException,
3023                            com.liferay.portal.kernel.exception.SystemException {
3024                    _journalArticleLocalService.unsubscribe(userId, groupId);
3025            }
3026    
3027            /**
3028            * Updates the web content article matching the version, replacing its
3029            * folder, title, description, content, and layout UUID.
3030            *
3031            * @param userId the primary key of the user updating the web content
3032            article
3033            * @param groupId the primary key of the web content article's group
3034            * @param folderId the primary key of the web content article folder
3035            * @param articleId the primary key of the web content article
3036            * @param version the web content article's version
3037            * @param titleMap the web content article's locales and localized titles
3038            * @param descriptionMap the web content article's locales and localized
3039            descriptions
3040            * @param content the HTML content wrapped in XML. For more information,
3041            see the content example in the class description for {@link
3042            JournalArticleLocalServiceImpl}.
3043            * @param layoutUuid the unique string identifying the web content
3044            article's display page
3045            * @param serviceContext the service context to be applied. Can set the
3046            modification date, expando bridge attributes, asset category IDs,
3047            asset tag names, asset link entry IDs, workflow actions, the
3048            "defaultLanguageId" and "urlTitle" attributes, and can set
3049            whether to add the default command update for the web content
3050            article. With respect to social activities, by setting the
3051            service context's command to {@link
3052            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3053            is considered a web content update activity; otherwise it is
3054            considered a web content add activity.
3055            * @return the updated web content article
3056            * @throws PortalException if a user with the primary key or a matching web
3057            content article could not be found, or if a portal exception
3058            occurred
3059            * @throws SystemException if a system exception occurred
3060            */
3061            @Override
3062            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
3063                    long userId, long groupId, long folderId, java.lang.String articleId,
3064                    double version,
3065                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
3066                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
3067                    java.lang.String content, java.lang.String layoutUuid,
3068                    com.liferay.portal.service.ServiceContext serviceContext)
3069                    throws com.liferay.portal.kernel.exception.PortalException,
3070                            com.liferay.portal.kernel.exception.SystemException {
3071                    return _journalArticleLocalService.updateArticle(userId, groupId,
3072                            folderId, articleId, version, titleMap, descriptionMap, content,
3073                            layoutUuid, serviceContext);
3074            }
3075    
3076            /**
3077            * Updates the web content article with additional parameters.
3078            *
3079            * @param userId the primary key of the user updating the web content
3080            article
3081            * @param groupId the primary key of the web content article's group
3082            * @param folderId the primary key of the web content article folder
3083            * @param articleId the primary key of the web content article
3084            * @param version the web content article's version
3085            * @param titleMap the web content article's locales and localized titles
3086            * @param descriptionMap the web content article's locales and localized
3087            descriptions
3088            * @param content the HTML content wrapped in XML. For more information,
3089            see the content example in the class description for {@link
3090            JournalArticleLocalServiceImpl}.
3091            * @param type the structure's type, if the web content article is related
3092            to a DDM structure. For more information, see {@link
3093            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
3094            * @param ddmStructureKey the primary key of the web content article's DDM
3095            structure, if the article is related to a DDM structure, or
3096            <code>null</code> otherwise
3097            * @param ddmTemplateKey the primary key of the web content article's DDM
3098            template (optionally <code>null</code>). If the article is
3099            related to a DDM structure, the template's structure must match
3100            it.
3101            * @param layoutUuid the unique string identifying the web content
3102            article's display page
3103            * @param displayDateMonth the month the web content article is set to
3104            display
3105            * @param displayDateDay the calendar day the web content article is set to
3106            display
3107            * @param displayDateYear the year the web content article is set to
3108            display
3109            * @param displayDateHour the hour the web content article is set to
3110            display
3111            * @param displayDateMinute the minute the web content article is set to
3112            display
3113            * @param expirationDateMonth the month the web content article is set to
3114            expire
3115            * @param expirationDateDay the calendar day the web content article is set
3116            to expire
3117            * @param expirationDateYear the year the web content article is set to
3118            expire
3119            * @param expirationDateHour the hour the web content article is set to
3120            expire
3121            * @param expirationDateMinute the minute the web content article is set to
3122            expire
3123            * @param neverExpire whether the web content article is not set to auto
3124            expire
3125            * @param reviewDateMonth the month the web content article is set for
3126            review
3127            * @param reviewDateDay the calendar day the web content article is set for
3128            review
3129            * @param reviewDateYear the year the web content article is set for review
3130            * @param reviewDateHour the hour the web content article is set for review
3131            * @param reviewDateMinute the minute the web content article is set for
3132            review
3133            * @param neverReview whether the web content article is not set for review
3134            * @param indexable whether the web content is searchable
3135            * @param smallImage whether to update web content article's a small image.
3136            A file must be passed in as <code>smallImageFile</code> value,
3137            otherwise the current small image is deleted.
3138            * @param smallImageURL the web content article's small image URL
3139            (optionally <code>null</code>)
3140            * @param smallImageFile the web content article's new small image file
3141            (optionally <code>null</code>). Must pass in
3142            <code>smallImage</code> value of <code>true</code> to replace the
3143            article's small image file.
3144            * @param images the web content's images (optionally <code>null</code>)
3145            * @param articleURL the web content article's accessible URL (optionally
3146            <code>null</code>)
3147            * @param serviceContext the service context to be applied. Can set the
3148            modification date, expando bridge attributes, asset category IDs,
3149            asset tag names, asset link entry IDs, workflow actions, the
3150            "defaultLanguageId" and "urlTitle" attributes, and can set
3151            whether to add the default command update for the web content
3152            article. With respect to social activities, by setting the
3153            service context's command to {@link
3154            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3155            is considered a web content update activity; otherwise it is
3156            considered a web content add activity.
3157            * @return the updated web content article
3158            * @throws PortalException if a user with the primary key or a matching web
3159            content article could not be found, or if a portal exception
3160            occurred
3161            * @throws SystemException if a system exception occurred
3162            */
3163            @Override
3164            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
3165                    long userId, long groupId, long folderId, java.lang.String articleId,
3166                    double version,
3167                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
3168                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
3169                    java.lang.String content, java.lang.String type,
3170                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
3171                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
3172                    int displayDateYear, int displayDateHour, int displayDateMinute,
3173                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
3174                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
3175                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
3176                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
3177                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
3178                    java.io.File smallImageFile,
3179                    java.util.Map<java.lang.String, byte[]> images,
3180                    java.lang.String articleURL,
3181                    com.liferay.portal.service.ServiceContext serviceContext)
3182                    throws com.liferay.portal.kernel.exception.PortalException,
3183                            com.liferay.portal.kernel.exception.SystemException {
3184                    return _journalArticleLocalService.updateArticle(userId, groupId,
3185                            folderId, articleId, version, titleMap, descriptionMap, content,
3186                            type, ddmStructureKey, ddmTemplateKey, layoutUuid,
3187                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
3188                            displayDateMinute, expirationDateMonth, expirationDateDay,
3189                            expirationDateYear, expirationDateHour, expirationDateMinute,
3190                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
3191                            reviewDateHour, reviewDateMinute, neverReview, indexable,
3192                            smallImage, smallImageURL, smallImageFile, images, articleURL,
3193                            serviceContext);
3194            }
3195    
3196            /**
3197            * Updates the web content article matching the version, replacing its
3198            * folder and content.
3199            *
3200            * @param userId the primary key of the user updating the web content
3201            article
3202            * @param groupId the primary key of the web content article's group
3203            * @param folderId the primary key of the web content article folder
3204            * @param articleId the primary key of the web content article
3205            * @param version the web content article's version
3206            * @param content the HTML content wrapped in XML. For more information,
3207            see the content example in the class description for {@link
3208            JournalArticleLocalServiceImpl}.
3209            * @param serviceContext the service context to be applied. Can set the
3210            modification date, expando bridge attributes, asset category IDs,
3211            asset tag names, asset link entry IDs, workflow actions, the
3212            "defaultLanguageId" and "urlTitle" attributes, and can set
3213            whether to add the default command update for the web content
3214            article. With respect to social activities, by setting the
3215            service context's command to {@link
3216            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3217            is considered a web content update activity; otherwise it is
3218            considered a web content add activity.
3219            * @return the updated web content article
3220            * @throws PortalException if a user with the primary key or a matching web
3221            content article could not be found, or if a portal exception
3222            occurred
3223            * @throws SystemException if a system exception occurred
3224            */
3225            @Override
3226            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
3227                    long userId, long groupId, long folderId, java.lang.String articleId,
3228                    double version, java.lang.String content,
3229                    com.liferay.portal.service.ServiceContext serviceContext)
3230                    throws com.liferay.portal.kernel.exception.PortalException,
3231                            com.liferay.portal.kernel.exception.SystemException {
3232                    return _journalArticleLocalService.updateArticle(userId, groupId,
3233                            folderId, articleId, version, content, serviceContext);
3234            }
3235    
3236            /**
3237            * @deprecated As of 6.2.0, replaced by {@link
3238            #updateArticleTranslation(long, String, double, Locale,
3239            String, String, String, Map, ServiceContext)}
3240            */
3241            @Override
3242            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
3243                    long groupId, java.lang.String articleId, double version,
3244                    java.util.Locale locale, java.lang.String title,
3245                    java.lang.String description, java.lang.String content,
3246                    java.util.Map<java.lang.String, byte[]> images)
3247                    throws com.liferay.portal.kernel.exception.PortalException,
3248                            com.liferay.portal.kernel.exception.SystemException {
3249                    return _journalArticleLocalService.updateArticleTranslation(groupId,
3250                            articleId, version, locale, title, description, content, images);
3251            }
3252    
3253            /**
3254            * Updates the translation of the web content article.
3255            *
3256            * @param groupId the primary key of the web content article's group
3257            * @param articleId the primary key of the web content article
3258            * @param version the web content article's version
3259            * @param locale the locale of the web content article's display template
3260            * @param title the translated web content article title
3261            * @param description the translated web content article description
3262            * @param content the HTML content wrapped in XML. For more information,
3263            see the content example in the class description for {@link
3264            JournalArticleLocalServiceImpl}.
3265            * @param images the web content's images
3266            * @param serviceContext the service context to be applied. Can set the
3267            modification date and "urlTitle" attribute for the web content
3268            article.
3269            * @return the updated web content article
3270            * @throws PortalException if a user with the primary key or a matching web
3271            content article could not be found, or if a portal exception
3272            occurred
3273            * @throws SystemException if a system exception occurred
3274            */
3275            @Override
3276            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
3277                    long groupId, java.lang.String articleId, double version,
3278                    java.util.Locale locale, java.lang.String title,
3279                    java.lang.String description, java.lang.String content,
3280                    java.util.Map<java.lang.String, byte[]> images,
3281                    com.liferay.portal.service.ServiceContext serviceContext)
3282                    throws com.liferay.portal.kernel.exception.PortalException,
3283                            com.liferay.portal.kernel.exception.SystemException {
3284                    return _journalArticleLocalService.updateArticleTranslation(groupId,
3285                            articleId, version, locale, title, description, content, images,
3286                            serviceContext);
3287            }
3288    
3289            /**
3290            * Updates the web content article's asset with the new asset categories,
3291            * tag names, and link entries, removing and adding them as necessary.
3292            *
3293            * @param userId the primary key of the user updating the web content
3294            article's asset
3295            * @param article the web content article
3296            * @param assetCategoryIds the primary keys of the new asset categories
3297            * @param assetTagNames the new asset tag names
3298            * @param assetLinkEntryIds the primary keys of the new asset link entries
3299            * @throws PortalException if a portal exception occurred
3300            * @throws SystemException if a system exception occurred
3301            */
3302            @Override
3303            public void updateAsset(long userId,
3304                    com.liferay.portlet.journal.model.JournalArticle article,
3305                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
3306                    long[] assetLinkEntryIds)
3307                    throws com.liferay.portal.kernel.exception.PortalException,
3308                            com.liferay.portal.kernel.exception.SystemException {
3309                    _journalArticleLocalService.updateAsset(userId, article,
3310                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
3311            }
3312    
3313            /**
3314            * Updates the web content article matching the group, article ID, and
3315            * version, replacing its content.
3316            *
3317            * @param groupId the primary key of the web content article's group
3318            * @param articleId the primary key of the web content article
3319            * @param version the web content article's version
3320            * @param content the HTML content wrapped in XML. For more information,
3321            see the content example in the class description for {@link
3322            JournalArticleLocalServiceImpl}.
3323            * @return the updated web content article
3324            * @throws PortalException if a matching web content article could not be
3325            found
3326            * @throws SystemException if a system exception occurred
3327            */
3328            @Override
3329            public com.liferay.portlet.journal.model.JournalArticle updateContent(
3330                    long groupId, java.lang.String articleId, double version,
3331                    java.lang.String content)
3332                    throws com.liferay.portal.kernel.exception.PortalException,
3333                            com.liferay.portal.kernel.exception.SystemException {
3334                    return _journalArticleLocalService.updateContent(groupId, articleId,
3335                            version, content);
3336            }
3337    
3338            /**
3339            * Updates the workflow status of the web content article.
3340            *
3341            * @param userId the primary key of the user updating the web content
3342            article's status
3343            * @param article the web content article
3344            * @param status the web content article's workflow status. For more
3345            information see {@link WorkflowConstants} for constants starting
3346            with the "STATUS_" prefix.
3347            * @param articleURL the web content article's accessible URL
3348            * @param workflowContext the web content article's configured workflow
3349            context
3350            * @param serviceContext the service context to be applied. Can set the
3351            modification date, status date, and portlet preferences. With
3352            respect to social activities, by setting the service context's
3353            command to {@link
3354            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3355            is considered a web content update activity; otherwise it is
3356            considered a web content add activity.
3357            * @return the updated web content article
3358            * @throws PortalException if a portal exception occurred
3359            * @throws SystemException if a system exception occurred
3360            */
3361            @Override
3362            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
3363                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
3364                    int status, java.lang.String articleURL,
3365                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
3366                    com.liferay.portal.service.ServiceContext serviceContext)
3367                    throws com.liferay.portal.kernel.exception.PortalException,
3368                            com.liferay.portal.kernel.exception.SystemException {
3369                    return _journalArticleLocalService.updateStatus(userId, article,
3370                            status, articleURL, workflowContext, serviceContext);
3371            }
3372    
3373            /**
3374            * Updates the workflow status of the web content article matching the class
3375            * PK.
3376            *
3377            * @param userId the primary key of the user updating the web content
3378            article's status
3379            * @param classPK the primary key of the DDM structure, if the web content
3380            article is related to a DDM structure, the primary key of the
3381            class associated with the article, or <code>0</code> otherwise
3382            * @param status the web content article's workflow status. For more
3383            information see {@link WorkflowConstants} for constants starting
3384            with the "STATUS_" prefix.
3385            * @param workflowContext the web content article's configured workflow
3386            * @param serviceContext the service context to be applied. Can set the
3387            modification date, portlet preferences, and can set whether to
3388            add the default command update for the web content article.
3389            * @return the updated web content article
3390            * @throws PortalException if a matching web content article could not be
3391            found or if a portal exception occurred
3392            * @throws SystemException if a system exception occurred
3393            */
3394            @Override
3395            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
3396                    long userId, long classPK, int status,
3397                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
3398                    com.liferay.portal.service.ServiceContext serviceContext)
3399                    throws com.liferay.portal.kernel.exception.PortalException,
3400                            com.liferay.portal.kernel.exception.SystemException {
3401                    return _journalArticleLocalService.updateStatus(userId, classPK,
3402                            status, workflowContext, serviceContext);
3403            }
3404    
3405            /**
3406            * Updates the workflow status of the web content article matching the
3407            * group, article ID, and version.
3408            *
3409            * @param userId the primary key of the user updating the web content
3410            article's status
3411            * @param groupId the primary key of the web content article's group
3412            * @param articleId the primary key of the web content article
3413            * @param version the web content article's version
3414            * @param status the web content article's workflow status. For more
3415            information see {@link WorkflowConstants} for constants starting
3416            with the "STATUS_" prefix.
3417            * @param articleURL the web content article's accessible URL
3418            * @param workflowContext the web content article's configured workflow
3419            * @param serviceContext the service context to be applied. Can set the
3420            modification date, portlet preferences, and can set whether to
3421            add the default command update for the web content article.
3422            * @return the updated web content article
3423            * @throws PortalException if a matching web content article could not be
3424            found or if a portal exception occurred
3425            * @throws SystemException if a system exception occurred
3426            */
3427            @Override
3428            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
3429                    long userId, long groupId, java.lang.String articleId, double version,
3430                    int status, java.lang.String articleURL,
3431                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
3432                    com.liferay.portal.service.ServiceContext serviceContext)
3433                    throws com.liferay.portal.kernel.exception.PortalException,
3434                            com.liferay.portal.kernel.exception.SystemException {
3435                    return _journalArticleLocalService.updateStatus(userId, groupId,
3436                            articleId, version, status, articleURL, workflowContext,
3437                            serviceContext);
3438            }
3439    
3440            /**
3441            * Updates the web content articles matching the group, class name ID, and
3442            * DDM template key, replacing the DDM template key with a new one.
3443            *
3444            * @param groupId the primary key of the web content article's group
3445            * @param classNameId the primary key of the DDMStructure class if the web
3446            content article is related to a DDM structure, the primary key of
3447            the class name associated with the article, or {@link
3448            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
3449            * @param oldDDMTemplateKey the primary key of the web content article's
3450            old DDM template
3451            * @param newDDMTemplateKey the primary key of the web content article's
3452            new DDM template
3453            * @throws SystemException if a system exception occurred
3454            */
3455            @Override
3456            public void updateTemplateId(long groupId, long classNameId,
3457                    java.lang.String oldDDMTemplateKey, java.lang.String newDDMTemplateKey)
3458                    throws com.liferay.portal.kernel.exception.SystemException {
3459                    _journalArticleLocalService.updateTemplateId(groupId, classNameId,
3460                            oldDDMTemplateKey, newDDMTemplateKey);
3461            }
3462    
3463            /**
3464             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
3465             */
3466            public JournalArticleLocalService getWrappedJournalArticleLocalService() {
3467                    return _journalArticleLocalService;
3468            }
3469    
3470            /**
3471             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
3472             */
3473            public void setWrappedJournalArticleLocalService(
3474                    JournalArticleLocalService journalArticleLocalService) {
3475                    _journalArticleLocalService = journalArticleLocalService;
3476            }
3477    
3478            @Override
3479            public JournalArticleLocalService getWrappedService() {
3480                    return _journalArticleLocalService;
3481            }
3482    
3483            @Override
3484            public void setWrappedService(
3485                    JournalArticleLocalService journalArticleLocalService) {
3486                    _journalArticleLocalService = journalArticleLocalService;
3487            }
3488    
3489            private JournalArticleLocalService _journalArticleLocalService;
3490    }