1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="JournalArticleService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       JournalArticleServiceUtil
53   * @generated
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface JournalArticleService {
58      public com.liferay.portlet.journal.model.JournalArticle addArticle(
59          long groupId, java.lang.String articleId, boolean autoArticleId,
60          java.lang.String title, java.lang.String description,
61          java.lang.String content, java.lang.String type,
62          java.lang.String structureId, java.lang.String templateId,
63          int displayDateMonth, int displayDateDay, int displayDateYear,
64          int displayDateHour, int displayDateMinute, int expirationDateMonth,
65          int expirationDateDay, int expirationDateYear, int expirationDateHour,
66          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
67          int reviewDateDay, int reviewDateYear, int reviewDateHour,
68          int reviewDateMinute, boolean neverReview, boolean indexable,
69          java.lang.String articleURL,
70          com.liferay.portal.service.ServiceContext serviceContext)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.journal.model.JournalArticle addArticle(
75          long groupId, java.lang.String articleId, boolean autoArticleId,
76          java.lang.String title, java.lang.String description,
77          java.lang.String content, java.lang.String type,
78          java.lang.String structureId, java.lang.String templateId,
79          int displayDateMonth, int displayDateDay, int displayDateYear,
80          int displayDateHour, int displayDateMinute, int expirationDateMonth,
81          int expirationDateDay, int expirationDateYear, int expirationDateHour,
82          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
83          int reviewDateDay, int reviewDateYear, int reviewDateHour,
84          int reviewDateMinute, boolean neverReview, boolean indexable,
85          boolean smallImage, java.lang.String smallImageURL,
86          java.io.File smallFile, java.util.Map<String, byte[]> images,
87          java.lang.String articleURL,
88          com.liferay.portal.service.ServiceContext serviceContext)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.journal.model.JournalArticle approveArticle(
93          long groupId, java.lang.String articleId, double version,
94          java.lang.String articleURL,
95          com.liferay.portal.service.ServiceContext serviceContext)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.journal.model.JournalArticle copyArticle(
100         long groupId, java.lang.String oldArticleId,
101         java.lang.String newArticleId, boolean autoArticleId, double version)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106     public com.liferay.portlet.journal.model.JournalArticle getArticle(
107         long groupId, java.lang.String articleId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112     public com.liferay.portlet.journal.model.JournalArticle getArticle(
113         long groupId, java.lang.String articleId, double version)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException;
116 
117     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118     public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
119         long groupId, java.lang.String urlTitle)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124     public java.lang.String getArticleContent(long groupId,
125         java.lang.String articleId, java.lang.String languageId,
126         com.liferay.portal.theme.ThemeDisplay themeDisplay)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException;
129 
130     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131     public java.lang.String getArticleContent(long groupId,
132         java.lang.String articleId, double version,
133         java.lang.String languageId,
134         com.liferay.portal.theme.ThemeDisplay themeDisplay)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void deleteArticle(long groupId, java.lang.String articleId,
139         double version, java.lang.String articleURL,
140         com.liferay.portal.service.ServiceContext serviceContext)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void expireArticle(long groupId, java.lang.String articleId,
145         double version, java.lang.String articleURL,
146         com.liferay.portal.service.ServiceContext serviceContext)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void removeArticleLocale(long companyId, java.lang.String languageId)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException;
153 
154     public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
155         long groupId, java.lang.String articleId, double version,
156         java.lang.String languageId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.journal.model.JournalArticle updateArticle(
161         long groupId, java.lang.String articleId, double version,
162         boolean incrementVersion, java.lang.String content)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public com.liferay.portlet.journal.model.JournalArticle updateArticle(
167         long groupId, java.lang.String articleId, double version,
168         boolean incrementVersion, java.lang.String title,
169         java.lang.String description, java.lang.String content,
170         java.lang.String type, java.lang.String structureId,
171         java.lang.String templateId, int displayDateMonth, int displayDateDay,
172         int displayDateYear, int displayDateHour, int displayDateMinute,
173         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
174         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
175         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
176         int reviewDateHour, int reviewDateMinute, boolean neverReview,
177         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
178         java.io.File smallFile, java.util.Map<String, byte[]> images,
179         java.lang.String articleURL,
180         com.liferay.portal.service.ServiceContext serviceContext)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException;
183 
184     public com.liferay.portlet.journal.model.JournalArticle updateContent(
185         long groupId, java.lang.String articleId, double version,
186         java.lang.String content)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 }