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