001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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, java.lang.String articleId,
251                    boolean autoArticleId, double version, java.lang.String title,
252                    java.lang.String description, java.lang.String content,
253                    java.lang.String type, java.lang.String structureId,
254                    java.lang.String templateId, int displayDateMonth, int displayDateDay,
255                    int displayDateYear, int displayDateHour, int displayDateMinute,
256                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
257                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
258                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
259                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
260                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
261                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
262                    java.lang.String articleURL,
263                    com.liferay.portal.service.ServiceContext serviceContext)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException;
266    
267            public void addArticleResources(
268                    com.liferay.portlet.journal.model.JournalArticle article,
269                    boolean addCommunityPermissions, boolean addGuestPermissions)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException;
272    
273            public void addArticleResources(
274                    com.liferay.portlet.journal.model.JournalArticle article,
275                    java.lang.String[] communityPermissions,
276                    java.lang.String[] guestPermissions)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException;
279    
280            public void addArticleResources(long groupId, java.lang.String articleId,
281                    boolean addCommunityPermissions, boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            public void addArticleResources(long groupId, java.lang.String articleId,
286                    java.lang.String[] communityPermissions,
287                    java.lang.String[] guestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException;
290    
291            public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
292                    long groupId, java.lang.String articleId, double version)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException;
295    
296            public void checkArticles()
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException;
299    
300            public void checkNewLine(long groupId, java.lang.String articleId,
301                    double version)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            public void checkStructure(long groupId, java.lang.String articleId,
306                    double version)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException;
309    
310            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
311                    long userId, long groupId, java.lang.String oldArticleId,
312                    java.lang.String newArticleId, boolean autoArticleId, double version)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException;
315    
316            public void deleteArticle(
317                    com.liferay.portlet.journal.model.JournalArticle article,
318                    java.lang.String articleURL,
319                    com.liferay.portal.service.ServiceContext serviceContext)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException;
322    
323            public void deleteArticle(long groupId, java.lang.String articleId,
324                    double version, java.lang.String articleURL,
325                    com.liferay.portal.service.ServiceContext serviceContext)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException;
328    
329            public void deleteArticle(long groupId, java.lang.String articleId,
330                    com.liferay.portal.service.ServiceContext serviceContext)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException;
333    
334            public void deleteArticles(long groupId)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException;
337    
338            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
339                    long userId, long groupId, java.lang.String articleId, double version,
340                    java.lang.String articleURL,
341                    com.liferay.portal.service.ServiceContext serviceContext)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            public void expireArticle(long userId, long groupId,
346                    java.lang.String articleId, java.lang.String articleURL,
347                    com.liferay.portal.service.ServiceContext serviceContext)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException;
350    
351            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
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(
358                    long groupId, java.lang.String articleId)
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 com.liferay.portlet.journal.model.JournalArticle getArticle(
364                    long groupId, java.lang.String articleId, double version)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException;
367    
368            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
370                    long groupId, java.lang.String urlTitle)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException;
373    
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public java.lang.String getArticleContent(
376                    com.liferay.portlet.journal.model.JournalArticle article,
377                    java.lang.String templateId, java.lang.String viewMode,
378                    java.lang.String languageId,
379                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException;
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public java.lang.String getArticleContent(long groupId,
385                    java.lang.String articleId, double version, java.lang.String viewMode,
386                    java.lang.String templateId, java.lang.String languageId,
387                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException;
390    
391            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392            public java.lang.String getArticleContent(long groupId,
393                    java.lang.String articleId, double version, java.lang.String viewMode,
394                    java.lang.String languageId,
395                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException;
398    
399            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400            public java.lang.String getArticleContent(long groupId,
401                    java.lang.String articleId, java.lang.String viewMode,
402                    java.lang.String templateId, java.lang.String languageId,
403                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException;
406    
407            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408            public java.lang.String getArticleContent(long groupId,
409                    java.lang.String articleId, java.lang.String viewMode,
410                    java.lang.String languageId,
411                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException;
414    
415            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
417                    com.liferay.portlet.journal.model.JournalArticle article,
418                    java.lang.String templateId, java.lang.String viewMode,
419                    java.lang.String languageId, int page, java.lang.String xmlRequest,
420                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
426                    long groupId, java.lang.String articleId, double version,
427                    java.lang.String templateId, java.lang.String viewMode,
428                    java.lang.String languageId, int page, java.lang.String xmlRequest,
429                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
430                    throws com.liferay.portal.kernel.exception.PortalException,
431                            com.liferay.portal.kernel.exception.SystemException;
432    
433            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
435                    long groupId, java.lang.String articleId, double version,
436                    java.lang.String templateId, java.lang.String viewMode,
437                    java.lang.String languageId,
438                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException;
441    
442            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
444                    long groupId, java.lang.String articleId, java.lang.String viewMode,
445                    java.lang.String languageId, int page, java.lang.String xmlRequest,
446                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException;
449    
450            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
452                    long groupId, java.lang.String articleId, java.lang.String templateId,
453                    java.lang.String viewMode, java.lang.String languageId, int page,
454                    java.lang.String xmlRequest,
455                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException;
458    
459            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
461                    long groupId, java.lang.String articleId, java.lang.String templateId,
462                    java.lang.String viewMode, java.lang.String languageId,
463                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException;
466    
467            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
469                    long groupId, java.lang.String articleId, java.lang.String viewMode,
470                    java.lang.String languageId,
471                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException;
474    
475            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
477                    throws com.liferay.portal.kernel.exception.SystemException;
478    
479            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
481                    long groupId)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
486                    long groupId, int start, int end)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
491                    long groupId, int start, int end,
492                    com.liferay.portal.kernel.util.OrderByComparator obc)
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, java.lang.String articleId)
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> getArticlesBySmallImageId(
502                    long smallImageId)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506            public int getArticlesCount(long groupId)
507                    throws com.liferay.portal.kernel.exception.SystemException;
508    
509            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
511                    long companyId, double version, int status, int start, int end)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
516                    long companyId, int status, int start, int end)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520            public int getCompanyArticlesCount(long companyId, double version,
521                    int status, int start, int end)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public int getCompanyArticlesCount(long companyId, int status)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
530                    long groupId, java.lang.String articleId)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException;
533    
534            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
536                    long resourcePrimKey)
537                    throws com.liferay.portal.kernel.exception.PortalException,
538                            com.liferay.portal.kernel.exception.SystemException;
539    
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
542                    long resourcePrimKey, int status)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException;
545    
546            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
547            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
548                    long resourcePrimKey, int status, boolean preferApproved)
549                    throws com.liferay.portal.kernel.exception.PortalException,
550                            com.liferay.portal.kernel.exception.SystemException;
551    
552            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
554                    long groupId, java.lang.String articleId)
555                    throws com.liferay.portal.kernel.exception.PortalException,
556                            com.liferay.portal.kernel.exception.SystemException;
557    
558            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
559            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
560                    long groupId, java.lang.String articleId, int status)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException;
563    
564            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
565            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
566                    long groupId, java.lang.String urlTitle, int status)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException;
569    
570            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571            public double getLatestVersion(long groupId, java.lang.String articleId)
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 double getLatestVersion(long groupId, java.lang.String articleId,
577                    int status)
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 java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
583                    long groupId, java.lang.String structureId)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
587            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
588                    long groupId, java.lang.String structureId, int start, int end,
589                    com.liferay.portal.kernel.util.OrderByComparator obc)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
593            public int getStructureArticlesCount(long groupId,
594                    java.lang.String structureId)
595                    throws com.liferay.portal.kernel.exception.SystemException;
596    
597            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
598            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
599                    long groupId, java.lang.String templateId)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
603            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
604                    long groupId, java.lang.String templateId, int start, int end,
605                    com.liferay.portal.kernel.util.OrderByComparator obc)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609            public int getTemplateArticlesCount(long groupId,
610                    java.lang.String templateId)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
614            public boolean hasArticle(long groupId, java.lang.String articleId)
615                    throws com.liferay.portal.kernel.exception.SystemException;
616    
617            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
618            public boolean isLatestVersion(long groupId, java.lang.String articleId,
619                    double version)
620                    throws com.liferay.portal.kernel.exception.PortalException,
621                            com.liferay.portal.kernel.exception.SystemException;
622    
623            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
624            public boolean isLatestVersion(long groupId, java.lang.String articleId,
625                    double version, int status)
626                    throws com.liferay.portal.kernel.exception.PortalException,
627                            com.liferay.portal.kernel.exception.SystemException;
628    
629            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
630                    long groupId, java.lang.String articleId, double version,
631                    java.lang.String languageId)
632                    throws com.liferay.portal.kernel.exception.PortalException,
633                            com.liferay.portal.kernel.exception.SystemException;
634    
635            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
636            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
637                    long companyId, long groupId, java.lang.String keywords,
638                    java.lang.Double version, java.lang.String type,
639                    java.lang.String structureId, java.lang.String templateId,
640                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
641                    java.util.Date reviewDate, int start, int end,
642                    com.liferay.portal.kernel.util.OrderByComparator obc)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
646            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
647                    long companyId, long groupId, java.lang.String articleId,
648                    java.lang.Double version, java.lang.String title,
649                    java.lang.String description, java.lang.String content,
650                    java.lang.String type, java.lang.String structureId,
651                    java.lang.String templateId, java.util.Date displayDateGT,
652                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
653                    boolean andOperator, int start, int end,
654                    com.liferay.portal.kernel.util.OrderByComparator obc)
655                    throws com.liferay.portal.kernel.exception.SystemException;
656    
657            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
658            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
659                    long companyId, long groupId, java.lang.String articleId,
660                    java.lang.Double version, java.lang.String title,
661                    java.lang.String description, java.lang.String content,
662                    java.lang.String type, java.lang.String[] structureIds,
663                    java.lang.String[] templateIds, java.util.Date displayDateGT,
664                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
665                    boolean andOperator, int start, int end,
666                    com.liferay.portal.kernel.util.OrderByComparator obc)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            /**
670            * @deprecated {@link #search(long, long, String, String, String,
671            LinkedHashMap<String, Object>, int, int, Sort)}
672            */
673            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
674            public com.liferay.portal.kernel.search.Hits search(long companyId,
675                    long groupId, java.lang.String keywords,
676                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
677                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
678                    throws com.liferay.portal.kernel.exception.SystemException;
679    
680            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
681            public com.liferay.portal.kernel.search.Hits search(long companyId,
682                    long groupId, java.lang.String structureId,
683                    java.lang.String templateId, java.lang.String keywords,
684                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
685                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
686                    throws com.liferay.portal.kernel.exception.SystemException;
687    
688            /**
689            * @deprecated {@link #search(long, long, String, String, String, String,
690            String, String, String, String, LinkedHashMap<String,
691            Object>, boolean, int, int, Sort)}
692            */
693            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
694            public com.liferay.portal.kernel.search.Hits search(long companyId,
695                    long groupId, java.lang.String articleId, java.lang.String title,
696                    java.lang.String description, java.lang.String content,
697                    java.lang.String type, java.lang.String status,
698                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
699                    boolean andSearch, int start, int end,
700                    com.liferay.portal.kernel.search.Sort sort)
701                    throws com.liferay.portal.kernel.exception.SystemException;
702    
703            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
704            public com.liferay.portal.kernel.search.Hits search(long companyId,
705                    long groupId, java.lang.String articleId, java.lang.String title,
706                    java.lang.String description, java.lang.String content,
707                    java.lang.String type, java.lang.String status,
708                    java.lang.String structureId, java.lang.String templateId,
709                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
710                    boolean andSearch, int start, int end,
711                    com.liferay.portal.kernel.search.Sort sort)
712                    throws com.liferay.portal.kernel.exception.SystemException;
713    
714            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
715            public int searchCount(long companyId, long groupId,
716                    java.lang.String keywords, java.lang.Double version,
717                    java.lang.String type, java.lang.String structureId,
718                    java.lang.String templateId, java.util.Date displayDateGT,
719                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
723            public int searchCount(long companyId, long groupId,
724                    java.lang.String articleId, java.lang.Double version,
725                    java.lang.String title, java.lang.String description,
726                    java.lang.String content, java.lang.String type,
727                    java.lang.String structureId, java.lang.String templateId,
728                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
729                    java.util.Date reviewDate, boolean andOperator)
730                    throws com.liferay.portal.kernel.exception.SystemException;
731    
732            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
733            public int searchCount(long companyId, long groupId,
734                    java.lang.String articleId, java.lang.Double version,
735                    java.lang.String title, java.lang.String description,
736                    java.lang.String content, java.lang.String type,
737                    java.lang.String[] structureIds, java.lang.String[] templateIds,
738                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
739                    java.util.Date reviewDate, boolean andOperator)
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            public void subscribe(long userId, long groupId)
743                    throws com.liferay.portal.kernel.exception.PortalException,
744                            com.liferay.portal.kernel.exception.SystemException;
745    
746            public void unsubscribe(long userId, long groupId)
747                    throws com.liferay.portal.kernel.exception.PortalException,
748                            com.liferay.portal.kernel.exception.SystemException;
749    
750            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
751                    long userId, long groupId, java.lang.String articleId, double version,
752                    java.lang.String content)
753                    throws com.liferay.portal.kernel.exception.PortalException,
754                            com.liferay.portal.kernel.exception.SystemException;
755    
756            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
757                    long userId, long groupId, java.lang.String articleId, double version,
758                    java.lang.String title, java.lang.String description,
759                    java.lang.String content, java.lang.String type,
760                    java.lang.String structureId, java.lang.String templateId,
761                    int displayDateMonth, int displayDateDay, int displayDateYear,
762                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
763                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
764                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
765                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
766                    int reviewDateMinute, boolean neverReview, boolean indexable,
767                    boolean smallImage, java.lang.String smallImageURL,
768                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
769                    java.lang.String articleURL,
770                    com.liferay.portal.service.ServiceContext serviceContext)
771                    throws com.liferay.portal.kernel.exception.PortalException,
772                            com.liferay.portal.kernel.exception.SystemException;
773    
774            public void updateAsset(long userId,
775                    com.liferay.portlet.journal.model.JournalArticle article,
776                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
777                    throws com.liferay.portal.kernel.exception.PortalException,
778                            com.liferay.portal.kernel.exception.SystemException;
779    
780            public com.liferay.portlet.journal.model.JournalArticle updateContent(
781                    long groupId, java.lang.String articleId, double version,
782                    java.lang.String content)
783                    throws com.liferay.portal.kernel.exception.PortalException,
784                            com.liferay.portal.kernel.exception.SystemException;
785    
786            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
787                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
788                    int status, java.lang.String articleURL,
789                    com.liferay.portal.service.ServiceContext serviceContext)
790                    throws com.liferay.portal.kernel.exception.PortalException,
791                            com.liferay.portal.kernel.exception.SystemException;
792    
793            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
794                    long userId, long classPK, int status,
795                    com.liferay.portal.service.ServiceContext serviceContext)
796                    throws com.liferay.portal.kernel.exception.PortalException,
797                            com.liferay.portal.kernel.exception.SystemException;
798    
799            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
800                    long userId, long groupId, java.lang.String articleId, double version,
801                    int status, java.lang.String articleURL,
802                    com.liferay.portal.service.ServiceContext serviceContext)
803                    throws com.liferay.portal.kernel.exception.PortalException,
804                            com.liferay.portal.kernel.exception.SystemException;
805    }