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.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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier();
239    
240            /**
241            * Sets the Spring bean ID for this bean.
242            *
243            * @param beanIdentifier the Spring bean ID for this bean
244            */
245            public void setBeanIdentifier(java.lang.String beanIdentifier);
246    
247            public com.liferay.portlet.journal.model.JournalArticle addArticle(
248                    long userId, long groupId, long folderId, long classNameId,
249                    long classPK, java.lang.String articleId, boolean autoArticleId,
250                    double version,
251                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
252                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
253                    java.lang.String content, java.lang.String type,
254                    java.lang.String structureId, java.lang.String templateId,
255                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
256                    int displayDateYear, int displayDateHour, int displayDateMinute,
257                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
258                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
259                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
260                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
261                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
262                    java.io.File smallImageFile,
263                    java.util.Map<java.lang.String, byte[]> images,
264                    java.lang.String articleURL,
265                    com.liferay.portal.service.ServiceContext serviceContext)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException;
268    
269            public com.liferay.portlet.journal.model.JournalArticle addArticle(
270                    long userId, long groupId, long folderId,
271                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
272                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
273                    java.lang.String content, java.lang.String structureId,
274                    java.lang.String templateId,
275                    com.liferay.portal.service.ServiceContext serviceContext)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException;
278    
279            public void addArticleResources(
280                    com.liferay.portlet.journal.model.JournalArticle article,
281                    boolean addGroupPermissions, boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            public void addArticleResources(
286                    com.liferay.portlet.journal.model.JournalArticle article,
287                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
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                    boolean addGroupPermissions, boolean addGuestPermissions)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException;
295    
296            public void addArticleResources(long groupId, java.lang.String articleId,
297                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException;
300    
301            public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
302                    long groupId, java.lang.String articleId, double version)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            public void checkArticles()
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException;
309    
310            public void checkNewLine(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 void checkStructure(long groupId, java.lang.String articleId,
316                    double version)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException;
319    
320            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
321                    long userId, long groupId, java.lang.String oldArticleId,
322                    java.lang.String newArticleId, boolean autoArticleId, double version)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException;
325    
326            public void deleteArticle(
327                    com.liferay.portlet.journal.model.JournalArticle article)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException;
330    
331            public void deleteArticle(
332                    com.liferay.portlet.journal.model.JournalArticle article,
333                    java.lang.String articleURL,
334                    com.liferay.portal.service.ServiceContext serviceContext)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException;
337    
338            public void deleteArticle(long groupId, java.lang.String articleId,
339                    double version, java.lang.String articleURL,
340                    com.liferay.portal.service.ServiceContext serviceContext)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException;
343    
344            public void deleteArticle(long groupId, java.lang.String articleId,
345                    com.liferay.portal.service.ServiceContext serviceContext)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException;
348    
349            public void deleteArticles(long groupId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException;
352    
353            public void deleteArticles(long groupId, long folderId)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException;
356    
357            public void deleteLayoutArticleReferences(long groupId,
358                    java.lang.String layoutUuid)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
362                    long userId, long groupId, java.lang.String articleId, double version,
363                    java.lang.String articleURL,
364                    com.liferay.portal.service.ServiceContext serviceContext)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException;
367    
368            public void expireArticle(long userId, long groupId,
369                    java.lang.String articleId, java.lang.String articleURL,
370                    com.liferay.portal.service.ServiceContext serviceContext)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException;
373    
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException;
378    
379            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380            public com.liferay.portlet.journal.model.JournalArticle getArticle(
381                    long groupId, java.lang.String articleId)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException;
384    
385            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386            public com.liferay.portlet.journal.model.JournalArticle getArticle(
387                    long groupId, java.lang.String articleId, double version)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException;
390    
391            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392            public com.liferay.portlet.journal.model.JournalArticle getArticle(
393                    long groupId, java.lang.String className, long classPK)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException;
396    
397            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
399                    long groupId, java.lang.String urlTitle)
400                    throws com.liferay.portal.kernel.exception.PortalException,
401                            com.liferay.portal.kernel.exception.SystemException;
402    
403            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404            public java.lang.String getArticleContent(
405                    com.liferay.portlet.journal.model.JournalArticle article,
406                    java.lang.String templateId, java.lang.String viewMode,
407                    java.lang.String languageId,
408                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException;
411    
412            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413            public java.lang.String getArticleContent(long groupId,
414                    java.lang.String articleId, double version, java.lang.String viewMode,
415                    java.lang.String templateId, java.lang.String languageId,
416                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException;
419    
420            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421            public java.lang.String getArticleContent(long groupId,
422                    java.lang.String articleId, double version, java.lang.String viewMode,
423                    java.lang.String languageId,
424                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException;
427    
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public java.lang.String getArticleContent(long groupId,
430                    java.lang.String articleId, java.lang.String viewMode,
431                    java.lang.String templateId, java.lang.String languageId,
432                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException;
435    
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public java.lang.String getArticleContent(long groupId,
438                    java.lang.String articleId, java.lang.String viewMode,
439                    java.lang.String languageId,
440                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException;
443    
444            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
446                    com.liferay.portlet.journal.model.JournalArticle article,
447                    java.lang.String templateId, java.lang.String viewMode,
448                    java.lang.String languageId, int page, java.lang.String xmlRequest,
449                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException;
452    
453            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
455                    long groupId, java.lang.String articleId, double version,
456                    java.lang.String templateId, java.lang.String viewMode,
457                    java.lang.String languageId, int page, java.lang.String xmlRequest,
458                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException;
461    
462            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
464                    long groupId, java.lang.String articleId, double version,
465                    java.lang.String templateId, java.lang.String viewMode,
466                    java.lang.String languageId,
467                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException;
470    
471            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
473                    long groupId, java.lang.String articleId, java.lang.String viewMode,
474                    java.lang.String languageId, int page, java.lang.String xmlRequest,
475                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException;
478    
479            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
481                    long groupId, java.lang.String articleId, java.lang.String templateId,
482                    java.lang.String viewMode, java.lang.String languageId, int page,
483                    java.lang.String xmlRequest,
484                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
485                    throws com.liferay.portal.kernel.exception.PortalException,
486                            com.liferay.portal.kernel.exception.SystemException;
487    
488            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
490                    long groupId, java.lang.String articleId, java.lang.String templateId,
491                    java.lang.String viewMode, java.lang.String languageId,
492                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException;
495    
496            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
498                    long groupId, java.lang.String articleId, java.lang.String viewMode,
499                    java.lang.String languageId,
500                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
501                    throws com.liferay.portal.kernel.exception.PortalException,
502                            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                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
510                    long groupId)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
515                    long groupId, int start, int end)
516                    throws com.liferay.portal.kernel.exception.SystemException;
517    
518            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
520                    long groupId, int start, int end,
521                    com.liferay.portal.kernel.util.OrderByComparator obc)
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> getArticles(
526                    long groupId, long folderId)
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> getArticles(
531                    long groupId, long folderId, int start, int end)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
536                    long groupId, long folderId, int start, int end,
537                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
542                    long groupId, java.lang.String articleId)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
547                    long smallImageId)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551            public int getArticlesCount(long groupId)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
555            public int getArticlesCount(long groupId, long folderId)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
559            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
560                    long companyId, double version, int status, int start, int end)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
564            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
565                    long companyId, int status, int start, int end)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
569            public int getCompanyArticlesCount(long companyId, double version,
570                    int status, int start, int end)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
574            public int getCompanyArticlesCount(long companyId, int status)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
579                    long groupId, java.lang.String articleId)
580                    throws com.liferay.portal.kernel.exception.PortalException,
581                            com.liferay.portal.kernel.exception.SystemException;
582    
583            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
584            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
585                    long groupId, java.lang.String urlTitle)
586                    throws com.liferay.portal.kernel.exception.PortalException,
587                            com.liferay.portal.kernel.exception.SystemException;
588    
589            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
591                    long resourcePrimKey)
592                    throws com.liferay.portal.kernel.exception.PortalException,
593                            com.liferay.portal.kernel.exception.SystemException;
594    
595            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
596            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
597                    long resourcePrimKey, int status)
598                    throws com.liferay.portal.kernel.exception.PortalException,
599                            com.liferay.portal.kernel.exception.SystemException;
600    
601            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
602            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
603                    long resourcePrimKey, int status, boolean preferApproved)
604                    throws com.liferay.portal.kernel.exception.PortalException,
605                            com.liferay.portal.kernel.exception.SystemException;
606    
607            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
609                    long groupId, java.lang.String articleId)
610                    throws com.liferay.portal.kernel.exception.PortalException,
611                            com.liferay.portal.kernel.exception.SystemException;
612    
613            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
614            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
615                    long groupId, java.lang.String articleId, int status)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException;
618    
619            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
620            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
621                    long groupId, java.lang.String className, long classPK)
622                    throws com.liferay.portal.kernel.exception.PortalException,
623                            com.liferay.portal.kernel.exception.SystemException;
624    
625            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
626            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
627                    long groupId, java.lang.String urlTitle, int status)
628                    throws com.liferay.portal.kernel.exception.PortalException,
629                            com.liferay.portal.kernel.exception.SystemException;
630    
631            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
632            public double getLatestVersion(long groupId, java.lang.String articleId)
633                    throws com.liferay.portal.kernel.exception.PortalException,
634                            com.liferay.portal.kernel.exception.SystemException;
635    
636            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
637            public double getLatestVersion(long groupId, java.lang.String articleId,
638                    int status)
639                    throws com.liferay.portal.kernel.exception.PortalException,
640                            com.liferay.portal.kernel.exception.SystemException;
641    
642            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
643            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
644                    long groupId, java.lang.String structureId)
645                    throws com.liferay.portal.kernel.exception.SystemException;
646    
647            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
648            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
649                    long groupId, java.lang.String structureId, int start, int end,
650                    com.liferay.portal.kernel.util.OrderByComparator obc)
651                    throws com.liferay.portal.kernel.exception.SystemException;
652    
653            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
654            public int getStructureArticlesCount(long groupId,
655                    java.lang.String structureId)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
659            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
660                    long groupId, java.lang.String templateId)
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
664            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
665                    long groupId, java.lang.String templateId, int start, int end,
666                    com.liferay.portal.kernel.util.OrderByComparator obc)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
670            public int getTemplateArticlesCount(long groupId,
671                    java.lang.String templateId)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
675            public boolean hasArticle(long groupId, java.lang.String articleId)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
679            public boolean isLatestVersion(long groupId, java.lang.String articleId,
680                    double version)
681                    throws com.liferay.portal.kernel.exception.PortalException,
682                            com.liferay.portal.kernel.exception.SystemException;
683    
684            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
685            public boolean isLatestVersion(long groupId, java.lang.String articleId,
686                    double version, int status)
687                    throws com.liferay.portal.kernel.exception.PortalException,
688                            com.liferay.portal.kernel.exception.SystemException;
689    
690            public void moveArticle(long groupId, java.lang.String articleId,
691                    long newFolderId)
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
695                    long groupId, java.lang.String articleId, double version,
696                    java.lang.String languageId)
697                    throws com.liferay.portal.kernel.exception.PortalException,
698                            com.liferay.portal.kernel.exception.SystemException;
699    
700            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
701            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
702                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
703                    long classNameId, java.lang.String keywords, java.lang.Double version,
704                    java.lang.String type, java.lang.String structureId,
705                    java.lang.String templateId, java.util.Date displayDateGT,
706                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
707                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
708                    throws com.liferay.portal.kernel.exception.SystemException;
709    
710            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
711            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
712                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
713                    long classNameId, java.lang.String articleId, java.lang.Double version,
714                    java.lang.String title, java.lang.String description,
715                    java.lang.String content, java.lang.String type,
716                    java.lang.String structureId, java.lang.String templateId,
717                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
718                    java.util.Date reviewDate, boolean andOperator, int start, int end,
719                    com.liferay.portal.kernel.util.OrderByComparator obc)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
723            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
724                    long companyId, long groupId, java.util.List<java.lang.Long> folderIds,
725                    long classNameId, java.lang.String articleId, java.lang.Double version,
726                    java.lang.String title, java.lang.String description,
727                    java.lang.String content, java.lang.String type,
728                    java.lang.String[] structureIds, java.lang.String[] templateIds,
729                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
730                    java.util.Date reviewDate, boolean andOperator, int start, int end,
731                    com.liferay.portal.kernel.util.OrderByComparator obc)
732                    throws com.liferay.portal.kernel.exception.SystemException;
733    
734            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
735            public com.liferay.portal.kernel.search.Hits search(long companyId,
736                    long groupId, java.util.List<java.lang.Long> folderIds,
737                    long classNameId, java.lang.String structureId,
738                    java.lang.String templateId, java.lang.String keywords,
739                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
740                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
741                    throws com.liferay.portal.kernel.exception.SystemException;
742    
743            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
744            public com.liferay.portal.kernel.search.Hits search(long companyId,
745                    long groupId, java.util.List<java.lang.Long> folderIds,
746                    long classNameId, java.lang.String articleId, java.lang.String title,
747                    java.lang.String description, java.lang.String content,
748                    java.lang.String type, java.lang.String status,
749                    java.lang.String structureId, java.lang.String templateId,
750                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
751                    boolean andSearch, int start, int end,
752                    com.liferay.portal.kernel.search.Sort sort)
753                    throws com.liferay.portal.kernel.exception.SystemException;
754    
755            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
756            public int searchCount(long companyId, long groupId,
757                    java.util.List<java.lang.Long> folderIds, long classNameId,
758                    java.lang.String keywords, java.lang.Double version,
759                    java.lang.String type, java.lang.String structureId,
760                    java.lang.String templateId, java.util.Date displayDateGT,
761                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
762                    throws com.liferay.portal.kernel.exception.SystemException;
763    
764            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
765            public int searchCount(long companyId, long groupId,
766                    java.util.List<java.lang.Long> folderIds, long classNameId,
767                    java.lang.String articleId, java.lang.Double version,
768                    java.lang.String title, java.lang.String description,
769                    java.lang.String content, java.lang.String type,
770                    java.lang.String structureId, java.lang.String templateId,
771                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
772                    java.util.Date reviewDate, boolean andOperator)
773                    throws com.liferay.portal.kernel.exception.SystemException;
774    
775            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
776            public int searchCount(long companyId, long groupId,
777                    java.util.List<java.lang.Long> folderIds, long classNameId,
778                    java.lang.String articleId, java.lang.Double version,
779                    java.lang.String title, java.lang.String description,
780                    java.lang.String content, java.lang.String type,
781                    java.lang.String[] structureIds, java.lang.String[] templateIds,
782                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
783                    java.util.Date reviewDate, boolean andOperator)
784                    throws com.liferay.portal.kernel.exception.SystemException;
785    
786            public void subscribe(long userId, long groupId)
787                    throws com.liferay.portal.kernel.exception.PortalException,
788                            com.liferay.portal.kernel.exception.SystemException;
789    
790            public void unsubscribe(long userId, long groupId)
791                    throws com.liferay.portal.kernel.exception.PortalException,
792                            com.liferay.portal.kernel.exception.SystemException;
793    
794            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
795                    long userId, long groupId, long folderId, java.lang.String articleId,
796                    double version,
797                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
798                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
799                    java.lang.String content, java.lang.String layoutUuid,
800                    com.liferay.portal.service.ServiceContext serviceContext)
801                    throws com.liferay.portal.kernel.exception.PortalException,
802                            com.liferay.portal.kernel.exception.SystemException;
803    
804            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
805                    long userId, long groupId, long folderId, java.lang.String articleId,
806                    double version,
807                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
808                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
809                    java.lang.String content, java.lang.String type,
810                    java.lang.String structureId, java.lang.String templateId,
811                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
812                    int displayDateYear, int displayDateHour, int displayDateMinute,
813                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
814                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
815                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
816                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
817                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
818                    java.io.File smallImageFile,
819                    java.util.Map<java.lang.String, byte[]> images,
820                    java.lang.String articleURL,
821                    com.liferay.portal.service.ServiceContext serviceContext)
822                    throws com.liferay.portal.kernel.exception.PortalException,
823                            com.liferay.portal.kernel.exception.SystemException;
824    
825            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
826                    long userId, long groupId, long folderId, java.lang.String articleId,
827                    double version, java.lang.String content,
828                    com.liferay.portal.service.ServiceContext serviceContext)
829                    throws com.liferay.portal.kernel.exception.PortalException,
830                            com.liferay.portal.kernel.exception.SystemException;
831    
832            /**
833            * @deprecated {@link #updateArticleTranslation(long, String, double,
834            Locale, String, String, String, Map, ServiceContext)}
835            */
836            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
837                    long groupId, java.lang.String articleId, double version,
838                    java.util.Locale locale, java.lang.String title,
839                    java.lang.String description, java.lang.String content,
840                    java.util.Map<java.lang.String, byte[]> images)
841                    throws com.liferay.portal.kernel.exception.PortalException,
842                            com.liferay.portal.kernel.exception.SystemException;
843    
844            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
845                    long groupId, java.lang.String articleId, double version,
846                    java.util.Locale locale, java.lang.String title,
847                    java.lang.String description, java.lang.String content,
848                    java.util.Map<java.lang.String, byte[]> images,
849                    com.liferay.portal.service.ServiceContext serviceContext)
850                    throws com.liferay.portal.kernel.exception.PortalException,
851                            com.liferay.portal.kernel.exception.SystemException;
852    
853            public void updateAsset(long userId,
854                    com.liferay.portlet.journal.model.JournalArticle article,
855                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
856                    long[] assetLinkEntryIds)
857                    throws com.liferay.portal.kernel.exception.PortalException,
858                            com.liferay.portal.kernel.exception.SystemException;
859    
860            public com.liferay.portlet.journal.model.JournalArticle updateContent(
861                    long groupId, java.lang.String articleId, double version,
862                    java.lang.String content)
863                    throws com.liferay.portal.kernel.exception.PortalException,
864                            com.liferay.portal.kernel.exception.SystemException;
865    
866            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
867                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
868                    int status, java.lang.String articleURL,
869                    com.liferay.portal.service.ServiceContext serviceContext)
870                    throws com.liferay.portal.kernel.exception.PortalException,
871                            com.liferay.portal.kernel.exception.SystemException;
872    
873            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
874                    long userId, long classPK, int status,
875                    com.liferay.portal.service.ServiceContext serviceContext)
876                    throws com.liferay.portal.kernel.exception.PortalException,
877                            com.liferay.portal.kernel.exception.SystemException;
878    
879            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
880                    long userId, long groupId, java.lang.String articleId, double version,
881                    int status, java.lang.String articleURL,
882                    com.liferay.portal.service.ServiceContext serviceContext)
883                    throws com.liferay.portal.kernel.exception.PortalException,
884                            com.liferay.portal.kernel.exception.SystemException;
885    
886            public void updateTemplateId(long groupId, long classNameId,
887                    java.lang.String oldTemplateId, java.lang.String newTemplateId)
888                    throws com.liferay.portal.kernel.exception.SystemException;
889    }