001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import 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            /**
1123            * Moves all versions of the the web content article matching the group and
1124            * article ID to the folder.
1125            *
1126            * @param groupId the primary key of the web content article's group
1127            * @param articleId the primary key of the web content article
1128            * @param newFolderId the primary key of the web content article's new
1129            folder
1130            * @throws PortalException if the user did not have permission to update any
1131            one of the versions of the web content article or if any one of
1132            the versions of the web content article could not be moved to the
1133            folder
1134            * @throws SystemException if a system exception occurred
1135            */
1136            @Override
1137            public void moveArticle(long groupId, java.lang.String articleId,
1138                    long newFolderId)
1139                    throws com.liferay.portal.kernel.exception.PortalException,
1140                            com.liferay.portal.kernel.exception.SystemException {
1141                    _journalArticleService.moveArticle(groupId, articleId, newFolderId);
1142            }
1143    
1144            /**
1145            * Moves the web content article from the Recycle Bin to the folder.
1146            *
1147            * @param groupId the primary key of the web content article's group
1148            * @param resourcePrimKey the primary key of the resource instance
1149            * @param newFolderId the primary key of the web content article's new
1150            folder
1151            * @param serviceContext the service context to be applied. Can set the
1152            modification date, portlet preferences, and can set whether to
1153            add the default command update for the web content article. With
1154            respect to social activities, by setting the service context's
1155            command to {@link
1156            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1157            is considered a web content update activity; otherwise it is
1158            considered a web content add activity.
1159            * @return the updated web content article, which was moved from the Recycle
1160            Bin to the folder
1161            * @throws PortalException if the user did not have permission to view or
1162            update the web content article, if a matching trashed web content
1163            article could not be found, or if a portal exception occurred
1164            * @throws SystemException if a system exception occurred
1165            */
1166            @Override
1167            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1168                    long groupId, long resourcePrimKey, long newFolderId,
1169                    com.liferay.portal.service.ServiceContext serviceContext)
1170                    throws com.liferay.portal.kernel.exception.PortalException,
1171                            com.liferay.portal.kernel.exception.SystemException {
1172                    return _journalArticleService.moveArticleFromTrash(groupId,
1173                            resourcePrimKey, newFolderId, serviceContext);
1174            }
1175    
1176            /**
1177            * Moves the web content article from the Recycle Bin to the folder.
1178            *
1179            * @param groupId the primary key of the web content article's group
1180            * @param articleId the primary key of the web content article
1181            * @param newFolderId the primary key of the web content article's new
1182            folder
1183            * @param serviceContext the service context to be applied. Can set the
1184            modification date, portlet preferences, and can set whether to
1185            add the default command update for the web content article. With
1186            respect to social activities, by setting the service context's
1187            command to {@link
1188            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1189            is considered a web content update activity; otherwise it is
1190            considered a web content add activity.
1191            * @return the updated web content article, which was moved from the Recycle
1192            Bin to the folder
1193            * @throws PortalException if the user did not have permission to view or
1194            update the web content article, if a trashed web content article
1195            with the primary key could not be found, or if a portal exception
1196            occurred
1197            * @throws SystemException if a system exception occurred
1198            */
1199            @Override
1200            public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash(
1201                    long groupId, java.lang.String articleId, long newFolderId,
1202                    com.liferay.portal.service.ServiceContext serviceContext)
1203                    throws com.liferay.portal.kernel.exception.PortalException,
1204                            com.liferay.portal.kernel.exception.SystemException {
1205                    return _journalArticleService.moveArticleFromTrash(groupId, articleId,
1206                            newFolderId, serviceContext);
1207            }
1208    
1209            /**
1210            * Moves the latest version of the web content article matching the group
1211            * and article ID to the recycle bin.
1212            *
1213            * @param groupId the primary key of the web content article's group
1214            * @param articleId the primary key of the web content article
1215            * @return the moved web content article or <code>null</code> if no matching
1216            article was found
1217            * @throws PortalException if the user did not have permission to move the
1218            article to the Recycle Bin or if a portal exception occurred
1219            * @throws SystemException if a system exception occurred
1220            */
1221            @Override
1222            public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
1223                    long groupId, java.lang.String articleId)
1224                    throws com.liferay.portal.kernel.exception.PortalException,
1225                            com.liferay.portal.kernel.exception.SystemException {
1226                    return _journalArticleService.moveArticleToTrash(groupId, articleId);
1227            }
1228    
1229            /**
1230            * Removes the web content of all the company's web content articles
1231            * matching the language.
1232            *
1233            * @param companyId the primary key of the web content article's company
1234            * @param languageId the primary key of the language locale to remove
1235            * @throws PortalException if the user did not have permission to update any
1236            one of the the web content articles or if web content matching
1237            the language could not be found for any one of the articles
1238            * @throws SystemException if a system exception occurred
1239            */
1240            @Override
1241            public void removeArticleLocale(long companyId, java.lang.String languageId)
1242                    throws com.liferay.portal.kernel.exception.PortalException,
1243                            com.liferay.portal.kernel.exception.SystemException {
1244                    _journalArticleService.removeArticleLocale(companyId, languageId);
1245            }
1246    
1247            /**
1248            * Removes the web content of the web content article matching the group,
1249            * article ID, and version, and language.
1250            *
1251            * @param groupId the primary key of the web content article's group
1252            * @param articleId the primary key of the web content article
1253            * @param version the web content article's version
1254            * @param languageId the primary key of the language locale to remove
1255            * @return the updated web content article with the locale removed
1256            * @throws PortalException if the user did not have permission to update the
1257            web content article or if a matching web content article could
1258            not be found
1259            * @throws SystemException if a system exception occurred
1260            */
1261            @Override
1262            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1263                    long groupId, java.lang.String articleId, double version,
1264                    java.lang.String languageId)
1265                    throws com.liferay.portal.kernel.exception.PortalException,
1266                            com.liferay.portal.kernel.exception.SystemException {
1267                    return _journalArticleService.removeArticleLocale(groupId, articleId,
1268                            version, languageId);
1269            }
1270    
1271            /**
1272            * Restores the web content article associated with the resource primary key
1273            * from the Recycle Bin.
1274            *
1275            * @param resourcePrimKey the primary key of the resource instance
1276            * @throws PortalException if a matching web content article could not be
1277            found in the Recycle Bin, if the user did not have permission to
1278            view or restore the article, or if a portal exception occurred
1279            * @throws SystemException if a system exception occurred
1280            */
1281            @Override
1282            public void restoreArticleFromTrash(long resourcePrimKey)
1283                    throws com.liferay.portal.kernel.exception.PortalException,
1284                            com.liferay.portal.kernel.exception.SystemException {
1285                    _journalArticleService.restoreArticleFromTrash(resourcePrimKey);
1286            }
1287    
1288            /**
1289            * Restores the web content article from the Recycle Bin.
1290            *
1291            * @param groupId the primary key of the web content article's group
1292            * @param articleId the primary key of the web content article
1293            * @throws PortalException if the web content article with the primary key
1294            could not be found in the Recycle Bin, if the user did not have
1295            permission to restore the article, or if a portal exception
1296            occurred
1297            * @throws SystemException if a system exception occurred
1298            */
1299            @Override
1300            public void restoreArticleFromTrash(long groupId, java.lang.String articleId)
1301                    throws com.liferay.portal.kernel.exception.PortalException,
1302                            com.liferay.portal.kernel.exception.SystemException {
1303                    _journalArticleService.restoreArticleFromTrash(groupId, articleId);
1304            }
1305    
1306            @Override
1307            public com.liferay.portal.kernel.search.Hits search(long groupId,
1308                    long creatorUserId, int status, int start, int end)
1309                    throws com.liferay.portal.kernel.exception.PortalException,
1310                            com.liferay.portal.kernel.exception.SystemException {
1311                    return _journalArticleService.search(groupId, creatorUserId, status,
1312                            start, end);
1313            }
1314    
1315            /**
1316            * Returns an ordered range of all the web content articles matching the
1317            * parameters, including a keywords parameter for matching with the
1318            * article's ID, title, description, and content, a DDM structure key
1319            * parameter, and a DDM template key parameter.
1320            *
1321            * <p>
1322            * Useful when paginating results. Returns a maximum of <code>end -
1323            * start</code> instances. <code>start</code> and <code>end</code> are not
1324            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1325            * refers to the first result in the set. Setting both <code>start</code>
1326            * and <code>end</code> to {@link
1327            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1328            * result set.
1329            * </p>
1330            *
1331            * @param companyId the primary key of the web content article's company
1332            * @param groupId the primary key of the group (optionally <code>0</code>)
1333            * @param folderIds the primary keys of the web content article folders
1334            (optionally {@link java.util.Collections#EMPTY_LIST})
1335            * @param classNameId the primary key of the DDMStructure class if the web
1336            content article is related to a DDM structure, the primary key of
1337            the class name associated with the article, or {@link
1338            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1339            * @param keywords the keywords (space separated), which may occur in the
1340            web content article ID, title, description, or content
1341            (optionally <code>null</code>). If the keywords value is not
1342            <code>null</code>, the search uses the OR operator in connecting
1343            query criteria; otherwise it uses the AND operator.
1344            * @param version the web content article's version (optionally
1345            <code>null</code>)
1346            * @param type the web content article's type (optionally
1347            <code>null</code>)
1348            * @param ddmStructureKey the primary key of the web content article's DDM
1349            structure, if the article is related to a DDM structure, or
1350            <code>null</code> otherwise
1351            * @param ddmTemplateKey the primary key of the web content article's DDM
1352            template (optionally <code>null</code>). If the article is
1353            related to a DDM structure, the template's structure must match
1354            it.
1355            * @param displayDateGT the date after which a matching web content
1356            article's display date must be after (optionally
1357            <code>null</code>)
1358            * @param displayDateLT the date before which a matching web content
1359            article's display date must be before (optionally
1360            <code>null</code>)
1361            * @param status the web content article's workflow status. For more
1362            information see {@link WorkflowConstants} for constants starting
1363            with the "STATUS_" prefix.
1364            * @param reviewDate the web content article's scheduled review date
1365            (optionally <code>null</code>)
1366            * @param start the lower bound of the range of web content articles to
1367            return
1368            * @param end the upper bound of the range of web content articles to
1369            return (not inclusive)
1370            * @param obc the comparator to order the web content articles
1371            * @return the range of matching web content articles ordered by the
1372            comparator
1373            * @throws SystemException if a system exception occurred
1374            */
1375            @Override
1376            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1377                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1378                    long classNameId, java.lang.String keywords, java.lang.Double version,
1379                    java.lang.String type, java.lang.String ddmStructureKey,
1380                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1381                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1382                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1383                    throws com.liferay.portal.kernel.exception.SystemException {
1384                    return _journalArticleService.search(companyId, groupId, folderIds,
1385                            classNameId, keywords, version, type, ddmStructureKey,
1386                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate,
1387                            start, end, obc);
1388            }
1389    
1390            /**
1391            * Returns an ordered range of all the web content articles matching the
1392            * parameters, including keyword parameters for article ID, title,
1393            * description, and content, a DDM structure key parameter, a DDM template
1394            * key parameter, and an AND operator switch.
1395            *
1396            * <p>
1397            * Useful when paginating results. Returns a maximum of <code>end -
1398            * start</code> instances. <code>start</code> and <code>end</code> are not
1399            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1400            * refers to the first result in the set. Setting both <code>start</code>
1401            * and <code>end</code> to {@link
1402            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1403            * result set.
1404            * </p>
1405            *
1406            * @param companyId the primary key of the web content article's company
1407            * @param groupId the primary key of the group (optionally <code>0</code>)
1408            * @param folderIds the primary keys of the web content article folders
1409            (optionally {@link java.util.Collections#EMPTY_LIST})
1410            * @param classNameId the primary key of the DDMStructure class if the web
1411            content article is related to a DDM structure, the primary key of
1412            the class name associated with the article, or {@link
1413            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1414            * @param articleId the article ID keywords (space separated, optionally
1415            <code>null</code>)
1416            * @param version the web content article's version (optionally
1417            <code>null</code>)
1418            * @param title the title keywords (space separated, optionally
1419            <code>null</code>)
1420            * @param description the description keywords (space separated, optionally
1421            <code>null</code>)
1422            * @param content the content keywords (space separated, optionally
1423            <code>null</code>)
1424            * @param type the web content article's type (optionally
1425            <code>null</code>)
1426            * @param ddmStructureKey the primary key of the web content article's DDM
1427            structure, if the article is related to a DDM structure, or
1428            <code>null</code> otherwise
1429            * @param ddmTemplateKey the primary key of the web content article's DDM
1430            template (optionally <code>null</code>). If the article is
1431            related to a DDM structure, the template's structure must match
1432            it.
1433            * @param displayDateGT the date after which a matching web content
1434            article's display date must be after (optionally
1435            <code>null</code>)
1436            * @param displayDateLT the date before which a matching web content
1437            article's display date must be before (optionally
1438            <code>null</code>)
1439            * @param status the web content article's workflow status. For more
1440            information see {@link WorkflowConstants} for constants starting
1441            with the "STATUS_" prefix.
1442            * @param reviewDate the web content article's scheduled review date
1443            (optionally <code>null</code>)
1444            * @param andOperator whether every field must match its value or keywords,
1445            or just one field must match. Company, group, folder IDs, class
1446            name ID, and status must all match their values.
1447            * @param start the lower bound of the range of web content articles to
1448            return
1449            * @param end the upper bound of the range of web content articles to
1450            return (not inclusive)
1451            * @param obc the comparator to order the web content articles
1452            * @return the range of matching web content articles ordered by the
1453            comparator
1454            * @throws SystemException if a system exception occurred
1455            */
1456            @Override
1457            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1458                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1459                    long classNameId, java.lang.String articleId, java.lang.Double version,
1460                    java.lang.String title, java.lang.String description,
1461                    java.lang.String content, java.lang.String type,
1462                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1463                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1464                    java.util.Date reviewDate, boolean andOperator, int start, int end,
1465                    com.liferay.portal.kernel.util.OrderByComparator obc)
1466                    throws com.liferay.portal.kernel.exception.SystemException {
1467                    return _journalArticleService.search(companyId, groupId, folderIds,
1468                            classNameId, articleId, version, title, description, content, type,
1469                            ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT,
1470                            status, reviewDate, andOperator, start, end, obc);
1471            }
1472    
1473            /**
1474            * Returns an ordered range of all the web content articles matching the
1475            * parameters, including keyword parameters for article ID, title,
1476            * description, and content, a DDM structure keys (plural) parameter, a DDM
1477            * template keys (plural) parameter, and an AND operator switch.
1478            *
1479            * <p>
1480            * Useful when paginating results. Returns a maximum of <code>end -
1481            * start</code> instances. <code>start</code> and <code>end</code> are not
1482            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1483            * refers to the first result in the set. Setting both <code>start</code>
1484            * and <code>end</code> to {@link
1485            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1486            * result set.
1487            * </p>
1488            *
1489            * @param companyId the primary key of the web content article's company
1490            * @param groupId the primary key of the group (optionally <code>0</code>)
1491            * @param folderIds the primary keys of the web content article folders
1492            (optionally {@link java.util.Collections#EMPTY_LIST})
1493            * @param classNameId the primary key of the DDMStructure class if the web
1494            content article is related to a DDM structure, the primary key of
1495            the class name associated with the article, or {@link
1496            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1497            * @param articleId the article ID keywords (space separated, optionally
1498            <code>null</code>)
1499            * @param version the web content article's version (optionally
1500            <code>null</code>)
1501            * @param title the title keywords (space separated, optionally
1502            <code>null</code>)
1503            * @param description the description keywords (space separated, optionally
1504            <code>null</code>)
1505            * @param content the content keywords (space separated, optionally
1506            <code>null</code>)
1507            * @param type the web content article's type (optionally
1508            <code>null</code>)
1509            * @param ddmStructureKeys the primary keys of the web content article's
1510            DDM structures, if the article is related to a DDM structure, or
1511            <code>null</code> otherwise
1512            * @param ddmTemplateKeys the primary keys of the web content article's DDM
1513            templates (originally <code>null</code>). If the articles are
1514            related to a DDM structure, the template's structure must match
1515            it.
1516            * @param displayDateGT the date after which a matching web content
1517            article's display date must be after (optionally
1518            <code>null</code>)
1519            * @param displayDateLT the date before which a matching web content
1520            article's display date must be before (optionally
1521            <code>null</code>)
1522            * @param status the web content article's workflow status. For more
1523            information see {@link WorkflowConstants} for constants starting
1524            with the "STATUS_" prefix.
1525            * @param reviewDate the web content article's scheduled review date
1526            (optionally <code>null</code>)
1527            * @param andOperator whether every field must match its value or keywords,
1528            or just one field must match.  Company, group, folder IDs, class
1529            name ID, and status must all match their values.
1530            * @param start the lower bound of the range of web content articles to
1531            return
1532            * @param end the upper bound of the range of web content articles to
1533            return (not inclusive)
1534            * @param obc the comparator to order the web content articles
1535            * @return the range of matching web content articles ordered by the
1536            comparator
1537            * @throws SystemException if a system exception occurred
1538            */
1539            @Override
1540            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1541                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
1542                    long classNameId, java.lang.String articleId, java.lang.Double version,
1543                    java.lang.String title, java.lang.String description,
1544                    java.lang.String content, java.lang.String type,
1545                    java.lang.String[] ddmStructureKeys,
1546                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1547                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1548                    boolean andOperator, int start, int end,
1549                    com.liferay.portal.kernel.util.OrderByComparator obc)
1550                    throws com.liferay.portal.kernel.exception.SystemException {
1551                    return _journalArticleService.search(companyId, groupId, folderIds,
1552                            classNameId, articleId, version, title, description, content, type,
1553                            ddmStructureKeys, ddmTemplateKeys, displayDateGT, displayDateLT,
1554                            status, reviewDate, andOperator, start, end, obc);
1555            }
1556    
1557            /**
1558            * Returns the number of web content articles matching the parameters,
1559            * including a keywords parameter for matching with the article's ID, title,
1560            * description, and content, a DDM structure key parameter, and a DDM
1561            * template key parameter.
1562            *
1563            * @param companyId the primary key of the web content article's company
1564            * @param groupId the primary key of the group (optionally <code>0</code>)
1565            * @param folderIds the primary keys of the web content article folders
1566            (optionally {@link java.util.Collections#EMPTY_LIST})
1567            * @param classNameId the primary key of the DDMStructure class if the web
1568            content article is related to a DDM structure, the primary key of
1569            the class name associated with the article, or {@link
1570            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1571            * @param keywords the keywords (space separated), which may occur in the
1572            web content article ID, title, description, or content
1573            (optionally <code>null</code>). If the keywords value is not
1574            <code>null</code>, the search uses the OR operator in connecting
1575            query criteria; otherwise it uses the AND operator.
1576            * @param version the web content article's version (optionally
1577            <code>null</code>)
1578            * @param type the web content article's type (optionally
1579            <code>null</code>)
1580            * @param ddmStructureKey the primary key of the web content article's DDM
1581            structure, if the article is related to a DDM structure, or
1582            <code>null</code> otherwise
1583            * @param ddmTemplateKey the primary key of the web content article's DDM
1584            template (optionally <code>null</code>). If the article is
1585            related to a DDM structure, the template's structure must match
1586            it.
1587            * @param displayDateGT the date after which a matching web content
1588            article's display date must be after (optionally
1589            <code>null</code>)
1590            * @param displayDateLT the date before which a matching web content
1591            article's display date must be before (optionally
1592            <code>null</code>)
1593            * @param status the web content article's workflow status. For more
1594            information see {@link WorkflowConstants} for constants starting
1595            with the "STATUS_" prefix.
1596            * @param reviewDate the web content article's scheduled review date
1597            (optionally <code>null</code>)
1598            * @return the number of matching web content articles
1599            * @throws SystemException if a system exception occurred
1600            */
1601            @Override
1602            public int searchCount(long companyId, long groupId,
1603                    java.util.List<java.lang.Long> folderIds, long classNameId,
1604                    java.lang.String keywords, java.lang.Double version,
1605                    java.lang.String type, java.lang.String ddmStructureKey,
1606                    java.lang.String ddmTemplateKey, java.util.Date displayDateGT,
1607                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
1608                    throws com.liferay.portal.kernel.exception.SystemException {
1609                    return _journalArticleService.searchCount(companyId, groupId,
1610                            folderIds, classNameId, keywords, version, type, ddmStructureKey,
1611                            ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate);
1612            }
1613    
1614            /**
1615            * Returns the number of web content articles matching the parameters,
1616            * including keyword parameters for article ID, title, description, and
1617            * content, a DDM structure key parameter, a DDM template key parameter, and
1618            * an AND operator switch.
1619            *
1620            * @param companyId the primary key of the web content article's company
1621            * @param groupId the primary key of the group (optionally <code>0</code>)
1622            * @param folderIds the primary keys of the web content article folders
1623            (optionally {@link java.util.Collections#EMPTY_LIST})
1624            * @param classNameId the primary key of the DDMStructure class if the web
1625            content article is related to a DDM structure, the primary key of
1626            the class name associated with the article, or {@link
1627            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1628            * @param articleId the article ID keywords (space separated, optionally
1629            <code>null</code>)
1630            * @param version the web content article's version (optionally
1631            <code>null</code>)
1632            * @param title the title keywords (space separated, optionally
1633            <code>null</code>)
1634            * @param description the description keywords (space separated, optionally
1635            <code>null</code>)
1636            * @param content the content keywords (space separated, optionally
1637            <code>null</code>)
1638            * @param type the web content article's type (optionally
1639            <code>null</code>)
1640            * @param ddmStructureKey the primary key of the web content article's DDM
1641            structure, if the article is related to a DDM structure, or
1642            <code>null</code> otherwise
1643            * @param ddmTemplateKey the primary key of the web content article's DDM
1644            template (optionally <code>null</code>). If the article is
1645            related to a DDM structure, the template's structure must match
1646            it.
1647            * @param displayDateGT the date after which a matching web content
1648            article's display date must be after (optionally
1649            <code>null</code>)
1650            * @param displayDateLT the date before which a matching web content
1651            article's display date must be before (optionally
1652            <code>null</code>)
1653            * @param status the web content article's workflow status. For more
1654            information see {@link WorkflowConstants} for constants starting
1655            with the "STATUS_" prefix.
1656            * @param reviewDate the web content article's scheduled review date
1657            (optionally <code>null</code>)
1658            * @param andOperator whether every field must match its value or keywords,
1659            or just one field must match. Group, folder IDs, class name ID,
1660            and status must all match their values.
1661            * @return the number of matching web content articles
1662            * @throws SystemException if a system exception occurred
1663            */
1664            @Override
1665            public int searchCount(long companyId, long groupId,
1666                    java.util.List<java.lang.Long> folderIds, long classNameId,
1667                    java.lang.String articleId, java.lang.Double version,
1668                    java.lang.String title, java.lang.String description,
1669                    java.lang.String content, java.lang.String type,
1670                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1671                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1672                    java.util.Date reviewDate, boolean andOperator)
1673                    throws com.liferay.portal.kernel.exception.SystemException {
1674                    return _journalArticleService.searchCount(companyId, groupId,
1675                            folderIds, classNameId, articleId, version, title, description,
1676                            content, type, ddmStructureKey, ddmTemplateKey, displayDateGT,
1677                            displayDateLT, status, reviewDate, andOperator);
1678            }
1679    
1680            /**
1681            * Returns the number of web content articles matching the parameters,
1682            * including keyword parameters for article ID, title, description, and
1683            * content, a DDM structure keys (plural) parameter, a DDM template keys
1684            * (plural) parameter, and an AND operator switch.
1685            *
1686            * @param companyId the primary key of the web content article's company
1687            * @param groupId the primary key of the group (optionally <code>0</code>)
1688            * @param folderIds the primary keys of the web content article folders
1689            (optionally {@link java.util.Collections#EMPTY_LIST})
1690            * @param classNameId the primary key of the DDMStructure class if the web
1691            content article is related to a DDM structure, the primary key of
1692            the class name associated with the article, or {@link
1693            JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise
1694            * @param articleId the article ID keywords (space separated, optionally
1695            <code>null</code>)
1696            * @param version the web content article's version (optionally
1697            <code>null</code>)
1698            * @param title the title keywords (space separated, optionally
1699            <code>null</code>)
1700            * @param description the description keywords (space separated, optionally
1701            <code>null</code>)
1702            * @param content the content keywords (space separated, optionally
1703            <code>null</code>)
1704            * @param type the web content article's type (optionally
1705            <code>null</code>)
1706            * @param ddmStructureKeys the primary keys of the web content article's
1707            DDM structures, if the article is related to a DDM structure, or
1708            <code>null</code> otherwise
1709            * @param ddmTemplateKeys the primary keys of the web content article's DDM
1710            templates (originally <code>null</code>). If the articles are
1711            related to a DDM structure, the template's structure must match
1712            it.
1713            * @param displayDateGT the date after which a matching web content
1714            article's display date must be after (optionally
1715            <code>null</code>)
1716            * @param displayDateLT the date before which a matching web content
1717            article's display date must be before (optionally
1718            <code>null</code>)
1719            * @param status the web content article's workflow status. For more
1720            information see {@link WorkflowConstants} for constants starting
1721            with the "STATUS_" prefix.
1722            * @param reviewDate the web content article's scheduled review date
1723            (optionally <code>null</code>)
1724            * @param andOperator whether every field must match its value or keywords,
1725            or just one field must match.  Group, folder IDs, class name ID,
1726            and status must all match their values.
1727            * @return the number of matching web content articles
1728            * @throws SystemException if a system exception occurred
1729            */
1730            @Override
1731            public int searchCount(long companyId, long groupId,
1732                    java.util.List<java.lang.Long> folderIds, long classNameId,
1733                    java.lang.String articleId, java.lang.Double version,
1734                    java.lang.String title, java.lang.String description,
1735                    java.lang.String content, java.lang.String type,
1736                    java.lang.String[] ddmStructureKeys,
1737                    java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT,
1738                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1739                    boolean andOperator)
1740                    throws com.liferay.portal.kernel.exception.SystemException {
1741                    return _journalArticleService.searchCount(companyId, groupId,
1742                            folderIds, classNameId, articleId, version, title, description,
1743                            content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
1744                            displayDateLT, status, reviewDate, andOperator);
1745            }
1746    
1747            /**
1748            * Subscribes the user to notifications for the web content article matching
1749            * the group, notifying him the instant versions of the article are created,
1750            * deleted, or modified.
1751            *
1752            * @param groupId the primary key of the group
1753            * @throws PortalException if the user did not have permission to subscribe
1754            to the web content article or if a matching user or group could
1755            not be found
1756            * @throws SystemException if a system exception occurred
1757            */
1758            @Override
1759            public void subscribe(long groupId)
1760                    throws com.liferay.portal.kernel.exception.PortalException,
1761                            com.liferay.portal.kernel.exception.SystemException {
1762                    _journalArticleService.subscribe(groupId);
1763            }
1764    
1765            /**
1766            * Unsubscribes the user from notifications for the web content article
1767            * matching the group.
1768            *
1769            * @param groupId the primary key of the group
1770            * @throws PortalException if the user did not have permission to subscribe
1771            to the web content article or if a matching user or subscription
1772            could not be found
1773            * @throws SystemException if a system exception occurred
1774            */
1775            @Override
1776            public void unsubscribe(long groupId)
1777                    throws com.liferay.portal.kernel.exception.PortalException,
1778                            com.liferay.portal.kernel.exception.SystemException {
1779                    _journalArticleService.unsubscribe(groupId);
1780            }
1781    
1782            /**
1783            * Updates the web content article matching the version, replacing its
1784            * folder, title, description, content, and layout UUID.
1785            *
1786            * @param userId the primary key of the user updating the web content
1787            article
1788            * @param groupId the primary key of the web content article's group
1789            * @param folderId the primary key of the web content article folder
1790            * @param articleId the primary key of the web content article
1791            * @param version the web content article's version
1792            * @param titleMap the web content article's locales and localized titles
1793            * @param descriptionMap the web content article's locales and localized
1794            descriptions
1795            * @param content the HTML content wrapped in XML. For more information,
1796            see the content example in the class description for {@link
1797            JournalArticleLocalServiceImpl}.
1798            * @param layoutUuid the unique string identifying the web content
1799            article's display page
1800            * @param serviceContext the service context to be applied. Can set the
1801            modification date, expando bridge attributes, asset category IDs,
1802            asset tag names, asset link entry IDs, workflow actions, the
1803            "defaultLanguageId" and "urlTitle" attributes, and can set
1804            whether to add the default command update for the web content
1805            article. With respect to social activities, by setting the
1806            service context's command to {@link
1807            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1808            is considered a web content update activity; otherwise it is
1809            considered a web content add activity.
1810            * @return the updated web content article
1811            * @throws PortalException if a user with the primary key or a matching web
1812            content article could not be found, or if a portal exception
1813            occurred
1814            * @throws SystemException if a system exception occurred
1815            */
1816            @Override
1817            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1818                    long userId, long groupId, long folderId, java.lang.String articleId,
1819                    double version,
1820                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1821                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1822                    java.lang.String content, java.lang.String layoutUuid,
1823                    com.liferay.portal.service.ServiceContext serviceContext)
1824                    throws com.liferay.portal.kernel.exception.PortalException,
1825                            com.liferay.portal.kernel.exception.SystemException {
1826                    return _journalArticleService.updateArticle(userId, groupId, folderId,
1827                            articleId, version, titleMap, descriptionMap, content, layoutUuid,
1828                            serviceContext);
1829            }
1830    
1831            /**
1832            * Updates the web content article with additional parameters.
1833            *
1834            * @param groupId the primary key of the web content article's group
1835            * @param folderId the primary key of the web content article folder
1836            * @param articleId the primary key of the web content article
1837            * @param version the web content article's version
1838            * @param titleMap the web content article's locales and localized titles
1839            * @param descriptionMap the web content article's locales and localized
1840            descriptions
1841            * @param content the HTML content wrapped in XML. For more information,
1842            see the content example in the class description for {@link
1843            JournalArticleLocalServiceImpl}.
1844            * @param type the structure's type, if the web content article is related
1845            to a DDM structure. For more information, see {@link
1846            com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}.
1847            * @param ddmStructureKey the primary key of the web content article's DDM
1848            structure, if the article is related to a DDM structure, or
1849            <code>null</code> otherwise
1850            * @param ddmTemplateKey the primary key of the web content article's DDM
1851            template (optionally <code>null</code>). If the article is
1852            related to a DDM structure, the template's structure must match
1853            it.
1854            * @param layoutUuid the unique string identifying the web content
1855            article's display page
1856            * @param displayDateMonth the month the web content article is set to
1857            display
1858            * @param displayDateDay the calendar day the web content article is set to
1859            display
1860            * @param displayDateYear the year the web content article is set to
1861            display
1862            * @param displayDateHour the hour the web content article is set to
1863            display
1864            * @param displayDateMinute the minute the web content article is set to
1865            display
1866            * @param expirationDateMonth the month the web content article is set to
1867            expire
1868            * @param expirationDateDay the calendar day the web content article is set
1869            to expire
1870            * @param expirationDateYear the year the web content article is set to
1871            expire
1872            * @param expirationDateHour the hour the web content article is set to
1873            expire
1874            * @param expirationDateMinute the minute the web content article is set to
1875            expire
1876            * @param neverExpire whether the web content article is not set to auto
1877            expire
1878            * @param reviewDateMonth the month the web content article is set for
1879            review
1880            * @param reviewDateDay the calendar day the web content article is set for
1881            review
1882            * @param reviewDateYear the year the web content article is set for review
1883            * @param reviewDateHour the hour the web content article is set for review
1884            * @param reviewDateMinute the minute the web content article is set for
1885            review
1886            * @param neverReview whether the web content article is not set for review
1887            * @param indexable whether the web content is searchable
1888            * @param smallImage whether to update web content article's a small image.
1889            A file must be passed in as <code>smallImageFile</code> value,
1890            otherwise the current small image is deleted.
1891            * @param smallImageURL the web content article's small image URL
1892            (optionally <code>null</code>)
1893            * @param smallFile the web content article's new small image file
1894            (optionally <code>null</code>). Must pass in
1895            <code>smallImage</code> value of <code>true</code> to replace the
1896            article's small image file.
1897            * @param images the web content's images (optionally <code>null</code>)
1898            * @param articleURL the web content article's accessible URL (optionally
1899            <code>null</code>)
1900            * @param serviceContext the service context to be applied. Can set the
1901            modification date, expando bridge attributes, asset category IDs,
1902            asset tag names, asset link entry IDs, workflow actions, the
1903            "defaultLanguageId" and "urlTitle" attributes, and can set
1904            whether to add the default command update for the web content
1905            article. With respect to social activities, by setting the
1906            service context's command to {@link
1907            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1908            is considered a web content update activity; otherwise it is
1909            considered a web content add activity.
1910            * @return the updated web content article
1911            * @throws PortalException if the user did not have permission to update the
1912            web content article, if a user with the primary key or a matching
1913            web content article could not be found, or if a portal exception
1914            occurred
1915            * @throws SystemException if a system exception occurred
1916            */
1917            @Override
1918            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1919                    long groupId, long folderId, java.lang.String articleId,
1920                    double version,
1921                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1922                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1923                    java.lang.String content, java.lang.String type,
1924                    java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey,
1925                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1926                    int displayDateYear, int displayDateHour, int displayDateMinute,
1927                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1928                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1929                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1930                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
1931                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1932                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
1933                    java.lang.String articleURL,
1934                    com.liferay.portal.service.ServiceContext serviceContext)
1935                    throws com.liferay.portal.kernel.exception.PortalException,
1936                            com.liferay.portal.kernel.exception.SystemException {
1937                    return _journalArticleService.updateArticle(groupId, folderId,
1938                            articleId, version, titleMap, descriptionMap, content, type,
1939                            ddmStructureKey, ddmTemplateKey, layoutUuid, displayDateMonth,
1940                            displayDateDay, displayDateYear, displayDateHour,
1941                            displayDateMinute, expirationDateMonth, expirationDateDay,
1942                            expirationDateYear, expirationDateHour, expirationDateMinute,
1943                            neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
1944                            reviewDateHour, reviewDateMinute, neverReview, indexable,
1945                            smallImage, smallImageURL, smallFile, images, articleURL,
1946                            serviceContext);
1947            }
1948    
1949            /**
1950            * Updates the web content article matching the version, replacing its
1951            * folder and content.
1952            *
1953            * @param groupId the primary key of the web content article's group
1954            * @param folderId the primary key of the web content article folder
1955            * @param articleId the primary key of the web content article
1956            * @param version the web content article's version
1957            * @param content the HTML content wrapped in XML. For more information,
1958            see the content example in the class description for {@link
1959            JournalArticleLocalServiceImpl}.
1960            * @param serviceContext the service context to be applied. Can set the
1961            modification date, expando bridge attributes, asset category IDs,
1962            asset tag names, asset link entry IDs, workflow actions, the
1963            "defaultLanguageId" and "urlTitle" attributes, and can set
1964            whether to add the default command update for the web content
1965            article. With respect to social activities, by setting the
1966            service context's command to {@link
1967            com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation
1968            is considered a web content update activity; otherwise it is
1969            considered a web content add activity.
1970            * @return the updated web content article
1971            * @throws PortalException if the user did not have permission to update the
1972            web content article, if a user with the primary key or a matching
1973            web content article could not be found, or if a portal exception
1974            occurred
1975            * @throws SystemException if a system exception occurred
1976            */
1977            @Override
1978            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
1979                    long groupId, long folderId, java.lang.String articleId,
1980                    double version, java.lang.String content,
1981                    com.liferay.portal.service.ServiceContext serviceContext)
1982                    throws com.liferay.portal.kernel.exception.PortalException,
1983                            com.liferay.portal.kernel.exception.SystemException {
1984                    return _journalArticleService.updateArticle(groupId, folderId,
1985                            articleId, version, content, serviceContext);
1986            }
1987    
1988            /**
1989            * @deprecated As of 6.2.0, replaced by {@link
1990            #updateArticleTranslation(long, String, double, Locale,
1991            String, String, String, Map, ServiceContext)}
1992            */
1993            @Override
1994            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1995                    long groupId, java.lang.String articleId, double version,
1996                    java.util.Locale locale, java.lang.String title,
1997                    java.lang.String description, java.lang.String content,
1998                    java.util.Map<java.lang.String, byte[]> images)
1999                    throws com.liferay.portal.kernel.exception.PortalException,
2000                            com.liferay.portal.kernel.exception.SystemException {
2001                    return _journalArticleService.updateArticleTranslation(groupId,
2002                            articleId, version, locale, title, description, content, images);
2003            }
2004    
2005            /**
2006            * Updates the translation of the web content article.
2007            *
2008            * @param groupId the primary key of the web content article's group
2009            * @param articleId the primary key of the web content article
2010            * @param version the web content article's version
2011            * @param locale the locale of the web content article's display template
2012            * @param title the translated web content article title
2013            * @param description the translated web content article description
2014            * @param content the HTML content wrapped in XML. For more information,
2015            see the content example in the class description for {@link
2016            JournalArticleLocalServiceImpl}.
2017            * @param images the web content's images
2018            * @param serviceContext the service context to be applied. Can set the
2019            modification date and "urlTitle" attribute for the web content
2020            article.
2021            * @return the updated web content article
2022            * @throws PortalException if the user did not have permission to update the
2023            web content article, if a user with the primary key or a matching
2024            web content article could not be found, or if a portal exception
2025            occurred
2026            * @throws SystemException if a system exception occurred
2027            */
2028            @Override
2029            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
2030                    long groupId, java.lang.String articleId, double version,
2031                    java.util.Locale locale, java.lang.String title,
2032                    java.lang.String description, java.lang.String content,
2033                    java.util.Map<java.lang.String, byte[]> images,
2034                    com.liferay.portal.service.ServiceContext serviceContext)
2035                    throws com.liferay.portal.kernel.exception.PortalException,
2036                            com.liferay.portal.kernel.exception.SystemException {
2037                    return _journalArticleService.updateArticleTranslation(groupId,
2038                            articleId, version, locale, title, description, content, images,
2039                            serviceContext);
2040            }
2041    
2042            /**
2043            * Updates the web content article matching the group, article ID, and
2044            * version, replacing its content.
2045            *
2046            * @param groupId the primary key of the web content article's group
2047            * @param articleId the primary key of the web content article
2048            * @param version the web content article's version
2049            * @param content the HTML content wrapped in XML. For more information,
2050            see the content example in the class description for {@link
2051            JournalArticleLocalServiceImpl}.
2052            * @return the updated web content article
2053            * @throws PortalException if the user did not have permission to update the
2054            web content article or if a matching web content article could
2055            not be found
2056            * @throws SystemException if a system exception occurred
2057            */
2058            @Override
2059            public com.liferay.portlet.journal.model.JournalArticle updateContent(
2060                    long groupId, java.lang.String articleId, double version,
2061                    java.lang.String content)
2062                    throws com.liferay.portal.kernel.exception.PortalException,
2063                            com.liferay.portal.kernel.exception.SystemException {
2064                    return _journalArticleService.updateContent(groupId, articleId,
2065                            version, content);
2066            }
2067    
2068            /**
2069            * Updates the workflow status of the web content article matching the
2070            * group, article ID, and version.
2071            *
2072            * @param groupId the primary key of the web content article's group
2073            * @param articleId the primary key of the web content article
2074            * @param version the web content article's version
2075            * @param status the web content article's workflow status. For more
2076            information see {@link WorkflowConstants} for constants starting
2077            with the "STATUS_" prefix.
2078            * @param articleURL the web content article's accessible URL
2079            * @param serviceContext the service context to be applied. Can set the
2080            modification date, portlet preferences, and can set whether to
2081            add the default command update for the web content article.
2082            * @return the updated web content article
2083            * @throws PortalException if the user did not have permission to update the
2084            web content article, if a matching web content article could not
2085            be found, or if a portal exception occurred
2086            * @throws SystemException if a system exception occurred
2087            */
2088            @Override
2089            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
2090                    long groupId, java.lang.String articleId, double version, int status,
2091                    java.lang.String articleURL,
2092                    com.liferay.portal.service.ServiceContext serviceContext)
2093                    throws com.liferay.portal.kernel.exception.PortalException,
2094                            com.liferay.portal.kernel.exception.SystemException {
2095                    return _journalArticleService.updateStatus(groupId, articleId, version,
2096                            status, articleURL, serviceContext);
2097            }
2098    
2099            /**
2100             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
2101             */
2102            public JournalArticleService getWrappedJournalArticleService() {
2103                    return _journalArticleService;
2104            }
2105    
2106            /**
2107             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
2108             */
2109            public void setWrappedJournalArticleService(
2110                    JournalArticleService journalArticleService) {
2111                    _journalArticleService = journalArticleService;
2112            }
2113    
2114            @Override
2115            public JournalArticleService getWrappedService() {
2116                    return _journalArticleService;
2117            }
2118    
2119            @Override
2120            public void setWrappedService(JournalArticleService journalArticleService) {
2121                    _journalArticleService = journalArticleService;
2122            }
2123    
2124            private JournalArticleService _journalArticleService;
2125    }