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