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 com.liferay.portlet.journal.model.JournalArticle 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                    return _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 com.liferay.portlet.journal.model.JournalArticle 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                    return _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 com.liferay.portlet.journal.model.JournalArticle deleteArticle(
750                    long groupId, java.lang.String articleId, double version,
751                    java.lang.String articleURL,
752                    com.liferay.portal.service.ServiceContext serviceContext)
753                    throws com.liferay.portal.kernel.exception.PortalException,
754                            com.liferay.portal.kernel.exception.SystemException {
755                    return _journalArticleLocalService.deleteArticle(groupId, articleId,
756                            version, articleURL, serviceContext);
757            }
758    
759            /**
760            * Deletes all web content articles and their resources matching the group
761            * and article ID, optionally sending email notifying denial of article if
762            * it had not yet been approved.
763            *
764            * @param groupId the primary key of the web content article's group
765            * @param articleId the primary key of the web content article
766            * @param serviceContext the service context to be applied. Can set the
767            portlet preferences that include email information to notify
768            recipients of the unapproved web content article's denial.
769            * @throws PortalException if a portal exception occurred
770            * @throws SystemException if a system exception occurred
771            */
772            @Override
773            public void deleteArticle(long groupId, java.lang.String articleId,
774                    com.liferay.portal.service.ServiceContext serviceContext)
775                    throws com.liferay.portal.kernel.exception.PortalException,
776                            com.liferay.portal.kernel.exception.SystemException {
777                    _journalArticleLocalService.deleteArticle(groupId, articleId,
778                            serviceContext);
779            }
780    
781            /**
782            * Deletes all the group's web content articles and resources.
783            *
784            * @param groupId the primary key of the web content article's group
785            * @throws PortalException if a portal exception occurred
786            * @throws SystemException if a system exception occurred
787            */
788            @Override
789            public void deleteArticles(long groupId)
790                    throws com.liferay.portal.kernel.exception.PortalException,
791                            com.liferay.portal.kernel.exception.SystemException {
792                    _journalArticleLocalService.deleteArticles(groupId);
793            }
794    
795            /**
796            * Deletes all the group's web content articles and resources in the folder,
797            * including recycled articles.
798            *
799            * @param groupId the primary key of the web content article's group
800            * @param folderId the primary key of the web content article folder
801            * @throws PortalException if a portal exception occurred
802            * @throws SystemException if a system exception occurred
803            */
804            @Override
805            public void deleteArticles(long groupId, long folderId)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException {
808                    _journalArticleLocalService.deleteArticles(groupId, folderId);
809            }
810    
811            /**
812            * Deletes all the group's web content articles and resources in the folder,
813            * optionally including recycled articles.
814            *
815            * @param groupId the primary key of the web content article's group
816            * @param folderId the primary key of the web content article folder
817            * @param includeTrashedEntries whether to include recycled web content
818            articles
819            * @throws PortalException if a portal exception occurred
820            * @throws SystemException if a system exception occurred
821            */
822            @Override
823            public void deleteArticles(long groupId, long folderId,
824                    boolean includeTrashedEntries)
825                    throws com.liferay.portal.kernel.exception.PortalException,
826                            com.liferay.portal.kernel.exception.SystemException {
827                    _journalArticleLocalService.deleteArticles(groupId, folderId,
828                            includeTrashedEntries);
829            }
830    
831            /**
832            * Deletes the layout's association with the web content articles for the
833            * group.
834            *
835            * @param groupId the primary key of the web content article's group
836            * @param layoutUuid the unique string identifying the web content
837            article's display page
838            * @throws SystemException if a system exception occurred
839            */
840            @Override
841            public void deleteLayoutArticleReferences(long groupId,
842                    java.lang.String layoutUuid)
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    _journalArticleLocalService.deleteLayoutArticleReferences(groupId,
845                            layoutUuid);
846            }
847    
848            /**
849            * Expires the web content article matching the group, article ID, and
850            * version.
851            *
852            * @param userId the primary key of the user updating the web content
853            article
854            * @param groupId the primary key of the web content article's group
855            * @param articleId the primary key of the web content article
856            * @param version the web content article's version
857            * @param articleURL the web content article's accessible URL
858            * @param serviceContext the service context to be applied. Can set the
859            modification date, status date, portlet preferences, and can set
860            whether to add the default command update for the web content
861            article. With respect to social activities, by setting the
862            service context's command to {@link
863            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
864            is considered a web content update activity; otherwise it is
865            considered a web content add activity.
866            * @return the web content article
867            * @throws PortalException if a matching web content article could not be
868            found or if a portal exception occurred
869            * @throws SystemException if a system exception occurred
870            */
871            @Override
872            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
873                    long userId, long groupId, java.lang.String articleId, double version,
874                    java.lang.String articleURL,
875                    com.liferay.portal.service.ServiceContext serviceContext)
876                    throws com.liferay.portal.kernel.exception.PortalException,
877                            com.liferay.portal.kernel.exception.SystemException {
878                    return _journalArticleLocalService.expireArticle(userId, groupId,
879                            articleId, version, articleURL, serviceContext);
880            }
881    
882            /**
883            * Expires the web content article matching the group and article ID,
884            * expiring all of its versions if the
885            * <code>journal.article.expire.all.versions</code> portal property is
886            * <code>true</code>, otherwise expiring only its latest approved version.
887            *
888            * @param userId the primary key of the user updating the web content
889            article
890            * @param groupId the primary key of the web content article's group
891            * @param articleId the primary key of the web content article
892            * @param articleURL the web content article's accessible URL
893            * @param serviceContext the service context to be applied. Can set the
894            modification date, status date, portlet preferences, and can set
895            whether to add the default command update for the web content
896            article. With respect to social activities, by setting the
897            service context's command to {@link
898            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
899            is considered a web content update activity; otherwise it is
900            considered a web content add activity.
901            * @throws PortalException if a matching web content article could not be
902            found or if a portal exception occurred
903            * @throws SystemException if a system exception occurred
904            */
905            @Override
906            public void expireArticle(long userId, long groupId,
907                    java.lang.String articleId, java.lang.String articleURL,
908                    com.liferay.portal.service.ServiceContext serviceContext)
909                    throws com.liferay.portal.kernel.exception.PortalException,
910                            com.liferay.portal.kernel.exception.SystemException {
911                    _journalArticleLocalService.expireArticle(userId, groupId, articleId,
912                            articleURL, serviceContext);
913            }
914    
915            @Override
916            public com.liferay.portlet.journal.model.JournalArticle fetchArticle(
917                    long groupId, java.lang.String articleId, double version)
918                    throws com.liferay.portal.kernel.exception.SystemException {
919                    return _journalArticleLocalService.fetchArticle(groupId, articleId,
920                            version);
921            }
922    
923            @Override
924            public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle(
925                    long resourcePrimKey, int status, boolean preferApproved)
926                    throws com.liferay.portal.kernel.exception.SystemException {
927                    return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey,
928                            status, preferApproved);
929            }
930    
931            @Override
932            public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle(
933                    long groupId, java.lang.String articleId, int status)
934                    throws com.liferay.portal.kernel.exception.SystemException {
935                    return _journalArticleLocalService.fetchLatestArticle(groupId,
936                            articleId, status);
937            }
938    
939            @Override
940            public com.liferay.portlet.journal.model.JournalArticle fetchLatestIndexableArticle(
941                    long resourcePrimKey)
942                    throws com.liferay.portal.kernel.exception.SystemException {
943                    return _journalArticleLocalService.fetchLatestIndexableArticle(resourcePrimKey);
944            }
945    
946            /**
947            * Returns the web content article with the ID.
948            *
949            * @param id the primary key of the web content article
950            * @return the web content article with the ID
951            * @throws PortalException if a matching web content article could not be
952            found
953            * @throws SystemException if a system exception occurred
954            */
955            @Override
956            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
957                    throws com.liferay.portal.kernel.exception.PortalException,
958                            com.liferay.portal.kernel.exception.SystemException {
959                    return _journalArticleLocalService.getArticle(id);
960            }
961    
962            /**
963            * Returns the latest approved web content article, or the latest unapproved
964            * article if none are approved. Both approved and unapproved articles must
965            * match the group and article ID.
966            *
967            * @param groupId the primary key of the web content article's group
968            * @param articleId the primary key of the web content article
969            * @return the matching web content article
970            * @throws PortalException if a matching web content article could not be
971            found
972            * @throws SystemException if a system exception occurred
973            */
974            @Override
975            public com.liferay.portlet.journal.model.JournalArticle getArticle(
976                    long groupId, java.lang.String articleId)
977                    throws com.liferay.portal.kernel.exception.PortalException,
978                            com.liferay.portal.kernel.exception.SystemException {
979                    return _journalArticleLocalService.getArticle(groupId, articleId);
980            }
981    
982            /**
983            * Returns the web content article matching the group, article ID, and
984            * version.
985            *
986            * @param groupId the primary key of the web content article's group
987            * @param articleId the primary key of the web content article
988            * @param version the web content article's version
989            * @return the matching web content article
990            * @throws PortalException if a matching web content article could not be
991            found
992            * @throws SystemException if a system exception occurred
993            */
994            @Override
995            public com.liferay.portlet.journal.model.JournalArticle getArticle(
996                    long groupId, java.lang.String articleId, double version)
997                    throws com.liferay.portal.kernel.exception.PortalException,
998                            com.liferay.portal.kernel.exception.SystemException {
999                    return _journalArticleLocalService.getArticle(groupId, articleId,
1000                            version);
1001            }
1002    
1003            /**
1004            * Returns the web content article matching the group, class name, and class
1005            * PK.
1006            *
1007            * @param groupId the primary key of the web content article's group
1008            * @param className the DDMStructure class name if the web content article
1009            is related to a DDM structure, the primary key of the class name
1010            associated with the article, or {@link
1011            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1012            * @param classPK the primary key of the DDM structure, if the the
1013            DDMStructure class name is given as the <code>className</code>
1014            parameter, the primary key of the class associated with the web
1015            content article, or <code>0</code> otherwise
1016            * @return the matching web content article
1017            * @throws PortalException if a matching web content article could not be
1018            found
1019            * @throws SystemException if a system exception occurred
1020            */
1021            @Override
1022            public com.liferay.portlet.journal.model.JournalArticle getArticle(
1023                    long groupId, java.lang.String className, long classPK)
1024                    throws com.liferay.portal.kernel.exception.PortalException,
1025                            com.liferay.portal.kernel.exception.SystemException {
1026                    return _journalArticleLocalService.getArticle(groupId, className,
1027                            classPK);
1028            }
1029    
1030            /**
1031            * Returns the latest web content article that is approved, or the latest
1032            * unapproved article if none are approved. Both approved and unapproved
1033            * articles must match the group and URL title.
1034            *
1035            * @param groupId the primary key of the web content article's group
1036            * @param urlTitle the web content article's accessible URL title
1037            * @return the matching web content article
1038            * @throws PortalException if a portal exception occurred
1039            * @throws SystemException if a system exception occurred
1040            */
1041            @Override
1042            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
1043                    long groupId, java.lang.String urlTitle)
1044                    throws com.liferay.portal.kernel.exception.PortalException,
1045                            com.liferay.portal.kernel.exception.SystemException {
1046                    return _journalArticleLocalService.getArticleByUrlTitle(groupId,
1047                            urlTitle);
1048            }
1049    
1050            /**
1051            * Returns the web content associated with the web content article and DDM
1052            * template.
1053            *
1054            * @param article the web content article
1055            * @param ddmTemplateKey the primary key of the web content article's DDM
1056            template (optionally <code>null</code>). If the article is
1057            related to a DDM structure, the template's structure must match
1058            it.
1059            * @param viewMode the mode in which the web content is being viewed
1060            * @param languageId the primary key of the language translation to get
1061            * @param themeDisplay the theme display
1062            * @return the web content associated with the DDM template
1063            * @throws PortalException if a matching DDM template could not be found or
1064            if a portal exception occurred
1065            * @throws SystemException if a system exception occurred
1066            */
1067            @Override
1068            public java.lang.String getArticleContent(
1069                    com.liferay.portlet.journal.model.JournalArticle article,
1070                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1071                    java.lang.String languageId,
1072                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1073                    throws com.liferay.portal.kernel.exception.PortalException,
1074                            com.liferay.portal.kernel.exception.SystemException {
1075                    return _journalArticleLocalService.getArticleContent(article,
1076                            ddmTemplateKey, viewMode, languageId, themeDisplay);
1077            }
1078    
1079            /**
1080            * Returns the web content matching the group, article ID, and version, and
1081            * associated with the DDM template.
1082            *
1083            * @param groupId the primary key of the web content article's group
1084            * @param articleId the primary key of the web content article
1085            * @param version the web content article's version
1086            * @param viewMode the mode in which the web content is being viewed
1087            * @param ddmTemplateKey the primary key of the web content article's DDM
1088            template (optionally <code>null</code>). If the article is
1089            related to a DDM structure, the template's structure must match
1090            it.
1091            * @param languageId the primary key of the language translation to get
1092            * @param themeDisplay the theme display
1093            * @return the matching web content
1094            * @throws PortalException if a matching web content article or DDM template
1095            could not be found, or if a portal exception occurred
1096            * @throws SystemException if a system exception occurred
1097            */
1098            @Override
1099            public java.lang.String getArticleContent(long groupId,
1100                    java.lang.String articleId, double version, java.lang.String viewMode,
1101                    java.lang.String ddmTemplateKey, java.lang.String languageId,
1102                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1103                    throws com.liferay.portal.kernel.exception.PortalException,
1104                            com.liferay.portal.kernel.exception.SystemException {
1105                    return _journalArticleLocalService.getArticleContent(groupId,
1106                            articleId, version, viewMode, ddmTemplateKey, languageId,
1107                            themeDisplay);
1108            }
1109    
1110            /**
1111            * Returns the web content matching the group, article ID, and version.
1112            *
1113            * @param groupId the primary key of the web content article's group
1114            * @param articleId the primary key of the web content article
1115            * @param version the web content article's version
1116            * @param viewMode the mode in which the web content is being viewed
1117            * @param languageId the primary key of the language translation to get
1118            * @param themeDisplay the theme display
1119            * @return the matching web content
1120            * @throws PortalException if a matching web content article or DDM template
1121            could not be found, or if a portal exception occurred
1122            * @throws SystemException if a system exception occurred
1123            */
1124            @Override
1125            public java.lang.String getArticleContent(long groupId,
1126                    java.lang.String articleId, double version, java.lang.String viewMode,
1127                    java.lang.String languageId,
1128                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1129                    throws com.liferay.portal.kernel.exception.PortalException,
1130                            com.liferay.portal.kernel.exception.SystemException {
1131                    return _journalArticleLocalService.getArticleContent(groupId,
1132                            articleId, version, viewMode, languageId, themeDisplay);
1133            }
1134    
1135            /**
1136            * Returns the latest web content matching the group and article ID, and
1137            * associated with DDM template key.
1138            *
1139            * @param groupId the primary key of the web content article's group
1140            * @param articleId the primary key of the web content article
1141            * @param viewMode the mode in which the web content is being viewed
1142            * @param ddmTemplateKey the primary key of the web content article's DDM
1143            template (optionally <code>null</code>). If the article is
1144            related to a DDM structure, the template's structure must match
1145            it.
1146            * @param languageId the primary key of the language translation to get
1147            * @param themeDisplay the theme display
1148            * @return the matching web content
1149            * @throws PortalException if a matching web content article or DDM template
1150            could not be found, or if a portal exception occurred
1151            * @throws SystemException if a system exception occurred
1152            */
1153            @Override
1154            public java.lang.String getArticleContent(long groupId,
1155                    java.lang.String articleId, java.lang.String viewMode,
1156                    java.lang.String ddmTemplateKey, java.lang.String languageId,
1157                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1158                    throws com.liferay.portal.kernel.exception.PortalException,
1159                            com.liferay.portal.kernel.exception.SystemException {
1160                    return _journalArticleLocalService.getArticleContent(groupId,
1161                            articleId, viewMode, ddmTemplateKey, languageId, themeDisplay);
1162            }
1163    
1164            /**
1165            * Returns the latest web content matching the group and article ID.
1166            *
1167            * @param groupId the primary key of the web content article's group
1168            * @param articleId the primary key of the web content article
1169            * @param viewMode the mode in which the web content is being viewed
1170            * @param languageId the primary key of the language translation to get
1171            * @param themeDisplay the theme display
1172            * @return the matching web content
1173            * @throws PortalException if a matching web content article or DDM template
1174            could not be found, or if a portal exception occurred
1175            * @throws SystemException if a system exception occurred
1176            */
1177            @Override
1178            public java.lang.String getArticleContent(long groupId,
1179                    java.lang.String articleId, java.lang.String viewMode,
1180                    java.lang.String languageId,
1181                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1182                    throws com.liferay.portal.kernel.exception.PortalException,
1183                            com.liferay.portal.kernel.exception.SystemException {
1184                    return _journalArticleLocalService.getArticleContent(groupId,
1185                            articleId, viewMode, languageId, themeDisplay);
1186            }
1187    
1188            /**
1189            * Returns a web content article display for the specified page of the
1190            * latest version of the web content article, optionally based on the DDM
1191            * template if the article is template driven. If the article is template
1192            * driven, web content transformation tokens are added from the theme
1193            * display (if not <code>null</code>) or the XML request otherwise.
1194            *
1195            * @param article the web content article
1196            * @param ddmTemplateKey the primary key of the web content article's DDM
1197            template (optionally <code>null</code>). If the article is
1198            related to a DDM structure, the template's structure must match
1199            it.
1200            * @param viewMode the mode in which the web content is being viewed
1201            * @param languageId the primary key of the language translation to get
1202            * @param page the web content's page number. Page numbers start at
1203            <code>1</code>.
1204            * @param xmlRequest the request that serializes the web content into a
1205            hierarchical hash map (optionally <code>null</code>)
1206            * @param themeDisplay the theme display
1207            * @return the web content article display
1208            * @throws PortalException if a matching DDM template could not be found or
1209            if a portal exception occurred
1210            * @throws SystemException if a system exception occurred
1211            */
1212            @Override
1213            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1214                    com.liferay.portlet.journal.model.JournalArticle article,
1215                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1216                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1217                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1218                    throws com.liferay.portal.kernel.exception.PortalException,
1219                            com.liferay.portal.kernel.exception.SystemException {
1220                    return _journalArticleLocalService.getArticleDisplay(article,
1221                            ddmTemplateKey, viewMode, languageId, page, xmlRequest, themeDisplay);
1222            }
1223    
1224            /**
1225            * Returns a web content article display for the first page of the specified
1226            * version of the web content article, optionally based on the DDM template
1227            * if the article is template driven. If the article is template driven, web
1228            * content transformation tokens are added from the theme display (if not
1229            * <code>null</code>) or the XML request otherwise.
1230            *
1231            * @param groupId the primary key of the web content article's group
1232            * @param articleId the primary key of the web content article
1233            * @param version the web content article's version
1234            * @param ddmTemplateKey the primary key of the web content article's DDM
1235            template (optionally <code>null</code>). If the article is
1236            related to a DDM structure, the template's structure must match
1237            it.
1238            * @param viewMode the mode in which the web content is being viewed
1239            * @param languageId the primary key of the language translation to get
1240            * @param page the web content's page number
1241            * @param xmlRequest the request that serializes the web content into a
1242            hierarchical hash map
1243            * @param themeDisplay the theme display
1244            * @return the web content article display, or <code>null</code> if the
1245            article has expired or if article's display date/time is after
1246            the current date/time
1247            * @throws PortalException if a matching web content article or DDM template
1248            could not be found, or if a portal exception occurred
1249            * @throws SystemException if a system exception occurred
1250            */
1251            @Override
1252            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1253                    long groupId, java.lang.String articleId, double version,
1254                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1255                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1256                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1257                    throws com.liferay.portal.kernel.exception.PortalException,
1258                            com.liferay.portal.kernel.exception.SystemException {
1259                    return _journalArticleLocalService.getArticleDisplay(groupId,
1260                            articleId, version, ddmTemplateKey, viewMode, languageId, page,
1261                            xmlRequest, themeDisplay);
1262            }
1263    
1264            /**
1265            * Returns a web content article display for the first page of the specified
1266            * version of the web content article matching the group and article ID,
1267            * optionally based on the DDM template if the article is template driven.
1268            * If the article is template driven, web content transformation tokens are
1269            * added from the theme display (if not <code>null</code>).
1270            *
1271            * @param groupId the primary key of the web content article's group
1272            * @param articleId the primary key of the web content article
1273            * @param version the web content article's version
1274            * @param ddmTemplateKey the primary key of the web content article's DDM
1275            template (optionally <code>null</code>). If the article is
1276            related to a DDM structure, the template's structure must match
1277            it.
1278            * @param viewMode the mode in which the web content is being viewed
1279            * @param languageId the primary key of the language translation to get
1280            * @param themeDisplay the theme display
1281            * @return the web content article display, or <code>null</code> if the
1282            article has expired or if article's display date/time is after
1283            the current date/time
1284            * @throws PortalException if a matching web content article or DDM template
1285            could not be found, or if a portal exception occurred
1286            * @throws SystemException if a system exception occurred
1287            */
1288            @Override
1289            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1290                    long groupId, java.lang.String articleId, double version,
1291                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1292                    java.lang.String languageId,
1293                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1294                    throws com.liferay.portal.kernel.exception.PortalException,
1295                            com.liferay.portal.kernel.exception.SystemException {
1296                    return _journalArticleLocalService.getArticleDisplay(groupId,
1297                            articleId, version, ddmTemplateKey, viewMode, languageId,
1298                            themeDisplay);
1299            }
1300    
1301            /**
1302            * Returns a web content article display for the first page of the latest
1303            * version of the web content article matching the group and article ID. If
1304            * the article is template driven, web content transformation tokens are
1305            * added from the theme display (if not <code>null</code>) or the XML
1306            * request otherwise.
1307            *
1308            * @param groupId the primary key of the web content article's group
1309            * @param articleId the primary key of the web content article
1310            * @param viewMode the mode in which the web content is being viewed
1311            * @param languageId the primary key of the language translation to get
1312            * @param page the web content's page number
1313            * @param xmlRequest the request that serializes the web content into a
1314            hierarchical hash map
1315            * @param themeDisplay the theme display
1316            * @return the web content article display, or <code>null</code> if the
1317            article has expired or if article's display date/time is after
1318            the current date/time
1319            * @throws PortalException if a matching web content article or DDM template
1320            could not be found, or if a portal exception occurred
1321            * @throws SystemException if a system exception occurred
1322            */
1323            @Override
1324            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1325                    long groupId, java.lang.String articleId, java.lang.String viewMode,
1326                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1327                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1328                    throws com.liferay.portal.kernel.exception.PortalException,
1329                            com.liferay.portal.kernel.exception.SystemException {
1330                    return _journalArticleLocalService.getArticleDisplay(groupId,
1331                            articleId, viewMode, languageId, page, xmlRequest, themeDisplay);
1332            }
1333    
1334            /**
1335            * Returns a web content article display for the specified page of the
1336            * latest version of the web content article matching the group and article
1337            * ID, optionally based on the DDM template if the article is template
1338            * driven. If the article is template driven, web content transformation
1339            * tokens are added from the theme display (if not <code>null</code>) or the
1340            * XML request otherwise.
1341            *
1342            * @param groupId the primary key of the web content article's group
1343            * @param articleId the primary key of the web content article
1344            * @param ddmTemplateKey the primary key of the web content article's DDM
1345            template (optionally <code>null</code>). If the article is
1346            related to a DDM structure, the template's structure must match
1347            it.
1348            * @param viewMode the mode in which the web content is being viewed
1349            * @param languageId the primary key of the language translation to get
1350            * @param page the web content's page number
1351            * @param xmlRequest the request that serializes the web content into a
1352            hierarchical hash map
1353            * @param themeDisplay the theme display
1354            * @return the web content article display, or <code>null</code> if the
1355            article has expired or if article's display date/time is after
1356            the current date/time
1357            * @throws PortalException if a matching web content article or DDM template
1358            could not be found, or if a portal exception occurred
1359            * @throws SystemException if a system exception occurred
1360            */
1361            @Override
1362            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1363                    long groupId, java.lang.String articleId,
1364                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1365                    java.lang.String languageId, int page, java.lang.String xmlRequest,
1366                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1367                    throws com.liferay.portal.kernel.exception.PortalException,
1368                            com.liferay.portal.kernel.exception.SystemException {
1369                    return _journalArticleLocalService.getArticleDisplay(groupId,
1370                            articleId, ddmTemplateKey, viewMode, languageId, page, xmlRequest,
1371                            themeDisplay);
1372            }
1373    
1374            /**
1375            * Returns a web content article display for the first page of the latest
1376            * version of the web content article matching the group and article ID,
1377            * optionally based on the DDM template if the article is template driven.
1378            * If the article is template driven, web content transformation tokens are
1379            * added from the theme display (if not <code>null</code>).
1380            *
1381            * @param groupId the primary key of the web content article's group
1382            * @param articleId the primary key of the web content article
1383            * @param ddmTemplateKey the primary key of the web content article's DDM
1384            template (optionally <code>null</code>). If the article is
1385            related to a DDM structure, the template's structure must match
1386            it.
1387            * @param viewMode the mode in which the web content is being viewed
1388            * @param languageId the primary key of the language translation to get
1389            * @param themeDisplay the theme display
1390            * @return the web content article display, or <code>null</code> if the
1391            article has expired or if article's display date/time is after
1392            the current date/time
1393            * @throws PortalException if a matching web content article or DDM template
1394            could not be found, or if a portal exception occurred
1395            * @throws SystemException if a system exception occurred
1396            */
1397            @Override
1398            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1399                    long groupId, java.lang.String articleId,
1400                    java.lang.String ddmTemplateKey, java.lang.String viewMode,
1401                    java.lang.String languageId,
1402                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1403                    throws com.liferay.portal.kernel.exception.PortalException,
1404                            com.liferay.portal.kernel.exception.SystemException {
1405                    return _journalArticleLocalService.getArticleDisplay(groupId,
1406                            articleId, ddmTemplateKey, viewMode, languageId, themeDisplay);
1407            }
1408    
1409            /**
1410            * Returns a web content article display for the first page of the latest
1411            * version of the web content article matching the group and article ID. If
1412            * the article is template driven, web content transformation tokens are
1413            * added from the theme display (if not <code>null</code>).
1414            *
1415            * @param groupId the primary key of the web content article's group
1416            * @param articleId the primary key of the web content article
1417            * @param viewMode the mode in which the web content is being viewed
1418            * @param languageId the primary key of the language translation to get
1419            * @param themeDisplay the theme display
1420            * @return the web content article display, or <code>null</code> if the
1421            article has expired or if article's display date/time is after
1422            the current date/time
1423            * @throws PortalException if a matching web content article or DDM template
1424            could not be found, or if a portal exception occurred
1425            * @throws SystemException if a system exception occurred
1426            */
1427            @Override
1428            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
1429                    long groupId, java.lang.String articleId, java.lang.String viewMode,
1430                    java.lang.String languageId,
1431                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1432                    throws com.liferay.portal.kernel.exception.PortalException,
1433                            com.liferay.portal.kernel.exception.SystemException {
1434                    return _journalArticleLocalService.getArticleDisplay(groupId,
1435                            articleId, viewMode, languageId, themeDisplay);
1436            }
1437    
1438            /**
1439            * Returns all the web content articles present in the system.
1440            *
1441            * @return the web content articles present in the system
1442            * @throws SystemException if a system exception occurred
1443            */
1444            @Override
1445            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
1446                    throws com.liferay.portal.kernel.exception.SystemException {
1447                    return _journalArticleLocalService.getArticles();
1448            }
1449    
1450            /**
1451            * Returns all the web content articles belonging to the group.
1452            *
1453            * @param groupId the primary key of the web content article's group
1454            * @return the web content articles belonging to the group
1455            * @throws SystemException if a system exception occurred
1456            */
1457            @Override
1458            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1459                    long groupId)
1460                    throws com.liferay.portal.kernel.exception.SystemException {
1461                    return _journalArticleLocalService.getArticles(groupId);
1462            }
1463    
1464            /**
1465            * Returns a range of all the web content articles belonging to the group.
1466            *
1467            * <p>
1468            * Useful when paginating results. Returns a maximum of <code>end -
1469            * start</code> instances. <code>start</code> and <code>end</code> are not
1470            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1471            * refers to the first result in the set. Setting both <code>start</code>
1472            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1473            * result set.
1474            * </p>
1475            *
1476            * @param groupId the primary key of the web content article's group
1477            * @param start the lower bound of the range of web content articles to
1478            return
1479            * @param end the upper bound of the range of web content articles to
1480            return (not inclusive)
1481            * @return the range of matching web content articles
1482            * @throws SystemException if a system exception occurred
1483            */
1484            @Override
1485            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1486                    long groupId, int start, int end)
1487                    throws com.liferay.portal.kernel.exception.SystemException {
1488                    return _journalArticleLocalService.getArticles(groupId, start, end);
1489            }
1490    
1491            /**
1492            * Returns an ordered range of all the web content articles belonging to the
1493            * group.
1494            *
1495            * <p>
1496            * Useful when paginating results. Returns a maximum of <code>end -
1497            * start</code> instances. <code>start</code> and <code>end</code> are not
1498            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1499            * refers to the first result in the set. Setting both <code>start</code>
1500            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1501            * result set.
1502            * </p>
1503            *
1504            * @param groupId the primary key of the web content article's group
1505            * @param start the lower bound of the range of web content articles to
1506            return
1507            * @param end the upper bound of the range of web content articles to
1508            return (not inclusive)
1509            * @param obc the comparator to order the web content articles
1510            * @return the range of matching web content articles ordered by the
1511            comparator
1512            * @throws SystemException if a system exception occurred
1513            */
1514            @Override
1515            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1516                    long groupId, int start, int end,
1517                    com.liferay.portal.kernel.util.OrderByComparator obc)
1518                    throws com.liferay.portal.kernel.exception.SystemException {
1519                    return _journalArticleLocalService.getArticles(groupId, start, end, obc);
1520            }
1521    
1522            /**
1523            * Returns all the web content articles matching the group and folder.
1524            *
1525            * @param groupId the primary key of the web content article's group
1526            * @param folderId the primary key of the web content article folder
1527            * @return the matching web content articles
1528            * @throws SystemException if a system exception occurred
1529            */
1530            @Override
1531            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1532                    long groupId, long folderId)
1533                    throws com.liferay.portal.kernel.exception.SystemException {
1534                    return _journalArticleLocalService.getArticles(groupId, folderId);
1535            }
1536    
1537            /**
1538            * Returns a range of all the web content articles matching the group and
1539            * folder.
1540            *
1541            * <p>
1542            * Useful when paginating results. Returns a maximum of <code>end -
1543            * start</code> instances. <code>start</code> and <code>end</code> are not
1544            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1545            * refers to the first result in the set. Setting both <code>start</code>
1546            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1547            * result set.
1548            * </p>
1549            *
1550            * @param groupId the primary key of the web content article's group
1551            * @param folderId the primary key of the web content article's folder
1552            * @param start the lower bound of the range of web content articles to
1553            return
1554            * @param end the upper bound of the range of web content articles to
1555            return (not inclusive)
1556            * @return the range of matching web content articles
1557            * @throws SystemException if a system exception occurred
1558            */
1559            @Override
1560            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1561                    long groupId, long folderId, int start, int end)
1562                    throws com.liferay.portal.kernel.exception.SystemException {
1563                    return _journalArticleLocalService.getArticles(groupId, folderId,
1564                            start, end);
1565            }
1566    
1567            /**
1568            * Returns an ordered range of all the web content articles matching the
1569            * group and folder.
1570            *
1571            * <p>
1572            * Useful when paginating results. Returns a maximum of <code>end -
1573            * start</code> instances. <code>start</code> and <code>end</code> are not
1574            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1575            * refers to the first result in the set. Setting both <code>start</code>
1576            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1577            * result set.
1578            * </p>
1579            *
1580            * @param groupId the primary key of the web content article's group
1581            * @param folderId the primary key of the web content article's folder
1582            * @param start the lower bound of the range of web content articles to
1583            return
1584            * @param end the upper bound of the range of web content articles to
1585            return (not inclusive)
1586            * @param orderByComparator the comparator to order the web content
1587            articles
1588            * @return the range of matching web content articles ordered by the
1589            comparator
1590            * @throws SystemException if a system exception occurred
1591            */
1592            @Override
1593            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1594                    long groupId, long folderId, int start, int end,
1595                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1596                    throws com.liferay.portal.kernel.exception.SystemException {
1597                    return _journalArticleLocalService.getArticles(groupId, folderId,
1598                            start, end, orderByComparator);
1599            }
1600    
1601            /**
1602            * Returns all the web content articles matching the group and article ID.
1603            *
1604            * @param groupId the primary key of the web content article's group
1605            * @param articleId the primary key of the web content article
1606            * @return the matching web content articles
1607            * @throws SystemException if a system exception occurred
1608            */
1609            @Override
1610            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
1611                    long groupId, java.lang.String articleId)
1612                    throws com.liferay.portal.kernel.exception.SystemException {
1613                    return _journalArticleLocalService.getArticles(groupId, articleId);
1614            }
1615    
1616            @Override
1617            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByResourcePrimKey(
1618                    long resourcePrimKey)
1619                    throws com.liferay.portal.kernel.exception.SystemException {
1620                    return _journalArticleLocalService.getArticlesByResourcePrimKey(resourcePrimKey);
1621            }
1622    
1623            /**
1624            * Returns all the web content articles matching the small image ID.
1625            *
1626            * @param smallImageId the primary key of the web content article's small
1627            image
1628            * @return the web content articles matching the small image ID
1629            * @throws SystemException if a system exception occurred
1630            */
1631            @Override
1632            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
1633                    long smallImageId)
1634                    throws com.liferay.portal.kernel.exception.SystemException {
1635                    return _journalArticleLocalService.getArticlesBySmallImageId(smallImageId);
1636            }
1637    
1638            /**
1639            * Returns the number of web content articles belonging to the group.
1640            *
1641            * @param groupId the primary key of the web content article's group
1642            * @return the number of web content articles belonging to the group
1643            * @throws SystemException if a system exception occurred
1644            */
1645            @Override
1646            public int getArticlesCount(long groupId)
1647                    throws com.liferay.portal.kernel.exception.SystemException {
1648                    return _journalArticleLocalService.getArticlesCount(groupId);
1649            }
1650    
1651            /**
1652            * Returns the number of web content articles matching the group and folder.
1653            *
1654            * @param groupId the primary key of the web content article's group
1655            * @param folderId the primary key of the web content article's folder
1656            * @return the number of matching web content articles
1657            * @throws SystemException if a system exception occurred
1658            */
1659            @Override
1660            public int getArticlesCount(long groupId, long folderId)
1661                    throws com.liferay.portal.kernel.exception.SystemException {
1662                    return _journalArticleLocalService.getArticlesCount(groupId, folderId);
1663            }
1664    
1665            /**
1666            * Returns an ordered range of all the web content articles matching the
1667            * company, version, and workflow status.
1668            *
1669            * <p>
1670            * Useful when paginating results. Returns a maximum of <code>end -
1671            * start</code> instances. <code>start</code> and <code>end</code> are not
1672            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1673            * refers to the first result in the set. Setting both <code>start</code>
1674            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1675            * result set.
1676            * </p>
1677            *
1678            * @param companyId the primary key of the web content article's company
1679            * @param version the web content article's version
1680            * @param status the web content article's workflow status. For more
1681            information see {@link WorkflowConstants} for constants starting
1682            with the "STATUS_" prefix.
1683            * @param start the lower bound of the range of web content articles to
1684            return
1685            * @param end the upper bound of the range of web content articles to
1686            return (not inclusive)
1687            * @return the range of matching web content articles ordered by article ID
1688            * @throws SystemException if a system exception occurred
1689            */
1690            @Override
1691            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
1692                    long companyId, double version, int status, int start, int end)
1693                    throws com.liferay.portal.kernel.exception.SystemException {
1694                    return _journalArticleLocalService.getCompanyArticles(companyId,
1695                            version, status, start, end);
1696            }
1697    
1698            /**
1699            * Returns an ordered range of all the web content articles matching the
1700            * company and workflow status.
1701            *
1702            * <p>
1703            * Useful when paginating results. Returns a maximum of <code>end -
1704            * start</code> instances. <code>start</code> and <code>end</code> are not
1705            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1706            * refers to the first result in the set. Setting both <code>start</code>
1707            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1708            * result set.
1709            * </p>
1710            *
1711            * @param companyId the primary key of the web content article's company
1712            * @param status the web content article's workflow status. For more
1713            information see {@link WorkflowConstants} for constants starting
1714            with the "STATUS_" prefix.
1715            * @param start the lower bound of the range of web content articles to
1716            return
1717            * @param end the upper bound of the range of web content articles to
1718            return (not inclusive)
1719            * @return the range of matching web content articles ordered by article ID
1720            * @throws SystemException if a system exception occurred
1721            */
1722            @Override
1723            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
1724                    long companyId, int status, int start, int end)
1725                    throws com.liferay.portal.kernel.exception.SystemException {
1726                    return _journalArticleLocalService.getCompanyArticles(companyId,
1727                            status, start, end);
1728            }
1729    
1730            /**
1731            * Returns the number of web content articles matching the company, version,
1732            * and workflow status.
1733            *
1734            * <p>
1735            * Useful when paginating results. Returns a maximum of <code>end -
1736            * start</code> instances. <code>start</code> and <code>end</code> are not
1737            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1738            * refers to the first result in the set. Setting both <code>start</code>
1739            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1740            * result set.
1741            * </p>
1742            *
1743            * @param companyId the primary key of the web content article's company
1744            * @param version the web content article's version
1745            * @param status the web content article's workflow status. For more
1746            information see {@link WorkflowConstants} for constants starting
1747            with the "STATUS_" prefix.
1748            * @param start the lower bound of the range of web content articles to
1749            return
1750            * @param end the upper bound of the range of web content articles to
1751            return (not inclusive)
1752            * @return the number of matching web content articles
1753            * @throws SystemException if a system exception occurred
1754            */
1755            @Override
1756            public int getCompanyArticlesCount(long companyId, double version,
1757                    int status, int start, int end)
1758                    throws com.liferay.portal.kernel.exception.SystemException {
1759                    return _journalArticleLocalService.getCompanyArticlesCount(companyId,
1760                            version, status, start, end);
1761            }
1762    
1763            /**
1764            * Returns the number of web content articles matching the company and
1765            * workflow status.
1766            *
1767            * @param companyId the primary key of the web content article's company
1768            * @param status the web content article's workflow status. For more
1769            information see {@link WorkflowConstants} for constants starting
1770            with the "STATUS_" prefix.
1771            * @return the number of matching web content articles
1772            * @throws SystemException if a system exception occurred
1773            */
1774            @Override
1775            public int getCompanyArticlesCount(long companyId, int status)
1776                    throws com.liferay.portal.kernel.exception.SystemException {
1777                    return _journalArticleLocalService.getCompanyArticlesCount(companyId,
1778                            status);
1779            }
1780    
1781            /**
1782            * Returns the matching web content article currently displayed or next to
1783            * be displayed if no article is currently displayed.
1784            *
1785            * @param groupId the primary key of the web content article's group
1786            * @param articleId the primary key of the web content article
1787            * @return the matching web content article currently displayed, or the next
1788            one to be displayed if no version of the article is currently
1789            displayed
1790            * @throws PortalException if no approved matching web content articles
1791            could be found
1792            * @throws SystemException if a system exception occurred
1793            */
1794            @Override
1795            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
1796                    long groupId, java.lang.String articleId)
1797                    throws com.liferay.portal.kernel.exception.PortalException,
1798                            com.liferay.portal.kernel.exception.SystemException {
1799                    return _journalArticleLocalService.getDisplayArticle(groupId, articleId);
1800            }
1801    
1802            /**
1803            * Returns the web content article matching the URL title that is currently
1804            * displayed or next to be displayed if no article is currently displayed.
1805            *
1806            * @param groupId the primary key of the web content article's group
1807            * @param urlTitle the web content article's accessible URL title
1808            * @return the web content article matching the URL title that is currently
1809            displayed, or next one to be displayed if no version of the
1810            article is currently displayed
1811            * @throws PortalException if no approved matching web content articles
1812            could be found
1813            * @throws SystemException if a system exception occurred
1814            */
1815            @Override
1816            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
1817                    long groupId, java.lang.String urlTitle)
1818                    throws com.liferay.portal.kernel.exception.PortalException,
1819                            com.liferay.portal.kernel.exception.SystemException {
1820                    return _journalArticleLocalService.getDisplayArticleByUrlTitle(groupId,
1821                            urlTitle);
1822            }
1823    
1824            /**
1825            * Returns the latest web content article matching the resource primary key,
1826            * preferring articles with approved workflow status.
1827            *
1828            * @param resourcePrimKey the primary key of the resource instance
1829            * @return the latest web content article matching the resource primary key,
1830            preferring articles with approved workflow status
1831            * @throws PortalException if a matching web content article could not be
1832            found
1833            * @throws SystemException if a system exception occurred
1834            */
1835            @Override
1836            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1837                    long resourcePrimKey)
1838                    throws com.liferay.portal.kernel.exception.PortalException,
1839                            com.liferay.portal.kernel.exception.SystemException {
1840                    return _journalArticleLocalService.getLatestArticle(resourcePrimKey);
1841            }
1842    
1843            /**
1844            * Returns the latest web content article matching the resource primary key
1845            * and workflow status, preferring articles with approved workflow status.
1846            *
1847            * @param resourcePrimKey the primary key of the resource instance
1848            * @param status the web content article's workflow status. For more
1849            information see {@link WorkflowConstants} for constants starting
1850            with the "STATUS_" prefix.
1851            * @return the latest web content article matching the resource primary key
1852            and workflow status, preferring articles with approved workflow
1853            status
1854            * @throws PortalException if a matching web content article could not be
1855            found
1856            * @throws SystemException if a system exception occurred
1857            */
1858            @Override
1859            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1860                    long resourcePrimKey, int status)
1861                    throws com.liferay.portal.kernel.exception.PortalException,
1862                            com.liferay.portal.kernel.exception.SystemException {
1863                    return _journalArticleLocalService.getLatestArticle(resourcePrimKey,
1864                            status);
1865            }
1866    
1867            /**
1868            * Returns the latest web content article matching the resource primary key
1869            * and workflow status, optionally preferring articles with approved
1870            * workflow status.
1871            *
1872            * @param resourcePrimKey the primary key of the resource instance
1873            * @param status the web content article's workflow status. For more
1874            information see {@link WorkflowConstants} for constants starting
1875            with the "STATUS_" prefix.
1876            * @param preferApproved whether to prefer returning the latest matching
1877            article that has workflow status {@link
1878            WorkflowConstants#STATUS_APPROVED} over returning one that has a
1879            different status
1880            * @return the latest web content article matching the resource primary key
1881            and workflow status, optionally preferring articles with approved
1882            workflow status
1883            * @throws PortalException if a matching web content article could not be
1884            found
1885            * @throws SystemException if a system exception occurred
1886            */
1887            @Override
1888            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1889                    long resourcePrimKey, int status, boolean preferApproved)
1890                    throws com.liferay.portal.kernel.exception.PortalException,
1891                            com.liferay.portal.kernel.exception.SystemException {
1892                    return _journalArticleLocalService.getLatestArticle(resourcePrimKey,
1893                            status, preferApproved);
1894            }
1895    
1896            /**
1897            * Returns the latest web content article with the group and article ID.
1898            *
1899            * @param groupId the primary key of the web content article's group
1900            * @param articleId the primary key of the web content article
1901            * @return the latest matching web content article
1902            * @throws PortalException if a matching web content article could not be
1903            found
1904            * @throws SystemException if a system exception occurred
1905            */
1906            @Override
1907            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1908                    long groupId, java.lang.String articleId)
1909                    throws com.liferay.portal.kernel.exception.PortalException,
1910                            com.liferay.portal.kernel.exception.SystemException {
1911                    return _journalArticleLocalService.getLatestArticle(groupId, articleId);
1912            }
1913    
1914            /**
1915            * Returns the latest web content article matching the group, article ID,
1916            * and workflow status.
1917            *
1918            * @param groupId the primary key of the web content article's group
1919            * @param articleId the primary key of the web content article
1920            * @param status the web content article's workflow status. For more
1921            information see {@link WorkflowConstants} for constants starting
1922            with the "STATUS_" prefix.
1923            * @return the latest matching web content article
1924            * @throws PortalException if a matching web content article could not be
1925            found
1926            * @throws SystemException if a system exception occurred
1927            */
1928            @Override
1929            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1930                    long groupId, java.lang.String articleId, int status)
1931                    throws com.liferay.portal.kernel.exception.PortalException,
1932                            com.liferay.portal.kernel.exception.SystemException {
1933                    return _journalArticleLocalService.getLatestArticle(groupId, articleId,
1934                            status);
1935            }
1936    
1937            /**
1938            * Returns the latest web content article matching the group, class name ID,
1939            * and class PK.
1940            *
1941            * @param groupId the primary key of the web content article's group
1942            * @param className the DDMStructure class name if the web content article
1943            is related to a DDM structure, the class name associated with the
1944            article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT}
1945            otherwise
1946            * @param classPK the primary key of the DDM structure, if the DDMStructure
1947            class name is given as the <code>className</code> parameter, the
1948            primary key of the class associated with the web content article,
1949            or <code>0</code> otherwise
1950            * @return the latest matching web content article
1951            * @throws PortalException if a matching web content article could not be
1952            found
1953            * @throws SystemException if a system exception occurred
1954            */
1955            @Override
1956            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1957                    long groupId, java.lang.String className, long classPK)
1958                    throws com.liferay.portal.kernel.exception.PortalException,
1959                            com.liferay.portal.kernel.exception.SystemException {
1960                    return _journalArticleLocalService.getLatestArticle(groupId, className,
1961                            classPK);
1962            }
1963    
1964            /**
1965            * Returns the latest web content article matching the group, URL title, and
1966            * workflow status.
1967            *
1968            * @param groupId the primary key of the web content article's group
1969            * @param urlTitle the web content article's accessible URL title
1970            * @param status the web content article's workflow status. For more
1971            information see {@link WorkflowConstants} for constants starting
1972            with the "STATUS_" prefix.
1973            * @return the latest matching web content article
1974            * @throws PortalException if a matching web content article could not be
1975            found
1976            * @throws SystemException if a system exception occurred
1977            */
1978            @Override
1979            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
1980                    long groupId, java.lang.String urlTitle, int status)
1981                    throws com.liferay.portal.kernel.exception.PortalException,
1982                            com.liferay.portal.kernel.exception.SystemException {
1983                    return _journalArticleLocalService.getLatestArticleByUrlTitle(groupId,
1984                            urlTitle, status);
1985            }
1986    
1987            /**
1988            * Returns the latest version number of the web content with the group and
1989            * article ID.
1990            *
1991            * @param groupId the primary key of the web content article's group
1992            * @param articleId the primary key of the web content article
1993            * @return the latest version number of the matching web content
1994            * @throws PortalException if a matching web content article could not be
1995            found
1996            * @throws SystemException if a system exception occurred
1997            */
1998            @Override
1999            public double getLatestVersion(long groupId, java.lang.String articleId)
2000                    throws com.liferay.portal.kernel.exception.PortalException,
2001                            com.liferay.portal.kernel.exception.SystemException {
2002                    return _journalArticleLocalService.getLatestVersion(groupId, articleId);
2003            }
2004    
2005            /**
2006            * Returns the latest version number of the web content with the group,
2007            * article ID, and workflow status.
2008            *
2009            * @param groupId the primary key of the web content article's group
2010            * @param articleId the primary key of the web content article
2011            * @param status the web content article's workflow status. For more
2012            information see {@link WorkflowConstants} for constants starting
2013            with the "STATUS_" prefix.
2014            * @return the latest version number of the matching web content
2015            * @throws PortalException if a matching web content article could not be
2016            found
2017            * @throws SystemException if a system exception occurred
2018            */
2019            @Override
2020            public double getLatestVersion(long groupId, java.lang.String articleId,
2021                    int status)
2022                    throws com.liferay.portal.kernel.exception.PortalException,
2023                            com.liferay.portal.kernel.exception.SystemException {
2024                    return _journalArticleLocalService.getLatestVersion(groupId, articleId,
2025                            status);
2026            }
2027    
2028            /**
2029            * Returns the number of web content articles that are not recycled.
2030            *
2031            * @param groupId the primary key of the web content article's group
2032            * @param folderId the primary key of the web content article folder
2033            * @return the number of web content articles that are not recycled
2034            * @throws SystemException if a system exception occurred
2035            */
2036            @Override
2037            public int getNotInTrashArticlesCount(long groupId, long folderId)
2038                    throws com.liferay.portal.kernel.exception.SystemException {
2039                    return _journalArticleLocalService.getNotInTrashArticlesCount(groupId,
2040                            folderId);
2041            }
2042    
2043            /**
2044            * Returns the web content articles matching the group and DDM structure
2045            * key.
2046            *
2047            * @param groupId the primary key of the web content article's group
2048            * @param ddmStructureKey the primary key of the web content article's DDM
2049            structure
2050            * @return the matching web content articles
2051            * @throws SystemException if a system exception occurred
2052            */
2053            @Override
2054            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
2055                    long groupId, java.lang.String ddmStructureKey)
2056                    throws com.liferay.portal.kernel.exception.SystemException {
2057                    return _journalArticleLocalService.getStructureArticles(groupId,
2058                            ddmStructureKey);
2059            }
2060    
2061            /**
2062            * Returns an ordered range of all the web content articles matching the
2063            * group and DDM structure key.
2064            *
2065            * <p>
2066            * Useful when paginating results. Returns a maximum of <code>end -
2067            * start</code> instances. <code>start</code> and <code>end</code> are not
2068            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2069            * refers to the first result in the set. Setting both <code>start</code>
2070            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2071            * result set.
2072            * </p>
2073            *
2074            * @param groupId the primary key of the web content article's group
2075            * @param ddmStructureKey the primary key of the web content article's DDM
2076            structure
2077            * @param start the lower bound of the range of web content articles to
2078            return
2079            * @param end the upper bound of the range of web content articles to
2080            return (not inclusive)
2081            * @param obc the comparator to order the web content articles
2082            * @return the range of matching web content articles ordered by the
2083            comparator
2084            * @throws SystemException if a system exception occurred
2085            */
2086            @Override
2087            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
2088                    long groupId, java.lang.String ddmStructureKey, int start, int end,
2089                    com.liferay.portal.kernel.util.OrderByComparator obc)
2090                    throws com.liferay.portal.kernel.exception.SystemException {
2091                    return _journalArticleLocalService.getStructureArticles(groupId,
2092                            ddmStructureKey, start, end, obc);
2093            }
2094    
2095            @Override
2096            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
2097                    java.lang.String[] ddmStructureKeys)
2098                    throws com.liferay.portal.kernel.exception.SystemException {
2099                    return _journalArticleLocalService.getStructureArticles(ddmStructureKeys);
2100            }
2101    
2102            /**
2103            * Returns the number of web content articles matching the group and DDM
2104            * structure key.
2105            *
2106            * @param groupId the primary key of the web content article's group
2107            * @param ddmStructureKey the primary key of the web content article's DDM
2108            structure
2109            * @return the number of matching web content articles
2110            * @throws SystemException if a system exception occurred
2111            */
2112            @Override
2113            public int getStructureArticlesCount(long groupId,
2114                    java.lang.String ddmStructureKey)
2115                    throws com.liferay.portal.kernel.exception.SystemException {
2116                    return _journalArticleLocalService.getStructureArticlesCount(groupId,
2117                            ddmStructureKey);
2118            }
2119    
2120            /**
2121            * Returns the web content articles matching the group and DDM template key.
2122            *
2123            * @param groupId the primary key of the web content article's group
2124            * @param ddmTemplateKey the primary key of the web content article's DDM
2125            template (optionally <code>null</code>). If the article is
2126            related to a DDM structure, the template's structure must match
2127            it.
2128            * @return the matching web content articles
2129            * @throws SystemException if a system exception occurred
2130            */
2131            @Override
2132            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
2133                    long groupId, java.lang.String ddmTemplateKey)
2134                    throws com.liferay.portal.kernel.exception.SystemException {
2135                    return _journalArticleLocalService.getTemplateArticles(groupId,
2136                            ddmTemplateKey);
2137            }
2138    
2139            /**
2140            * Returns an ordered range of all the web content articles matching the
2141            * group and DDM template key.
2142            *
2143            * <p>
2144            * Useful when paginating results. Returns a maximum of <code>end -
2145            * start</code> instances. <code>start</code> and <code>end</code> are not
2146            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2147            * refers to the first result in the set. Setting both <code>start</code>
2148            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2149            * result set.
2150            * </p>
2151            *
2152            * @param groupId the primary key of the web content article's group
2153            * @param ddmTemplateKey the primary key of the web content article's DDM
2154            template (optionally <code>null</code>). If the article is
2155            related to a DDM structure, the template's structure must match
2156            it.
2157            * @param start the lower bound of the range of web content articles to
2158            return
2159            * @param end the upper bound of the range of web content articles to
2160            return (not inclusive)
2161            * @param obc the comparator to order the web content articles
2162            * @return the range of matching web content articles ordered by the
2163            comparator
2164            * @throws SystemException if a system exception occurred
2165            */
2166            @Override
2167            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
2168                    long groupId, java.lang.String ddmTemplateKey, int start, int end,
2169                    com.liferay.portal.kernel.util.OrderByComparator obc)
2170                    throws com.liferay.portal.kernel.exception.SystemException {
2171                    return _journalArticleLocalService.getTemplateArticles(groupId,
2172                            ddmTemplateKey, start, end, obc);
2173            }
2174    
2175            /**
2176            * Returns the number of web content articles matching the group and DDM
2177            * template key.
2178            *
2179            * @param groupId the primary key of the web content article's group
2180            * @param ddmTemplateKey the primary key of the web content article's DDM
2181            template (optionally <code>null</code>). If the article is
2182            related to a DDM structure, the template's structure must match
2183            it.
2184            * @return the number of matching web content articles
2185            * @throws SystemException if a system exception occurred
2186            */
2187            @Override
2188            public int getTemplateArticlesCount(long groupId,
2189                    java.lang.String ddmTemplateKey)
2190                    throws com.liferay.portal.kernel.exception.SystemException {
2191                    return _journalArticleLocalService.getTemplateArticlesCount(groupId,
2192                            ddmTemplateKey);
2193            }
2194    
2195            @Override
2196            public java.lang.String getUniqueUrlTitle(long groupId,
2197                    java.lang.String articleId, java.lang.String urlTitle)
2198                    throws com.liferay.portal.kernel.exception.PortalException,
2199                            com.liferay.portal.kernel.exception.SystemException {
2200                    return _journalArticleLocalService.getUniqueUrlTitle(groupId,
2201                            articleId, urlTitle);
2202            }
2203    
2204            /**
2205            * Returns <code>true</code> if the specified web content article exists.
2206            *
2207            * @param groupId the primary key of the group
2208            * @param articleId the primary key of the web content article
2209            * @return <code>true</code> if the specified web content article exists;
2210            <code>false</code> otherwise
2211            * @throws SystemException if a system exception occurred
2212            */
2213            @Override
2214            public boolean hasArticle(long groupId, java.lang.String articleId)
2215                    throws com.liferay.portal.kernel.exception.SystemException {
2216                    return _journalArticleLocalService.hasArticle(groupId, articleId);
2217            }
2218    
2219            /**
2220            * Returns <code>true</code> if the web content article, specified by group
2221            * and article ID, is the latest version.
2222            *
2223            * @param groupId the primary key of the web content article's group
2224            * @param articleId the primary key of the web content article
2225            * @param version the web content article's version
2226            * @return <code>true</code> if the specified web content article is the
2227            latest version; <code>false</code> otherwise
2228            * @throws PortalException if a matching web content article could not be
2229            found
2230            * @throws SystemException if a system exception occurred
2231            */
2232            @Override
2233            public boolean isLatestVersion(long groupId, java.lang.String articleId,
2234                    double version)
2235                    throws com.liferay.portal.kernel.exception.PortalException,
2236                            com.liferay.portal.kernel.exception.SystemException {
2237                    return _journalArticleLocalService.isLatestVersion(groupId, articleId,
2238                            version);
2239            }
2240    
2241            /**
2242            * Returns <code>true</code> if the web content article, specified by group,
2243            * article ID, and workflow status, is the latest version.
2244            *
2245            * @param groupId the primary key of the web content article's group
2246            * @param articleId the primary key of the web content article
2247            * @param version the web content article's version
2248            * @param status the web content article's workflow status. For more
2249            information see {@link WorkflowConstants} for constants starting
2250            with the "STATUS_" prefix.
2251            * @return <code>true</code> if the specified web content article is the
2252            latest version; <code>false</code> otherwise
2253            * @throws PortalException if a matching web content article could not be
2254            found
2255            * @throws SystemException if a system exception occurred
2256            */
2257            @Override
2258            public boolean isLatestVersion(long groupId, java.lang.String articleId,
2259                    double version, int status)
2260                    throws com.liferay.portal.kernel.exception.PortalException,
2261                            com.liferay.portal.kernel.exception.SystemException {
2262                    return _journalArticleLocalService.isLatestVersion(groupId, articleId,
2263                            version, status);
2264            }
2265    
2266            /**
2267            * Moves the web content article matching the group and article ID to a new
2268            * folder.
2269            *
2270            * @param groupId the primary key of the web content article's group
2271            * @param articleId the primary key of the web content article
2272            * @param newFolderId the primary key of the web content article's new
2273            folder
2274            * @return the updated web content article, which was moved to a new folder
2275            * @throws PortalException if a matching web content article could not be
2276            found
2277            * @throws SystemException if a system exception occurred
2278            */
2279            @Override
2280            public com.liferay.portlet.journal.model.JournalArticle moveArticle(
2281                    long groupId, java.lang.String articleId, long newFolderId)
2282                    throws com.liferay.portal.kernel.exception.PortalException,
2283                            com.liferay.portal.kernel.exception.SystemException {
2284                    return _journalArticleLocalService.moveArticle(groupId, articleId,
2285                            newFolderId);
2286            }
2287    
2288            /**
2289            * Moves the web content article from the Recycle Bin to a new folder.
2290            *
2291            * @param userId the primary key of the user updating the web content
2292            article
2293            * @param groupId the primary key of the web content article's group
2294            * @param article the web content article
2295            * @param newFolderId the primary key of the web content article's new
2296            folder
2297            * @param serviceContext the service context to be applied. Can set the
2298            modification date, portlet preferences, and can set whether to
2299            add the default command update for the web content article. With
2300            respect to social activities, by setting the service context's
2301            command to {@link
2302            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
2303            is considered a web content update activity; otherwise it is
2304            considered a web content add activity.
2305            * @return the updated web content article, which was moved from the Recycle
2306            Bin to a new folder
2307            * @throws PortalException if a trashed web content article with the primary
2308            key could not be found or if a portal exception occurred
2309            * @throws SystemException if a system exception occurred
2310            */
2311            @Override
2312            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
2313                    long userId, long groupId,
2314                    com.liferay.portlet.journal.model.JournalArticle article,
2315                    long newFolderId,
2316                    com.liferay.portal.service.ServiceContext serviceContext)
2317                    throws com.liferay.portal.kernel.exception.PortalException,
2318                            com.liferay.portal.kernel.exception.SystemException {
2319                    return _journalArticleLocalService.moveArticleFromTrash(userId,
2320                            groupId, article, newFolderId, serviceContext);
2321            }
2322    
2323            /**
2324            * Moves the latest version of the web content article matching the group
2325            * and article ID to the recycle bin.
2326            *
2327            * @param userId the primary key of the user updating the web content
2328            article
2329            * @param article the web content article
2330            * @return the updated web content article, which was moved to the Recycle
2331            Bin
2332            * @throws PortalException if the user did not have permission to move the
2333            article to the Recycle Bin or if a portal exception occurred
2334            * @throws SystemException if a system exception occurred
2335            */
2336            @Override
2337            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
2338                    long userId, com.liferay.portlet.journal.model.JournalArticle article)
2339                    throws com.liferay.portal.kernel.exception.PortalException,
2340                            com.liferay.portal.kernel.exception.SystemException {
2341                    return _journalArticleLocalService.moveArticleToTrash(userId, article);
2342            }
2343    
2344            /**
2345            * Moves the latest version of the web content article matching the group
2346            * and article ID to the recycle bin.
2347            *
2348            * @param userId the primary key of the user updating the web content
2349            article
2350            * @param groupId the primary key of the web content article's group
2351            * @param articleId the primary key of the web content article
2352            * @return the moved web content article or <code>null</code> if no matching
2353            article was found
2354            * @throws PortalException if the user did not have permission to move the
2355            article to the Recycle Bin or if a portal exception occurred
2356            * @throws SystemException if a system exception occurred
2357            */
2358            @Override
2359            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
2360                    long userId, long groupId, java.lang.String articleId)
2361                    throws com.liferay.portal.kernel.exception.PortalException,
2362                            com.liferay.portal.kernel.exception.SystemException {
2363                    return _journalArticleLocalService.moveArticleToTrash(userId, groupId,
2364                            articleId);
2365            }
2366    
2367            @Override
2368            public void rebuildTree(long companyId)
2369                    throws com.liferay.portal.kernel.exception.PortalException,
2370                            com.liferay.portal.kernel.exception.SystemException {
2371                    _journalArticleLocalService.rebuildTree(companyId);
2372            }
2373    
2374            /**
2375            * Removes the web content of the web content article matching the group,
2376            * article ID, and version, and language.
2377            *
2378            * @param groupId the primary key of the web content article's group
2379            * @param articleId the primary key of the web content article
2380            * @param version the web content article's version
2381            * @param languageId the primary key of the language locale to remove
2382            * @return the updated web content article with the locale removed
2383            * @throws PortalException if a matching web content article could not be
2384            found
2385            * @throws SystemException if a system exception occurred
2386            */
2387            @Override
2388            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
2389                    long groupId, java.lang.String articleId, double version,
2390                    java.lang.String languageId)
2391                    throws com.liferay.portal.kernel.exception.PortalException,
2392                            com.liferay.portal.kernel.exception.SystemException {
2393                    return _journalArticleLocalService.removeArticleLocale(groupId,
2394                            articleId, version, languageId);
2395            }
2396    
2397            /**
2398            * Restores the web content article from the Recycle Bin.
2399            *
2400            * @param userId the primary key of the user restoring the web content
2401            article
2402            * @param article the web content article
2403            * @throws PortalException if the web content article with the primary key
2404            could not be found in the Recycle Bin, if the user did not have
2405            permission to restore the article, or if a portal exception
2406            occurred
2407            * @throws SystemException if a system exception occurred
2408            */
2409            @Override
2410            public com.liferay.portlet.journal.model.JournalArticle restoreArticleFromTrash(
2411                    long userId, com.liferay.portlet.journal.model.JournalArticle article)
2412                    throws com.liferay.portal.kernel.exception.PortalException,
2413                            com.liferay.portal.kernel.exception.SystemException {
2414                    return _journalArticleLocalService.restoreArticleFromTrash(userId,
2415                            article);
2416            }
2417    
2418            /**
2419            * Returns an ordered range of all the web content articles matching the
2420            * parameters without using the indexer, including a keywords parameter for
2421            * matching with the article's ID, title, description, and content, a DDM
2422            * structure key parameter, and a DDM template key parameter. It is
2423            * preferable to use the indexed version {@link #search(long, long, List,
2424            * long, String, String, String, LinkedHashMap, int, int, Sort)} instead of
2425            * this method wherever possible for performance reasons.
2426            *
2427            * <p>
2428            * Useful when paginating results. Returns a maximum of <code>end -
2429            * start</code> instances. <code>start</code> and <code>end</code> are not
2430            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2431            * refers to the first result in the set. Setting both <code>start</code>
2432            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2433            * result set.
2434            * </p>
2435            *
2436            * @param companyId the primary key of the web content article's company
2437            * @param groupId the primary key of the group (optionally <code>0</code>)
2438            * @param folderIds the primary keys of the web content article folders
2439            (optionally {@link java.util.Collections#EMPTY_LIST})
2440            * @param classNameId the primary key of the DDMStructure class if the web
2441            content article is related to a DDM structure, the primary key of
2442            the class name associated with the article, or {@link
2443            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2444            * @param keywords the keywords (space separated), which may occur in the
2445            web content article ID, title, description, or content
2446            (optionally <code>null</code>). If the keywords value is not
2447            <code>null</code>, the search uses the OR operator in connecting
2448            query criteria; otherwise it uses the AND operator.
2449            * @param version the web content article's version (optionally
2450            <code>null</code>)
2451            * @param type the web content article's type (optionally
2452            <code>null</code>)
2453            * @param ddmStructureKey the primary key of the web content article's DDM
2454            structure, if the article is related to a DDM structure, or
2455            <code>null</code> otherwise
2456            * @param ddmTemplateKey the primary key of the web content article's DDM
2457            template (optionally <code>null</code>). If the article is
2458            related to a DDM structure, the template's structure must match
2459            it.
2460            * @param displayDateGT the date after which a matching web content
2461            article's display date must be after (optionally
2462            <code>null</code>)
2463            * @param displayDateLT the date before which a matching web content
2464            article's display date must be before (optionally
2465            <code>null</code>)
2466            * @param status the web content article's workflow status. For more
2467            information see {@link WorkflowConstants} for constants starting
2468            with the "STATUS_" prefix.
2469            * @param reviewDate the web content article's scheduled review date
2470            (optionally <code>null</code>)
2471            * @param start the lower bound of the range of web content articles to
2472            return
2473            * @param end the upper bound of the range of web content articles to
2474            return (not inclusive)
2475            * @param obc the comparator to order the web content articles
2476            * @return the range of matching web content articles ordered by the
2477            comparator
2478            * @throws SystemException if a system exception occurred
2479            */
2480            @Override
2481            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
2482                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
2483                    long classNameId, java.lang.String keywords, java.lang.Double version,
2484                    java.lang.String type, java.lang.String ddmStructureKey,
2485                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
2486                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
2487                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2488                    throws com.liferay.portal.kernel.exception.SystemException {
2489                    return _journalArticleLocalService.search(companyId, groupId,
2490                            folderIds, classNameId, keywords, version, type, ddmStructureKey,
2491                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate,
2492                            start, end, obc);
2493            }
2494    
2495            /**
2496            * Returns an ordered range of all the web content articles matching the
2497            * parameters without using the indexer, including keyword parameters for
2498            * article ID, title, description, and content, a DDM structure key
2499            * parameter, a DDM template key parameter, and an AND operator switch. It
2500            * is preferable to use the indexed version {@link #search(long, long, List,
2501            * long, String, String, String, String, String, String, String, String,
2502            * LinkedHashMap, boolean, int, int, Sort)} instead of this method wherever
2503            * possible for performance reasons.
2504            *
2505            * <p>
2506            * Useful when paginating results. Returns a maximum of <code>end -
2507            * start</code> instances. <code>start</code> and <code>end</code> are not
2508            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2509            * refers to the first result in the set. Setting both <code>start</code>
2510            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2511            * result set.
2512            * </p>
2513            *
2514            * @param companyId the primary key of the web content article's company
2515            * @param groupId the primary key of the group (optionally <code>0</code>)
2516            * @param folderIds the primary keys of the web content article folders
2517            (optionally {@link java.util.Collections#EMPTY_LIST})
2518            * @param classNameId the primary key of the DDMStructure class if the web
2519            content article is related to a DDM structure, the primary key of
2520            the class name associated with the article, or {@link
2521            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2522            * @param articleId the article ID keywords (space separated, optionally
2523            <code>null</code>)
2524            * @param version the web content article's version (optionally
2525            <code>null</code>)
2526            * @param title the title keywords (space separated, optionally
2527            <code>null</code>)
2528            * @param description the description keywords (space separated, optionally
2529            <code>null</code>)
2530            * @param content the content keywords (space separated, optionally
2531            <code>null</code>)
2532            * @param type the web content article's type (optionally
2533            <code>null</code>)
2534            * @param ddmStructureKey the primary key of the web content article's DDM
2535            structure, if the article is related to a DDM structure, or
2536            <code>null</code> otherwise
2537            * @param ddmTemplateKey the primary key of the web content article's DDM
2538            template (optionally <code>null</code>). If the article is
2539            related to a DDM structure, the template's structure must match
2540            it.
2541            * @param displayDateGT the date after which a matching web content
2542            article's display date must be after (optionally
2543            <code>null</code>)
2544            * @param displayDateLT the date before which a matching web content
2545            article's display date must be before (optionally
2546            <code>null</code>)
2547            * @param status the web content article's workflow status. For more
2548            information see {@link WorkflowConstants} for constants starting
2549            with the "STATUS_" prefix.
2550            * @param reviewDate the web content article's scheduled review date
2551            (optionally <code>null</code>)
2552            * @param andOperator whether every field must match its value or keywords,
2553            or just one field must match. Company, group, folder IDs, class
2554            name ID, and status must all match their values.
2555            * @param start the lower bound of the range of web content articles to
2556            return
2557            * @param end the upper bound of the range of web content articles to
2558            return (not inclusive)
2559            * @param obc the comparator to order the web content articles
2560            * @return the range of matching web content articles ordered by the
2561            comparator
2562            * @throws SystemException if a system exception occurred
2563            */
2564            @Override
2565            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
2566                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
2567                    long classNameId, java.lang.String articleId, java.lang.Double version,
2568                    java.lang.String title, java.lang.String description,
2569                    java.lang.String content, java.lang.String type,
2570                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2571                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
2572                    java.util.Date reviewDate, boolean andOperator, int start, int end,
2573                    com.liferay.portal.kernel.util.OrderByComparator obc)
2574                    throws com.liferay.portal.kernel.exception.SystemException {
2575                    return _journalArticleLocalService.search(companyId, groupId,
2576                            folderIds, classNameId, articleId, version, title, description,
2577                            content, type, ddmStructureKey, ddmTemplateKey, displayDateGT,
2578                            displayDateLT, status, reviewDate, andOperator, start, end, obc);
2579            }
2580    
2581            /**
2582            * Returns an ordered range of all the web content articles matching the
2583            * parameters without using the indexer, including keyword parameters for
2584            * article ID, title, description, and content, a DDM structure keys
2585            * (plural) parameter, a DDM template keys (plural) parameter, and an AND
2586            * operator switch.
2587            *
2588            * <p>
2589            * Useful when paginating results. Returns a maximum of <code>end -
2590            * start</code> instances. <code>start</code> and <code>end</code> are not
2591            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2592            * refers to the first result in the set. Setting both <code>start</code>
2593            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2594            * result set.
2595            * </p>
2596            *
2597            * @param companyId the primary key of the web content article's company
2598            * @param groupId the primary key of the group (optionally <code>0</code>)
2599            * @param folderIds the primary keys of the web content article folders
2600            (optionally {@link java.util.Collections#EMPTY_LIST})
2601            * @param classNameId the primary key of the DDMStructure class if the web
2602            content article is related to a DDM structure, the primary key of
2603            the class name associated with the article, or {@link
2604            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2605            * @param articleId the article ID keywords (space separated, optionally
2606            <code>null</code>)
2607            * @param version the web content article's version (optionally
2608            <code>null</code>)
2609            * @param title the title keywords (space separated, optionally
2610            <code>null</code>)
2611            * @param description the description keywords (space separated, optionally
2612            <code>null</code>)
2613            * @param content the content keywords (space separated, optionally
2614            <code>null</code>)
2615            * @param type the web content article's type (optionally
2616            <code>null</code>)
2617            * @param ddmStructureKeys the primary keys of the web content article's
2618            DDM structures, if the article is related to a DDM structure, or
2619            <code>null</code> otherwise
2620            * @param ddmTemplateKeys the primary keys of the web content article's DDM
2621            templates (originally <code>null</code>). If the articles are
2622            related to a DDM structure, the template's structure must match
2623            it.
2624            * @param displayDateGT the date after which a matching web content
2625            article's display date must be after (optionally
2626            <code>null</code>)
2627            * @param displayDateLT the date before which a matching web content
2628            article's display date must be before (optionally
2629            <code>null</code>)
2630            * @param status the web content article's workflow status. For more
2631            information see {@link WorkflowConstants} for constants starting
2632            with the "STATUS_" prefix.
2633            * @param reviewDate the web content article's scheduled review date
2634            (optionally <code>null</code>)
2635            * @param andOperator whether every field must match its value or keywords,
2636            or just one field must match.  Company, group, folder IDs, class
2637            name ID, and status must all match their values.
2638            * @param start the lower bound of the range of web content articles to
2639            return
2640            * @param end the upper bound of the range of web content articles to
2641            return (not inclusive)
2642            * @param obc the comparator to order the web content articles
2643            * @return the range of matching web content articles ordered by the
2644            comparator
2645            * @throws SystemException if a system exception occurred
2646            */
2647            @Override
2648            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
2649                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
2650                    long classNameId, java.lang.String articleId, java.lang.Double version,
2651                    java.lang.String title, java.lang.String description,
2652                    java.lang.String content, java.lang.String type,
2653                    java.lang.String[] ddmStructureKeys,
2654                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
2655                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
2656                    boolean andOperator, int start, int end,
2657                    com.liferay.portal.kernel.util.OrderByComparator obc)
2658                    throws com.liferay.portal.kernel.exception.SystemException {
2659                    return _journalArticleLocalService.search(companyId, groupId,
2660                            folderIds, classNameId, articleId, version, title, description,
2661                            content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
2662                            displayDateLT, status, reviewDate, andOperator, start, end, obc);
2663            }
2664    
2665            /**
2666            * Returns an ordered range of all the web content articles matching the
2667            * parameters using the indexer, including a keywords parameter for matching
2668            * an article's ID, title, description, or content, a DDM structure key
2669            * parameter, a DDM template key parameter, and a finder hash map parameter.
2670            * It is preferable to use this method instead of the non-indexed version
2671            * whenever possible for performance reasons.
2672            *
2673            * <p>
2674            * Useful when paginating results. Returns a maximum of <code>end -
2675            * start</code> instances. <code>start</code> and <code>end</code> are not
2676            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2677            * refers to the first result in the set. Setting both <code>start</code>
2678            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2679            * result set.
2680            * </p>
2681            *
2682            * @param companyId the primary key of the web content article's company
2683            * @param groupId the primary key of the group (optionally <code>0</code>)
2684            * @param folderIds the primary keys of the web content article folders
2685            (optionally {@link java.util.Collections#EMPTY_LIST})
2686            * @param classNameId the primary key of the DDMStructure class if the web
2687            content article is related to a DDM structure, the primary key of
2688            the class name associated with the article, or {@link
2689            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2690            * @param ddmStructureKey the primary key of the web content article's DDM
2691            structure, if the article is related to a DDM structure, or
2692            <code>null</code> otherwise
2693            * @param ddmTemplateKey the primary key of the web content article's DDM
2694            template (optionally <code>null</code>). If the article is
2695            related to a DDM structure, the template's structure must match
2696            it.
2697            * @param keywords the keywords (space separated), which may occur in the
2698            web content article ID, title, description, or content
2699            (optionally <code>null</code>). If the keywords value is not
2700            <code>null</code>, the search uses the OR operator in connecting
2701            query criteria; otherwise it uses the AND operator.
2702            * @param params the finder parameters (optionally <code>null</code>)
2703            * @param start the lower bound of the range of web content articles to
2704            return
2705            * @param end the upper bound of the range of web content articles to
2706            return (not inclusive)
2707            * @param sort the field, type, and direction by which to sort (optionally
2708            <code>null</code>)
2709            * @return the matching web content articles ordered by <code>sort</code>
2710            * @throws SystemException if a system exception occurred
2711            */
2712            @Override
2713            public com.liferay.portal.kernel.search.Hits search(long companyId,
2714                    long groupId, java.util.List<java.lang.Long> folderIds,
2715                    long classNameId, java.lang.String ddmStructureKey,
2716                    java.lang.String ddmTemplateKey, java.lang.String keywords,
2717                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2718                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
2719                    throws com.liferay.portal.kernel.exception.SystemException {
2720                    return _journalArticleLocalService.search(companyId, groupId,
2721                            folderIds, classNameId, ddmStructureKey, ddmTemplateKey, keywords,
2722                            params, start, end, sort);
2723            }
2724    
2725            /**
2726            * Returns an ordered range of all the web content articles matching the
2727            * parameters using the indexer, including a keywords parameter for matching
2728            * an article's ID, title, description, or content, a DDM structure key
2729            * parameter, a DDM template key parameter, an AND operator switch, and
2730            * parameters for type, status, a finder hash map. It is preferable to use
2731            * this method instead of the non-indexed version whenever possible for
2732            * performance reasons.
2733            *
2734            * <p>
2735            * Useful when paginating results. Returns a maximum of <code>end -
2736            * start</code> instances. <code>start</code> and <code>end</code> are not
2737            * primary keys, they are indexes in the result set. Thus, <code>0</code>
2738            * refers to the first result in the set. Setting both <code>start</code>
2739            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
2740            * result set.
2741            * </p>
2742            *
2743            * @param companyId the primary key of the web content article's company
2744            * @param groupId the primary key of the group (optionally <code>0</code>)
2745            * @param folderIds the primary keys of the web content article folders
2746            (optionally {@link java.util.Collections#EMPTY_LIST})
2747            * @param classNameId the primary key of the DDMStructure class if the web
2748            content article is related to a DDM structure, the primary key of
2749            the class name associated with the article, or {@link
2750            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2751            * @param articleId the article ID keywords (space separated, optionally
2752            <code>null</code>)
2753            * @param title the title keywords (space separated, optionally
2754            <code>null</code>)
2755            * @param description the description keywords (space separated, optionally
2756            <code>null</code>)
2757            * @param content the content keywords (space separated, optionally
2758            <code>null</code>)
2759            * @param type the web content article's type (optionally
2760            <code>null</code>)
2761            * @param status the web content article's workflow status. For more
2762            information see {@link WorkflowConstants} for constants starting
2763            with the "STATUS_" prefix.
2764            * @param ddmStructureKey the primary key of the web content article's DDM
2765            structure, if the article is related to a DDM structure, or
2766            <code>null</code> otherwise
2767            * @param ddmTemplateKey the primary key of the web content article's DDM
2768            template (optionally <code>null</code>). If the article is
2769            related to a DDM structure, the template's structure must match
2770            it.
2771            * @param params the finder parameters (optionally <code>null</code>). Can
2772            set parameter <code>"includeDiscussions"</code> to
2773            <code>true</code> to search for the keywords in the web content
2774            article discussions.
2775            * @param andSearch whether every field must match its value or keywords,
2776            or just one field must match
2777            * @param start the lower bound of the range of web content articles to
2778            return
2779            * @param end the upper bound of the range of web content articles to
2780            return (not inclusive)
2781            * @param sort the field, type, and direction by which to sort (optionally
2782            <code>null</code>)
2783            * @return the matching web content articles ordered by <code>sort</code>
2784            * @throws SystemException if a system exception occurred
2785            */
2786            @Override
2787            public com.liferay.portal.kernel.search.Hits search(long companyId,
2788                    long groupId, java.util.List<java.lang.Long> folderIds,
2789                    long classNameId, java.lang.String articleId, java.lang.String title,
2790                    java.lang.String description, java.lang.String content,
2791                    java.lang.String type, java.lang.String status,
2792                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2793                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
2794                    boolean andSearch, int start, int end,
2795                    com.liferay.portal.kernel.search.Sort sort)
2796                    throws com.liferay.portal.kernel.exception.SystemException {
2797                    return _journalArticleLocalService.search(companyId, groupId,
2798                            folderIds, classNameId, articleId, title, description, content,
2799                            type, status, ddmStructureKey, ddmTemplateKey, params, andSearch,
2800                            start, end, sort);
2801            }
2802    
2803            @Override
2804            public com.liferay.portal.kernel.search.Hits search(long groupId,
2805                    long userId, long creatorUserId, int status, int start, int end)
2806                    throws com.liferay.portal.kernel.exception.PortalException,
2807                            com.liferay.portal.kernel.exception.SystemException {
2808                    return _journalArticleLocalService.search(groupId, userId,
2809                            creatorUserId, status, start, end);
2810            }
2811    
2812            /**
2813            * Returns the number of web content articles matching the parameters,
2814            * including a keywords parameter for matching with the article's ID, title,
2815            * description, and content, a DDM structure key parameter, and a DDM
2816            * template key parameter.
2817            *
2818            * @param companyId the primary key of the web content article's company
2819            * @param groupId the primary key of the group (optionally <code>0</code>)
2820            * @param folderIds the primary keys of the web content article folders
2821            (optionally {@link java.util.Collections#EMPTY_LIST})
2822            * @param classNameId the primary key of the DDMStructure class if the web
2823            content article is related to a DDM structure, the primary key of
2824            the class name associated with the article, or {@link
2825            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2826            * @param keywords the keywords (space separated), which may occur in the
2827            web content article ID, title, description, or content
2828            (optionally <code>null</code>). If the keywords value is not
2829            <code>null</code>, the search uses the OR operator in connecting
2830            query criteria; otherwise it uses the AND operator.
2831            * @param version the web content article's version (optionally
2832            <code>null</code>)
2833            * @param type the web content article's type (optionally
2834            <code>null</code>)
2835            * @param ddmStructureKey the primary key of the web content article's DDM
2836            structure, if the article is related to a DDM structure, or
2837            <code>null</code> otherwise
2838            * @param ddmTemplateKey the primary key of the web content article's DDM
2839            template (optionally <code>null</code>). If the article is
2840            related to a DDM structure, the template's structure must match
2841            it.
2842            * @param displayDateGT the date after which a matching web content
2843            article's display date must be after (optionally
2844            <code>null</code>)
2845            * @param displayDateLT the date before which a matching web content
2846            article's display date must be before (optionally
2847            <code>null</code>)
2848            * @param status the web content article's workflow status. For more
2849            information see {@link WorkflowConstants} for constants starting
2850            with the "STATUS_" prefix.
2851            * @param reviewDate the web content article's scheduled review date
2852            (optionally <code>null</code>)
2853            * @return the number of matching web content articles
2854            * @throws SystemException if a system exception occurred
2855            */
2856            @Override
2857            public int searchCount(long companyId, long groupId,
2858                    java.util.List<java.lang.Long> folderIds, long classNameId,
2859                    java.lang.String keywords, java.lang.Double version,
2860                    java.lang.String type, java.lang.String ddmStructureKey,
2861                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
2862                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
2863                    throws com.liferay.portal.kernel.exception.SystemException {
2864                    return _journalArticleLocalService.searchCount(companyId, groupId,
2865                            folderIds, classNameId, keywords, version, type, ddmStructureKey,
2866                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate);
2867            }
2868    
2869            /**
2870            * Returns the number of web content articles matching the parameters,
2871            * including keyword parameters for article ID, title, description, and
2872            * content, a DDM structure key parameter, a DDM template key parameter, and
2873            * an AND operator switch.
2874            *
2875            * @param companyId the primary key of the web content article's company
2876            * @param groupId the primary key of the group (optionally <code>0</code>)
2877            * @param folderIds the primary keys of the web content article folders
2878            (optionally {@link java.util.Collections#EMPTY_LIST})
2879            * @param classNameId the primary key of the DDMStructure class if the web
2880            content article is related to a DDM structure, the primary key of
2881            the class name associated with the article, or {@link
2882            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2883            * @param articleId the article ID keywords (space separated, optionally
2884            <code>null</code>)
2885            * @param version the web content article's version (optionally
2886            <code>null</code>)
2887            * @param title the title keywords (space separated, optionally
2888            <code>null</code>)
2889            * @param description the description keywords (space separated, optionally
2890            <code>null</code>)
2891            * @param content the content keywords (space separated, optionally
2892            <code>null</code>)
2893            * @param type the web content article's type (optionally
2894            <code>null</code>)
2895            * @param ddmStructureKey the primary key of the web content article's DDM
2896            structure, if the article is related to a DDM structure, or
2897            <code>null</code> otherwise
2898            * @param ddmTemplateKey the primary key of the web content article's DDM
2899            template (optionally <code>null</code>). If the article is
2900            related to a DDM structure, the template's structure must match
2901            it.
2902            * @param displayDateGT the date after which a matching web content
2903            article's display date must be after (optionally
2904            <code>null</code>)
2905            * @param displayDateLT the date before which a matching web content
2906            article's display date must be before (optionally
2907            <code>null</code>)
2908            * @param status the web content article's workflow status. For more
2909            information see {@link WorkflowConstants} for constants starting
2910            with the "STATUS_" prefix.
2911            * @param reviewDate the web content article's scheduled review date
2912            (optionally <code>null</code>)
2913            * @param andOperator whether every field must match its value or keywords,
2914            or just one field must match. Group, folder IDs, class name ID,
2915            and status must all match their values.
2916            * @return the number of matching web content articles
2917            * @throws SystemException if a system exception occurred
2918            */
2919            @Override
2920            public int searchCount(long companyId, long groupId,
2921                    java.util.List<java.lang.Long> folderIds, long classNameId,
2922                    java.lang.String articleId, java.lang.Double version,
2923                    java.lang.String title, java.lang.String description,
2924                    java.lang.String content, java.lang.String type,
2925                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
2926                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
2927                    java.util.Date reviewDate, boolean andOperator)
2928                    throws com.liferay.portal.kernel.exception.SystemException {
2929                    return _journalArticleLocalService.searchCount(companyId, groupId,
2930                            folderIds, classNameId, articleId, version, title, description,
2931                            content, type, ddmStructureKey, ddmTemplateKey, displayDateGT,
2932                            displayDateLT, status, reviewDate, andOperator);
2933            }
2934    
2935            /**
2936            * Returns the number of web content articles matching the parameters,
2937            * including keyword parameters for article ID, title, description, and
2938            * content, a DDM structure keys (plural) parameter, a DDM template keys
2939            * (plural) parameter, and an AND operator switch.
2940            *
2941            * @param companyId the primary key of the web content article's company
2942            * @param groupId the primary key of the group (optionally <code>0</code>)
2943            * @param folderIds the primary keys of the web content article folders
2944            (optionally {@link java.util.Collections#EMPTY_LIST})
2945            * @param classNameId the primary key of the DDMStructure class if the web
2946            content article is related to a DDM structure, the primary key of
2947            the class name associated with the article, or {@link
2948            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
2949            * @param articleId the article ID keywords (space separated, optionally
2950            <code>null</code>)
2951            * @param version the web content article's version (optionally
2952            <code>null</code>)
2953            * @param title the title keywords (space separated, optionally
2954            <code>null</code>)
2955            * @param description the description keywords (space separated, optionally
2956            <code>null</code>)
2957            * @param content the content keywords (space separated, optionally
2958            <code>null</code>)
2959            * @param type the web content article's type (optionally
2960            <code>null</code>)
2961            * @param ddmStructureKeys the primary keys of the web content article's
2962            DDM structures, if the article is related to a DDM structure, or
2963            <code>null</code> otherwise
2964            * @param ddmTemplateKeys the primary keys of the web content article's DDM
2965            templates (originally <code>null</code>). If the articles are
2966            related to a DDM structure, the template's structure must match
2967            it.
2968            * @param displayDateGT the date after which a matching web content
2969            article's display date must be after (optionally
2970            <code>null</code>)
2971            * @param displayDateLT the date before which a matching web content
2972            article's display date must be before (optionally
2973            <code>null</code>)
2974            * @param status the web content article's workflow status. For more
2975            information see {@link WorkflowConstants} for constants starting
2976            with the "STATUS_" prefix.
2977            * @param reviewDate the web content article's scheduled review date
2978            (optionally <code>null</code>)
2979            * @param andOperator whether every field must match its value or keywords,
2980            or just one field must match.  Group, folder IDs, class name ID,
2981            and status must all match their values.
2982            * @return the number of matching web content articles
2983            * @throws SystemException if a system exception occurred
2984            */
2985            @Override
2986            public int searchCount(long companyId, long groupId,
2987                    java.util.List<java.lang.Long> folderIds, long classNameId,
2988                    java.lang.String articleId, java.lang.Double version,
2989                    java.lang.String title, java.lang.String description,
2990                    java.lang.String content, java.lang.String type,
2991                    java.lang.String[] ddmStructureKeys,
2992                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
2993                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
2994                    boolean andOperator)
2995                    throws com.liferay.portal.kernel.exception.SystemException {
2996                    return _journalArticleLocalService.searchCount(companyId, groupId,
2997                            folderIds, classNameId, articleId, version, title, description,
2998                            content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
2999                            displayDateLT, status, reviewDate, andOperator);
3000            }
3001    
3002            /**
3003            * Subscribes the user to notifications for the web content article matching
3004            * the group, notifying him the instant versions of the article are created,
3005            * deleted, or modified.
3006            *
3007            * @param userId the primary key of the user to subscribe
3008            * @param groupId the primary key of the group
3009            * @throws PortalException if a matching user or group could not be found
3010            * @throws SystemException if a system exception occurred
3011            */
3012            @Override
3013            public void subscribe(long userId, long groupId)
3014                    throws com.liferay.portal.kernel.exception.PortalException,
3015                            com.liferay.portal.kernel.exception.SystemException {
3016                    _journalArticleLocalService.subscribe(userId, groupId);
3017            }
3018    
3019            /**
3020            * Unsubscribes the user from notifications for the web content article
3021            * matching the group.
3022            *
3023            * @param userId the primary key of the user to unsubscribe
3024            * @param groupId the primary key of the group
3025            * @throws PortalException if a matching user or subscription could not be
3026            found
3027            * @throws SystemException if a system exception occurred
3028            */
3029            @Override
3030            public void unsubscribe(long userId, long groupId)
3031                    throws com.liferay.portal.kernel.exception.PortalException,
3032                            com.liferay.portal.kernel.exception.SystemException {
3033                    _journalArticleLocalService.unsubscribe(userId, groupId);
3034            }
3035    
3036            /**
3037            * Updates the web content article matching the version, replacing its
3038            * folder, title, description, content, and layout UUID.
3039            *
3040            * @param userId the primary key of the user updating the web content
3041            article
3042            * @param groupId the primary key of the web content article's group
3043            * @param folderId the primary key of the web content article folder
3044            * @param articleId the primary key of the web content article
3045            * @param version the web content article's version
3046            * @param titleMap the web content article's locales and localized titles
3047            * @param descriptionMap the web content article's locales and localized
3048            descriptions
3049            * @param content the HTML content wrapped in XML. For more information,
3050            see the content example in the class description for {@link
3051            JournalArticleLocalServiceImpl}.
3052            * @param layoutUuid the unique string identifying the web content
3053            article's display page
3054            * @param serviceContext the service context to be applied. Can set the
3055            modification date, expando bridge attributes, asset category IDs,
3056            asset tag names, asset link entry IDs, workflow actions, the
3057            "defaultLanguageId" and "urlTitle" attributes, and can set
3058            whether to add the default command update for the web content
3059            article. With respect to social activities, by setting the
3060            service context's command to {@link
3061            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3062            is considered a web content update activity; otherwise it is
3063            considered a web content add activity.
3064            * @return the updated web content article
3065            * @throws PortalException if a user with the primary key or a matching web
3066            content article could not be found, or if a portal exception
3067            occurred
3068            * @throws SystemException if a system exception occurred
3069            */
3070            @Override
3071            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
3072                    long userId, long groupId, long folderId, java.lang.String articleId,
3073                    double version,
3074                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
3075                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
3076                    java.lang.String content, java.lang.String layoutUuid,
3077                    com.liferay.portal.service.ServiceContext serviceContext)
3078                    throws com.liferay.portal.kernel.exception.PortalException,
3079                            com.liferay.portal.kernel.exception.SystemException {
3080                    return _journalArticleLocalService.updateArticle(userId, groupId,
3081                            folderId, articleId, version, titleMap, descriptionMap, content,
3082                            layoutUuid, serviceContext);
3083            }
3084    
3085            /**
3086            * Updates the web content article with additional parameters.
3087            *
3088            * @param userId the primary key of the user updating the web content
3089            article
3090            * @param groupId the primary key of the web content article's group
3091            * @param folderId the primary key of the web content article folder
3092            * @param articleId the primary key of the web content article
3093            * @param version the web content article's version
3094            * @param titleMap the web content article's locales and localized titles
3095            * @param descriptionMap the web content article's locales and localized
3096            descriptions
3097            * @param content the HTML content wrapped in XML. For more information,
3098            see the content example in the class description for {@link
3099            JournalArticleLocalServiceImpl}.
3100            * @param type the structure's type, if the web content article is related
3101            to a DDM structure. For more information, see {@link
3102            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
3103            * @param ddmStructureKey the primary key of the web content article's DDM
3104            structure, if the article is related to a DDM structure, or
3105            <code>null</code> otherwise
3106            * @param ddmTemplateKey the primary key of the web content article's DDM
3107            template (optionally <code>null</code>). If the article is
3108            related to a DDM structure, the template's structure must match
3109            it.
3110            * @param layoutUuid the unique string identifying the web content
3111            article's display page
3112            * @param displayDateMonth the month the web content article is set to
3113            display
3114            * @param displayDateDay the calendar day the web content article is set to
3115            display
3116            * @param displayDateYear the year the web content article is set to
3117            display
3118            * @param displayDateHour the hour the web content article is set to
3119            display
3120            * @param displayDateMinute the minute the web content article is set to
3121            display
3122            * @param expirationDateMonth the month the web content article is set to
3123            expire
3124            * @param expirationDateDay the calendar day the web content article is set
3125            to expire
3126            * @param expirationDateYear the year the web content article is set to
3127            expire
3128            * @param expirationDateHour the hour the web content article is set to
3129            expire
3130            * @param expirationDateMinute the minute the web content article is set to
3131            expire
3132            * @param neverExpire whether the web content article is not set to auto
3133            expire
3134            * @param reviewDateMonth the month the web content article is set for
3135            review
3136            * @param reviewDateDay the calendar day the web content article is set for
3137            review
3138            * @param reviewDateYear the year the web content article is set for review
3139            * @param reviewDateHour the hour the web content article is set for review
3140            * @param reviewDateMinute the minute the web content article is set for
3141            review
3142            * @param neverReview whether the web content article is not set for review
3143            * @param indexable whether the web content is searchable
3144            * @param smallImage whether to update web content article's a small image.
3145            A file must be passed in as <code>smallImageFile</code> value,
3146            otherwise the current small image is deleted.
3147            * @param smallImageURL the web content article's small image URL
3148            (optionally <code>null</code>)
3149            * @param smallImageFile the web content article's new small image file
3150            (optionally <code>null</code>). Must pass in
3151            <code>smallImage</code> value of <code>true</code> to replace the
3152            article's small image file.
3153            * @param images the web content's images (optionally <code>null</code>)
3154            * @param articleURL the web content article's accessible URL (optionally
3155            <code>null</code>)
3156            * @param serviceContext the service context to be applied. Can set the
3157            modification date, expando bridge attributes, asset category IDs,
3158            asset tag names, asset link entry IDs, workflow actions, the
3159            "defaultLanguageId" and "urlTitle" attributes, and can set
3160            whether to add the default command update for the web content
3161            article. With respect to social activities, by setting the
3162            service context's command to {@link
3163            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3164            is considered a web content update activity; otherwise it is
3165            considered a web content add activity.
3166            * @return the updated web content article
3167            * @throws PortalException if a user with the primary key or a matching web
3168            content article could not be found, or if a portal exception
3169            occurred
3170            * @throws SystemException if a system exception occurred
3171            */
3172            @Override
3173            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
3174                    long userId, long groupId, long folderId, java.lang.String articleId,
3175                    double version,
3176                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
3177                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
3178                    java.lang.String content, java.lang.String type,
3179                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
3180                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
3181                    int displayDateYear, int displayDateHour, int displayDateMinute,
3182                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
3183                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
3184                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
3185                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
3186                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
3187                    java.io.File smallImageFile,
3188                    java.util.Map<java.lang.String, byte[]> images,
3189                    java.lang.String articleURL,
3190                    com.liferay.portal.service.ServiceContext serviceContext)
3191                    throws com.liferay.portal.kernel.exception.PortalException,
3192                            com.liferay.portal.kernel.exception.SystemException {
3193                    return _journalArticleLocalService.updateArticle(userId, groupId,
3194                            folderId, articleId, version, titleMap, descriptionMap, content,
3195                            type, ddmStructureKey, ddmTemplateKey, layoutUuid,
3196                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
3197                            displayDateMinute, expirationDateMonth, expirationDateDay,
3198                            expirationDateYear, expirationDateHour, expirationDateMinute,
3199                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
3200                            reviewDateHour, reviewDateMinute, neverReview, indexable,
3201                            smallImage, smallImageURL, smallImageFile, images, articleURL,
3202                            serviceContext);
3203            }
3204    
3205            /**
3206            * Updates the web content article matching the version, replacing its
3207            * folder and content.
3208            *
3209            * @param userId the primary key of the user updating the web content
3210            article
3211            * @param groupId the primary key of the web content article's group
3212            * @param folderId the primary key of the web content article folder
3213            * @param articleId the primary key of the web content article
3214            * @param version the web content article's version
3215            * @param content the HTML content wrapped in XML. For more information,
3216            see the content example in the class description for {@link
3217            JournalArticleLocalServiceImpl}.
3218            * @param serviceContext the service context to be applied. Can set the
3219            modification date, expando bridge attributes, asset category IDs,
3220            asset tag names, asset link entry IDs, workflow actions, the
3221            "defaultLanguageId" and "urlTitle" attributes, and can set
3222            whether to add the default command update for the web content
3223            article. With respect to social activities, by setting the
3224            service context's command to {@link
3225            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3226            is considered a web content update activity; otherwise it is
3227            considered a web content add activity.
3228            * @return the updated web content article
3229            * @throws PortalException if a user with the primary key or a matching web
3230            content article could not be found, or if a portal exception
3231            occurred
3232            * @throws SystemException if a system exception occurred
3233            */
3234            @Override
3235            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
3236                    long userId, long groupId, long folderId, java.lang.String articleId,
3237                    double version, java.lang.String content,
3238                    com.liferay.portal.service.ServiceContext serviceContext)
3239                    throws com.liferay.portal.kernel.exception.PortalException,
3240                            com.liferay.portal.kernel.exception.SystemException {
3241                    return _journalArticleLocalService.updateArticle(userId, groupId,
3242                            folderId, articleId, version, content, serviceContext);
3243            }
3244    
3245            /**
3246            * @deprecated As of 6.2.0, replaced by {@link
3247            #updateArticleTranslation(long, String, double, Locale,
3248            String, String, String, Map, ServiceContext)}
3249            */
3250            @Override
3251            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
3252                    long groupId, java.lang.String articleId, double version,
3253                    java.util.Locale locale, java.lang.String title,
3254                    java.lang.String description, java.lang.String content,
3255                    java.util.Map<java.lang.String, byte[]> images)
3256                    throws com.liferay.portal.kernel.exception.PortalException,
3257                            com.liferay.portal.kernel.exception.SystemException {
3258                    return _journalArticleLocalService.updateArticleTranslation(groupId,
3259                            articleId, version, locale, title, description, content, images);
3260            }
3261    
3262            /**
3263            * Updates the translation of the web content article.
3264            *
3265            * @param groupId the primary key of the web content article's group
3266            * @param articleId the primary key of the web content article
3267            * @param version the web content article's version
3268            * @param locale the locale of the web content article's display template
3269            * @param title the translated web content article title
3270            * @param description the translated web content article description
3271            * @param content the HTML content wrapped in XML. For more information,
3272            see the content example in the class description for {@link
3273            JournalArticleLocalServiceImpl}.
3274            * @param images the web content's images
3275            * @param serviceContext the service context to be applied. Can set the
3276            modification date and "urlTitle" attribute for the web content
3277            article.
3278            * @return the updated web content article
3279            * @throws PortalException if a user with the primary key or a matching web
3280            content article could not be found, or if a portal exception
3281            occurred
3282            * @throws SystemException if a system exception occurred
3283            */
3284            @Override
3285            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
3286                    long groupId, java.lang.String articleId, double version,
3287                    java.util.Locale locale, java.lang.String title,
3288                    java.lang.String description, java.lang.String content,
3289                    java.util.Map<java.lang.String, byte[]> images,
3290                    com.liferay.portal.service.ServiceContext serviceContext)
3291                    throws com.liferay.portal.kernel.exception.PortalException,
3292                            com.liferay.portal.kernel.exception.SystemException {
3293                    return _journalArticleLocalService.updateArticleTranslation(groupId,
3294                            articleId, version, locale, title, description, content, images,
3295                            serviceContext);
3296            }
3297    
3298            /**
3299            * Updates the web content article's asset with the new asset categories,
3300            * tag names, and link entries, removing and adding them as necessary.
3301            *
3302            * @param userId the primary key of the user updating the web content
3303            article's asset
3304            * @param article the web content article
3305            * @param assetCategoryIds the primary keys of the new asset categories
3306            * @param assetTagNames the new asset tag names
3307            * @param assetLinkEntryIds the primary keys of the new asset link entries
3308            * @throws PortalException if a portal exception occurred
3309            * @throws SystemException if a system exception occurred
3310            */
3311            @Override
3312            public void updateAsset(long userId,
3313                    com.liferay.portlet.journal.model.JournalArticle article,
3314                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
3315                    long[] assetLinkEntryIds)
3316                    throws com.liferay.portal.kernel.exception.PortalException,
3317                            com.liferay.portal.kernel.exception.SystemException {
3318                    _journalArticleLocalService.updateAsset(userId, article,
3319                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
3320            }
3321    
3322            /**
3323            * Updates the web content article matching the group, article ID, and
3324            * version, replacing its content.
3325            *
3326            * @param groupId the primary key of the web content article's group
3327            * @param articleId the primary key of the web content article
3328            * @param version the web content article's version
3329            * @param content the HTML content wrapped in XML. For more information,
3330            see the content example in the class description for {@link
3331            JournalArticleLocalServiceImpl}.
3332            * @return the updated web content article
3333            * @throws PortalException if a matching web content article could not be
3334            found
3335            * @throws SystemException if a system exception occurred
3336            */
3337            @Override
3338            public com.liferay.portlet.journal.model.JournalArticle updateContent(
3339                    long groupId, java.lang.String articleId, double version,
3340                    java.lang.String content)
3341                    throws com.liferay.portal.kernel.exception.PortalException,
3342                            com.liferay.portal.kernel.exception.SystemException {
3343                    return _journalArticleLocalService.updateContent(groupId, articleId,
3344                            version, content);
3345            }
3346    
3347            /**
3348            * Updates the workflow status of the web content article.
3349            *
3350            * @param userId the primary key of the user updating the web content
3351            article's status
3352            * @param article the web content article
3353            * @param status the web content article's workflow status. For more
3354            information see {@link WorkflowConstants} for constants starting
3355            with the "STATUS_" prefix.
3356            * @param articleURL the web content article's accessible URL
3357            * @param workflowContext the web content article's configured workflow
3358            context
3359            * @param serviceContext the service context to be applied. Can set the
3360            modification date, status date, and portlet preferences. With
3361            respect to social activities, by setting the service context's
3362            command to {@link
3363            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
3364            is considered a web content update activity; otherwise it is
3365            considered a web content add activity.
3366            * @return the updated web content article
3367            * @throws PortalException if a portal exception occurred
3368            * @throws SystemException if a system exception occurred
3369            */
3370            @Override
3371            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
3372                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
3373                    int status, java.lang.String articleURL,
3374                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
3375                    com.liferay.portal.service.ServiceContext serviceContext)
3376                    throws com.liferay.portal.kernel.exception.PortalException,
3377                            com.liferay.portal.kernel.exception.SystemException {
3378                    return _journalArticleLocalService.updateStatus(userId, article,
3379                            status, articleURL, workflowContext, serviceContext);
3380            }
3381    
3382            /**
3383            * Updates the workflow status of the web content article matching the class
3384            * PK.
3385            *
3386            * @param userId the primary key of the user updating the web content
3387            article's status
3388            * @param classPK the primary key of the DDM structure, if the web content
3389            article is related to a DDM structure, the primary key of the
3390            class associated with the article, or <code>0</code> otherwise
3391            * @param status the web content article's workflow status. For more
3392            information see {@link WorkflowConstants} for constants starting
3393            with the "STATUS_" prefix.
3394            * @param workflowContext the web content article's configured workflow
3395            * @param serviceContext the service context to be applied. Can set the
3396            modification date, portlet preferences, and can set whether to
3397            add the default command update for the web content article.
3398            * @return the updated web content article
3399            * @throws PortalException if a matching web content article could not be
3400            found or if a portal exception occurred
3401            * @throws SystemException if a system exception occurred
3402            */
3403            @Override
3404            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
3405                    long userId, long classPK, int status,
3406                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
3407                    com.liferay.portal.service.ServiceContext serviceContext)
3408                    throws com.liferay.portal.kernel.exception.PortalException,
3409                            com.liferay.portal.kernel.exception.SystemException {
3410                    return _journalArticleLocalService.updateStatus(userId, classPK,
3411                            status, workflowContext, serviceContext);
3412            }
3413    
3414            /**
3415            * Updates the workflow status of the web content article matching the
3416            * group, article ID, and version.
3417            *
3418            * @param userId the primary key of the user updating the web content
3419            article's status
3420            * @param groupId the primary key of the web content article's group
3421            * @param articleId the primary key of the web content article
3422            * @param version the web content article's version
3423            * @param status the web content article's workflow status. For more
3424            information see {@link WorkflowConstants} for constants starting
3425            with the "STATUS_" prefix.
3426            * @param articleURL the web content article's accessible URL
3427            * @param workflowContext the web content article's configured workflow
3428            * @param serviceContext the service context to be applied. Can set the
3429            modification date, portlet preferences, and can set whether to
3430            add the default command update for the web content article.
3431            * @return the updated web content article
3432            * @throws PortalException if a matching web content article could not be
3433            found or if a portal exception occurred
3434            * @throws SystemException if a system exception occurred
3435            */
3436            @Override
3437            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
3438                    long userId, long groupId, java.lang.String articleId, double version,
3439                    int status, java.lang.String articleURL,
3440                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
3441                    com.liferay.portal.service.ServiceContext serviceContext)
3442                    throws com.liferay.portal.kernel.exception.PortalException,
3443                            com.liferay.portal.kernel.exception.SystemException {
3444                    return _journalArticleLocalService.updateStatus(userId, groupId,
3445                            articleId, version, status, articleURL, workflowContext,
3446                            serviceContext);
3447            }
3448    
3449            /**
3450            * Updates the web content articles matching the group, class name ID, and
3451            * DDM template key, replacing the DDM template key with a new one.
3452            *
3453            * @param groupId the primary key of the web content article's group
3454            * @param classNameId the primary key of the DDMStructure class if the web
3455            content article is related to a DDM structure, the primary key of
3456            the class name associated with the article, or {@link
3457            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
3458            * @param oldDDMTemplateKey the primary key of the web content article's
3459            old DDM template
3460            * @param newDDMTemplateKey the primary key of the web content article's
3461            new DDM template
3462            * @throws SystemException if a system exception occurred
3463            */
3464            @Override
3465            public void updateTemplateId(long groupId, long classNameId,
3466                    java.lang.String oldDDMTemplateKey, java.lang.String newDDMTemplateKey)
3467                    throws com.liferay.portal.kernel.exception.SystemException {
3468                    _journalArticleLocalService.updateTemplateId(groupId, classNameId,
3469                            oldDDMTemplateKey, newDDMTemplateKey);
3470            }
3471    
3472            /**
3473             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
3474             */
3475            public JournalArticleLocalService getWrappedJournalArticleLocalService() {
3476                    return _journalArticleLocalService;
3477            }
3478    
3479            /**
3480             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
3481             */
3482            public void setWrappedJournalArticleLocalService(
3483                    JournalArticleLocalService journalArticleLocalService) {
3484                    _journalArticleLocalService = journalArticleLocalService;
3485            }
3486    
3487            @Override
3488            public JournalArticleLocalService getWrappedService() {
3489                    return _journalArticleLocalService;
3490            }
3491    
3492            @Override
3493            public void setWrappedService(
3494                    JournalArticleLocalService journalArticleLocalService) {
3495                    _journalArticleLocalService = journalArticleLocalService;
3496            }
3497    
3498            private JournalArticleLocalService _journalArticleLocalService;
3499    }