001    /**
002     * Copyright (c) 2000-2010 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.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the journal article local service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see JournalArticleLocalServiceUtil
036     * @see com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl
037     * @see com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface JournalArticleLocalService {
043            /**
044            * Adds the journal article to the database. Also notifies the appropriate model listeners.
045            *
046            * @param journalArticle the journal article to add
047            * @return the journal article that was added
048            * @throws SystemException if a system exception occurred
049            */
050            public com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
051                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Creates a new journal article with the primary key. Does not add the journal article to the database.
056            *
057            * @param id the primary key for the new journal article
058            * @return the new journal article
059            */
060            public com.liferay.portlet.journal.model.JournalArticle createJournalArticle(
061                    long id);
062    
063            /**
064            * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param id the primary key of the journal article to delete
067            * @throws PortalException if a journal article with the primary key could not be found
068            * @throws SystemException if a system exception occurred
069            */
070            public void deleteJournalArticle(long id)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            /**
075            * Deletes the journal article from the database. Also notifies the appropriate model listeners.
076            *
077            * @param journalArticle the journal article to delete
078            * @throws SystemException if a system exception occurred
079            */
080            public void deleteJournalArticle(
081                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query to search with
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query to search with
122            * @param start the lower bound of the range of model instances to return
123            * @param end the upper bound of the range of model instances to return (not inclusive)
124            * @param orderByComparator the comparator to order the results by
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Counts the number of rows that match the dynamic query.
137            *
138            * @param dynamicQuery the dynamic query to search with
139            * @return the number of rows that match the dynamic query
140            * @throws SystemException if a system exception occurred
141            */
142            public long dynamicQueryCount(
143                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Gets the journal article with the primary key.
148            *
149            * @param id the primary key of the journal article to get
150            * @return the journal article
151            * @throws PortalException if a journal article with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155            public com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
156                    long id)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Gets the journal article with the UUID and group id.
162            *
163            * @param uuid the UUID of journal article to get
164            * @param groupId the group id of the journal article to get
165            * @return the journal article
166            * @throws PortalException if a journal article with the UUID and group id could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
171                    java.lang.String uuid, long groupId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            /**
176            * Gets a range of all the journal articles.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param start the lower bound of the range of journal articles to return
183            * @param end the upper bound of the range of journal articles to return (not inclusive)
184            * @return the range of journal articles
185            * @throws SystemException if a system exception occurred
186            */
187            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
189                    int start, int end)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            /**
193            * Gets the number of journal articles.
194            *
195            * @return the number of journal articles
196            * @throws SystemException if a system exception occurred
197            */
198            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199            public int getJournalArticlesCount()
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Updates the journal article in the database. Also notifies the appropriate model listeners.
204            *
205            * @param journalArticle the journal article to update
206            * @return the journal article that was updated
207            * @throws SystemException if a system exception occurred
208            */
209            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
210                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            /**
214            * Updates the journal article in the database. Also notifies the appropriate model listeners.
215            *
216            * @param journalArticle the journal article to update
217            * @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.
218            * @return the journal article that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
222                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
223                    boolean merge)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            public com.liferay.portlet.journal.model.JournalArticle addArticle(
227                    long userId, long groupId, java.lang.String articleId,
228                    boolean autoArticleId, double version, java.lang.String title,
229                    java.lang.String description, java.lang.String content,
230                    java.lang.String type, java.lang.String structureId,
231                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
232                    int displayDateYear, int displayDateHour, int displayDateMinute,
233                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
234                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
235                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
236                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
237                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
238                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
239                    java.lang.String articleURL,
240                    com.liferay.portal.service.ServiceContext serviceContext)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException;
243    
244            public void addArticleResources(
245                    com.liferay.portlet.journal.model.JournalArticle article,
246                    boolean addCommunityPermissions, boolean addGuestPermissions)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException;
249    
250            public void addArticleResources(
251                    com.liferay.portlet.journal.model.JournalArticle article,
252                    java.lang.String[] communityPermissions,
253                    java.lang.String[] guestPermissions)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException;
256    
257            public void addArticleResources(long groupId, java.lang.String articleId,
258                    boolean addCommunityPermissions, boolean addGuestPermissions)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException;
261    
262            public void addArticleResources(long groupId, java.lang.String articleId,
263                    java.lang.String[] communityPermissions,
264                    java.lang.String[] guestPermissions)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
269                    long groupId, java.lang.String articleId, double version)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException;
272    
273            public void checkArticles()
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException;
276    
277            public void checkNewLine(long groupId, java.lang.String articleId,
278                    double version)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException;
281    
282            public void checkStructure(long groupId, java.lang.String articleId,
283                    double version)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException;
286    
287            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
288                    long userId, long groupId, java.lang.String oldArticleId,
289                    java.lang.String newArticleId, boolean autoArticleId, double version)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException;
292    
293            public void deleteArticle(
294                    com.liferay.portlet.journal.model.JournalArticle article,
295                    java.lang.String articleURL,
296                    com.liferay.portal.service.ServiceContext serviceContext)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException;
299    
300            public void deleteArticle(long groupId, java.lang.String articleId,
301                    double version, java.lang.String articleURL,
302                    com.liferay.portal.service.ServiceContext serviceContext)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            public void deleteArticle(long groupId, java.lang.String articleId,
307                    com.liferay.portal.service.ServiceContext serviceContext)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException;
310    
311            public void deleteArticles(long groupId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
316                    long userId, long groupId, java.lang.String articleId, double version,
317                    java.lang.String articleURL,
318                    com.liferay.portal.service.ServiceContext serviceContext)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException;
321    
322            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException;
326    
327            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328            public com.liferay.portlet.journal.model.JournalArticle getArticle(
329                    long groupId, java.lang.String articleId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException;
332    
333            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334            public com.liferay.portlet.journal.model.JournalArticle getArticle(
335                    long groupId, java.lang.String articleId, double version)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException;
338    
339            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
341                    long groupId, java.lang.String urlTitle)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346            public java.lang.String getArticleContent(
347                    com.liferay.portlet.journal.model.JournalArticle article,
348                    java.lang.String templateId, java.lang.String viewMode,
349                    java.lang.String languageId,
350                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException;
353    
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public java.lang.String getArticleContent(long groupId,
356                    java.lang.String articleId, double version, java.lang.String viewMode,
357                    java.lang.String templateId, java.lang.String languageId,
358                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException;
361    
362            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363            public java.lang.String getArticleContent(long groupId,
364                    java.lang.String articleId, double version, java.lang.String viewMode,
365                    java.lang.String languageId,
366                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException;
369    
370            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371            public java.lang.String getArticleContent(long groupId,
372                    java.lang.String articleId, java.lang.String viewMode,
373                    java.lang.String templateId, java.lang.String languageId,
374                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
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 java.lang.String getArticleContent(long groupId,
380                    java.lang.String articleId, java.lang.String viewMode,
381                    java.lang.String languageId,
382                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException;
385    
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
388                    com.liferay.portlet.journal.model.JournalArticle article,
389                    java.lang.String templateId, java.lang.String viewMode,
390                    java.lang.String languageId, int page, java.lang.String xmlRequest,
391                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException;
394    
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
397                    long groupId, java.lang.String articleId, double version,
398                    java.lang.String templateId, java.lang.String viewMode,
399                    java.lang.String languageId, int page, java.lang.String xmlRequest,
400                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException;
403    
404            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
406                    long groupId, java.lang.String articleId, double version,
407                    java.lang.String templateId, java.lang.String viewMode,
408                    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 com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
415                    long groupId, java.lang.String articleId, java.lang.String viewMode,
416                    java.lang.String languageId, int page, java.lang.String xmlRequest,
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 com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
423                    long groupId, java.lang.String articleId, java.lang.String templateId,
424                    java.lang.String viewMode, java.lang.String languageId, int page,
425                    java.lang.String xmlRequest,
426                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException;
429    
430            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
432                    long groupId, java.lang.String articleId, java.lang.String templateId,
433                    java.lang.String viewMode, java.lang.String languageId,
434                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException;
437    
438            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
440                    long groupId, java.lang.String articleId, java.lang.String viewMode,
441                    java.lang.String languageId,
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 java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
452                    long groupId)
453                    throws com.liferay.portal.kernel.exception.SystemException;
454    
455            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
457                    long groupId, int start, int end)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
462                    long groupId, int start, int end,
463                    com.liferay.portal.kernel.util.OrderByComparator obc)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
468                    long groupId, java.lang.String articleId)
469                    throws com.liferay.portal.kernel.exception.SystemException;
470    
471            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
473                    long smallImageId)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477            public int getArticlesCount(long groupId)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
482                    long companyId, int status, int start, int end)
483                    throws com.liferay.portal.kernel.exception.SystemException;
484    
485            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486            public int getCompanyArticlesCount(long companyId, int status)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
491                    long groupId, java.lang.String articleId)
492                    throws com.liferay.portal.kernel.exception.PortalException,
493                            com.liferay.portal.kernel.exception.SystemException;
494    
495            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
497                    long resourcePrimKey)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException;
500    
501            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
502            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
503                    long resourcePrimKey, int status)
504                    throws com.liferay.portal.kernel.exception.PortalException,
505                            com.liferay.portal.kernel.exception.SystemException;
506    
507            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
509                    long resourcePrimKey, int status, boolean preferApproved)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException;
512    
513            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
515                    long groupId, java.lang.String articleId)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException;
518    
519            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
521                    long groupId, java.lang.String articleId, int status)
522                    throws com.liferay.portal.kernel.exception.PortalException,
523                            com.liferay.portal.kernel.exception.SystemException;
524    
525            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
527                    long groupId, java.lang.String urlTitle, int status)
528                    throws com.liferay.portal.kernel.exception.PortalException,
529                            com.liferay.portal.kernel.exception.SystemException;
530    
531            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532            public double getLatestVersion(long groupId, java.lang.String articleId)
533                    throws com.liferay.portal.kernel.exception.PortalException,
534                            com.liferay.portal.kernel.exception.SystemException;
535    
536            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537            public double getLatestVersion(long groupId, java.lang.String articleId,
538                    int status)
539                    throws com.liferay.portal.kernel.exception.PortalException,
540                            com.liferay.portal.kernel.exception.SystemException;
541    
542            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
543            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
544                    long groupId, java.lang.String structureId)
545                    throws com.liferay.portal.kernel.exception.SystemException;
546    
547            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
548            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
549                    long groupId, java.lang.String structureId, int start, int end,
550                    com.liferay.portal.kernel.util.OrderByComparator obc)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    
553            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
554            public int getStructureArticlesCount(long groupId,
555                    java.lang.String structureId)
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> getTemplateArticles(
560                    long groupId, java.lang.String templateId)
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> getTemplateArticles(
565                    long groupId, java.lang.String templateId, int start, int end,
566                    com.liferay.portal.kernel.util.OrderByComparator obc)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
570            public int getTemplateArticlesCount(long groupId,
571                    java.lang.String templateId)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
575            public boolean hasArticle(long groupId, java.lang.String articleId)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
579            public boolean isLatestVersion(long groupId, java.lang.String articleId,
580                    double version)
581                    throws com.liferay.portal.kernel.exception.PortalException,
582                            com.liferay.portal.kernel.exception.SystemException;
583    
584            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585            public boolean isLatestVersion(long groupId, java.lang.String articleId,
586                    double version, int status)
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException;
589    
590            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
591                    long groupId, java.lang.String articleId, double version,
592                    java.lang.String languageId)
593                    throws com.liferay.portal.kernel.exception.PortalException,
594                            com.liferay.portal.kernel.exception.SystemException;
595    
596            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
598                    long companyId, long groupId, java.lang.String keywords,
599                    java.lang.Double version, java.lang.String type,
600                    java.lang.String structureId, java.lang.String templateId,
601                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
602                    java.util.Date reviewDate, int start, int end,
603                    com.liferay.portal.kernel.util.OrderByComparator obc)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
607            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
608                    long companyId, long groupId, java.lang.String articleId,
609                    java.lang.Double version, java.lang.String title,
610                    java.lang.String description, java.lang.String content,
611                    java.lang.String type, java.lang.String structureId,
612                    java.lang.String templateId, java.util.Date displayDateGT,
613                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
614                    boolean andOperator, int start, int end,
615                    com.liferay.portal.kernel.util.OrderByComparator obc)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
619            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
620                    long companyId, long groupId, java.lang.String articleId,
621                    java.lang.Double version, java.lang.String title,
622                    java.lang.String description, java.lang.String content,
623                    java.lang.String type, java.lang.String[] structureIds,
624                    java.lang.String[] templateIds, java.util.Date displayDateGT,
625                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
626                    boolean andOperator, int start, int end,
627                    com.liferay.portal.kernel.util.OrderByComparator obc)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
631            public int searchCount(long companyId, long groupId,
632                    java.lang.String keywords, java.lang.Double version,
633                    java.lang.String type, java.lang.String structureId,
634                    java.lang.String templateId, java.util.Date displayDateGT,
635                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
639            public int searchCount(long companyId, long groupId,
640                    java.lang.String articleId, java.lang.Double version,
641                    java.lang.String title, java.lang.String description,
642                    java.lang.String content, java.lang.String type,
643                    java.lang.String structureId, java.lang.String templateId,
644                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
645                    java.util.Date reviewDate, boolean andOperator)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
649            public int searchCount(long companyId, long groupId,
650                    java.lang.String articleId, java.lang.Double version,
651                    java.lang.String title, java.lang.String description,
652                    java.lang.String content, java.lang.String type,
653                    java.lang.String[] structureIds, java.lang.String[] templateIds,
654                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
655                    java.util.Date reviewDate, boolean andOperator)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
659                    long userId, long groupId, java.lang.String articleId, double version,
660                    java.lang.String content)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException;
663    
664            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
665                    long userId, long groupId, java.lang.String articleId, double version,
666                    java.lang.String title, java.lang.String description,
667                    java.lang.String content, java.lang.String type,
668                    java.lang.String structureId, java.lang.String templateId,
669                    int displayDateMonth, int displayDateDay, int displayDateYear,
670                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
671                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
672                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
673                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
674                    int reviewDateMinute, boolean neverReview, boolean indexable,
675                    boolean smallImage, java.lang.String smallImageURL,
676                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
677                    java.lang.String articleURL,
678                    com.liferay.portal.service.ServiceContext serviceContext)
679                    throws com.liferay.portal.kernel.exception.PortalException,
680                            com.liferay.portal.kernel.exception.SystemException;
681    
682            public void updateAsset(long userId,
683                    com.liferay.portlet.journal.model.JournalArticle article,
684                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
685                    throws com.liferay.portal.kernel.exception.PortalException,
686                            com.liferay.portal.kernel.exception.SystemException;
687    
688            public com.liferay.portlet.journal.model.JournalArticle updateContent(
689                    long groupId, java.lang.String articleId, double version,
690                    java.lang.String content)
691                    throws com.liferay.portal.kernel.exception.PortalException,
692                            com.liferay.portal.kernel.exception.SystemException;
693    
694            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
695                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
696                    int status, java.lang.String articleURL,
697                    com.liferay.portal.service.ServiceContext serviceContext)
698                    throws com.liferay.portal.kernel.exception.PortalException,
699                            com.liferay.portal.kernel.exception.SystemException;
700    
701            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
702                    long userId, long classPK, int status,
703                    com.liferay.portal.service.ServiceContext serviceContext)
704                    throws com.liferay.portal.kernel.exception.PortalException,
705                            com.liferay.portal.kernel.exception.SystemException;
706    
707            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
708                    long userId, long groupId, java.lang.String articleId, double version,
709                    int status, java.lang.String articleURL,
710                    com.liferay.portal.service.ServiceContext serviceContext)
711                    throws com.liferay.portal.kernel.exception.PortalException,
712                            com.liferay.portal.kernel.exception.SystemException;
713    }