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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticle(
151                    long id) throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the journal article with the primary key.
155            *
156            * @param id the primary key of the journal article
157            * @return the journal article
158            * @throws PortalException if a journal article with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public com.liferay.portlet.journal.model.JournalArticle getJournalArticle(
163                    long id)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns the journal article with the UUID in the group.
175            *
176            * @param uuid the UUID of journal article
177            * @param groupId the group id of the journal article
178            * @return the journal article
179            * @throws PortalException if a journal article with the UUID in the group could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183            public com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns a range of all the journal articles.
190            *
191            * <p>
192            * 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.
193            * </p>
194            *
195            * @param start the lower bound of the range of journal articles
196            * @param end the upper bound of the range of journal articles (not inclusive)
197            * @return the range of journal articles
198            * @throws SystemException if a system exception occurred
199            */
200            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    
205            /**
206            * Returns the number of journal articles.
207            *
208            * @return the number of journal articles
209            * @throws SystemException if a system exception occurred
210            */
211            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212            public int getJournalArticlesCount()
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            /**
216            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param journalArticle the journal article
219            * @return the journal article that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
223                    com.liferay.portlet.journal.model.JournalArticle journalArticle)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            /**
227            * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param journalArticle the journal article
230            * @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.
231            * @return the journal article that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
235                    com.liferay.portlet.journal.model.JournalArticle journalArticle,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier();
245    
246            /**
247            * Sets the Spring bean ID for this bean.
248            *
249            * @param beanIdentifier the Spring bean ID for this bean
250            */
251            public void setBeanIdentifier(java.lang.String beanIdentifier);
252    
253            public com.liferay.portlet.journal.model.JournalArticle addArticle(
254                    long userId, long groupId, long classNameId, long classPK,
255                    java.lang.String articleId, boolean autoArticleId, double version,
256                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
257                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
258                    java.lang.String content, java.lang.String type,
259                    java.lang.String structureId, java.lang.String templateId,
260                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
261                    int displayDateYear, int displayDateHour, int displayDateMinute,
262                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
263                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
264                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
265                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
266                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
267                    java.io.File smallImageFile,
268                    java.util.Map<java.lang.String, byte[]> images,
269                    java.lang.String articleURL,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException;
273    
274            public void addArticleResources(
275                    com.liferay.portlet.journal.model.JournalArticle article,
276                    boolean addGroupPermissions, boolean addGuestPermissions)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException;
279    
280            public void addArticleResources(
281                    com.liferay.portlet.journal.model.JournalArticle article,
282                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException;
285    
286            public void addArticleResources(long groupId, java.lang.String articleId,
287                    boolean addGroupPermissions, boolean addGuestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException;
290    
291            public void addArticleResources(long groupId, java.lang.String articleId,
292                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException;
295    
296            public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
297                    long groupId, java.lang.String articleId, double version)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException;
300    
301            public void checkArticles()
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            public void checkNewLine(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 void checkStructure(long groupId, java.lang.String articleId,
311                    double version)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
316                    long userId, long groupId, java.lang.String oldArticleId,
317                    java.lang.String newArticleId, boolean autoArticleId, double version)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException;
320    
321            public void deleteArticle(
322                    com.liferay.portlet.journal.model.JournalArticle article,
323                    java.lang.String articleURL,
324                    com.liferay.portal.service.ServiceContext serviceContext)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException;
327    
328            public void deleteArticle(long groupId, java.lang.String articleId,
329                    double version, java.lang.String articleURL,
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 deleteArticle(long groupId, java.lang.String articleId,
335                    com.liferay.portal.service.ServiceContext serviceContext)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException;
338    
339            public void deleteArticles(long groupId)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException;
342    
343            public void deleteLayoutArticleReferences(long groupId,
344                    java.lang.String layoutUuid)
345                    throws com.liferay.portal.kernel.exception.SystemException;
346    
347            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
348                    long userId, long groupId, java.lang.String articleId, double version,
349                    java.lang.String articleURL,
350                    com.liferay.portal.service.ServiceContext serviceContext)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException;
353    
354            public void expireArticle(long userId, long groupId,
355                    java.lang.String articleId, java.lang.String articleURL,
356                    com.liferay.portal.service.ServiceContext serviceContext)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException;
359    
360            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361            public com.liferay.portlet.journal.model.JournalArticle getArticle(long id)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException;
364    
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public com.liferay.portlet.journal.model.JournalArticle getArticle(
367                    long groupId, java.lang.String articleId)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException;
370    
371            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372            public com.liferay.portlet.journal.model.JournalArticle getArticle(
373                    long groupId, java.lang.String articleId, double version)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException;
376    
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public com.liferay.portlet.journal.model.JournalArticle getArticle(
379                    long groupId, java.lang.String className, long classPK)
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 com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
385                    long groupId, java.lang.String urlTitle)
386                    throws com.liferay.portal.kernel.exception.PortalException,
387                            com.liferay.portal.kernel.exception.SystemException;
388    
389            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390            public java.lang.String getArticleContent(
391                    com.liferay.portlet.journal.model.JournalArticle article,
392                    java.lang.String templateId, java.lang.String viewMode,
393                    java.lang.String languageId,
394                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException;
397    
398            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399            public java.lang.String getArticleContent(long groupId,
400                    java.lang.String articleId, double version, java.lang.String viewMode,
401                    java.lang.String templateId, java.lang.String languageId,
402                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException;
405    
406            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407            public java.lang.String getArticleContent(long groupId,
408                    java.lang.String articleId, double version, java.lang.String viewMode,
409                    java.lang.String languageId,
410                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public java.lang.String getArticleContent(long groupId,
416                    java.lang.String articleId, java.lang.String viewMode,
417                    java.lang.String templateId, java.lang.String languageId,
418                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException;
421    
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public java.lang.String getArticleContent(long groupId,
424                    java.lang.String articleId, java.lang.String viewMode,
425                    java.lang.String languageId,
426                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException;
429    
430            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
432                    com.liferay.portlet.journal.model.JournalArticle article,
433                    java.lang.String templateId, java.lang.String viewMode,
434                    java.lang.String languageId, int page, java.lang.String xmlRequest,
435                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException;
438    
439            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
441                    long groupId, java.lang.String articleId, double version,
442                    java.lang.String templateId, java.lang.String viewMode,
443                    java.lang.String languageId, int page, java.lang.String xmlRequest,
444                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException;
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
450                    long groupId, java.lang.String articleId, double version,
451                    java.lang.String templateId, java.lang.String viewMode,
452                    java.lang.String languageId,
453                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
459                    long groupId, java.lang.String articleId, java.lang.String viewMode,
460                    java.lang.String languageId, int page, java.lang.String xmlRequest,
461                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException;
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
467                    long groupId, java.lang.String articleId, java.lang.String templateId,
468                    java.lang.String viewMode, java.lang.String languageId, int page,
469                    java.lang.String xmlRequest,
470                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException;
473    
474            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
476                    long groupId, java.lang.String articleId, java.lang.String templateId,
477                    java.lang.String viewMode, java.lang.String languageId,
478                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
479                    throws com.liferay.portal.kernel.exception.PortalException,
480                            com.liferay.portal.kernel.exception.SystemException;
481    
482            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483            public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
484                    long groupId, java.lang.String articleId, java.lang.String viewMode,
485                    java.lang.String languageId,
486                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
487                    throws com.liferay.portal.kernel.exception.PortalException,
488                            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                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
496                    long groupId)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
501                    long groupId, int start, int end)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
506                    long groupId, int start, int end,
507                    com.liferay.portal.kernel.util.OrderByComparator obc)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
512                    long groupId, java.lang.String articleId)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
517                    long smallImageId)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521            public int getArticlesCount(long groupId)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
526                    long companyId, double version, int status, int start, int end)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
530            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles(
531                    long companyId, int status, int start, int end)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535            public int getCompanyArticlesCount(long companyId, double version,
536                    int status, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540            public int getCompanyArticlesCount(long companyId, int status)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
545                    long groupId, java.lang.String articleId)
546                    throws com.liferay.portal.kernel.exception.PortalException,
547                            com.liferay.portal.kernel.exception.SystemException;
548    
549            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
551                    long resourcePrimKey)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException;
554    
555            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
557                    long resourcePrimKey, int status)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException;
560    
561            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
563                    long resourcePrimKey, int status, boolean preferApproved)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException;
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
569                    long groupId, java.lang.String articleId)
570                    throws com.liferay.portal.kernel.exception.PortalException,
571                            com.liferay.portal.kernel.exception.SystemException;
572    
573            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
574            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
575                    long groupId, java.lang.String articleId, int status)
576                    throws com.liferay.portal.kernel.exception.PortalException,
577                            com.liferay.portal.kernel.exception.SystemException;
578    
579            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
580            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
581                    long groupId, java.lang.String className, long classPK)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException;
584    
585            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586            public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle(
587                    long groupId, java.lang.String urlTitle, int status)
588                    throws com.liferay.portal.kernel.exception.PortalException,
589                            com.liferay.portal.kernel.exception.SystemException;
590    
591            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
592            public double getLatestVersion(long groupId, java.lang.String articleId)
593                    throws com.liferay.portal.kernel.exception.PortalException,
594                            com.liferay.portal.kernel.exception.SystemException;
595    
596            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597            public double getLatestVersion(long groupId, java.lang.String articleId,
598                    int status)
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            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> getStructureArticles(
604                    long groupId, java.lang.String structureId)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
609                    long groupId, java.lang.String structureId, int start, int end,
610                    com.liferay.portal.kernel.util.OrderByComparator obc)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
614            public int getStructureArticlesCount(long groupId,
615                    java.lang.String structureId)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
619            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
620                    long groupId, java.lang.String templateId)
621                    throws com.liferay.portal.kernel.exception.SystemException;
622    
623            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
624            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
625                    long groupId, java.lang.String templateId, int start, int end,
626                    com.liferay.portal.kernel.util.OrderByComparator obc)
627                    throws com.liferay.portal.kernel.exception.SystemException;
628    
629            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
630            public int getTemplateArticlesCount(long groupId,
631                    java.lang.String templateId)
632                    throws com.liferay.portal.kernel.exception.SystemException;
633    
634            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
635            public boolean hasArticle(long groupId, java.lang.String articleId)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
639            public boolean isLatestVersion(long groupId, java.lang.String articleId,
640                    double version)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException;
643    
644            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
645            public boolean isLatestVersion(long groupId, java.lang.String articleId,
646                    double version, int status)
647                    throws com.liferay.portal.kernel.exception.PortalException,
648                            com.liferay.portal.kernel.exception.SystemException;
649    
650            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
651                    long groupId, java.lang.String articleId, double version,
652                    java.lang.String languageId)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException;
655    
656            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
657            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
658                    long companyId, long groupId, long classNameId,
659                    java.lang.String keywords, java.lang.Double version,
660                    java.lang.String type, java.lang.String structureId,
661                    java.lang.String templateId, java.util.Date displayDateGT,
662                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
663                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
667            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
668                    long companyId, long groupId, long classNameId,
669                    java.lang.String articleId, java.lang.Double version,
670                    java.lang.String title, java.lang.String description,
671                    java.lang.String content, java.lang.String type,
672                    java.lang.String structureId, java.lang.String templateId,
673                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
674                    java.util.Date reviewDate, boolean andOperator, int start, int end,
675                    com.liferay.portal.kernel.util.OrderByComparator obc)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
679            public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
680                    long companyId, long groupId, long classNameId,
681                    java.lang.String articleId, java.lang.Double version,
682                    java.lang.String title, java.lang.String description,
683                    java.lang.String content, java.lang.String type,
684                    java.lang.String[] structureIds, java.lang.String[] templateIds,
685                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
686                    java.util.Date reviewDate, boolean andOperator, int start, int end,
687                    com.liferay.portal.kernel.util.OrderByComparator obc)
688                    throws com.liferay.portal.kernel.exception.SystemException;
689    
690            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
691            public com.liferay.portal.kernel.search.Hits search(long companyId,
692                    long groupId, long classNameId, java.lang.String structureId,
693                    java.lang.String templateId, java.lang.String keywords,
694                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
695                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
699            public com.liferay.portal.kernel.search.Hits search(long companyId,
700                    long groupId, long classNameId, java.lang.String articleId,
701                    java.lang.String title, java.lang.String description,
702                    java.lang.String content, java.lang.String type,
703                    java.lang.String status, java.lang.String structureId,
704                    java.lang.String templateId,
705                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
706                    boolean andSearch, int start, int end,
707                    com.liferay.portal.kernel.search.Sort sort)
708                    throws com.liferay.portal.kernel.exception.SystemException;
709    
710            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
711            public int searchCount(long companyId, long groupId, long classNameId,
712                    java.lang.String keywords, java.lang.Double version,
713                    java.lang.String type, java.lang.String structureId,
714                    java.lang.String templateId, java.util.Date displayDateGT,
715                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
719            public int searchCount(long companyId, long groupId, long classNameId,
720                    java.lang.String articleId, java.lang.Double version,
721                    java.lang.String title, java.lang.String description,
722                    java.lang.String content, java.lang.String type,
723                    java.lang.String structureId, java.lang.String templateId,
724                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
725                    java.util.Date reviewDate, boolean andOperator)
726                    throws com.liferay.portal.kernel.exception.SystemException;
727    
728            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
729            public int searchCount(long companyId, long groupId, long classNameId,
730                    java.lang.String articleId, java.lang.Double version,
731                    java.lang.String title, java.lang.String description,
732                    java.lang.String content, java.lang.String type,
733                    java.lang.String[] structureIds, java.lang.String[] templateIds,
734                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
735                    java.util.Date reviewDate, boolean andOperator)
736                    throws com.liferay.portal.kernel.exception.SystemException;
737    
738            public void subscribe(long userId, long groupId)
739                    throws com.liferay.portal.kernel.exception.PortalException,
740                            com.liferay.portal.kernel.exception.SystemException;
741    
742            public void unsubscribe(long userId, long groupId)
743                    throws com.liferay.portal.kernel.exception.PortalException,
744                            com.liferay.portal.kernel.exception.SystemException;
745    
746            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
747                    long userId, long groupId, java.lang.String articleId, double version,
748                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
749                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
750                    java.lang.String content, java.lang.String layoutUuid,
751                    com.liferay.portal.service.ServiceContext serviceContext)
752                    throws com.liferay.portal.kernel.exception.PortalException,
753                            com.liferay.portal.kernel.exception.SystemException;
754    
755            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
756                    long userId, long groupId, java.lang.String articleId, double version,
757                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
758                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
759                    java.lang.String content, java.lang.String type,
760                    java.lang.String structureId, java.lang.String templateId,
761                    java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
762                    int displayDateYear, int displayDateHour, int displayDateMinute,
763                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
764                    int expirationDateHour, int expirationDateMinute, boolean neverExpire,
765                    int reviewDateMonth, int reviewDateDay, int reviewDateYear,
766                    int reviewDateHour, int reviewDateMinute, boolean neverReview,
767                    boolean indexable, boolean smallImage, java.lang.String smallImageURL,
768                    java.io.File smallImageFile,
769                    java.util.Map<java.lang.String, byte[]> images,
770                    java.lang.String articleURL,
771                    com.liferay.portal.service.ServiceContext serviceContext)
772                    throws com.liferay.portal.kernel.exception.PortalException,
773                            com.liferay.portal.kernel.exception.SystemException;
774    
775            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
776                    long userId, long groupId, java.lang.String articleId, double version,
777                    java.lang.String content,
778                    com.liferay.portal.service.ServiceContext serviceContext)
779                    throws com.liferay.portal.kernel.exception.PortalException,
780                            com.liferay.portal.kernel.exception.SystemException;
781    
782            public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
783                    long groupId, java.lang.String articleId, double version,
784                    java.util.Locale locale, java.lang.String title,
785                    java.lang.String description, java.lang.String content)
786                    throws com.liferay.portal.kernel.exception.PortalException,
787                            com.liferay.portal.kernel.exception.SystemException;
788    
789            public void updateAsset(long userId,
790                    com.liferay.portlet.journal.model.JournalArticle article,
791                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
792                    long[] assetLinkEntryIds)
793                    throws com.liferay.portal.kernel.exception.PortalException,
794                            com.liferay.portal.kernel.exception.SystemException;
795    
796            public com.liferay.portlet.journal.model.JournalArticle updateContent(
797                    long groupId, java.lang.String articleId, double version,
798                    java.lang.String content)
799                    throws com.liferay.portal.kernel.exception.PortalException,
800                            com.liferay.portal.kernel.exception.SystemException;
801    
802            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
803                    long userId, com.liferay.portlet.journal.model.JournalArticle article,
804                    int status, java.lang.String articleURL,
805                    com.liferay.portal.service.ServiceContext serviceContext)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException;
808    
809            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
810                    long userId, long classPK, int status,
811                    com.liferay.portal.service.ServiceContext serviceContext)
812                    throws com.liferay.portal.kernel.exception.PortalException,
813                            com.liferay.portal.kernel.exception.SystemException;
814    
815            public com.liferay.portlet.journal.model.JournalArticle updateStatus(
816                    long userId, long groupId, java.lang.String articleId, double version,
817                    int status, java.lang.String articleURL,
818                    com.liferay.portal.service.ServiceContext serviceContext)
819                    throws com.liferay.portal.kernel.exception.PortalException,
820                            com.liferay.portal.kernel.exception.SystemException;
821    
822            public void updateTemplateId(long groupId, long classNameId,
823                    java.lang.String oldTemplateId, java.lang.String newTemplateId)
824                    throws com.liferay.portal.kernel.exception.SystemException;
825    }