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 JournalArticleService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see JournalArticleService
026     * @generated
027     */
028    @ProviderType
029    public class JournalArticleServiceWrapper implements JournalArticleService,
030            ServiceWrapper<JournalArticleService> {
031            public JournalArticleServiceWrapper(
032                    JournalArticleService journalArticleService) {
033                    _journalArticleService = journalArticleService;
034            }
035    
036            /**
037            * Adds a web content article without any images.
038            *
039            * @param groupId the primary key of the web content article's group
040            * @param folderId the primary key of the web content article folder
041            * @param classNameId the primary key of the DDMStructure class if the web
042            content article is related to a DDM structure, the primary key of
043            the class name associated with the article, or {@link
044            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
045            * @param classPK the primary key of the DDM structure, if the primary key
046            of the DDMStructure class is given as the
047            <code>classNameId</code> parameter, the primary key of the class
048            associated with the web content article, or <code>0</code>
049            otherwise
050            * @param articleId the primary key of the web content article
051            * @param autoArticleId whether to auto generate the web content article ID
052            * @param titleMap the web content article's locales and localized titles
053            * @param descriptionMap the web content article's locales and localized
054            descriptions
055            * @param content the HTML content wrapped in XML
056            * @param ddmStructureKey the primary key of the web content article's DDM
057            structure, if the article is related to a DDM structure, or
058            <code>null</code> otherwise
059            * @param ddmTemplateKey the primary key of the web content article's DDM
060            template
061            * @param layoutUuid the unique string identifying the web content
062            article's display page
063            * @param displayDateMonth the month the web content article is set to
064            display
065            * @param displayDateDay the calendar day the web content article is set to
066            display
067            * @param displayDateYear the year the web content article is set to
068            display
069            * @param displayDateHour the hour the web content article is set to
070            display
071            * @param displayDateMinute the minute the web content article is set to
072            display
073            * @param expirationDateMonth the month the web content article is set to
074            expire
075            * @param expirationDateDay the calendar day the web content article is set
076            to expire
077            * @param expirationDateYear the year the web content article is set to
078            expire
079            * @param expirationDateHour the hour the web content article is set to
080            expire
081            * @param expirationDateMinute the minute the web content article is set to
082            expire
083            * @param neverExpire whether the web content article is not set to auto
084            expire
085            * @param reviewDateMonth the month the web content article is set for
086            review
087            * @param reviewDateDay the calendar day the web content article is set for
088            review
089            * @param reviewDateYear the year the web content article is set for review
090            * @param reviewDateHour the hour the web content article is set for review
091            * @param reviewDateMinute the minute the web content article is set for
092            review
093            * @param neverReview whether the web content article is not set for review
094            * @param indexable whether the web content article is searchable
095            * @param articleURL the web content article's accessible URL
096            * @param serviceContext the service context to be applied. Can set the
097            UUID, creation date, modification date, expando bridge
098            attributes, guest permissions, group permissions, asset category
099            IDs, asset tag names, asset link entry IDs, URL title, and
100            workflow actions for the web content article. Can also set
101            whether to add the default guest and group permissions.
102            * @return the web content article
103            * @throws PortalException if the user did not have permission to add the
104            web content article or if a portal exception occurred
105            */
106            @Override
107            public com.liferay.portlet.journal.model.JournalArticle addArticle(
108                    long groupId, long folderId, long classNameId, long classPK,
109                    java.lang.String articleId, boolean autoArticleId,
110                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
111                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
112                    java.lang.String content, java.lang.String ddmStructureKey,
113                    java.lang.String ddmTemplateKey, java.lang.String layoutUuid,
114                    int displayDateMonth, int displayDateDay, int displayDateYear,
115                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
116                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
117                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
118                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
119                    int reviewDateMinute, boolean neverReview, boolean indexable,
120                    java.lang.String articleURL,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return _journalArticleService.addArticle(groupId, folderId,
124                            classNameId, classPK, articleId, autoArticleId, titleMap,
125                            descriptionMap, content, ddmStructureKey, ddmTemplateKey,
126                            layoutUuid, displayDateMonth, displayDateDay, displayDateYear,
127                            displayDateHour, displayDateMinute, expirationDateMonth,
128                            expirationDateDay, expirationDateYear, expirationDateHour,
129                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
130                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
131                            indexable, articleURL, serviceContext);
132            }
133    
134            /**
135            * Adds a web content article with additional parameters.
136            *
137            * @param groupId the primary key of the web content article's group
138            * @param folderId the primary key of the web content article folder
139            * @param classNameId the primary key of the DDMStructure class if the web
140            content article is related to a DDM structure, the primary key of
141            the class name associated with the article, or {@link
142            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
143            * @param classPK the primary key of the DDM structure, if the primary key
144            of the DDMStructure class is given as the
145            <code>classNameId</code> parameter, the primary key of the class
146            associated with the web content article, or <code>0</code>
147            otherwise
148            * @param articleId the primary key of the web content article
149            * @param autoArticleId whether to auto generate the web content article ID
150            * @param titleMap the web content article's locales and localized titles
151            * @param descriptionMap the web content article's locales and localized
152            descriptions
153            * @param content the HTML content wrapped in XML. For more information,
154            see the content example in the {@link #updateArticle(long, long,
155            String, double, String, ServiceContext)} description.
156            * @param ddmStructureKey the primary key of the web content article's DDM
157            structure, if the article is related to a DDM structure, or
158            <code>null</code> otherwise
159            * @param ddmTemplateKey the primary key of the web content article's DDM
160            template
161            * @param layoutUuid the unique string identifying the web content
162            article's display page
163            * @param displayDateMonth the month the web content article is set to
164            display
165            * @param displayDateDay the calendar day the web content article is set to
166            display
167            * @param displayDateYear the year the web content article is set to
168            display
169            * @param displayDateHour the hour the web content article is set to
170            display
171            * @param displayDateMinute the minute the web content article is set to
172            display
173            * @param expirationDateMonth the month the web content article is set to
174            expire
175            * @param expirationDateDay the calendar day the web content article is set
176            to expire
177            * @param expirationDateYear the year the web content article is set to
178            expire
179            * @param expirationDateHour the hour the web content article is set to
180            expire
181            * @param expirationDateMinute the minute the web content article is set to
182            expire
183            * @param neverExpire whether the web content article is not set to auto
184            expire
185            * @param reviewDateMonth the month the web content article is set for
186            review
187            * @param reviewDateDay the calendar day the web content article is set for
188            review
189            * @param reviewDateYear the year the web content article is set for review
190            * @param reviewDateHour the hour the web content article is set for review
191            * @param reviewDateMinute the minute the web content article is set for
192            review
193            * @param neverReview whether the web content article is not set for review
194            * @param indexable whether the web content article is searchable
195            * @param smallImage whether the web content article has a small image
196            * @param smallImageURL the web content article's small image URL
197            * @param smallFile the web content article's small image file
198            * @param images the web content's images
199            * @param articleURL the web content article's accessible URL
200            * @param serviceContext the service context to be applied. Can set the
201            UUID, creation date, modification date, expando bridge
202            attributes, guest permissions, group permissions, asset category
203            IDs, asset tag names, asset link entry IDs, URL title, and
204            workflow actions for the web content article. Can also set
205            whether to add the default guest and group permissions.
206            * @return the web content article
207            * @throws PortalException if the user did not have permission to add the
208            web content article or if a portal exception occurred
209            */
210            @Override
211            public com.liferay.portlet.journal.model.JournalArticle addArticle(
212                    long groupId, long folderId, long classNameId, long classPK,
213                    java.lang.String articleId, boolean autoArticleId,
214                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
215                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
216                    java.lang.String content, java.lang.String ddmStructureKey,
217                    java.lang.String ddmTemplateKey, java.lang.String layoutUuid,
218                    int displayDateMonth, int displayDateDay, int displayDateYear,
219                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
220                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
221                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
222                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
223                    int reviewDateMinute, boolean neverReview, boolean indexable,
224                    boolean smallImage, java.lang.String smallImageURL,
225                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
226                    java.lang.String articleURL,
227                    com.liferay.portal.service.ServiceContext serviceContext)
228                    throws com.liferay.portal.kernel.exception.PortalException {
229                    return _journalArticleService.addArticle(groupId, folderId,
230                            classNameId, classPK, articleId, autoArticleId, titleMap,
231                            descriptionMap, content, ddmStructureKey, ddmTemplateKey,
232                            layoutUuid, displayDateMonth, displayDateDay, displayDateYear,
233                            displayDateHour, displayDateMinute, expirationDateMonth,
234                            expirationDateDay, expirationDateYear, expirationDateHour,
235                            expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
236                            reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
237                            indexable, smallImage, smallImageURL, smallFile, images,
238                            articleURL, serviceContext);
239            }
240    
241            /**
242            * Copies the web content article matching the group, article ID, and
243            * version. This method creates a new article, extracting all the values
244            * from the old one and updating its article ID.
245            *
246            * @param groupId the primary key of the web content article's group
247            * @param oldArticleId the primary key of the old web content article
248            * @param newArticleId the primary key of the new web content article
249            * @param autoArticleId whether to auto-generate the web content article ID
250            * @param version the web content article's version
251            * @return the new web content article
252            * @throws PortalException if the user did not have permission to add the
253            copy the web content article, if a matching web content article
254            could not be found, or if a portal exception occurred
255            */
256            @Override
257            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
258                    long groupId, java.lang.String oldArticleId,
259                    java.lang.String newArticleId, boolean autoArticleId, double version)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    return _journalArticleService.copyArticle(groupId, oldArticleId,
262                            newArticleId, autoArticleId, version);
263            }
264    
265            /**
266            * Deletes all web content articles and their resources matching the group
267            * and article ID, optionally sending email notifying denial of article if
268            * it had not yet been approved.
269            *
270            * @param groupId the primary key of the web content article's group
271            * @param articleId the primary key of the web content article
272            * @param articleURL the web content article's accessible URL
273            * @param serviceContext the service context to be applied. Can set the
274            portlet preferences that include email information to notify
275            recipients of the unapproved web content article's denial.
276            * @throws PortalException if the user did not have permission to delete the
277            web content article or if a portal exception occurred
278            */
279            @Override
280            public void deleteArticle(long groupId, java.lang.String articleId,
281                    java.lang.String articleURL,
282                    com.liferay.portal.service.ServiceContext serviceContext)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    _journalArticleService.deleteArticle(groupId, articleId, articleURL,
285                            serviceContext);
286            }
287    
288            /**
289            * Deletes the web content article and its resources matching the group,
290            * article ID, and version, optionally sending email notifying denial of the
291            * web content article if it had not yet been approved.
292            *
293            * @param groupId the primary key of the web content article's group
294            * @param articleId the primary key of the web content article
295            * @param version the web content article's version
296            * @param articleURL the web content article's accessible URL
297            * @param serviceContext the service context to be applied. Can set the
298            portlet preferences that include email information to notify
299            recipients of the unapproved web content article's denial.
300            * @throws PortalException if the user did not have permission to delete the
301            web content article, if a matching web content article could not
302            be found, or if a portal exception occurred
303            */
304            @Override
305            public void deleteArticle(long groupId, java.lang.String articleId,
306                    double version, java.lang.String articleURL,
307                    com.liferay.portal.service.ServiceContext serviceContext)
308                    throws com.liferay.portal.kernel.exception.PortalException {
309                    _journalArticleService.deleteArticle(groupId, articleId, version,
310                            articleURL, serviceContext);
311            }
312    
313            /**
314            * Expires the web content article matching the group and article ID,
315            * expiring all of its versions if the
316            * <code>journal.article.expire.all.versions</code> portal property is
317            * <code>true</code>, otherwise expiring only its latest approved version.
318            *
319            * @param groupId the primary key of the web content article's group
320            * @param articleId the primary key of the web content article
321            * @param articleURL the web content article's accessible URL
322            * @param serviceContext the service context to be applied. Can set the
323            modification date, status date, portlet preferences, and can set
324            whether to add the default command update for the web content
325            article. With respect to social activities, by setting the
326            service context's command to {@link
327            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
328            is considered a web content update activity; otherwise it is
329            considered a web content add activity.
330            * @throws PortalException if the user did not have permission to expire the
331            web content article, if a matching web content article could not
332            be found, or if a portal exception occurred
333            */
334            @Override
335            public void expireArticle(long groupId, java.lang.String articleId,
336                    java.lang.String articleURL,
337                    com.liferay.portal.service.ServiceContext serviceContext)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    _journalArticleService.expireArticle(groupId, articleId, articleURL,
340                            serviceContext);
341            }
342    
343            /**
344            * Expires the web content article matching the group, article ID, and
345            * version.
346            *
347            * @param groupId the primary key of the web content article's group
348            * @param articleId the primary key of the web content article
349            * @param version the web content article's version
350            * @param articleURL the web content article's accessible URL
351            * @param serviceContext the service context to be applied. Can set the
352            modification date, status date, portlet preferences, and can set
353            whether to add the default command update for the web content
354            article. With respect to social activities, by setting the
355            service context's command to {@link
356            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
357            is considered a web content update activity; otherwise it is
358            considered a web content add activity.
359            * @return the web content article
360            * @throws PortalException if the user did not have permission to expire the
361            web content article, if a matching web content article could not
362            be found, or if a portal exception occurred
363            */
364            @Override
365            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
366                    long groupId, java.lang.String articleId, double version,
367                    java.lang.String articleURL,
368                    com.liferay.portal.service.ServiceContext serviceContext)
369                    throws com.liferay.portal.kernel.exception.PortalException {
370                    return _journalArticleService.expireArticle(groupId, articleId,
371                            version, articleURL, serviceContext);
372            }
373    
374            @Override
375            public com.liferay.portlet.journal.model.JournalArticle fetchArticle(
376                    long groupId, java.lang.String articleId)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    return _journalArticleService.fetchArticle(groupId, articleId);
379            }
380    
381            /**
382            * Returns the latest approved web content article, or the latest unapproved
383            * article if none are approved. Both approved and unapproved articles must
384            * match the group and article ID.
385            *
386            * @param groupId the primary key of the web content article's group
387            * @param articleId the primary key of the web content article
388            * @return the matching web content article
389            * @throws PortalException if the user did not have permission to view the
390            web content article or if a matching web content article could
391            not be found
392            */
393            @Override
394            public com.liferay.portlet.journal.model.JournalArticle getArticle(
395                    long groupId, java.lang.String articleId)
396                    throws com.liferay.portal.kernel.exception.PortalException {
397                    return _journalArticleService.getArticle(groupId, articleId);
398            }
399    
400            /**
401            * Returns the web content article matching the group, article ID, and
402            * version.
403            *
404            * @param groupId the primary key of the web content article's group
405            * @param articleId the primary key of the web content article
406            * @param version the web content article's version
407            * @return the matching web content article
408            * @throws PortalException if the user did not have permission to view the
409            web content article or if a matching web content article could
410            not be found
411            */
412            @Override
413            public com.liferay.portlet.journal.model.JournalArticle getArticle(
414                    long groupId, java.lang.String articleId, double version)
415                    throws com.liferay.portal.kernel.exception.PortalException {
416                    return _journalArticleService.getArticle(groupId, articleId, version);
417            }
418    
419            /**
420            * Returns the web content article matching the group, class name, and class
421            * PK.
422            *
423            * @param groupId the primary key of the web content article's group
424            * @param className the DDMStructure class name if the web content article
425            is related to a DDM structure, the primary key of the class name
426            associated with the article, or {@link
427            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
428            * @param classPK the primary key of the DDM structure, if the the
429            DDMStructure class name is given as the <code>className</code>
430            parameter, the primary key of the class associated with the web
431            content article, or <code>0</code> otherwise
432            * @return the matching web content article
433            * @throws PortalException if a matching web content article could not be
434            found or if the user did not have permission to view the web
435            content article
436            */
437            @Override
438            public com.liferay.portlet.journal.model.JournalArticle getArticle(
439                    long groupId, java.lang.String className, long classPK)
440                    throws com.liferay.portal.kernel.exception.PortalException {
441                    return _journalArticleService.getArticle(groupId, className, classPK);
442            }
443    
444            /**
445            * Returns the web content article with the ID.
446            *
447            * @param id the primary key of the web content article
448            * @return the web content article with the ID
449            * @throws PortalException if a matching web content article could not be
450            found or if the user did not have permission to view the web
451            content article
452            */
453            @Override
454            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
455                    throws com.liferay.portal.kernel.exception.PortalException {
456                    return _journalArticleService.getArticle(id);
457            }
458    
459            /**
460            * Returns the latest web content article that is approved, or the latest
461            * unapproved article if none are approved. Both approved and unapproved
462            * articles must match the group and URL title.
463            *
464            * @param groupId the primary key of the web content article's group
465            * @param urlTitle the web content article's accessible URL title
466            * @return the matching web content article
467            * @throws PortalException if the user did not have permission to view the
468            web content article or if a portal exception occurred
469            */
470            @Override
471            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
472                    long groupId, java.lang.String urlTitle)
473                    throws com.liferay.portal.kernel.exception.PortalException {
474                    return _journalArticleService.getArticleByUrlTitle(groupId, urlTitle);
475            }
476    
477            /**
478            * Returns the latest web content from the web content article matching the
479            * group and article ID.
480            *
481            * @param groupId the primary key of the web content article's group
482            * @param articleId the primary key of the web content article
483            * @param languageId the primary key of the language translation to get
484            * @param portletRequestModel the portlet request model
485            * @param themeDisplay the theme display
486            * @return the matching web content
487            * @throws PortalException if the user did not have permission to view the
488            web content article, if a matching web content article or DDM
489            template could not be found, or if a portal exception occurred
490            */
491            @Override
492            public java.lang.String getArticleContent(long groupId,
493                    java.lang.String articleId, java.lang.String languageId,
494                    com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
495                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
496                    throws com.liferay.portal.kernel.exception.PortalException {
497                    return _journalArticleService.getArticleContent(groupId, articleId,
498                            languageId, portletRequestModel, themeDisplay);
499            }
500    
501            /**
502            * Returns the latest web content from the web content article matching the
503            * group and article ID.
504            *
505            * @param groupId the primary key of the web content article's group
506            * @param articleId the primary key of the web content article
507            * @param languageId the primary key of the language translation to get
508            * @param themeDisplay the theme display
509            * @return the matching web content
510            * @throws PortalException if the user did not have permission to view
511            the web content article, if a matching web content article or
512            DDM template could not be found, or if a portal exception
513            occurred
514            * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long,
515            String, String, PortletRequestModel, ThemeDisplay)}
516            */
517            @Deprecated
518            @Override
519            public java.lang.String getArticleContent(long groupId,
520                    java.lang.String articleId, java.lang.String languageId,
521                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
522                    throws com.liferay.portal.kernel.exception.PortalException {
523                    return _journalArticleService.getArticleContent(groupId, articleId,
524                            languageId, themeDisplay);
525            }
526    
527            /**
528            * Returns the web content from the web content article matching the group,
529            * article ID, and version.
530            *
531            * @param groupId the primary key of the web content article's group
532            * @param articleId the primary key of the web content article
533            * @param version the web content article's version
534            * @param languageId the primary key of the language translation to get
535            * @param portletRequestModel the portlet request model
536            * @param themeDisplay the theme display
537            * @return the matching web content
538            * @throws PortalException if the user did not have permission to view the
539            web content article, if a matching web content article or DDM
540            template could not be found, or if a portal exception occurred
541            */
542            @Override
543            public java.lang.String getArticleContent(long groupId,
544                    java.lang.String articleId, double version,
545                    java.lang.String languageId,
546                    com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
547                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
548                    throws com.liferay.portal.kernel.exception.PortalException {
549                    return _journalArticleService.getArticleContent(groupId, articleId,
550                            version, languageId, portletRequestModel, themeDisplay);
551            }
552    
553            /**
554            * Returns the web content from the web content article matching the group,
555            * article ID, and version.
556            *
557            * @param groupId the primary key of the web content article's group
558            * @param articleId the primary key of the web content article
559            * @param version the web content article's version
560            * @param languageId the primary key of the language translation to get
561            * @param themeDisplay the theme display
562            * @return the matching web content
563            * @throws PortalException if the user did not have permission to view
564            the web content article, if a matching web content article or
565            DDM template could not be found, or if a portal exception
566            occurred
567            * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long,
568            String, double, String, PortletRequestModel, ThemeDisplay)}
569            */
570            @Deprecated
571            @Override
572            public java.lang.String getArticleContent(long groupId,
573                    java.lang.String articleId, double version,
574                    java.lang.String languageId,
575                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
576                    throws com.liferay.portal.kernel.exception.PortalException {
577                    return _journalArticleService.getArticleContent(groupId, articleId,
578                            version, languageId, themeDisplay);
579            }
580    
581            /**
582            * Returns all the web content articles matching the group and folder.
583            *
584            * @param groupId the primary key of the web content article's group
585            * @param folderId the primary key of the web content article folder
586            * @return the matching web content articles
587            */
588            @Override
589            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
590                    long groupId, long folderId) {
591                    return _journalArticleService.getArticles(groupId, folderId);
592            }
593    
594            /**
595            * Returns an ordered range of all the web content articles matching the
596            * group and folder.
597            *
598            * <p>
599            * Useful when paginating results. Returns a maximum of <code>end -
600            * start</code> instances. <code>start</code> and <code>end</code> are not
601            * primary keys, they are indexes in the result set. Thus, <code>0</code>
602            * refers to the first result in the set. Setting both <code>start</code>
603            * and <code>end</code> to {@link
604            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
605            * result set.
606            * </p>
607            *
608            * @param groupId the primary key of the web content article's group
609            * @param folderId the primary key of the web content article folder
610            * @param start the lower bound of the range of web content articles to
611            return
612            * @param end the upper bound of the range of web content articles to
613            return (not inclusive)
614            * @param obc the comparator to order the web content articles
615            * @return the matching web content articles
616            */
617            @Override
618            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
619                    long groupId, long folderId, int start, int end,
620                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
621                    return _journalArticleService.getArticles(groupId, folderId, start,
622                            end, obc);
623            }
624    
625            /**
626            * Returns an ordered range of all the web content articles matching the
627            * group and article ID.
628            *
629            * <p>
630            * Useful when paginating results. Returns a maximum of <code>end -
631            * start</code> instances. <code>start</code> and <code>end</code> are not
632            * primary keys, they are indexes in the result set. Thus, <code>0</code>
633            * refers to the first result in the set. Setting both <code>start</code>
634            * and <code>end</code> to {@link
635            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
636            * result set.
637            * </p>
638            *
639            * @param groupId the primary key of the web content article's group
640            * @param articleId the primary key of the web content article
641            * @param start the lower bound of the range of web content articles to
642            return
643            * @param end the upper bound of the range of web content articles to
644            return (not inclusive)
645            * @param obc the comparator to order the web content articles
646            * @return the range of matching web content articles ordered by the
647            comparator
648            */
649            @Override
650            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByArticleId(
651                    long groupId, java.lang.String articleId, int start, int end,
652                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
653                    return _journalArticleService.getArticlesByArticleId(groupId,
654                            articleId, start, end, obc);
655            }
656    
657            /**
658            * Returns all the web content articles matching the group and layout UUID.
659            *
660            * @param groupId the primary key of the web content article's group
661            * @param layoutUuid the unique string identifying the web content
662            article's display page
663            * @return the matching web content articles
664            */
665            @Override
666            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid(
667                    long groupId, java.lang.String layoutUuid) {
668                    return _journalArticleService.getArticlesByLayoutUuid(groupId,
669                            layoutUuid);
670            }
671    
672            /**
673            * Returns an ordered range of all the web content articles matching the
674            * group, class name ID, DDM structure key, and workflow status.
675            *
676            * <p>
677            * Useful when paginating results. Returns a maximum of <code>end -
678            * start</code> instances. <code>start</code> and <code>end</code> are not
679            * primary keys, they are indexes in the result set. Thus, <code>0</code>
680            * refers to the first result in the set. Setting both <code>start</code>
681            * and <code>end</code> to {@link
682            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
683            * result set.
684            * </p>
685            *
686            * @param groupId the primary key of the web content article's group
687            * @param classNameId the primary key of the DDMStructure class if the web
688            content article is related to a DDM structure, the primary key of
689            the class name associated with the article, or {@link
690            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
691            * @param ddmStructureKey the primary key of the web content article's DDM
692            structure
693            * @param status the web content article's workflow status. For more
694            information see {@link WorkflowConstants} for constants starting
695            with the "STATUS_" prefix.
696            * @param start the lower bound of the range of web content articles to
697            return
698            * @param end the upper bound of the range of web content articles to
699            return (not inclusive)
700            * @param obc the comparator to order the web content articles
701            * @return the range of matching web content articles ordered by the
702            comparator
703            */
704            @Override
705            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
706                    long groupId, long classNameId, java.lang.String ddmStructureKey,
707                    int status, int start, int end,
708                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
709                    return _journalArticleService.getArticlesByStructureId(groupId,
710                            classNameId, ddmStructureKey, status, start, end, obc);
711            }
712    
713            /**
714            * Returns an ordered range of all the web content articles matching the
715            * group, default class name ID, and DDM structure key.
716            *
717            * <p>
718            * Useful when paginating results. Returns a maximum of <code>end -
719            * start</code> instances. <code>start</code> and <code>end</code> are not
720            * primary keys, they are indexes in the result set. Thus, <code>0</code>
721            * refers to the first result in the set. Setting both <code>start</code>
722            * and <code>end</code> to {@link
723            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
724            * result set.
725            * </p>
726            *
727            * @param groupId the primary key of the web content article's group
728            * @param ddmStructureKey the primary key of the web content article's DDM
729            structure
730            * @param start the lower bound of the range of web content articles to
731            return
732            * @param end the upper bound of the range of web content articles to
733            return (not inclusive)
734            * @param obc the comparator to order the web content articles
735            * @return the range of matching web content articles ordered by the
736            comparator
737            */
738            @Override
739            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
740                    long groupId, java.lang.String ddmStructureKey, int start, int end,
741                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
742                    return _journalArticleService.getArticlesByStructureId(groupId,
743                            ddmStructureKey, start, end, obc);
744            }
745    
746            /**
747            * Returns the number of web content articles matching the group and folder.
748            *
749            * @param groupId the primary key of the web content article's group
750            * @param folderId the primary key of the web content article folder
751            * @return the number of matching web content articles
752            */
753            @Override
754            public int getArticlesCount(long groupId, long folderId) {
755                    return _journalArticleService.getArticlesCount(groupId, folderId);
756            }
757    
758            /**
759            * Returns the number of web content articles matching the group, folder,
760            * and status.
761            *
762            * @param groupId the primary key of the web content article's group
763            * @param folderId the primary key of the web content article's folder
764            * @param status the web content article's workflow status. For more
765            information see {@link WorkflowConstants} for constants starting
766            with the "STATUS_" prefix.
767            * @return the number of matching web content articles
768            */
769            @Override
770            public int getArticlesCount(long groupId, long folderId, int status) {
771                    return _journalArticleService.getArticlesCount(groupId, folderId, status);
772            }
773    
774            /**
775            * Returns the number of web content articles matching the group and article
776            * ID.
777            *
778            * @param groupId the primary key of the web content article's group
779            * @param articleId the primary key of the web content article
780            * @return the number of matching web content articles
781            */
782            @Override
783            public int getArticlesCountByArticleId(long groupId,
784                    java.lang.String articleId) {
785                    return _journalArticleService.getArticlesCountByArticleId(groupId,
786                            articleId);
787            }
788    
789            /**
790            * Returns the number of web content articles matching the group, class name
791            * ID, DDM structure key, and workflow status.
792            *
793            * @param groupId the primary key of the web content article's group
794            * @param classNameId the primary key of the DDMStructure class if the web
795            content article is related to a DDM structure, the primary key of
796            the class name associated with the article, or {@link
797            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
798            * @param ddmStructureKey the primary key of the web content article's DDM
799            structure
800            * @param status the web content article's workflow status. For more
801            information see {@link WorkflowConstants} for constants starting
802            with the "STATUS_" prefix.
803            * @return the number of matching web content articles
804            */
805            @Override
806            public int getArticlesCountByStructureId(long groupId, long classNameId,
807                    java.lang.String ddmStructureKey, int status) {
808                    return _journalArticleService.getArticlesCountByStructureId(groupId,
809                            classNameId, ddmStructureKey, status);
810            }
811    
812            /**
813            * Returns the number of web content articles matching the group, default
814            * class name ID, and DDM structure key.
815            *
816            * @param groupId the primary key of the web content article's group
817            * @param ddmStructureKey the primary key of the web content article's DDM
818            structure
819            * @return the number of matching web content articles
820            */
821            @Override
822            public int getArticlesCountByStructureId(long groupId,
823                    java.lang.String ddmStructureKey) {
824                    return _journalArticleService.getArticlesCountByStructureId(groupId,
825                            ddmStructureKey);
826            }
827    
828            /**
829            * Returns the Spring bean ID for this bean.
830            *
831            * @return the Spring bean ID for this bean
832            */
833            @Override
834            public java.lang.String getBeanIdentifier() {
835                    return _journalArticleService.getBeanIdentifier();
836            }
837    
838            /**
839            * Returns the web content article matching the URL title that is currently
840            * displayed or next to be displayed if no article is currently displayed.
841            *
842            * @param groupId the primary key of the web content article's group
843            * @param urlTitle the web content article's accessible URL title
844            * @return the web content article matching the URL title that is currently
845            displayed, or next one to be displayed if no version of the
846            article is currently displayed
847            * @throws PortalException if the user did not have permission to view the
848            web content article or if no approved matching web content
849            articles could be found
850            */
851            @Override
852            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
853                    long groupId, java.lang.String urlTitle)
854                    throws com.liferay.portal.kernel.exception.PortalException {
855                    return _journalArticleService.getDisplayArticleByUrlTitle(groupId,
856                            urlTitle);
857            }
858    
859            /**
860            * Returns the number of folders containing web content articles belonging
861            * to the group.
862            *
863            * @param groupId the primary key of the web content article's group
864            * @param folderIds the primary keys of the web content article folders
865            (optionally {@link java.util.Collections#EMPTY_LIST})
866            * @return the number of matching folders containing web content articles
867            */
868            @Override
869            public int getFoldersAndArticlesCount(long groupId,
870                    java.util.List<java.lang.Long> folderIds) {
871                    return _journalArticleService.getFoldersAndArticlesCount(groupId,
872                            folderIds);
873            }
874    
875            /**
876            * Returns an ordered range of all the web content articles matching the
877            * group, user, the root folder or any of its subfolders.
878            *
879            * <p>
880            * Useful when paginating results. Returns a maximum of <code>end -
881            * start</code> instances. <code>start</code> and <code>end</code> are not
882            * primary keys, they are indexes in the result set. Thus, <code>0</code>
883            * refers to the first result in the set. Setting both <code>start</code>
884            * and <code>end</code> to {@link
885            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
886            * result set.
887            * </p>
888            *
889            * @param groupId the primary key of the web content article's group
890            * @param userId the primary key of the user (optionally <code>0</code>)
891            * @param rootFolderId the primary key of the root folder to begin the
892            search
893            * @param start the lower bound of the range of web content articles to
894            return
895            * @param end the upper bound of the range of web content articles to
896            return (not inclusive)
897            * @param orderByComparator the comparator to order the web content
898            articles
899            * @return the range of matching web content articles ordered by the
900            comparator
901            * @throws PortalException if the root folder could not be found, if the
902            current user did not have permission to view the root folder, or
903            if a portal exception occurred
904            */
905            @Override
906            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles(
907                    long groupId, long userId, long rootFolderId, int start, int end,
908                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator)
909                    throws com.liferay.portal.kernel.exception.PortalException {
910                    return _journalArticleService.getGroupArticles(groupId, userId,
911                            rootFolderId, start, end, orderByComparator);
912            }
913    
914            /**
915            * Returns an ordered range of all the web content articles matching the
916            * group, user, the root folder or any of its subfolders.
917            *
918            * <p>
919            * Useful when paginating results. Returns a maximum of <code>end -
920            * start</code> instances. <code>start</code> and <code>end</code> are not
921            * primary keys, they are indexes in the result set. Thus, <code>0</code>
922            * refers to the first result in the set. Setting both <code>start</code>
923            * and <code>end</code> to {@link
924            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
925            * result set.
926            * </p>
927            *
928            * @param groupId the primary key of the web content article's group
929            * @param userId the primary key of the user (optionally <code>0</code>)
930            * @param rootFolderId the primary key of the root folder to begin the
931            search
932            * @param status the web content article's workflow status. For more
933            information see {@link WorkflowConstants} for constants starting
934            with the "STATUS_" prefix.
935            * @param start the lower bound of the range of web content articles to
936            return
937            * @param end the upper bound of the range of web content articles to
938            return (not inclusive)
939            * @param orderByComparator the comparator to order the web content
940            articles
941            * @return the range of matching web content articles ordered by the
942            comparator
943            * @throws PortalException if a portal exception occurred
944            */
945            @Override
946            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles(
947                    long groupId, long userId, long rootFolderId, int status, int start,
948                    int end,
949                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator)
950                    throws com.liferay.portal.kernel.exception.PortalException {
951                    return _journalArticleService.getGroupArticles(groupId, userId,
952                            rootFolderId, status, start, end, orderByComparator);
953            }
954    
955            /**
956            * Returns the number of web content articles matching the group, user, and
957            * the root folder or any of its subfolders.
958            *
959            * @param groupId the primary key of the web content article's group
960            * @param userId the primary key of the user (optionally <code>0</code>)
961            * @param rootFolderId the primary key of the root folder to begin the
962            search
963            * @return the number of matching web content articles
964            * @throws PortalException if the root folder could not be found, if the
965            current user did not have permission to view the root folder, or
966            if a portal exception occurred
967            */
968            @Override
969            public int getGroupArticlesCount(long groupId, long userId,
970                    long rootFolderId)
971                    throws com.liferay.portal.kernel.exception.PortalException {
972                    return _journalArticleService.getGroupArticlesCount(groupId, userId,
973                            rootFolderId);
974            }
975    
976            /**
977            * Returns the number of web content articles matching the group, user, and
978            * the root folder or any of its subfolders.
979            *
980            * @param groupId the primary key of the web content article's group
981            * @param userId the primary key of the user (optionally <code>0</code>)
982            * @param rootFolderId the primary key of the root folder to begin the
983            search
984            * @param status the web content article's workflow status. For more
985            information see {@link WorkflowConstants} for constants starting
986            with the "STATUS_" prefix.
987            * @return the number of matching web content articles
988            * @throws PortalException if a portal exception occurred
989            */
990            @Override
991            public int getGroupArticlesCount(long groupId, long userId,
992                    long rootFolderId, int status)
993                    throws com.liferay.portal.kernel.exception.PortalException {
994                    return _journalArticleService.getGroupArticlesCount(groupId, userId,
995                            rootFolderId, status);
996            }
997    
998            /**
999            * Returns the latest web content article matching the group, article ID,
1000            * and workflow status.
1001            *
1002            * @param groupId the primary key of the web content article's group
1003            * @param articleId the primary key of the web content article
1004            * @param status the web content article's workflow status. For more
1005            information see {@link WorkflowConstants} for constants starting
1006            with the "STATUS_" prefix.
1007            * @return the latest matching web content article
1008            * @throws PortalException if the user did not have permission to view the
1009            web content article or if a matching web content article could
1010            not be found
1011            */
1012            @Override
1013            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1014                    long groupId, java.lang.String articleId, int status)
1015                    throws com.liferay.portal.kernel.exception.PortalException {
1016                    return _journalArticleService.getLatestArticle(groupId, articleId,
1017                            status);
1018            }
1019    
1020            /**
1021            * Returns the latest web content article matching the group, class name ID,
1022            * and class PK.
1023            *
1024            * @param groupId the primary key of the web content article's group
1025            * @param className the DDMStructure class name if the web content article
1026            is related to a DDM structure, the class name associated with the
1027            article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT}
1028            otherwise
1029            * @param classPK the primary key of the DDM structure, if the DDMStructure
1030            class name is given as the <code>className</code> parameter, the
1031            primary key of the class associated with the web content article,
1032            or <code>0</code> otherwise
1033            * @return the latest matching web content article
1034            * @throws PortalException if a matching web content article could not be
1035            found or if the user did not have permission to view the web
1036            content article
1037            */
1038            @Override
1039            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1040                    long groupId, java.lang.String className, long classPK)
1041                    throws com.liferay.portal.kernel.exception.PortalException {
1042                    return _journalArticleService.getLatestArticle(groupId, className,
1043                            classPK);
1044            }
1045    
1046            /**
1047            * Returns the latest web content article matching the resource primary key,
1048            * preferring articles with approved workflow status.
1049            *
1050            * @param resourcePrimKey the primary key of the resource instance
1051            * @return the latest web content article matching the resource primary key,
1052            preferring articles with approved workflow status
1053            * @throws PortalException if the user did not have permission to view the
1054            web content article or if a matching web content article could
1055            not be found
1056            */
1057            @Override
1058            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1059                    long resourcePrimKey)
1060                    throws com.liferay.portal.kernel.exception.PortalException {
1061                    return _journalArticleService.getLatestArticle(resourcePrimKey);
1062            }
1063    
1064            /**
1065            * Moves all versions of the the web content article matching the group and
1066            * article ID to the folder.
1067            *
1068            * @param groupId the primary key of the web content article's group
1069            * @param articleId the primary key of the web content article
1070            * @param newFolderId the primary key of the web content article's new
1071            folder
1072            * @throws PortalException if the user did not have permission to update
1073            any one of the versions of the web content article or if any
1074            one of the versions of the web content article could not be
1075            moved to the folder
1076            * @deprecated As of 7.0.0, replaced by {@link #moveArticle(long, String,
1077            long, ServiceContext)}
1078            */
1079            @Deprecated
1080            @Override
1081            public void moveArticle(long groupId, java.lang.String articleId,
1082                    long newFolderId)
1083                    throws com.liferay.portal.kernel.exception.PortalException {
1084                    _journalArticleService.moveArticle(groupId, articleId, newFolderId);
1085            }
1086    
1087            /**
1088            * Moves all versions of the the web content article matching the group and
1089            * article ID to the folder.
1090            *
1091            * @param groupId the primary key of the web content article's group
1092            * @param articleId the primary key of the web content article
1093            * @param newFolderId the primary key of the web content article's new
1094            folder
1095            * @param serviceContext the service context to be applied. Can set the
1096            user ID, language ID, portlet preferences, portlet request,
1097            portlet response, theme display, and can set whether to add the
1098            default command update for the web content article. With respect
1099            to social activities, by setting the service context's command to
1100            {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the
1101            invocation is considered a web content update activity; otherwise
1102            it is considered a web content add activity.
1103            * @throws PortalException if the user did not have permission to update any
1104            one of the versions of the web content article or if any one of
1105            the versions of the web content article could not be moved to the
1106            folder
1107            */
1108            @Override
1109            public void moveArticle(long groupId, java.lang.String articleId,
1110                    long newFolderId,
1111                    com.liferay.portal.service.ServiceContext serviceContext)
1112                    throws com.liferay.portal.kernel.exception.PortalException {
1113                    _journalArticleService.moveArticle(groupId, articleId, newFolderId,
1114                            serviceContext);
1115            }
1116    
1117            /**
1118            * Moves the web content article from the Recycle Bin to the folder.
1119            *
1120            * @param groupId the primary key of the web content article's group
1121            * @param articleId the primary key of the web content article
1122            * @param newFolderId the primary key of the web content article's new
1123            folder
1124            * @param serviceContext the service context to be applied. Can set the
1125            modification date, portlet preferences, and can set whether to
1126            add the default command update for the web content article. With
1127            respect to social activities, by setting the service context's
1128            command to {@link
1129            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1130            is considered a web content update activity; otherwise it is
1131            considered a web content add activity.
1132            * @return the updated web content article, which was moved from the Recycle
1133            Bin to the folder
1134            * @throws PortalException if the user did not have permission to view or
1135            update the web content article, if a trashed web content article
1136            with the primary key could not be found, or if a portal exception
1137            occurred
1138            */
1139            @Override
1140            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1141                    long groupId, java.lang.String articleId, long newFolderId,
1142                    com.liferay.portal.service.ServiceContext serviceContext)
1143                    throws com.liferay.portal.kernel.exception.PortalException {
1144                    return _journalArticleService.moveArticleFromTrash(groupId, articleId,
1145                            newFolderId, serviceContext);
1146            }
1147    
1148            /**
1149            * Moves the web content article from the Recycle Bin to the folder.
1150            *
1151            * @param groupId the primary key of the web content article's group
1152            * @param resourcePrimKey the primary key of the resource instance
1153            * @param newFolderId the primary key of the web content article's new
1154            folder
1155            * @param serviceContext the service context to be applied. Can set the
1156            modification date, portlet preferences, and can set whether to
1157            add the default command update for the web content article. With
1158            respect to social activities, by setting the service context's
1159            command to {@link
1160            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1161            is considered a web content update activity; otherwise it is
1162            considered a web content add activity.
1163            * @return the updated web content article, which was moved from the Recycle
1164            Bin to the folder
1165            * @throws PortalException if the user did not have permission to view or
1166            update the web content article, if a matching trashed web content
1167            article could not be found, or if a portal exception occurred
1168            */
1169            @Override
1170            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1171                    long groupId, long resourcePrimKey, long newFolderId,
1172                    com.liferay.portal.service.ServiceContext serviceContext)
1173                    throws com.liferay.portal.kernel.exception.PortalException {
1174                    return _journalArticleService.moveArticleFromTrash(groupId,
1175                            resourcePrimKey, newFolderId, serviceContext);
1176            }
1177    
1178            /**
1179            * Moves the latest version of the web content article matching the group
1180            * and article ID to the recycle bin.
1181            *
1182            * @param groupId the primary key of the web content article's group
1183            * @param articleId the primary key of the web content article
1184            * @return the moved web content article or <code>null</code> if no matching
1185            article was found
1186            * @throws PortalException if the user did not have permission to move the
1187            article to the Recycle Bin or if a portal exception occurred
1188            */
1189            @Override
1190            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
1191                    long groupId, java.lang.String articleId)
1192                    throws com.liferay.portal.kernel.exception.PortalException {
1193                    return _journalArticleService.moveArticleToTrash(groupId, articleId);
1194            }
1195    
1196            /**
1197            * Removes the web content of all the company's web content articles
1198            * matching the language.
1199            *
1200            * @param companyId the primary key of the web content article's company
1201            * @param languageId the primary key of the language locale to remove
1202            * @throws PortalException if the user did not have permission to update any
1203            one of the the web content articles or if web content matching
1204            the language could not be found for any one of the articles
1205            */
1206            @Override
1207            public void removeArticleLocale(long companyId, java.lang.String languageId)
1208                    throws com.liferay.portal.kernel.exception.PortalException {
1209                    _journalArticleService.removeArticleLocale(companyId, languageId);
1210            }
1211    
1212            /**
1213            * Removes the web content of the web content article matching the group,
1214            * article ID, and version, and language.
1215            *
1216            * @param groupId the primary key of the web content article's group
1217            * @param articleId the primary key of the web content article
1218            * @param version the web content article's version
1219            * @param languageId the primary key of the language locale to remove
1220            * @return the updated web content article with the locale removed
1221            * @throws PortalException if the user did not have permission to update the
1222            web content article or if a matching web content article could
1223            not be found
1224            */
1225            @Override
1226            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1227                    long groupId, java.lang.String articleId, double version,
1228                    java.lang.String languageId)
1229                    throws com.liferay.portal.kernel.exception.PortalException {
1230                    return _journalArticleService.removeArticleLocale(groupId, articleId,
1231                            version, languageId);
1232            }
1233    
1234            /**
1235            * Restores the web content article from the Recycle Bin.
1236            *
1237            * @param groupId the primary key of the web content article's group
1238            * @param articleId the primary key of the web content article
1239            * @throws PortalException if the web content article with the primary key
1240            could not be found in the Recycle Bin, if the user did not have
1241            permission to restore the article, or if a portal exception
1242            occurred
1243            */
1244            @Override
1245            public void restoreArticleFromTrash(long groupId, java.lang.String articleId)
1246                    throws com.liferay.portal.kernel.exception.PortalException {
1247                    _journalArticleService.restoreArticleFromTrash(groupId, articleId);
1248            }
1249    
1250            /**
1251            * Restores the web content article associated with the resource primary key
1252            * from the Recycle Bin.
1253            *
1254            * @param resourcePrimKey the primary key of the resource instance
1255            * @throws PortalException if a matching web content article could not be
1256            found in the Recycle Bin, if the user did not have permission to
1257            view or restore the article, or if a portal exception occurred
1258            */
1259            @Override
1260            public void restoreArticleFromTrash(long resourcePrimKey)
1261                    throws com.liferay.portal.kernel.exception.PortalException {
1262                    _journalArticleService.restoreArticleFromTrash(resourcePrimKey);
1263            }
1264    
1265            /**
1266            * Returns an ordered range of all the web content articles matching the
1267            * parameters, including keyword parameters for article ID, title,
1268            * description, and content, a DDM structure key parameter, a DDM template
1269            * key parameter, and an AND operator switch.
1270            *
1271            * <p>
1272            * Useful when paginating results. Returns a maximum of <code>end -
1273            * start</code> instances. <code>start</code> and <code>end</code> are not
1274            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1275            * refers to the first result in the set. Setting both <code>start</code>
1276            * and <code>end</code> to {@link
1277            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1278            * result set.
1279            * </p>
1280            *
1281            * @param companyId the primary key of the web content article's company
1282            * @param groupId the primary key of the group (optionally <code>0</code>)
1283            * @param folderIds the primary keys of the web content article folders
1284            (optionally {@link java.util.Collections#EMPTY_LIST})
1285            * @param classNameId the primary key of the DDMStructure class if the web
1286            content article is related to a DDM structure, the primary key of
1287            the class name associated with the article, or {@link
1288            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1289            * @param articleId the article ID keywords (space separated, optionally
1290            <code>null</code>)
1291            * @param version the web content article's version (optionally
1292            <code>null</code>)
1293            * @param title the title keywords (space separated, optionally
1294            <code>null</code>)
1295            * @param description the description keywords (space separated, optionally
1296            <code>null</code>)
1297            * @param content the content keywords (space separated, optionally
1298            <code>null</code>)
1299            * @param ddmStructureKey the primary key of the web content article's DDM
1300            structure, if the article is related to a DDM structure, or
1301            <code>null</code> otherwise
1302            * @param ddmTemplateKey the primary key of the web content article's DDM
1303            template
1304            * @param displayDateGT the date after which a matching web content
1305            article's display date must be after (optionally
1306            <code>null</code>)
1307            * @param displayDateLT the date before which a matching web content
1308            article's display date must be before (optionally
1309            <code>null</code>)
1310            * @param status the web content article's workflow status. For more
1311            information see {@link WorkflowConstants} for constants starting
1312            with the "STATUS_" prefix.
1313            * @param reviewDate the web content article's scheduled review date
1314            (optionally <code>null</code>)
1315            * @param andOperator whether every field must match its value or keywords,
1316            or just one field must match. Company, group, folder IDs, class
1317            name ID, and status must all match their values.
1318            * @param start the lower bound of the range of web content articles to
1319            return
1320            * @param end the upper bound of the range of web content articles to
1321            return (not inclusive)
1322            * @param obc the comparator to order the web content articles
1323            * @return the range of matching web content articles ordered by the
1324            comparator
1325            */
1326            @Override
1327            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1328                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1329                    long classNameId, java.lang.String articleId, java.lang.Double version,
1330                    java.lang.String title, java.lang.String description,
1331                    java.lang.String content, java.lang.String ddmStructureKey,
1332                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1333                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1334                    boolean andOperator, int start, int end,
1335                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
1336                    return _journalArticleService.search(companyId, groupId, folderIds,
1337                            classNameId, articleId, version, title, description, content,
1338                            ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT,
1339                            status, reviewDate, andOperator, start, end, obc);
1340            }
1341    
1342            /**
1343            * Returns an ordered range of all the web content articles matching the
1344            * parameters, including keyword parameters for article ID, title,
1345            * description, and content, a DDM structure keys (plural) parameter, a DDM
1346            * template keys (plural) parameter, and an AND operator switch.
1347            *
1348            * <p>
1349            * Useful when paginating results. Returns a maximum of <code>end -
1350            * start</code> instances. <code>start</code> and <code>end</code> are not
1351            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1352            * refers to the first result in the set. Setting both <code>start</code>
1353            * and <code>end</code> to {@link
1354            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1355            * result set.
1356            * </p>
1357            *
1358            * @param companyId the primary key of the web content article's company
1359            * @param groupId the primary key of the group (optionally <code>0</code>)
1360            * @param folderIds the primary keys of the web content article folders
1361            (optionally {@link java.util.Collections#EMPTY_LIST})
1362            * @param classNameId the primary key of the DDMStructure class if the web
1363            content article is related to a DDM structure, the primary key of
1364            the class name associated with the article, or {@link
1365            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1366            * @param articleId the article ID keywords (space separated, optionally
1367            <code>null</code>)
1368            * @param version the web content article's version (optionally
1369            <code>null</code>)
1370            * @param title the title keywords (space separated, optionally
1371            <code>null</code>)
1372            * @param description the description keywords (space separated, optionally
1373            <code>null</code>)
1374            * @param content the content keywords (space separated, optionally
1375            <code>null</code>)
1376            * @param ddmStructureKeys the primary keys of the web content article's
1377            DDM structures, if the article is related to a DDM structure, or
1378            <code>null</code> otherwise
1379            * @param ddmTemplateKeys the primary keys of the web content article's DDM
1380            templates (originally <code>null</code>). If the articles are
1381            related to a DDM structure, the template's structure must match
1382            it.
1383            * @param displayDateGT the date after which a matching web content
1384            article's display date must be after (optionally
1385            <code>null</code>)
1386            * @param displayDateLT the date before which a matching web content
1387            article's display date must be before (optionally
1388            <code>null</code>)
1389            * @param status the web content article's workflow status. For more
1390            information see {@link WorkflowConstants} for constants starting
1391            with the "STATUS_" prefix.
1392            * @param reviewDate the web content article's scheduled review date
1393            (optionally <code>null</code>)
1394            * @param andOperator whether every field must match its value or keywords,
1395            or just one field must match.  Company, group, folder IDs, class
1396            name ID, and status must all match their values.
1397            * @param start the lower bound of the range of web content articles to
1398            return
1399            * @param end the upper bound of the range of web content articles to
1400            return (not inclusive)
1401            * @param obc the comparator to order the web content articles
1402            * @return the range of matching web content articles ordered by the
1403            comparator
1404            */
1405            @Override
1406            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1407                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1408                    long classNameId, java.lang.String articleId, java.lang.Double version,
1409                    java.lang.String title, java.lang.String description,
1410                    java.lang.String content, java.lang.String[] ddmStructureKeys,
1411                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1412                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1413                    boolean andOperator, int start, int end,
1414                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
1415                    return _journalArticleService.search(companyId, groupId, folderIds,
1416                            classNameId, articleId, version, title, description, content,
1417                            ddmStructureKeys, ddmTemplateKeys, displayDateGT, displayDateLT,
1418                            status, reviewDate, andOperator, start, end, obc);
1419            }
1420    
1421            /**
1422            * Returns an ordered range of all the web content articles matching the
1423            * parameters, including a keywords parameter for matching with the
1424            * article's ID, title, description, and content, a DDM structure key
1425            * parameter, and a DDM template key parameter.
1426            *
1427            * <p>
1428            * Useful when paginating results. Returns a maximum of <code>end -
1429            * start</code> instances. <code>start</code> and <code>end</code> are not
1430            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1431            * refers to the first result in the set. Setting both <code>start</code>
1432            * and <code>end</code> to {@link
1433            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1434            * result set.
1435            * </p>
1436            *
1437            * @param companyId the primary key of the web content article's company
1438            * @param groupId the primary key of the group (optionally <code>0</code>)
1439            * @param folderIds the primary keys of the web content article folders
1440            (optionally {@link java.util.Collections#EMPTY_LIST})
1441            * @param classNameId the primary key of the DDMStructure class if the web
1442            content article is related to a DDM structure, the primary key of
1443            the class name associated with the article, or {@link
1444            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1445            * @param keywords the keywords (space separated), which may occur in the
1446            web content article ID, title, description, or content
1447            (optionally <code>null</code>). If the keywords value is not
1448            <code>null</code>, the search uses the OR operator in connecting
1449            query criteria; otherwise it uses the AND operator.
1450            * @param version the web content article's version (optionally
1451            <code>null</code>)
1452            * @param ddmStructureKey the primary key of the web content article's DDM
1453            structure, if the article is related to a DDM structure, or
1454            <code>null</code> otherwise
1455            * @param ddmTemplateKey the primary key of the web content article's DDM
1456            template
1457            * @param displayDateGT the date after which a matching web content
1458            article's display date must be after (optionally
1459            <code>null</code>)
1460            * @param displayDateLT the date before which a matching web content
1461            article's display date must be before (optionally
1462            <code>null</code>)
1463            * @param status the web content article's workflow status. For more
1464            information see {@link WorkflowConstants} for constants starting
1465            with the "STATUS_" prefix.
1466            * @param reviewDate the web content article's scheduled review date
1467            (optionally <code>null</code>)
1468            * @param start the lower bound of the range of web content articles to
1469            return
1470            * @param end the upper bound of the range of web content articles to
1471            return (not inclusive)
1472            * @param obc the comparator to order the web content articles
1473            * @return the range of matching web content articles ordered by the
1474            comparator
1475            */
1476            @Override
1477            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1478                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1479                    long classNameId, java.lang.String keywords, java.lang.Double version,
1480                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1481                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1482                    java.util.Date reviewDate, int start, int end,
1483                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) {
1484                    return _journalArticleService.search(companyId, groupId, folderIds,
1485                            classNameId, keywords, version, ddmStructureKey, ddmTemplateKey,
1486                            displayDateGT, displayDateLT, status, reviewDate, start, end, obc);
1487            }
1488    
1489            /**
1490            * Returns a range of all the web content articles matching the group,
1491            * creator, creator, and workflow status using the indexer. It is preferable
1492            * to use this method instead of the non-indexed version whenever possible
1493            * for performance reasons.
1494            *
1495            * <p>
1496            * Useful when paginating results. Returns a maximum of <code>end -
1497            * start</code> instances. <code>start</code> and <code>end</code> are not
1498            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1499            * refers to the first result in the set. Setting both <code>start</code>
1500            * and <code>end</code> to {@link
1501            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1502            * result set.
1503            * </p>
1504            *
1505            * @param groupId the primary key of the web content article's group
1506            * @param creatorUserId the primary key of the web content article's
1507            creator
1508            * @param status the web content article's workflow status. For more
1509            information see {@link WorkflowConstants} for constants starting
1510            with the "STATUS_" prefix.
1511            * @param start the lower bound of the range of web content articles to
1512            return
1513            * @param end the upper bound of the range of web content articles to
1514            return (not inclusive)
1515            * @return the matching web content articles
1516            * @throws PortalException if a portal exception occurred
1517            */
1518            @Override
1519            public com.liferay.portal.kernel.search.Hits search(long groupId,
1520                    long creatorUserId, int status, int start, int end)
1521                    throws com.liferay.portal.kernel.exception.PortalException {
1522                    return _journalArticleService.search(groupId, creatorUserId, status,
1523                            start, end);
1524            }
1525    
1526            /**
1527            * Returns the number of web content articles matching the parameters,
1528            * including keyword parameters for article ID, title, description, and
1529            * content, a DDM structure key parameter, a DDM template key parameter, and
1530            * an AND operator switch.
1531            *
1532            * @param companyId the primary key of the web content article's company
1533            * @param groupId the primary key of the group (optionally <code>0</code>)
1534            * @param folderIds the primary keys of the web content article folders
1535            (optionally {@link java.util.Collections#EMPTY_LIST})
1536            * @param classNameId the primary key of the DDMStructure class if the web
1537            content article is related to a DDM structure, the primary key of
1538            the class name associated with the article, or {@link
1539            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1540            * @param articleId the article ID keywords (space separated, optionally
1541            <code>null</code>)
1542            * @param version the web content article's version (optionally
1543            <code>null</code>)
1544            * @param title the title keywords (space separated, optionally
1545            <code>null</code>)
1546            * @param description the description keywords (space separated, optionally
1547            <code>null</code>)
1548            * @param content the content keywords (space separated, optionally
1549            <code>null</code>)
1550            * @param ddmStructureKey the primary key of the web content article's DDM
1551            structure, if the article is related to a DDM structure, or
1552            <code>null</code> otherwise
1553            * @param ddmTemplateKey the primary key of the web content article's DDM
1554            template
1555            * @param displayDateGT the date after which a matching web content
1556            article's display date must be after (optionally
1557            <code>null</code>)
1558            * @param displayDateLT the date before which a matching web content
1559            article's display date must be before (optionally
1560            <code>null</code>)
1561            * @param status the web content article's workflow status. For more
1562            information see {@link WorkflowConstants} for constants starting
1563            with the "STATUS_" prefix.
1564            * @param reviewDate the web content article's scheduled review date
1565            (optionally <code>null</code>)
1566            * @param andOperator whether every field must match its value or keywords,
1567            or just one field must match. Group, folder IDs, class name ID,
1568            and status must all match their values.
1569            * @return the number of matching web content articles
1570            */
1571            @Override
1572            public int searchCount(long companyId, long groupId,
1573                    java.util.List<java.lang.Long> folderIds, long classNameId,
1574                    java.lang.String articleId, java.lang.Double version,
1575                    java.lang.String title, java.lang.String description,
1576                    java.lang.String content, java.lang.String ddmStructureKey,
1577                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1578                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1579                    boolean andOperator) {
1580                    return _journalArticleService.searchCount(companyId, groupId,
1581                            folderIds, classNameId, articleId, version, title, description,
1582                            content, ddmStructureKey, ddmTemplateKey, displayDateGT,
1583                            displayDateLT, status, reviewDate, andOperator);
1584            }
1585    
1586            /**
1587            * Returns the number of web content articles matching the parameters,
1588            * including keyword parameters for article ID, title, description, and
1589            * content, a DDM structure keys (plural) parameter, a DDM template keys
1590            * (plural) parameter, and an AND operator switch.
1591            *
1592            * @param companyId the primary key of the web content article's company
1593            * @param groupId the primary key of the group (optionally <code>0</code>)
1594            * @param folderIds the primary keys of the web content article folders
1595            (optionally {@link java.util.Collections#EMPTY_LIST})
1596            * @param classNameId the primary key of the DDMStructure class if the web
1597            content article is related to a DDM structure, the primary key of
1598            the class name associated with the article, or {@link
1599            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1600            * @param articleId the article ID keywords (space separated, optionally
1601            <code>null</code>)
1602            * @param version the web content article's version (optionally
1603            <code>null</code>)
1604            * @param title the title keywords (space separated, optionally
1605            <code>null</code>)
1606            * @param description the description keywords (space separated, optionally
1607            <code>null</code>)
1608            * @param content the content keywords (space separated, optionally
1609            <code>null</code>)
1610            * @param ddmStructureKeys the primary keys of the web content article's
1611            DDM structures, if the article is related to a DDM structure, or
1612            <code>null</code> otherwise
1613            * @param ddmTemplateKeys the primary keys of the web content article's DDM
1614            templates (originally <code>null</code>). If the articles are
1615            related to a DDM structure, the template's structure must match
1616            it.
1617            * @param displayDateGT the date after which a matching web content
1618            article's display date must be after (optionally
1619            <code>null</code>)
1620            * @param displayDateLT the date before which a matching web content
1621            article's display date must be before (optionally
1622            <code>null</code>)
1623            * @param status the web content article's workflow status. For more
1624            information see {@link WorkflowConstants} for constants starting
1625            with the "STATUS_" prefix.
1626            * @param reviewDate the web content article's scheduled review date
1627            (optionally <code>null</code>)
1628            * @param andOperator whether every field must match its value or keywords,
1629            or just one field must match.  Group, folder IDs, class name ID,
1630            and status must all match their values.
1631            * @return the number of matching web content articles
1632            */
1633            @Override
1634            public int searchCount(long companyId, long groupId,
1635                    java.util.List<java.lang.Long> folderIds, long classNameId,
1636                    java.lang.String articleId, java.lang.Double version,
1637                    java.lang.String title, java.lang.String description,
1638                    java.lang.String content, java.lang.String[] ddmStructureKeys,
1639                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1640                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1641                    boolean andOperator) {
1642                    return _journalArticleService.searchCount(companyId, groupId,
1643                            folderIds, classNameId, articleId, version, title, description,
1644                            content, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
1645                            displayDateLT, status, reviewDate, andOperator);
1646            }
1647    
1648            /**
1649            * Returns the number of web content articles matching the parameters,
1650            * including a keywords parameter for matching with the article's ID, title,
1651            * description, and content, a DDM structure key parameter, and a DDM
1652            * template key parameter.
1653            *
1654            * @param companyId the primary key of the web content article's company
1655            * @param groupId the primary key of the group (optionally <code>0</code>)
1656            * @param folderIds the primary keys of the web content article folders
1657            (optionally {@link java.util.Collections#EMPTY_LIST})
1658            * @param classNameId the primary key of the DDMStructure class if the web
1659            content article is related to a DDM structure, the primary key of
1660            the class name associated with the article, or {@link
1661            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1662            * @param keywords the keywords (space separated), which may occur in the
1663            web content article ID, title, description, or content
1664            (optionally <code>null</code>). If the keywords value is not
1665            <code>null</code>, the search uses the OR operator in connecting
1666            query criteria; otherwise it uses the AND operator.
1667            * @param version the web content article's version (optionally
1668            <code>null</code>)
1669            * @param ddmStructureKey the primary key of the web content article's DDM
1670            structure, if the article is related to a DDM structure, or
1671            <code>null</code> otherwise
1672            * @param ddmTemplateKey the primary key of the web content article's DDM
1673            template
1674            * @param displayDateGT the date after which a matching web content
1675            article's display date must be after (optionally
1676            <code>null</code>)
1677            * @param displayDateLT the date before which a matching web content
1678            article's display date must be before (optionally
1679            <code>null</code>)
1680            * @param status the web content article's workflow status. For more
1681            information see {@link WorkflowConstants} for constants starting
1682            with the "STATUS_" prefix.
1683            * @param reviewDate the web content article's scheduled review date
1684            (optionally <code>null</code>)
1685            * @return the number of matching web content articles
1686            */
1687            @Override
1688            public int searchCount(long companyId, long groupId,
1689                    java.util.List<java.lang.Long> folderIds, long classNameId,
1690                    java.lang.String keywords, java.lang.Double version,
1691                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1692                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1693                    java.util.Date reviewDate) {
1694                    return _journalArticleService.searchCount(companyId, groupId,
1695                            folderIds, classNameId, keywords, version, ddmStructureKey,
1696                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate);
1697            }
1698    
1699            /**
1700            * Sets the Spring bean ID for this bean.
1701            *
1702            * @param beanIdentifier the Spring bean ID for this bean
1703            */
1704            @Override
1705            public void setBeanIdentifier(java.lang.String beanIdentifier) {
1706                    _journalArticleService.setBeanIdentifier(beanIdentifier);
1707            }
1708    
1709            /**
1710            * Subscribes the user to changes in elements that belong to the web content
1711            * article's DDM structure.
1712            *
1713            * @param groupId the primary key of the folder's group
1714            * @param userId the primary key of the user to be subscribed
1715            * @param ddmStructureId the primary key of the structure to subscribe to
1716            * @throws PortalException if a matching user or group could not be found
1717            */
1718            @Override
1719            public void subscribeStructure(long groupId, long userId,
1720                    long ddmStructureId)
1721                    throws com.liferay.portal.kernel.exception.PortalException {
1722                    _journalArticleService.subscribeStructure(groupId, userId,
1723                            ddmStructureId);
1724            }
1725    
1726            /**
1727            * Unsubscribes the user from changes in elements that belong to the web
1728            * content article's DDM structure.
1729            *
1730            * @param groupId the primary key of the folder's group
1731            * @param userId the primary key of the user to be subscribed
1732            * @param ddmStructureId the primary key of the structure to subscribe to
1733            * @throws PortalException if a matching user or subscription could not be
1734            found
1735            */
1736            @Override
1737            public void unsubscribeStructure(long groupId, long userId,
1738                    long ddmStructureId)
1739                    throws com.liferay.portal.kernel.exception.PortalException {
1740                    _journalArticleService.unsubscribeStructure(groupId, userId,
1741                            ddmStructureId);
1742            }
1743    
1744            /**
1745            * Updates the web content article matching the version, replacing its
1746            * folder and content.
1747            *
1748            * <p>
1749            * The web content articles hold HTML content wrapped in XML. The XML lets
1750            * you specify the article's default locale and available locales. Here is a
1751            * content example:
1752            * </p>
1753            *
1754            * <p>
1755            * <pre>
1756            * <code>
1757            * &lt;?xml version='1.0' encoding='UTF-8'?&gt;
1758            * &lt;root default-locale="en_US" available-locales="en_US"&gt;
1759            *     &lt;static-content language-id="en_US"&gt;
1760            *         &lt;![CDATA[&lt;p&gt;&lt;b&gt;&lt;i&gt;test&lt;i&gt; content&lt;b&gt;&lt;/p&gt;]]&gt;
1761            *     &lt;/static-content&gt;
1762            * &lt;/root&gt;
1763            * </code>
1764            * </pre>
1765            * </p>
1766            *
1767            * @param groupId the primary key of the web content article's group
1768            * @param folderId the primary key of the web content article folder
1769            * @param articleId the primary key of the web content article
1770            * @param version the web content article's version
1771            * @param content the HTML content wrapped in XML.
1772            * @param serviceContext the service context to be applied. Can set the
1773            modification date, expando bridge attributes, asset category IDs,
1774            asset tag names, asset link entry IDs, workflow actions, URL
1775            title, and can set whether to add the default command update for
1776            the web content article. With respect to social activities, by
1777            setting the service context's command to {@link
1778            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1779            is considered a web content update activity; otherwise it is
1780            considered a web content add activity.
1781            * @return the updated web content article
1782            * @throws PortalException if the user did not have permission to update the
1783            web content article, if a user with the primary key or a matching
1784            web content article could not be found, or if a portal exception
1785            occurred
1786            */
1787            @Override
1788            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1789                    long groupId, long folderId, java.lang.String articleId,
1790                    double version, java.lang.String content,
1791                    com.liferay.portal.service.ServiceContext serviceContext)
1792                    throws com.liferay.portal.kernel.exception.PortalException {
1793                    return _journalArticleService.updateArticle(groupId, folderId,
1794                            articleId, version, content, serviceContext);
1795            }
1796    
1797            /**
1798            * Updates the web content article with additional parameters.
1799            *
1800            * @param groupId the primary key of the web content article's group
1801            * @param folderId the primary key of the web content article folder
1802            * @param articleId the primary key of the web content article
1803            * @param version the web content article's version
1804            * @param titleMap the web content article's locales and localized titles
1805            * @param descriptionMap the web content article's locales and localized
1806            descriptions
1807            * @param content the HTML content wrapped in XML. For more information,
1808            see the content example in the {@link #updateArticle(long, long,
1809            String, double, String, ServiceContext)} description.
1810            * @param ddmStructureKey the primary key of the web content article's DDM
1811            structure, if the article is related to a DDM structure, or
1812            <code>null</code> otherwise
1813            * @param ddmTemplateKey the primary key of the web content article's DDM
1814            template
1815            * @param layoutUuid the unique string identifying the web content
1816            article's display page
1817            * @param displayDateMonth the month the web content article is set to
1818            display
1819            * @param displayDateDay the calendar day the web content article is set to
1820            display
1821            * @param displayDateYear the year the web content article is set to
1822            display
1823            * @param displayDateHour the hour the web content article is set to
1824            display
1825            * @param displayDateMinute the minute the web content article is set to
1826            display
1827            * @param expirationDateMonth the month the web content article is set to
1828            expire
1829            * @param expirationDateDay the calendar day the web content article is set
1830            to expire
1831            * @param expirationDateYear the year the web content article is set to
1832            expire
1833            * @param expirationDateHour the hour the web content article is set to
1834            expire
1835            * @param expirationDateMinute the minute the web content article is set to
1836            expire
1837            * @param neverExpire whether the web content article is not set to auto
1838            expire
1839            * @param reviewDateMonth the month the web content article is set for
1840            review
1841            * @param reviewDateDay the calendar day the web content article is set for
1842            review
1843            * @param reviewDateYear the year the web content article is set for review
1844            * @param reviewDateHour the hour the web content article is set for review
1845            * @param reviewDateMinute the minute the web content article is set for
1846            review
1847            * @param neverReview whether the web content article is not set for review
1848            * @param indexable whether the web content is searchable
1849            * @param smallImage whether to update web content article's a small image.
1850            A file must be passed in as <code>smallImageFile</code> value,
1851            otherwise the current small image is deleted.
1852            * @param smallImageURL the web content article's small image URL
1853            (optionally <code>null</code>)
1854            * @param smallFile the web content article's new small image file
1855            (optionally <code>null</code>). Must pass in
1856            <code>smallImage</code> value of <code>true</code> to replace the
1857            article's small image file.
1858            * @param images the web content's images (optionally <code>null</code>)
1859            * @param articleURL the web content article's accessible URL (optionally
1860            <code>null</code>)
1861            * @param serviceContext the service context to be applied. Can set the
1862            modification date, expando bridge attributes, asset category IDs,
1863            asset tag names, asset link entry IDs, workflow actions, URL
1864            title, and can set whether to add the default command update for
1865            the web content article. With respect to social activities, by
1866            setting the service context's command to {@link
1867            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1868            is considered a web content update activity; otherwise it is
1869            considered a web content add activity.
1870            * @return the updated web content article
1871            * @throws PortalException if the user did not have permission to update the
1872            web content article, if a user with the primary key or a matching
1873            web content article could not be found, or if a portal exception
1874            occurred
1875            */
1876            @Override
1877            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1878                    long groupId, long folderId, java.lang.String articleId,
1879                    double version,
1880                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1881                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1882                    java.lang.String content, java.lang.String ddmStructureKey,
1883                    java.lang.String ddmTemplateKey, java.lang.String layoutUuid,
1884                    int displayDateMonth, int displayDateDay, int displayDateYear,
1885                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
1886                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
1887                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
1888                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
1889                    int reviewDateMinute, boolean neverReview, boolean indexable,
1890                    boolean smallImage, java.lang.String smallImageURL,
1891                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
1892                    java.lang.String articleURL,
1893                    com.liferay.portal.service.ServiceContext serviceContext)
1894                    throws com.liferay.portal.kernel.exception.PortalException {
1895                    return _journalArticleService.updateArticle(groupId, folderId,
1896                            articleId, version, titleMap, descriptionMap, content,
1897                            ddmStructureKey, ddmTemplateKey, layoutUuid, displayDateMonth,
1898                            displayDateDay, displayDateYear, displayDateHour,
1899                            displayDateMinute, expirationDateMonth, expirationDateDay,
1900                            expirationDateYear, expirationDateHour, expirationDateMinute,
1901                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
1902                            reviewDateHour, reviewDateMinute, neverReview, indexable,
1903                            smallImage, smallImageURL, smallFile, images, articleURL,
1904                            serviceContext);
1905            }
1906    
1907            /**
1908            * Updates the web content article matching the version, replacing its
1909            * folder, title, description, content, and layout UUID.
1910            *
1911            * @param userId the primary key of the user updating the web content
1912            article
1913            * @param groupId the primary key of the web content article's group
1914            * @param folderId the primary key of the web content article folder
1915            * @param articleId the primary key of the web content article
1916            * @param version the web content article's version
1917            * @param titleMap the web content article's locales and localized titles
1918            * @param descriptionMap the web content article's locales and localized
1919            descriptions
1920            * @param content the HTML content wrapped in XML. For more information,
1921            see the content example in the {@link #updateArticle(long, long,
1922            String, double, String, ServiceContext)} description.
1923            * @param layoutUuid the unique string identifying the web content
1924            article's display page
1925            * @param serviceContext the service context to be applied. Can set the
1926            modification date, expando bridge attributes, asset category IDs,
1927            asset tag names, asset link entry IDs, workflow actions, URL
1928            title, and can set whether to add the default command update for
1929            the web content article. With respect to social activities, by
1930            setting the service context's command to {@link
1931            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1932            is considered a web content update activity; otherwise it is
1933            considered a web content add activity.
1934            * @return the updated web content article
1935            * @throws PortalException if a user with the primary key or a matching web
1936            content article could not be found, or if a portal exception
1937            occurred
1938            */
1939            @Override
1940            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1941                    long userId, long groupId, long folderId, java.lang.String articleId,
1942                    double version,
1943                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1944                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1945                    java.lang.String content, java.lang.String layoutUuid,
1946                    com.liferay.portal.service.ServiceContext serviceContext)
1947                    throws com.liferay.portal.kernel.exception.PortalException {
1948                    return _journalArticleService.updateArticle(userId, groupId, folderId,
1949                            articleId, version, titleMap, descriptionMap, content, layoutUuid,
1950                            serviceContext);
1951            }
1952    
1953            /**
1954            * @deprecated As of 6.2.0, replaced by {@link
1955            #updateArticleTranslation(long, String, double, Locale,
1956            String, String, String, Map, ServiceContext)}
1957            */
1958            @Deprecated
1959            @Override
1960            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1961                    long groupId, java.lang.String articleId, double version,
1962                    java.util.Locale locale, java.lang.String title,
1963                    java.lang.String description, java.lang.String content,
1964                    java.util.Map<java.lang.String, byte[]> images)
1965                    throws com.liferay.portal.kernel.exception.PortalException {
1966                    return _journalArticleService.updateArticleTranslation(groupId,
1967                            articleId, version, locale, title, description, content, images);
1968            }
1969    
1970            /**
1971            * Updates the translation of the web content article.
1972            *
1973            * @param groupId the primary key of the web content article's group
1974            * @param articleId the primary key of the web content article
1975            * @param version the web content article's version
1976            * @param locale the locale of the web content article's display template
1977            * @param title the translated web content article title
1978            * @param description the translated web content article description
1979            * @param content the HTML content wrapped in XML. For more information,
1980            see the content example in the {@link #updateArticle(long, long,
1981            String, double, String, ServiceContext)} description.
1982            * @param images the web content's images
1983            * @param serviceContext the service context to be applied. Can set the
1984            modification date and URL title for the web content article.
1985            * @return the updated web content article
1986            * @throws PortalException if the user did not have permission to update the
1987            web content article, if a user with the primary key or a matching
1988            web content article could not be found, or if a portal exception
1989            occurred
1990            */
1991            @Override
1992            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1993                    long groupId, java.lang.String articleId, double version,
1994                    java.util.Locale locale, java.lang.String title,
1995                    java.lang.String description, java.lang.String content,
1996                    java.util.Map<java.lang.String, byte[]> images,
1997                    com.liferay.portal.service.ServiceContext serviceContext)
1998                    throws com.liferay.portal.kernel.exception.PortalException {
1999                    return _journalArticleService.updateArticleTranslation(groupId,
2000                            articleId, version, locale, title, description, content, images,
2001                            serviceContext);
2002            }
2003    
2004            /**
2005            * Updates the web content article matching the group, article ID, and
2006            * version, replacing its content.
2007            *
2008            * @param groupId the primary key of the web content article's group
2009            * @param articleId the primary key of the web content article
2010            * @param version the web content article's version
2011            * @param content the HTML content wrapped in XML. For more information,
2012            see the content example in the {@link #updateArticle(long, long,
2013            String, double, String, ServiceContext)} description.
2014            * @return the updated web content article
2015            * @throws PortalException if the user did not have permission to update the
2016            web content article or if a matching web content article could
2017            not be found
2018            */
2019            @Override
2020            public com.liferay.portlet.journal.model.JournalArticle updateContent(
2021                    long groupId, java.lang.String articleId, double version,
2022                    java.lang.String content)
2023                    throws com.liferay.portal.kernel.exception.PortalException {
2024                    return _journalArticleService.updateContent(groupId, articleId,
2025                            version, content);
2026            }
2027    
2028            /**
2029            * Updates the workflow status of the web content article matching the
2030            * group, article ID, and version.
2031            *
2032            * @param groupId the primary key of the web content article's group
2033            * @param articleId the primary key of the web content article
2034            * @param version the web content article's version
2035            * @param status the web content article's workflow status. For more
2036            information see {@link WorkflowConstants} for constants starting
2037            with the "STATUS_" prefix.
2038            * @param articleURL the web content article's accessible URL
2039            * @param serviceContext the service context to be applied. Can set the
2040            modification date, portlet preferences, and can set whether to
2041            add the default command update for the web content article.
2042            * @return the updated web content article
2043            * @throws PortalException if the user did not have permission to update the
2044            web content article, if a matching web content article could not
2045            be found, or if a portal exception occurred
2046            */
2047            @Override
2048            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
2049                    long groupId, java.lang.String articleId, double version, int status,
2050                    java.lang.String articleURL,
2051                    com.liferay.portal.service.ServiceContext serviceContext)
2052                    throws com.liferay.portal.kernel.exception.PortalException {
2053                    return _journalArticleService.updateStatus(groupId, articleId, version,
2054                            status, articleURL, serviceContext);
2055            }
2056    
2057            /**
2058             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
2059             */
2060            @Deprecated
2061            public JournalArticleService getWrappedJournalArticleService() {
2062                    return _journalArticleService;
2063            }
2064    
2065            /**
2066             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
2067             */
2068            @Deprecated
2069            public void setWrappedJournalArticleService(
2070                    JournalArticleService journalArticleService) {
2071                    _journalArticleService = journalArticleService;
2072            }
2073    
2074            @Override
2075            public JournalArticleService getWrappedService() {
2076                    return _journalArticleService;
2077            }
2078    
2079            @Override
2080            public void setWrappedService(JournalArticleService journalArticleService) {
2081                    _journalArticleService = journalArticleService;
2082            }
2083    
2084            private JournalArticleService _journalArticleService;
2085    }