001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.PersistedModelLocalService;
023    
024    /**
025     * The interface for the journal article local service.
026     *
027     * <p>
028     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see JournalArticleLocalServiceUtil
033     * @see com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl
034     * @see com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
035     * @generated
036     */
037    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
038            PortalException.class, SystemException.class})
039    public interface JournalArticleLocalService extends PersistedModelLocalService {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify or reference this interface directly. Always use {@link JournalArticleLocalServiceUtil} to access the journal article local service. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
044             */
045    
046            /**
047            * Adds the journal article to the database. Also notifies the appropriate model listeners.
048            *
049            * @param journalArticle the journal article
050            * @return the journal article that was added
051            * @throws SystemException if a system exception occurred
052            */
053            public com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
054                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            /**
058            * Creates a new journal article with the primary key. Does not add the journal article to the database.
059            *
060            * @param id the primary key for the new journal article
061            * @return the new journal article
062            */
063            public com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
064                    long id);
065    
066            /**
067            * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param id the primary key of the journal article
070            * @throws PortalException if a journal article with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public void deleteJournalArticle(long id)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Deletes the journal article from the database. Also notifies the appropriate model listeners.
079            *
080            * @param journalArticle the journal article
081            * @throws SystemException if a system exception occurred
082            */
083            public void deleteJournalArticle(
084                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Performs a dynamic query on the database and returns the matching rows.
089            *
090            * @param dynamicQuery the dynamic query
091            * @return the matching rows
092            * @throws SystemException if a system exception occurred
093            */
094            @SuppressWarnings("rawtypes")
095            public java.util.List dynamicQuery(
096                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            /**
139            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticle(
151                    long id) throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the journal article with the primary key.
155            *
156            * @param id the primary key of the journal article
157            * @return the journal article
158            * @throws PortalException if a journal article with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
163                    long id)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns the journal article with the UUID in the group.
175            *
176            * @param uuid the UUID of journal article
177            * @param groupId the group id of the journal article
178            * @return the journal article
179            * @throws PortalException if a journal article with the UUID in the group could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183            public com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns a range of all the journal articles.
190            *
191            * <p>
192            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
193            * </p>
194            *
195            * @param start the lower bound of the range of journal articles
196            * @param end the upper bound of the range of journal articles (not inclusive)
197            * @return the range of journal articles
198            * @throws SystemException if a system exception occurred
199            */
200            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    
205            /**
206            * Returns the number of journal articles.
207            *
208            * @return the number of journal articles
209            * @throws SystemException if a system exception occurred
210            */
211            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212            public int getJournalArticlesCount()
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            /**
216            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param journalArticle the journal article
219            * @return the journal article that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
223                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            /**
227            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param journalArticle the journal article
230            * @param merge whether to merge the journal article with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
231            * @return the journal article that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
235                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier();
245    
246            /**
247            * Sets the Spring bean ID for this bean.
248            *
249            * @param beanIdentifier the Spring bean ID for this bean
250            */
251            public void setBeanIdentifier(java.lang.String beanIdentifier);
252    
253            public com.liferay.portlet.journal.model.JournalArticle addArticle(
254                    long userId, long groupId, long classNameId, long classPK,
255                    java.lang.String articleId, boolean autoArticleId, double version,
256                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
257                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
258                    java.lang.String content, java.lang.String type,
259                    java.lang.String structureId, java.lang.String templateId,
260                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
261                    int displayDateYear, int displayDateHour, int displayDateMinute,
262                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
263                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
264                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
265                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
266                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
267                    java.io.File smallImageFile,
268                    java.util.Map<java.lang.String, byte[]> images,
269                    java.lang.String articleURL,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException;
273    
274            public void addArticleResources(
275                    com.liferay.portlet.journal.model.JournalArticle article,
276                    boolean addGroupPermissions, boolean addGuestPermissions)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException;
279    
280            public void addArticleResources(
281                    com.liferay.portlet.journal.model.JournalArticle article,
282                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException;
285    
286            public void addArticleResources(long groupId, java.lang.String articleId,
287                    boolean addGroupPermissions, boolean addGuestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException;
290    
291            public void addArticleResources(long groupId, java.lang.String articleId,
292                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException;
295    
296            public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
297                    long groupId, java.lang.String articleId, double version)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException;
300    
301            public void checkArticles()
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            public void checkNewLine(long groupId, java.lang.String articleId,
306                    double version)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException;
309    
310            public void checkStructure(long groupId, java.lang.String articleId,
311                    double version)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
316                    long userId, long groupId, java.lang.String oldArticleId,
317                    java.lang.String newArticleId, boolean autoArticleId, double version)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException;
320    
321            public void deleteArticle(
322                    com.liferay.portlet.journal.model.JournalArticle article,
323                    java.lang.String articleURL,
324                    com.liferay.portal.service.ServiceContext serviceContext)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException;
327    
328            public void deleteArticle(long groupId, java.lang.String articleId,
329                    double version, java.lang.String articleURL,
330                    com.liferay.portal.service.ServiceContext serviceContext)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException;
333    
334            public void deleteArticle(long groupId, java.lang.String articleId,
335                    com.liferay.portal.service.ServiceContext serviceContext)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException;
338    
339            public void deleteArticles(long groupId)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException;
342    
343            public void deleteLayoutArticleReferences(long groupId,
344                    java.lang.String layoutUuid)
345                    throws com.liferay.portal.kernel.exception.SystemException;
346    
347            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
348                    long userId, long groupId, java.lang.String articleId, double version,
349                    java.lang.String articleURL,
350                    com.liferay.portal.service.ServiceContext serviceContext)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException;
353    
354            public void expireArticle(long userId, long groupId,
355                    java.lang.String articleId, java.lang.String articleURL,
356                    com.liferay.portal.service.ServiceContext serviceContext)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException;
359    
360            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException;
364    
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public com.liferay.portlet.journal.model.JournalArticle getArticle(
367                    long groupId, java.lang.String articleId)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException;
370    
371            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372            public com.liferay.portlet.journal.model.JournalArticle getArticle(
373                    long groupId, java.lang.String articleId, double version)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException;
376    
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public com.liferay.portlet.journal.model.JournalArticle getArticle(
379                    long groupId, java.lang.String className, long classPK)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException;
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
385                    long groupId, java.lang.String urlTitle)
386                    throws com.liferay.portal.kernel.exception.PortalException,
387                            com.liferay.portal.kernel.exception.SystemException;
388    
389            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390            public java.lang.String getArticleContent(
391                    com.liferay.portlet.journal.model.JournalArticle article,
392                    java.lang.String templateId, java.lang.String viewMode,
393                    java.lang.String languageId,
394                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException;
397    
398            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399            public java.lang.String getArticleContent(long groupId,
400                    java.lang.String articleId, double version, java.lang.String viewMode,
401                    java.lang.String templateId, java.lang.String languageId,
402                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException;
405    
406            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407            public java.lang.String getArticleContent(long groupId,
408                    java.lang.String articleId, double version, java.lang.String viewMode,
409                    java.lang.String languageId,
410                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public java.lang.String getArticleContent(long groupId,
416                    java.lang.String articleId, java.lang.String viewMode,
417                    java.lang.String templateId, java.lang.String languageId,
418                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException;
421    
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public java.lang.String getArticleContent(long groupId,
424                    java.lang.String articleId, java.lang.String viewMode,
425                    java.lang.String languageId,
426                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException;
429    
430            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
432                    com.liferay.portlet.journal.model.JournalArticle article,
433                    java.lang.String templateId, java.lang.String viewMode,
434                    java.lang.String languageId, int page, java.lang.String xmlRequest,
435                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException;
438    
439            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
441                    long groupId, java.lang.String articleId, double version,
442                    java.lang.String templateId, java.lang.String viewMode,
443                    java.lang.String languageId, int page, java.lang.String xmlRequest,
444                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException;
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
450                    long groupId, java.lang.String articleId, double version,
451                    java.lang.String templateId, java.lang.String viewMode,
452                    java.lang.String languageId,
453                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
459                    long groupId, java.lang.String articleId, java.lang.String viewMode,
460                    java.lang.String languageId, int page, java.lang.String xmlRequest,
461                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException;
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
467                    long groupId, java.lang.String articleId, java.lang.String templateId,
468                    java.lang.String viewMode, java.lang.String languageId, int page,
469                    java.lang.String xmlRequest,
470                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException;
473    
474            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
476                    long groupId, java.lang.String articleId, java.lang.String templateId,
477                    java.lang.String viewMode, java.lang.String languageId,
478                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
479                    throws com.liferay.portal.kernel.exception.PortalException,
480                            com.liferay.portal.kernel.exception.SystemException;
481    
482            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
484                    long groupId, java.lang.String articleId, java.lang.String viewMode,
485                    java.lang.String languageId,
486                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
487                    throws com.liferay.portal.kernel.exception.PortalException,
488                            com.liferay.portal.kernel.exception.SystemException;
489    
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
496                    long groupId)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
501                    long groupId, int start, int end)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
506                    long groupId, int start, int end,
507                    com.liferay.portal.kernel.util.OrderByComparator obc)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
512                    long groupId, java.lang.String articleId)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
517                    long smallImageId)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public int getArticlesCount(long groupId)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
526                    long companyId, double version, int status, int start, int end)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
530            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
531                    long companyId, int status, int start, int end)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535            public int getCompanyArticlesCount(long companyId, double version,
536                    int status, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540            public int getCompanyArticlesCount(long companyId, int status)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
545                    long groupId, java.lang.String articleId)
546                    throws com.liferay.portal.kernel.exception.PortalException,
547                            com.liferay.portal.kernel.exception.SystemException;
548    
549            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
551                    long groupId, java.lang.String urlTitle)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException;
554    
555            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
557                    long resourcePrimKey)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException;
560    
561            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
563                    long resourcePrimKey, int status)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException;
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
569                    long resourcePrimKey, int status, boolean preferApproved)
570                    throws com.liferay.portal.kernel.exception.PortalException,
571                            com.liferay.portal.kernel.exception.SystemException;
572    
573            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
574            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
575                    long groupId, java.lang.String articleId)
576                    throws com.liferay.portal.kernel.exception.PortalException,
577                            com.liferay.portal.kernel.exception.SystemException;
578    
579            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
580            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
581                    long groupId, java.lang.String articleId, int status)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException;
584    
585            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
587                    long groupId, java.lang.String className, long classPK)
588                    throws com.liferay.portal.kernel.exception.PortalException,
589                            com.liferay.portal.kernel.exception.SystemException;
590    
591            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
592            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
593                    long groupId, java.lang.String urlTitle, int status)
594                    throws com.liferay.portal.kernel.exception.PortalException,
595                            com.liferay.portal.kernel.exception.SystemException;
596    
597            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
598            public double getLatestVersion(long groupId, java.lang.String articleId)
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            com.liferay.portal.kernel.exception.SystemException;
601    
602            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
603            public double getLatestVersion(long groupId, java.lang.String articleId,
604                    int status)
605                    throws com.liferay.portal.kernel.exception.PortalException,
606                            com.liferay.portal.kernel.exception.SystemException;
607    
608            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
610                    long groupId, java.lang.String structureId)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
614            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
615                    long groupId, java.lang.String structureId, int start, int end,
616                    com.liferay.portal.kernel.util.OrderByComparator obc)
617                    throws com.liferay.portal.kernel.exception.SystemException;
618    
619            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
620            public int getStructureArticlesCount(long groupId,
621                    java.lang.String structureId)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
625            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
626                    long groupId, java.lang.String templateId)
627                    throws com.liferay.portal.kernel.exception.SystemException;
628    
629            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
630            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
631                    long groupId, java.lang.String templateId, int start, int end,
632                    com.liferay.portal.kernel.util.OrderByComparator obc)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
636            public int getTemplateArticlesCount(long groupId,
637                    java.lang.String templateId)
638                    throws com.liferay.portal.kernel.exception.SystemException;
639    
640            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
641            public boolean hasArticle(long groupId, java.lang.String articleId)
642                    throws com.liferay.portal.kernel.exception.SystemException;
643    
644            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
645            public boolean isLatestVersion(long groupId, java.lang.String articleId,
646                    double version)
647                    throws com.liferay.portal.kernel.exception.PortalException,
648                            com.liferay.portal.kernel.exception.SystemException;
649    
650            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
651            public boolean isLatestVersion(long groupId, java.lang.String articleId,
652                    double version, int status)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException;
655    
656            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
657                    long groupId, java.lang.String articleId, double version,
658                    java.lang.String languageId)
659                    throws com.liferay.portal.kernel.exception.PortalException,
660                            com.liferay.portal.kernel.exception.SystemException;
661    
662            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
663            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
664                    long companyId, long groupId, long classNameId,
665                    java.lang.String keywords, java.lang.Double version,
666                    java.lang.String type, java.lang.String structureId,
667                    java.lang.String templateId, java.util.Date displayDateGT,
668                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
669                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
670                    throws com.liferay.portal.kernel.exception.SystemException;
671    
672            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
673            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
674                    long companyId, long groupId, long classNameId,
675                    java.lang.String articleId, java.lang.Double version,
676                    java.lang.String title, java.lang.String description,
677                    java.lang.String content, java.lang.String type,
678                    java.lang.String structureId, java.lang.String templateId,
679                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
680                    java.util.Date reviewDate, boolean andOperator, int start, int end,
681                    com.liferay.portal.kernel.util.OrderByComparator obc)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
685            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
686                    long companyId, long groupId, long classNameId,
687                    java.lang.String articleId, java.lang.Double version,
688                    java.lang.String title, java.lang.String description,
689                    java.lang.String content, java.lang.String type,
690                    java.lang.String[] structureIds, java.lang.String[] templateIds,
691                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
692                    java.util.Date reviewDate, boolean andOperator, int start, int end,
693                    com.liferay.portal.kernel.util.OrderByComparator obc)
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
697            public com.liferay.portal.kernel.search.Hits search(long companyId,
698                    long groupId, long classNameId, java.lang.String structureId,
699                    java.lang.String templateId, java.lang.String keywords,
700                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
701                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
702                    throws com.liferay.portal.kernel.exception.SystemException;
703    
704            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
705            public com.liferay.portal.kernel.search.Hits search(long companyId,
706                    long groupId, long classNameId, java.lang.String articleId,
707                    java.lang.String title, java.lang.String description,
708                    java.lang.String content, java.lang.String type,
709                    java.lang.String status, java.lang.String structureId,
710                    java.lang.String templateId,
711                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
712                    boolean andSearch, int start, int end,
713                    com.liferay.portal.kernel.search.Sort sort)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
717            public int searchCount(long companyId, long groupId, long classNameId,
718                    java.lang.String keywords, java.lang.Double version,
719                    java.lang.String type, java.lang.String structureId,
720                    java.lang.String templateId, java.util.Date displayDateGT,
721                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
725            public int searchCount(long companyId, long groupId, long classNameId,
726                    java.lang.String articleId, java.lang.Double version,
727                    java.lang.String title, java.lang.String description,
728                    java.lang.String content, java.lang.String type,
729                    java.lang.String structureId, java.lang.String templateId,
730                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
731                    java.util.Date reviewDate, boolean andOperator)
732                    throws com.liferay.portal.kernel.exception.SystemException;
733    
734            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
735            public int searchCount(long companyId, long groupId, long classNameId,
736                    java.lang.String articleId, java.lang.Double version,
737                    java.lang.String title, java.lang.String description,
738                    java.lang.String content, java.lang.String type,
739                    java.lang.String[] structureIds, java.lang.String[] templateIds,
740                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
741                    java.util.Date reviewDate, boolean andOperator)
742                    throws com.liferay.portal.kernel.exception.SystemException;
743    
744            public void subscribe(long userId, long groupId)
745                    throws com.liferay.portal.kernel.exception.PortalException,
746                            com.liferay.portal.kernel.exception.SystemException;
747    
748            public void unsubscribe(long userId, long groupId)
749                    throws com.liferay.portal.kernel.exception.PortalException,
750                            com.liferay.portal.kernel.exception.SystemException;
751    
752            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
753                    long userId, long groupId, java.lang.String articleId, double version,
754                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
755                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
756                    java.lang.String content, java.lang.String layoutUuid,
757                    com.liferay.portal.service.ServiceContext serviceContext)
758                    throws com.liferay.portal.kernel.exception.PortalException,
759                            com.liferay.portal.kernel.exception.SystemException;
760    
761            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
762                    long userId, long groupId, java.lang.String articleId, double version,
763                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
764                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
765                    java.lang.String content, java.lang.String type,
766                    java.lang.String structureId, java.lang.String templateId,
767                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
768                    int displayDateYear, int displayDateHour, int displayDateMinute,
769                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
770                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
771                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
772                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
773                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
774                    java.io.File smallImageFile,
775                    java.util.Map<java.lang.String, byte[]> images,
776                    java.lang.String articleURL,
777                    com.liferay.portal.service.ServiceContext serviceContext)
778                    throws com.liferay.portal.kernel.exception.PortalException,
779                            com.liferay.portal.kernel.exception.SystemException;
780    
781            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
782                    long userId, long groupId, java.lang.String articleId, double version,
783                    java.lang.String content,
784                    com.liferay.portal.service.ServiceContext serviceContext)
785                    throws com.liferay.portal.kernel.exception.PortalException,
786                            com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * @deprecated {@link #updateArticleTranslation(long, String, double,
790            Locale, String, String, String, Map, ServiceContext)}
791            */
792            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
793                    long groupId, java.lang.String articleId, double version,
794                    java.util.Locale locale, java.lang.String title,
795                    java.lang.String description, java.lang.String content,
796                    java.util.Map<java.lang.String, byte[]> images)
797                    throws com.liferay.portal.kernel.exception.PortalException,
798                            com.liferay.portal.kernel.exception.SystemException;
799    
800            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
801                    long groupId, java.lang.String articleId, double version,
802                    java.util.Locale locale, java.lang.String title,
803                    java.lang.String description, java.lang.String content,
804                    java.util.Map<java.lang.String, byte[]> images,
805                    com.liferay.portal.service.ServiceContext serviceContext)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException;
808    
809            public void updateAsset(long userId,
810                    com.liferay.portlet.journal.model.JournalArticle article,
811                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
812                    long[] assetLinkEntryIds)
813                    throws com.liferay.portal.kernel.exception.PortalException,
814                            com.liferay.portal.kernel.exception.SystemException;
815    
816            public com.liferay.portlet.journal.model.JournalArticle updateContent(
817                    long groupId, java.lang.String articleId, double version,
818                    java.lang.String content)
819                    throws com.liferay.portal.kernel.exception.PortalException,
820                            com.liferay.portal.kernel.exception.SystemException;
821    
822            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
823                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
824                    int status, java.lang.String articleURL,
825                    com.liferay.portal.service.ServiceContext serviceContext)
826                    throws com.liferay.portal.kernel.exception.PortalException,
827                            com.liferay.portal.kernel.exception.SystemException;
828    
829            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
830                    long userId, long classPK, int status,
831                    com.liferay.portal.service.ServiceContext serviceContext)
832                    throws com.liferay.portal.kernel.exception.PortalException,
833                            com.liferay.portal.kernel.exception.SystemException;
834    
835            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
836                    long userId, long groupId, java.lang.String articleId, double version,
837                    int status, java.lang.String articleURL,
838                    com.liferay.portal.service.ServiceContext serviceContext)
839                    throws com.liferay.portal.kernel.exception.PortalException,
840                            com.liferay.portal.kernel.exception.SystemException;
841    
842            public void updateTemplateId(long groupId, long classNameId,
843                    java.lang.String oldTemplateId, java.lang.String newTemplateId)
844                    throws com.liferay.portal.kernel.exception.SystemException;
845    }