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