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