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            /**
870            * Returns an ordered range of all the web content articles matching the
871            * group, user, the root folder or any of its subfolders.
872            *
873            * @param groupId the primary key of the web content article's group
874            * @param userId the primary key of the user (optionally <code>0</code>)
875            * @param rootFolderId the primary key of the root folder to begin the
876            search
877            * @param start the lower bound of the range of web content articles to
878            return
879            * @param end the upper bound of the range of web content articles to
880            return (not inclusive)
881            * @param orderByComparator the comparator to order the web content
882            articles
883            * @return the range of matching web content articles ordered by the
884            comparator
885            * @throws PortalException if the root folder could not be found, if the
886            current user did not have permission to view the root folder, or
887            if a portal exception occurred
888            * @throws SystemException if a system exception occurred
889            */
890            @Override
891            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles(
892                    long groupId, long userId, long rootFolderId, int start, int end,
893                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
894                    throws com.liferay.portal.kernel.exception.PortalException,
895                            com.liferay.portal.kernel.exception.SystemException {
896                    return _journalArticleService.getGroupArticles(groupId, userId,
897                            rootFolderId, start, end, orderByComparator);
898            }
899    
900            /**
901            * Returns the number of web content articles matching the group, user, and
902            * the root folder or any of its subfolders.
903            *
904            * @param groupId the primary key of the web content article's group
905            * @param userId the primary key of the user (optionally <code>0</code>)
906            * @param rootFolderId the primary key of the root folder to begin the
907            search
908            * @return the number of matching web content articles
909            * @throws PortalException if the root folder could not be found, if the
910            current user did not have permission to view the root folder, or
911            if a portal exception occurred
912            * @throws SystemException if a system exception occurred
913            */
914            @Override
915            public int getGroupArticlesCount(long groupId, long userId,
916                    long rootFolderId)
917                    throws com.liferay.portal.kernel.exception.PortalException,
918                            com.liferay.portal.kernel.exception.SystemException {
919                    return _journalArticleService.getGroupArticlesCount(groupId, userId,
920                            rootFolderId);
921            }
922    
923            /**
924            * Returns the latest web content article matching the resource primary key,
925            * preferring articles with approved workflow status.
926            *
927            * @param resourcePrimKey the primary key of the resource instance
928            * @return the latest web content article matching the resource primary key,
929            preferring articles with approved workflow status
930            * @throws PortalException if the user did not have permission to view the
931            web content article or if a matching web content article could
932            not be found
933            * @throws SystemException if a system exception occurred
934            */
935            @Override
936            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
937                    long resourcePrimKey)
938                    throws com.liferay.portal.kernel.exception.PortalException,
939                            com.liferay.portal.kernel.exception.SystemException {
940                    return _journalArticleService.getLatestArticle(resourcePrimKey);
941            }
942    
943            /**
944            * Returns the latest web content article matching the group, article ID,
945            * and workflow status.
946            *
947            * @param groupId the primary key of the web content article's group
948            * @param articleId the primary key of the web content article
949            * @param status the web content article's workflow status. For more
950            information see {@link WorkflowConstants} for constants starting
951            with the "STATUS_" prefix.
952            * @return the latest matching web content article
953            * @throws PortalException if the user did not have permission to view the
954            web content article or if a matching web content article could
955            not be found
956            * @throws SystemException if a system exception occurred
957            */
958            @Override
959            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
960                    long groupId, java.lang.String articleId, int status)
961                    throws com.liferay.portal.kernel.exception.PortalException,
962                            com.liferay.portal.kernel.exception.SystemException {
963                    return _journalArticleService.getLatestArticle(groupId, articleId,
964                            status);
965            }
966    
967            /**
968            * Returns the latest web content article matching the group, class name ID,
969            * and class PK.
970            *
971            * @param groupId the primary key of the web content article's group
972            * @param className the DDMStructure class name if the web content article
973            is related to a DDM structure, the class name associated with the
974            article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT}
975            otherwise
976            * @param classPK the primary key of the DDM structure, if the DDMStructure
977            class name is given as the <code>className</code> parameter, the
978            primary key of the class associated with the web content article,
979            or <code>0</code> otherwise
980            * @return the latest matching web content article
981            * @throws PortalException if a matching web content article could not be
982            found or if the user did not have permission to view the web
983            content article
984            * @throws SystemException if a system exception occurred
985            */
986            @Override
987            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
988                    long groupId, java.lang.String className, long classPK)
989                    throws com.liferay.portal.kernel.exception.PortalException,
990                            com.liferay.portal.kernel.exception.SystemException {
991                    return _journalArticleService.getLatestArticle(groupId, className,
992                            classPK);
993            }
994    
995            /**
996            * Moves all versions of the the web content article matching the group and
997            * article ID to the folder.
998            *
999            * @param groupId the primary key of the web content article's group
1000            * @param articleId the primary key of the web content article
1001            * @param newFolderId the primary key of the web content article's new
1002            folder
1003            * @throws PortalException if the user did not have permission to update any
1004            one of the versions of the web content article or if any one of
1005            the versions of the web content article could not be moved to the
1006            folder
1007            * @throws SystemException if a system exception occurred
1008            */
1009            @Override
1010            public void moveArticle(long groupId, java.lang.String articleId,
1011                    long newFolderId)
1012                    throws com.liferay.portal.kernel.exception.PortalException,
1013                            com.liferay.portal.kernel.exception.SystemException {
1014                    _journalArticleService.moveArticle(groupId, articleId, newFolderId);
1015            }
1016    
1017            /**
1018            * Moves the web content article from the Recycle Bin to the folder.
1019            *
1020            * @param groupId the primary key of the web content article's group
1021            * @param resourcePrimKey the primary key of the resource instance
1022            * @param newFolderId the primary key of the web content article's new
1023            folder
1024            * @param serviceContext the service context to be applied. Can set the
1025            modification date, portlet preferences, and can set whether to
1026            add the default command update for the web content article. With
1027            respect to social activities, by setting the service context's
1028            command to {@link
1029            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1030            is considered a web content update activity; otherwise it is
1031            considered a web content add activity.
1032            * @return the updated web content article, which was moved from the Recycle
1033            Bin to the folder
1034            * @throws PortalException if the user did not have permission to view or
1035            update the web content article, if a matching trashed web content
1036            article could not be found, or if a portal exception occurred
1037            * @throws SystemException if a system exception occurred
1038            */
1039            @Override
1040            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1041                    long groupId, long resourcePrimKey, long newFolderId,
1042                    com.liferay.portal.service.ServiceContext serviceContext)
1043                    throws com.liferay.portal.kernel.exception.PortalException,
1044                            com.liferay.portal.kernel.exception.SystemException {
1045                    return _journalArticleService.moveArticleFromTrash(groupId,
1046                            resourcePrimKey, newFolderId, serviceContext);
1047            }
1048    
1049            /**
1050            * Moves the web content article from the Recycle Bin to the folder.
1051            *
1052            * @param groupId the primary key of the web content article's group
1053            * @param articleId the primary key of the web content article
1054            * @param newFolderId the primary key of the web content article's new
1055            folder
1056            * @param serviceContext the service context to be applied. Can set the
1057            modification date, portlet preferences, and can set whether to
1058            add the default command update for the web content article. With
1059            respect to social activities, by setting the service context's
1060            command to {@link
1061            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1062            is considered a web content update activity; otherwise it is
1063            considered a web content add activity.
1064            * @return the updated web content article, which was moved from the Recycle
1065            Bin to the folder
1066            * @throws PortalException if the user did not have permission to view or
1067            update the web content article, if a trashed web content article
1068            with the primary key could not be found, or if a portal exception
1069            occurred
1070            * @throws SystemException if a system exception occurred
1071            */
1072            @Override
1073            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1074                    long groupId, java.lang.String articleId, long newFolderId,
1075                    com.liferay.portal.service.ServiceContext serviceContext)
1076                    throws com.liferay.portal.kernel.exception.PortalException,
1077                            com.liferay.portal.kernel.exception.SystemException {
1078                    return _journalArticleService.moveArticleFromTrash(groupId, articleId,
1079                            newFolderId, serviceContext);
1080            }
1081    
1082            /**
1083            * Moves the latest version of the web content article matching the group
1084            * and article ID to the recycle bin.
1085            *
1086            * @param groupId the primary key of the web content article's group
1087            * @param articleId the primary key of the web content article
1088            * @return the moved web content article or <code>null</code> if no matching
1089            article was found
1090            * @throws PortalException if the user did not have permission to move the
1091            article to the Recycle Bin or if a portal exception occurred
1092            * @throws SystemException if a system exception occurred
1093            */
1094            @Override
1095            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
1096                    long groupId, java.lang.String articleId)
1097                    throws com.liferay.portal.kernel.exception.PortalException,
1098                            com.liferay.portal.kernel.exception.SystemException {
1099                    return _journalArticleService.moveArticleToTrash(groupId, articleId);
1100            }
1101    
1102            /**
1103            * Removes the web content of all the company's web content articles
1104            * matching the language.
1105            *
1106            * @param companyId the primary key of the web content article's company
1107            * @param languageId the primary key of the language locale to remove
1108            * @throws PortalException if the user did not have permission to update any
1109            one of the the web content articles or if web content matching
1110            the language could not be found for any one of the articles
1111            * @throws SystemException if a system exception occurred
1112            */
1113            @Override
1114            public void removeArticleLocale(long companyId, java.lang.String languageId)
1115                    throws com.liferay.portal.kernel.exception.PortalException,
1116                            com.liferay.portal.kernel.exception.SystemException {
1117                    _journalArticleService.removeArticleLocale(companyId, languageId);
1118            }
1119    
1120            /**
1121            * Removes the web content of the web content article matching the group,
1122            * article ID, and version, and language.
1123            *
1124            * @param groupId the primary key of the web content article's group
1125            * @param articleId the primary key of the web content article
1126            * @param version the web content article's version
1127            * @param languageId the primary key of the language locale to remove
1128            * @return the updated web content article with the locale removed
1129            * @throws PortalException if the user did not have permission to update the
1130            web content article or if a matching web content article could
1131            not be found
1132            * @throws SystemException if a system exception occurred
1133            */
1134            @Override
1135            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1136                    long groupId, java.lang.String articleId, double version,
1137                    java.lang.String languageId)
1138                    throws com.liferay.portal.kernel.exception.PortalException,
1139                            com.liferay.portal.kernel.exception.SystemException {
1140                    return _journalArticleService.removeArticleLocale(groupId, articleId,
1141                            version, languageId);
1142            }
1143    
1144            /**
1145            * Restores the web content article associated with the resource primary key
1146            * from the Recycle Bin.
1147            *
1148            * @param resourcePrimKey the primary key of the resource instance
1149            * @throws PortalException if a matching web content article could not be
1150            found in the Recycle Bin, if the user did not have permission to
1151            view or restore the article, or if a portal exception occurred
1152            * @throws SystemException if a system exception occurred
1153            */
1154            @Override
1155            public void restoreArticleFromTrash(long resourcePrimKey)
1156                    throws com.liferay.portal.kernel.exception.PortalException,
1157                            com.liferay.portal.kernel.exception.SystemException {
1158                    _journalArticleService.restoreArticleFromTrash(resourcePrimKey);
1159            }
1160    
1161            /**
1162            * Restores the web content article from the Recycle Bin.
1163            *
1164            * @param groupId the primary key of the web content article's group
1165            * @param articleId the primary key of the web content article
1166            * @throws PortalException if the web content article with the primary key
1167            could not be found in the Recycle Bin, if the user did not have
1168            permission to restore the article, or if a portal exception
1169            occurred
1170            * @throws SystemException if a system exception occurred
1171            */
1172            @Override
1173            public void restoreArticleFromTrash(long groupId, java.lang.String articleId)
1174                    throws com.liferay.portal.kernel.exception.PortalException,
1175                            com.liferay.portal.kernel.exception.SystemException {
1176                    _journalArticleService.restoreArticleFromTrash(groupId, articleId);
1177            }
1178    
1179            @Override
1180            public com.liferay.portal.kernel.search.Hits search(long groupId,
1181                    long creatorUserId, int status, int start, int end)
1182                    throws com.liferay.portal.kernel.exception.PortalException,
1183                            com.liferay.portal.kernel.exception.SystemException {
1184                    return _journalArticleService.search(groupId, creatorUserId, status,
1185                            start, end);
1186            }
1187    
1188            /**
1189            * Returns an ordered range of all the web content articles matching the
1190            * parameters, including a keywords parameter for matching with the
1191            * article's ID, title, description, and content, a DDM structure key
1192            * parameter, and a DDM template key parameter.
1193            *
1194            * <p>
1195            * Useful when paginating results. Returns a maximum of <code>end -
1196            * start</code> instances. <code>start</code> and <code>end</code> are not
1197            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1198            * refers to the first result in the set. Setting both <code>start</code>
1199            * and <code>end</code> to {@link
1200            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1201            * result set.
1202            * </p>
1203            *
1204            * @param companyId the primary key of the web content article's company
1205            * @param groupId the primary key of the group (optionally <code>0</code>)
1206            * @param folderIds the primary keys of the web content article folders
1207            (optionally {@link java.util.Collections#EMPTY_LIST})
1208            * @param classNameId the primary key of the DDMStructure class if the web
1209            content article is related to a DDM structure, the primary key of
1210            the class name associated with the article, or {@link
1211            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1212            * @param keywords the keywords (space separated), which may occur in the
1213            web content article ID, title, description, or content
1214            (optionally <code>null</code>). If the keywords value is not
1215            <code>null</code>, the search uses the OR operator in connecting
1216            query criteria; otherwise it uses the AND operator.
1217            * @param version the web content article's version (optionally
1218            <code>null</code>)
1219            * @param type the web content article's type (optionally
1220            <code>null</code>)
1221            * @param ddmStructureKey the primary key of the web content article's DDM
1222            structure, if the article is related to a DDM structure, or
1223            <code>null</code> otherwise
1224            * @param ddmTemplateKey the primary key of the web content article's DDM
1225            template (optionally <code>null</code>). If the article is
1226            related to a DDM structure, the template's structure must match
1227            it.
1228            * @param displayDateGT the date after which a matching web content
1229            article's display date must be after (optionally
1230            <code>null</code>)
1231            * @param displayDateLT the date before which a matching web content
1232            article's display date must be before (optionally
1233            <code>null</code>)
1234            * @param status the web content article's workflow status. For more
1235            information see {@link WorkflowConstants} for constants starting
1236            with the "STATUS_" prefix.
1237            * @param reviewDate the web content article's scheduled review date
1238            (optionally <code>null</code>)
1239            * @param start the lower bound of the range of web content articles to
1240            return
1241            * @param end the upper bound of the range of web content articles to
1242            return (not inclusive)
1243            * @param obc the comparator to order the web content articles
1244            * @return the range of matching web content articles ordered by the
1245            comparator
1246            * @throws SystemException if a system exception occurred
1247            */
1248            @Override
1249            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1250                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1251                    long classNameId, java.lang.String keywords, java.lang.Double version,
1252                    java.lang.String type, java.lang.String ddmStructureKey,
1253                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1254                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1255                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1256                    throws com.liferay.portal.kernel.exception.SystemException {
1257                    return _journalArticleService.search(companyId, groupId, folderIds,
1258                            classNameId, keywords, version, type, ddmStructureKey,
1259                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate,
1260                            start, end, obc);
1261            }
1262    
1263            /**
1264            * Returns an ordered range of all the web content articles matching the
1265            * parameters, including keyword parameters for article ID, title,
1266            * description, and content, a DDM structure key parameter, a DDM template
1267            * key parameter, and an AND operator switch.
1268            *
1269            * <p>
1270            * Useful when paginating results. Returns a maximum of <code>end -
1271            * start</code> instances. <code>start</code> and <code>end</code> are not
1272            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1273            * refers to the first result in the set. Setting both <code>start</code>
1274            * and <code>end</code> to {@link
1275            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1276            * result set.
1277            * </p>
1278            *
1279            * @param companyId the primary key of the web content article's company
1280            * @param groupId the primary key of the group (optionally <code>0</code>)
1281            * @param folderIds the primary keys of the web content article folders
1282            (optionally {@link java.util.Collections#EMPTY_LIST})
1283            * @param classNameId the primary key of the DDMStructure class if the web
1284            content article is related to a DDM structure, the primary key of
1285            the class name associated with the article, or {@link
1286            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1287            * @param articleId the article ID keywords (space separated, optionally
1288            <code>null</code>)
1289            * @param version the web content article's version (optionally
1290            <code>null</code>)
1291            * @param title the title keywords (space separated, optionally
1292            <code>null</code>)
1293            * @param description the description keywords (space separated, optionally
1294            <code>null</code>)
1295            * @param content the content keywords (space separated, optionally
1296            <code>null</code>)
1297            * @param type the web content article's type (optionally
1298            <code>null</code>)
1299            * @param ddmStructureKey the primary key of the web content article's DDM
1300            structure, if the article is related to a DDM structure, or
1301            <code>null</code> otherwise
1302            * @param ddmTemplateKey the primary key of the web content article's DDM
1303            template (optionally <code>null</code>). If the article is
1304            related to a DDM structure, the template's structure must match
1305            it.
1306            * @param displayDateGT the date after which a matching web content
1307            article's display date must be after (optionally
1308            <code>null</code>)
1309            * @param displayDateLT the date before which a matching web content
1310            article's display date must be before (optionally
1311            <code>null</code>)
1312            * @param status the web content article's workflow status. For more
1313            information see {@link WorkflowConstants} for constants starting
1314            with the "STATUS_" prefix.
1315            * @param reviewDate the web content article's scheduled review date
1316            (optionally <code>null</code>)
1317            * @param andOperator whether every field must match its value or keywords,
1318            or just one field must match. Company, group, folder IDs, class
1319            name ID, and status must all match their values.
1320            * @param start the lower bound of the range of web content articles to
1321            return
1322            * @param end the upper bound of the range of web content articles to
1323            return (not inclusive)
1324            * @param obc the comparator to order the web content articles
1325            * @return the range of matching web content articles ordered by the
1326            comparator
1327            * @throws SystemException if a system exception occurred
1328            */
1329            @Override
1330            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1331                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1332                    long classNameId, java.lang.String articleId, java.lang.Double version,
1333                    java.lang.String title, java.lang.String description,
1334                    java.lang.String content, java.lang.String type,
1335                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1336                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1337                    java.util.Date reviewDate, boolean andOperator, int start, int end,
1338                    com.liferay.portal.kernel.util.OrderByComparator obc)
1339                    throws com.liferay.portal.kernel.exception.SystemException {
1340                    return _journalArticleService.search(companyId, groupId, folderIds,
1341                            classNameId, articleId, version, title, description, content, type,
1342                            ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT,
1343                            status, reviewDate, andOperator, start, end, obc);
1344            }
1345    
1346            /**
1347            * Returns an ordered range of all the web content articles matching the
1348            * parameters, including keyword parameters for article ID, title,
1349            * description, and content, a DDM structure keys (plural) parameter, a DDM
1350            * template keys (plural) parameter, and an AND operator switch.
1351            *
1352            * <p>
1353            * Useful when paginating results. Returns a maximum of <code>end -
1354            * start</code> instances. <code>start</code> and <code>end</code> are not
1355            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1356            * refers to the first result in the set. Setting both <code>start</code>
1357            * and <code>end</code> to {@link
1358            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1359            * result set.
1360            * </p>
1361            *
1362            * @param companyId the primary key of the web content article's company
1363            * @param groupId the primary key of the group (optionally <code>0</code>)
1364            * @param folderIds the primary keys of the web content article folders
1365            (optionally {@link java.util.Collections#EMPTY_LIST})
1366            * @param classNameId the primary key of the DDMStructure class if the web
1367            content article is related to a DDM structure, the primary key of
1368            the class name associated with the article, or {@link
1369            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1370            * @param articleId the article ID keywords (space separated, optionally
1371            <code>null</code>)
1372            * @param version the web content article's version (optionally
1373            <code>null</code>)
1374            * @param title the title keywords (space separated, optionally
1375            <code>null</code>)
1376            * @param description the description keywords (space separated, optionally
1377            <code>null</code>)
1378            * @param content the content keywords (space separated, optionally
1379            <code>null</code>)
1380            * @param type the web content article's type (optionally
1381            <code>null</code>)
1382            * @param ddmStructureKeys the primary keys of the web content article's
1383            DDM structures, if the article is related to a DDM structure, or
1384            <code>null</code> otherwise
1385            * @param ddmTemplateKeys the primary keys of the web content article's DDM
1386            templates (originally <code>null</code>). If the articles are
1387            related to a DDM structure, the template's structure must match
1388            it.
1389            * @param displayDateGT the date after which a matching web content
1390            article's display date must be after (optionally
1391            <code>null</code>)
1392            * @param displayDateLT the date before which a matching web content
1393            article's display date must be before (optionally
1394            <code>null</code>)
1395            * @param status the web content article's workflow status. For more
1396            information see {@link WorkflowConstants} for constants starting
1397            with the "STATUS_" prefix.
1398            * @param reviewDate the web content article's scheduled review date
1399            (optionally <code>null</code>)
1400            * @param andOperator whether every field must match its value or keywords,
1401            or just one field must match.  Company, group, folder IDs, class
1402            name ID, and status must all match their values.
1403            * @param start the lower bound of the range of web content articles to
1404            return
1405            * @param end the upper bound of the range of web content articles to
1406            return (not inclusive)
1407            * @param obc the comparator to order the web content articles
1408            * @return the range of matching web content articles ordered by the
1409            comparator
1410            * @throws SystemException if a system exception occurred
1411            */
1412            @Override
1413            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1414                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1415                    long classNameId, java.lang.String articleId, java.lang.Double version,
1416                    java.lang.String title, java.lang.String description,
1417                    java.lang.String content, java.lang.String type,
1418                    java.lang.String[] ddmStructureKeys,
1419                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1420                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1421                    boolean andOperator, int start, int end,
1422                    com.liferay.portal.kernel.util.OrderByComparator obc)
1423                    throws com.liferay.portal.kernel.exception.SystemException {
1424                    return _journalArticleService.search(companyId, groupId, folderIds,
1425                            classNameId, articleId, version, title, description, content, type,
1426                            ddmStructureKeys, ddmTemplateKeys, displayDateGT, displayDateLT,
1427                            status, reviewDate, andOperator, start, end, obc);
1428            }
1429    
1430            /**
1431            * Returns the number of web content articles matching the parameters,
1432            * including a keywords parameter for matching with the article's ID, title,
1433            * description, and content, a DDM structure key parameter, and a DDM
1434            * template key parameter.
1435            *
1436            * @param companyId the primary key of the web content article's company
1437            * @param groupId the primary key of the group (optionally <code>0</code>)
1438            * @param folderIds the primary keys of the web content article folders
1439            (optionally {@link java.util.Collections#EMPTY_LIST})
1440            * @param classNameId the primary key of the DDMStructure class if the web
1441            content article is related to a DDM structure, the primary key of
1442            the class name associated with the article, or {@link
1443            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1444            * @param keywords the keywords (space separated), which may occur in the
1445            web content article ID, title, description, or content
1446            (optionally <code>null</code>). If the keywords value is not
1447            <code>null</code>, the search uses the OR operator in connecting
1448            query criteria; otherwise it uses the AND operator.
1449            * @param version the web content article's version (optionally
1450            <code>null</code>)
1451            * @param type the web content article's type (optionally
1452            <code>null</code>)
1453            * @param ddmStructureKey the primary key of the web content article's DDM
1454            structure, if the article is related to a DDM structure, or
1455            <code>null</code> otherwise
1456            * @param ddmTemplateKey the primary key of the web content article's DDM
1457            template (optionally <code>null</code>). If the article is
1458            related to a DDM structure, the template's structure must match
1459            it.
1460            * @param displayDateGT the date after which a matching web content
1461            article's display date must be after (optionally
1462            <code>null</code>)
1463            * @param displayDateLT the date before which a matching web content
1464            article's display date must be before (optionally
1465            <code>null</code>)
1466            * @param status the web content article's workflow status. For more
1467            information see {@link WorkflowConstants} for constants starting
1468            with the "STATUS_" prefix.
1469            * @param reviewDate the web content article's scheduled review date
1470            (optionally <code>null</code>)
1471            * @return the number of matching web content articles
1472            * @throws SystemException if a system exception occurred
1473            */
1474            @Override
1475            public int searchCount(long companyId, long groupId,
1476                    java.util.List<java.lang.Long> folderIds, long classNameId,
1477                    java.lang.String keywords, java.lang.Double version,
1478                    java.lang.String type, java.lang.String ddmStructureKey,
1479                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1480                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
1481                    throws com.liferay.portal.kernel.exception.SystemException {
1482                    return _journalArticleService.searchCount(companyId, groupId,
1483                            folderIds, classNameId, keywords, version, type, ddmStructureKey,
1484                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate);
1485            }
1486    
1487            /**
1488            * Returns the number of web content articles matching the parameters,
1489            * including keyword parameters for article ID, title, description, and
1490            * content, a DDM structure key parameter, a DDM template key parameter, and
1491            * an AND operator switch.
1492            *
1493            * @param companyId the primary key of the web content article's company
1494            * @param groupId the primary key of the group (optionally <code>0</code>)
1495            * @param folderIds the primary keys of the web content article folders
1496            (optionally {@link java.util.Collections#EMPTY_LIST})
1497            * @param classNameId the primary key of the DDMStructure class if the web
1498            content article is related to a DDM structure, the primary key of
1499            the class name associated with the article, or {@link
1500            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1501            * @param articleId the article ID keywords (space separated, optionally
1502            <code>null</code>)
1503            * @param version the web content article's version (optionally
1504            <code>null</code>)
1505            * @param title the title keywords (space separated, optionally
1506            <code>null</code>)
1507            * @param description the description keywords (space separated, optionally
1508            <code>null</code>)
1509            * @param content the content keywords (space separated, optionally
1510            <code>null</code>)
1511            * @param type the web content article's type (optionally
1512            <code>null</code>)
1513            * @param ddmStructureKey the primary key of the web content article's DDM
1514            structure, if the article is related to a DDM structure, or
1515            <code>null</code> otherwise
1516            * @param ddmTemplateKey the primary key of the web content article's DDM
1517            template (optionally <code>null</code>). If the article is
1518            related to a DDM structure, the template's structure must match
1519            it.
1520            * @param displayDateGT the date after which a matching web content
1521            article's display date must be after (optionally
1522            <code>null</code>)
1523            * @param displayDateLT the date before which a matching web content
1524            article's display date must be before (optionally
1525            <code>null</code>)
1526            * @param status the web content article's workflow status. For more
1527            information see {@link WorkflowConstants} for constants starting
1528            with the "STATUS_" prefix.
1529            * @param reviewDate the web content article's scheduled review date
1530            (optionally <code>null</code>)
1531            * @param andOperator whether every field must match its value or keywords,
1532            or just one field must match. Group, folder IDs, class name ID,
1533            and status must all match their values.
1534            * @return the number of matching web content articles
1535            * @throws SystemException if a system exception occurred
1536            */
1537            @Override
1538            public int searchCount(long companyId, long groupId,
1539                    java.util.List<java.lang.Long> folderIds, long classNameId,
1540                    java.lang.String articleId, java.lang.Double version,
1541                    java.lang.String title, java.lang.String description,
1542                    java.lang.String content, java.lang.String type,
1543                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1544                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1545                    java.util.Date reviewDate, boolean andOperator)
1546                    throws com.liferay.portal.kernel.exception.SystemException {
1547                    return _journalArticleService.searchCount(companyId, groupId,
1548                            folderIds, classNameId, articleId, version, title, description,
1549                            content, type, ddmStructureKey, ddmTemplateKey, displayDateGT,
1550                            displayDateLT, status, reviewDate, andOperator);
1551            }
1552    
1553            /**
1554            * Returns the number of web content articles matching the parameters,
1555            * including keyword parameters for article ID, title, description, and
1556            * content, a DDM structure keys (plural) parameter, a DDM template keys
1557            * (plural) parameter, and an AND operator switch.
1558            *
1559            * @param companyId the primary key of the web content article's company
1560            * @param groupId the primary key of the group (optionally <code>0</code>)
1561            * @param folderIds the primary keys of the web content article folders
1562            (optionally {@link java.util.Collections#EMPTY_LIST})
1563            * @param classNameId the primary key of the DDMStructure class if the web
1564            content article is related to a DDM structure, the primary key of
1565            the class name associated with the article, or {@link
1566            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1567            * @param articleId the article ID keywords (space separated, optionally
1568            <code>null</code>)
1569            * @param version the web content article's version (optionally
1570            <code>null</code>)
1571            * @param title the title keywords (space separated, optionally
1572            <code>null</code>)
1573            * @param description the description keywords (space separated, optionally
1574            <code>null</code>)
1575            * @param content the content keywords (space separated, optionally
1576            <code>null</code>)
1577            * @param type the web content article's type (optionally
1578            <code>null</code>)
1579            * @param ddmStructureKeys the primary keys of the web content article's
1580            DDM structures, if the article is related to a DDM structure, or
1581            <code>null</code> otherwise
1582            * @param ddmTemplateKeys the primary keys of the web content article's DDM
1583            templates (originally <code>null</code>). If the articles are
1584            related to a DDM structure, the template's structure must match
1585            it.
1586            * @param displayDateGT the date after which a matching web content
1587            article's display date must be after (optionally
1588            <code>null</code>)
1589            * @param displayDateLT the date before which a matching web content
1590            article's display date must be before (optionally
1591            <code>null</code>)
1592            * @param status the web content article's workflow status. For more
1593            information see {@link WorkflowConstants} for constants starting
1594            with the "STATUS_" prefix.
1595            * @param reviewDate the web content article's scheduled review date
1596            (optionally <code>null</code>)
1597            * @param andOperator whether every field must match its value or keywords,
1598            or just one field must match.  Group, folder IDs, class name ID,
1599            and status must all match their values.
1600            * @return the number of matching web content articles
1601            * @throws SystemException if a system exception occurred
1602            */
1603            @Override
1604            public int searchCount(long companyId, long groupId,
1605                    java.util.List<java.lang.Long> folderIds, long classNameId,
1606                    java.lang.String articleId, java.lang.Double version,
1607                    java.lang.String title, java.lang.String description,
1608                    java.lang.String content, java.lang.String type,
1609                    java.lang.String[] ddmStructureKeys,
1610                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1611                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1612                    boolean andOperator)
1613                    throws com.liferay.portal.kernel.exception.SystemException {
1614                    return _journalArticleService.searchCount(companyId, groupId,
1615                            folderIds, classNameId, articleId, version, title, description,
1616                            content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
1617                            displayDateLT, status, reviewDate, andOperator);
1618            }
1619    
1620            /**
1621            * Subscribes the user to notifications for the web content article matching
1622            * the group, notifying him the instant versions of the article are created,
1623            * deleted, or modified.
1624            *
1625            * @param groupId the primary key of the group
1626            * @throws PortalException if the user did not have permission to subscribe
1627            to the web content article or if a matching user or group could
1628            not be found
1629            * @throws SystemException if a system exception occurred
1630            */
1631            @Override
1632            public void subscribe(long groupId)
1633                    throws com.liferay.portal.kernel.exception.PortalException,
1634                            com.liferay.portal.kernel.exception.SystemException {
1635                    _journalArticleService.subscribe(groupId);
1636            }
1637    
1638            /**
1639            * Unsubscribes the user from notifications for the web content article
1640            * matching the group.
1641            *
1642            * @param groupId the primary key of the group
1643            * @throws PortalException if the user did not have permission to subscribe
1644            to the web content article or if a matching user or subscription
1645            could not be found
1646            * @throws SystemException if a system exception occurred
1647            */
1648            @Override
1649            public void unsubscribe(long groupId)
1650                    throws com.liferay.portal.kernel.exception.PortalException,
1651                            com.liferay.portal.kernel.exception.SystemException {
1652                    _journalArticleService.unsubscribe(groupId);
1653            }
1654    
1655            /**
1656            * Updates the web content article matching the version, replacing its
1657            * folder, title, description, content, and layout UUID.
1658            *
1659            * @param userId the primary key of the user updating the web content
1660            article
1661            * @param groupId the primary key of the web content article's group
1662            * @param folderId the primary key of the web content article folder
1663            * @param articleId the primary key of the web content article
1664            * @param version the web content article's version
1665            * @param titleMap the web content article's locales and localized titles
1666            * @param descriptionMap the web content article's locales and localized
1667            descriptions
1668            * @param content the HTML content wrapped in XML. For more information,
1669            see the content example in the class description for {@link
1670            JournalArticleLocalServiceImpl}.
1671            * @param layoutUuid the unique string identifying the web content
1672            article's display page
1673            * @param serviceContext the service context to be applied. Can set the
1674            modification date, expando bridge attributes, asset category IDs,
1675            asset tag names, asset link entry IDs, workflow actions, the
1676            "defaultLanguageId" and "urlTitle" attributes, and can set
1677            whether to add the default command update for the web content
1678            article. With respect to social activities, by setting the
1679            service context's command to {@link
1680            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1681            is considered a web content update activity; otherwise it is
1682            considered a web content add activity.
1683            * @return the updated web content article
1684            * @throws PortalException if a user with the primary key or a matching web
1685            content article could not be found, or if a portal exception
1686            occurred
1687            * @throws SystemException if a system exception occurred
1688            */
1689            @Override
1690            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1691                    long userId, long groupId, long folderId, java.lang.String articleId,
1692                    double version,
1693                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1694                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1695                    java.lang.String content, java.lang.String layoutUuid,
1696                    com.liferay.portal.service.ServiceContext serviceContext)
1697                    throws com.liferay.portal.kernel.exception.PortalException,
1698                            com.liferay.portal.kernel.exception.SystemException {
1699                    return _journalArticleService.updateArticle(userId, groupId, folderId,
1700                            articleId, version, titleMap, descriptionMap, content, layoutUuid,
1701                            serviceContext);
1702            }
1703    
1704            /**
1705            * Updates the web content article with additional parameters.
1706            *
1707            * @param groupId the primary key of the web content article's group
1708            * @param folderId the primary key of the web content article folder
1709            * @param articleId the primary key of the web content article
1710            * @param version the web content article's version
1711            * @param titleMap the web content article's locales and localized titles
1712            * @param descriptionMap the web content article's locales and localized
1713            descriptions
1714            * @param content the HTML content wrapped in XML. For more information,
1715            see the content example in the class description for {@link
1716            JournalArticleLocalServiceImpl}.
1717            * @param type the structure's type, if the web content article is related
1718            to a DDM structure. For more information, see {@link
1719            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
1720            * @param ddmStructureKey the primary key of the web content article's DDM
1721            structure, if the article is related to a DDM structure, or
1722            <code>null</code> otherwise
1723            * @param ddmTemplateKey the primary key of the web content article's DDM
1724            template (optionally <code>null</code>). If the article is
1725            related to a DDM structure, the template's structure must match
1726            it.
1727            * @param layoutUuid the unique string identifying the web content
1728            article's display page
1729            * @param displayDateMonth the month the web content article is set to
1730            display
1731            * @param displayDateDay the calendar day the web content article is set to
1732            display
1733            * @param displayDateYear the year the web content article is set to
1734            display
1735            * @param displayDateHour the hour the web content article is set to
1736            display
1737            * @param displayDateMinute the minute the web content article is set to
1738            display
1739            * @param expirationDateMonth the month the web content article is set to
1740            expire
1741            * @param expirationDateDay the calendar day the web content article is set
1742            to expire
1743            * @param expirationDateYear the year the web content article is set to
1744            expire
1745            * @param expirationDateHour the hour the web content article is set to
1746            expire
1747            * @param expirationDateMinute the minute the web content article is set to
1748            expire
1749            * @param neverExpire whether the web content article is not set to auto
1750            expire
1751            * @param reviewDateMonth the month the web content article is set for
1752            review
1753            * @param reviewDateDay the calendar day the web content article is set for
1754            review
1755            * @param reviewDateYear the year the web content article is set for review
1756            * @param reviewDateHour the hour the web content article is set for review
1757            * @param reviewDateMinute the minute the web content article is set for
1758            review
1759            * @param neverReview whether the web content article is not set for review
1760            * @param indexable whether the web content is searchable
1761            * @param smallImage whether to update web content article's a small image.
1762            A file must be passed in as <code>smallImageFile</code> value,
1763            otherwise the current small image is deleted.
1764            * @param smallImageURL the web content article's small image URL
1765            (optionally <code>null</code>)
1766            * @param smallFile the web content article's new small image file
1767            (optionally <code>null</code>). Must pass in
1768            <code>smallImage</code> value of <code>true</code> to replace the
1769            article's small image file.
1770            * @param images the web content's images (optionally <code>null</code>)
1771            * @param articleURL the web content article's accessible URL (optionally
1772            <code>null</code>)
1773            * @param serviceContext the service context to be applied. Can set the
1774            modification date, expando bridge attributes, asset category IDs,
1775            asset tag names, asset link entry IDs, workflow actions, the
1776            "defaultLanguageId" and "urlTitle" attributes, and can set
1777            whether to add the default command update for the web content
1778            article. With respect to social activities, by setting the
1779            service context's command to {@link
1780            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1781            is considered a web content update activity; otherwise it is
1782            considered a web content add activity.
1783            * @return the updated web content article
1784            * @throws PortalException if the user did not have permission to update the
1785            web content article, if a user with the primary key or a matching
1786            web content article could not be found, or if a portal exception
1787            occurred
1788            * @throws SystemException if a system exception occurred
1789            */
1790            @Override
1791            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1792                    long groupId, long folderId, java.lang.String articleId,
1793                    double version,
1794                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1795                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1796                    java.lang.String content, java.lang.String type,
1797                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1798                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1799                    int displayDateYear, int displayDateHour, int displayDateMinute,
1800                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1801                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1802                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1803                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
1804                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1805                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
1806                    java.lang.String articleURL,
1807                    com.liferay.portal.service.ServiceContext serviceContext)
1808                    throws com.liferay.portal.kernel.exception.PortalException,
1809                            com.liferay.portal.kernel.exception.SystemException {
1810                    return _journalArticleService.updateArticle(groupId, folderId,
1811                            articleId, version, titleMap, descriptionMap, content, type,
1812                            ddmStructureKey, ddmTemplateKey, layoutUuid, displayDateMonth,
1813                            displayDateDay, displayDateYear, displayDateHour,
1814                            displayDateMinute, expirationDateMonth, expirationDateDay,
1815                            expirationDateYear, expirationDateHour, expirationDateMinute,
1816                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
1817                            reviewDateHour, reviewDateMinute, neverReview, indexable,
1818                            smallImage, smallImageURL, smallFile, images, articleURL,
1819                            serviceContext);
1820            }
1821    
1822            /**
1823            * Updates the web content article matching the version, replacing its
1824            * folder and content.
1825            *
1826            * @param groupId the primary key of the web content article's group
1827            * @param folderId the primary key of the web content article folder
1828            * @param articleId the primary key of the web content article
1829            * @param version the web content article's version
1830            * @param content the HTML content wrapped in XML. For more information,
1831            see the content example in the class description for {@link
1832            JournalArticleLocalServiceImpl}.
1833            * @param serviceContext the service context to be applied. Can set the
1834            modification date, expando bridge attributes, asset category IDs,
1835            asset tag names, asset link entry IDs, workflow actions, the
1836            "defaultLanguageId" and "urlTitle" attributes, and can set
1837            whether to add the default command update for the web content
1838            article. With respect to social activities, by setting the
1839            service context's command to {@link
1840            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1841            is considered a web content update activity; otherwise it is
1842            considered a web content add activity.
1843            * @return the updated web content article
1844            * @throws PortalException if the user did not have permission to update the
1845            web content article, if a user with the primary key or a matching
1846            web content article could not be found, or if a portal exception
1847            occurred
1848            * @throws SystemException if a system exception occurred
1849            */
1850            @Override
1851            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1852                    long groupId, long folderId, java.lang.String articleId,
1853                    double version, java.lang.String content,
1854                    com.liferay.portal.service.ServiceContext serviceContext)
1855                    throws com.liferay.portal.kernel.exception.PortalException,
1856                            com.liferay.portal.kernel.exception.SystemException {
1857                    return _journalArticleService.updateArticle(groupId, folderId,
1858                            articleId, version, content, serviceContext);
1859            }
1860    
1861            /**
1862            * @deprecated As of 6.2.0, replaced by {@link
1863            #updateArticleTranslation(long, String, double, Locale,
1864            String, String, String, Map, ServiceContext)}
1865            */
1866            @Override
1867            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1868                    long groupId, java.lang.String articleId, double version,
1869                    java.util.Locale locale, java.lang.String title,
1870                    java.lang.String description, java.lang.String content,
1871                    java.util.Map<java.lang.String, byte[]> images)
1872                    throws com.liferay.portal.kernel.exception.PortalException,
1873                            com.liferay.portal.kernel.exception.SystemException {
1874                    return _journalArticleService.updateArticleTranslation(groupId,
1875                            articleId, version, locale, title, description, content, images);
1876            }
1877    
1878            /**
1879            * Updates the translation of the web content article.
1880            *
1881            * @param groupId the primary key of the web content article's group
1882            * @param articleId the primary key of the web content article
1883            * @param version the web content article's version
1884            * @param locale the locale of the web content article's display template
1885            * @param title the translated web content article title
1886            * @param description the translated web content article description
1887            * @param content the HTML content wrapped in XML. For more information,
1888            see the content example in the class description for {@link
1889            JournalArticleLocalServiceImpl}.
1890            * @param images the web content's images
1891            * @param serviceContext the service context to be applied. Can set the
1892            modification date and "urlTitle" attribute for the web content
1893            article.
1894            * @return the updated web content article
1895            * @throws PortalException if the user did not have permission to update the
1896            web content article, if a user with the primary key or a matching
1897            web content article could not be found, or if a portal exception
1898            occurred
1899            * @throws SystemException if a system exception occurred
1900            */
1901            @Override
1902            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1903                    long groupId, java.lang.String articleId, double version,
1904                    java.util.Locale locale, java.lang.String title,
1905                    java.lang.String description, java.lang.String content,
1906                    java.util.Map<java.lang.String, byte[]> images,
1907                    com.liferay.portal.service.ServiceContext serviceContext)
1908                    throws com.liferay.portal.kernel.exception.PortalException,
1909                            com.liferay.portal.kernel.exception.SystemException {
1910                    return _journalArticleService.updateArticleTranslation(groupId,
1911                            articleId, version, locale, title, description, content, images,
1912                            serviceContext);
1913            }
1914    
1915            /**
1916            * Updates the web content article matching the group, article ID, and
1917            * version, replacing its content.
1918            *
1919            * @param groupId the primary key of the web content article's group
1920            * @param articleId the primary key of the web content article
1921            * @param version the web content article's version
1922            * @param content the HTML content wrapped in XML. For more information,
1923            see the content example in the class description for {@link
1924            JournalArticleLocalServiceImpl}.
1925            * @return the updated web content article
1926            * @throws PortalException if the user did not have permission to update the
1927            web content article or if a matching web content article could
1928            not be found
1929            * @throws SystemException if a system exception occurred
1930            */
1931            @Override
1932            public com.liferay.portlet.journal.model.JournalArticle updateContent(
1933                    long groupId, java.lang.String articleId, double version,
1934                    java.lang.String content)
1935                    throws com.liferay.portal.kernel.exception.PortalException,
1936                            com.liferay.portal.kernel.exception.SystemException {
1937                    return _journalArticleService.updateContent(groupId, articleId,
1938                            version, content);
1939            }
1940    
1941            /**
1942            * Updates the workflow status of the web content article matching the
1943            * group, article ID, and version.
1944            *
1945            * @param groupId the primary key of the web content article's group
1946            * @param articleId the primary key of the web content article
1947            * @param version the web content article's version
1948            * @param status the web content article's workflow status. For more
1949            information see {@link WorkflowConstants} for constants starting
1950            with the "STATUS_" prefix.
1951            * @param articleURL the web content article's accessible URL
1952            * @param serviceContext the service context to be applied. Can set the
1953            modification date, portlet preferences, and can set whether to
1954            add the default command update for the web content article.
1955            * @return the updated web content article
1956            * @throws PortalException if the user did not have permission to update the
1957            web content article, if a matching web content article could not
1958            be found, or if a portal exception occurred
1959            * @throws SystemException if a system exception occurred
1960            */
1961            @Override
1962            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
1963                    long groupId, java.lang.String articleId, double version, int status,
1964                    java.lang.String articleURL,
1965                    com.liferay.portal.service.ServiceContext serviceContext)
1966                    throws com.liferay.portal.kernel.exception.PortalException,
1967                            com.liferay.portal.kernel.exception.SystemException {
1968                    return _journalArticleService.updateStatus(groupId, articleId, version,
1969                            status, articleURL, serviceContext);
1970            }
1971    
1972            /**
1973             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1974             */
1975            public JournalArticleService getWrappedJournalArticleService() {
1976                    return _journalArticleService;
1977            }
1978    
1979            /**
1980             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1981             */
1982            public void setWrappedJournalArticleService(
1983                    JournalArticleService journalArticleService) {
1984                    _journalArticleService = journalArticleService;
1985            }
1986    
1987            @Override
1988            public JournalArticleService getWrappedService() {
1989                    return _journalArticleService;
1990            }
1991    
1992            @Override
1993            public void setWrappedService(JournalArticleService journalArticleService) {
1994                    _journalArticleService = journalArticleService;
1995            }
1996    
1997            private JournalArticleService _journalArticleService;
1998    }