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