1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
26  /**
27   * <a href="JournalArticleService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.journal.service.JournalArticleServiceUtil
48   *
49   */
50  public interface JournalArticleService {
51      public com.liferay.portlet.journal.model.JournalArticle addArticle(
52          java.lang.String articleId, boolean autoArticleId, long plid,
53          java.lang.String title, java.lang.String description,
54          java.lang.String content, java.lang.String type,
55          java.lang.String structureId, java.lang.String templateId,
56          int displayDateMonth, int displayDateDay, int displayDateYear,
57          int displayDateHour, int displayDateMinute, int expirationDateMonth,
58          int expirationDateDay, int expirationDateYear, int expirationDateHour,
59          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
60          int reviewDateDay, int reviewDateYear, int reviewDateHour,
61          int reviewDateMinute, boolean neverReview, boolean indexable,
62          boolean smallImage, java.lang.String smallImageURL,
63          java.io.File smallFile, java.util.Map<String, byte[]> images,
64          java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
65          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
66          boolean addGuestPermissions)
67          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
68              com.liferay.portal.SystemException;
69  
70      public com.liferay.portlet.journal.model.JournalArticle addArticle(
71          java.lang.String articleId, boolean autoArticleId, long plid,
72          java.lang.String title, java.lang.String description,
73          java.lang.String content, java.lang.String type,
74          java.lang.String structureId, java.lang.String templateId,
75          int displayDateMonth, int displayDateDay, int displayDateYear,
76          int displayDateHour, int displayDateMinute, int expirationDateMonth,
77          int expirationDateDay, int expirationDateYear, int expirationDateHour,
78          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
79          int reviewDateDay, int reviewDateYear, int reviewDateHour,
80          int reviewDateMinute, boolean neverReview, boolean indexable,
81          boolean smallImage, java.lang.String smallImageURL,
82          java.io.File smallFile, java.util.Map<String, byte[]> images,
83          java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
84          java.lang.String[] tagsEntries,
85          java.lang.String[] communityPermissions,
86          java.lang.String[] guestPermissions)
87          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portlet.journal.model.JournalArticle approveArticle(
91          long groupId, java.lang.String articleId, double version, long plid,
92          java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
93          throws java.rmi.RemoteException, 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 java.rmi.RemoteException, com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.journal.model.JournalArticle getArticle(
103         long groupId, java.lang.String articleId, double version)
104         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     public java.lang.String getArticleContent(long groupId,
108         java.lang.String articleId, java.lang.String languageId,
109         com.liferay.portal.theme.ThemeDisplay themeDisplay)
110         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     public java.lang.String getArticleContent(long groupId,
114         java.lang.String articleId, double version,
115         java.lang.String languageId,
116         com.liferay.portal.theme.ThemeDisplay themeDisplay)
117         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public void deleteArticle(long groupId, java.lang.String articleId,
121         double version, java.lang.String articleURL,
122         javax.portlet.PortletPreferences prefs)
123         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void expireArticle(long groupId, java.lang.String articleId,
127         double version, java.lang.String articleURL,
128         javax.portlet.PortletPreferences prefs)
129         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void removeArticleLocale(long companyId, java.lang.String languageId)
133         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
137         long groupId, java.lang.String articleId, double version,
138         java.lang.String languageId)
139         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.journal.model.JournalArticle updateArticle(
143         long groupId, java.lang.String articleId, double version,
144         boolean incrementVersion, java.lang.String title,
145         java.lang.String description, java.lang.String content,
146         java.lang.String type, java.lang.String structureId,
147         java.lang.String templateId, int displayDateMonth, int displayDateDay,
148         int displayDateYear, int displayDateHour, int displayDateMinute,
149         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
150         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
151         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
152         int reviewDateHour, int reviewDateMinute, boolean neverReview,
153         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
154         java.io.File smallFile, java.util.Map<String, byte[]> images,
155         java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
156         java.lang.String[] tagsEntries)
157         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.journal.model.JournalArticle updateContent(
161         long groupId, java.lang.String articleId, double version,
162         java.lang.String content)
163         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 }