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