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