001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the journal article remote service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link JournalArticleServiceUtil} to access the journal article remote service. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see JournalArticleServiceUtil
036     * @see com.liferay.portlet.journal.service.base.JournalArticleServiceBaseImpl
037     * @see com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface JournalArticleService {
043            public com.liferay.portlet.journal.model.JournalArticle addArticle(
044                    long groupId, java.lang.String articleId, boolean autoArticleId,
045                    java.lang.String title, java.lang.String description,
046                    java.lang.String content, java.lang.String type,
047                    java.lang.String structureId, java.lang.String templateId,
048                    int displayDateMonth, int displayDateDay, int displayDateYear,
049                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
050                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
051                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
052                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
053                    int reviewDateMinute, boolean neverReview, boolean indexable,
054                    boolean smallImage, java.lang.String smallImageURL,
055                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
056                    java.lang.String articleURL,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException;
060    
061            public com.liferay.portlet.journal.model.JournalArticle addArticle(
062                    long groupId, java.lang.String articleId, boolean autoArticleId,
063                    java.lang.String title, java.lang.String description,
064                    java.lang.String content, java.lang.String type,
065                    java.lang.String structureId, java.lang.String templateId,
066                    int displayDateMonth, int displayDateDay, int displayDateYear,
067                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
068                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
069                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
070                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
071                    int reviewDateMinute, boolean neverReview, boolean indexable,
072                    java.lang.String articleURL,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portlet.journal.model.JournalArticle copyArticle(
078                    long groupId, java.lang.String oldArticleId,
079                    java.lang.String newArticleId, boolean autoArticleId, double version)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            public void deleteArticle(long groupId, java.lang.String articleId,
084                    double version, java.lang.String articleURL,
085                    com.liferay.portal.service.ServiceContext serviceContext)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            public void deleteArticle(long groupId, java.lang.String articleId,
090                    java.lang.String articleURL,
091                    com.liferay.portal.service.ServiceContext serviceContext)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portlet.journal.model.JournalArticle expireArticle(
096                    long groupId, java.lang.String articleId, double version,
097                    java.lang.String articleURL,
098                    com.liferay.portal.service.ServiceContext serviceContext)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public com.liferay.portlet.journal.model.JournalArticle getArticle(
104                    long groupId, java.lang.String articleId)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109            public com.liferay.portlet.journal.model.JournalArticle getArticle(
110                    long groupId, java.lang.String articleId, double version)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
116                    long groupId, java.lang.String urlTitle)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public java.lang.String getArticleContent(long groupId,
122                    java.lang.String articleId, double version,
123                    java.lang.String languageId,
124                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public java.lang.String getArticleContent(long groupId,
130                    java.lang.String articleId, java.lang.String languageId,
131                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
137                    long groupId, java.lang.String articleId, int status)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException;
140    
141            public void removeArticleLocale(long companyId, java.lang.String languageId)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException;
144    
145            public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
146                    long groupId, java.lang.String articleId, double version,
147                    java.lang.String languageId)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException;
150    
151            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
152                    long groupId, java.lang.String articleId, double version,
153                    java.lang.String content)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portlet.journal.model.JournalArticle updateArticle(
158                    long groupId, java.lang.String articleId, double version,
159                    java.lang.String title, java.lang.String description,
160                    java.lang.String content, java.lang.String type,
161                    java.lang.String structureId, java.lang.String templateId,
162                    int displayDateMonth, int displayDateDay, int displayDateYear,
163                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
164                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
165                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
166                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
167                    int reviewDateMinute, boolean neverReview, boolean indexable,
168                    boolean smallImage, java.lang.String smallImageURL,
169                    java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
170                    java.lang.String articleURL,
171                    com.liferay.portal.service.ServiceContext serviceContext)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            public com.liferay.portlet.journal.model.JournalArticle updateContent(
176                    long groupId, java.lang.String articleId, double version,
177                    java.lang.String content)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    }