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