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