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