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.JournalArticleServiceFactory
48   * @see com.liferay.portlet.journal.service.JournalArticleServiceUtil
49   *
50   */
51  public interface JournalArticleService {
52      public com.liferay.portlet.journal.model.JournalArticle addArticle(
53          java.lang.String articleId, boolean autoArticleId, long plid,
54          java.lang.String title, java.lang.String description,
55          java.lang.String content, java.lang.String type,
56          java.lang.String structureId, java.lang.String templateId,
57          int displayDateMonth, int displayDateDay, int displayDateYear,
58          int displayDateHour, int displayDateMinute, int expirationDateMonth,
59          int expirationDateDay, int expirationDateYear, int expirationDateHour,
60          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
61          int reviewDateDay, int reviewDateYear, int reviewDateHour,
62          int reviewDateMinute, boolean neverReview, boolean indexable,
63          boolean smallImage, java.lang.String smallImageURL,
64          java.io.File smallFile, java.util.Map<String, byte[]> images,
65          java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
66          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
67          boolean addGuestPermissions)
68          throws java.rmi.RemoteException, com.liferay.portal.SystemException,
69              com.liferay.portal.PortalException;
70  
71      public com.liferay.portlet.journal.model.JournalArticle addArticle(
72          java.lang.String articleId, boolean autoArticleId, long plid,
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, javax.portlet.PortletPreferences prefs,
85          java.lang.String[] tagsEntries,
86          java.lang.String[] communityPermissions,
87          java.lang.String[] guestPermissions)
88          throws java.rmi.RemoteException, com.liferay.portal.SystemException,
89              com.liferay.portal.PortalException;
90  
91      public com.liferay.portlet.journal.model.JournalArticle approveArticle(
92          long groupId, java.lang.String articleId, double version, long plid,
93          java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
94          throws java.rmi.RemoteException, com.liferay.portal.SystemException,
95              com.liferay.portal.PortalException;
96  
97      public com.liferay.portlet.journal.model.JournalArticle getArticle(
98          long groupId, java.lang.String articleId, double version)
99          throws java.rmi.RemoteException, com.liferay.portal.SystemException,
100             com.liferay.portal.PortalException;
101 
102     public java.lang.String getArticleContent(long groupId,
103         java.lang.String articleId, java.lang.String languageId,
104         com.liferay.portal.theme.ThemeDisplay themeDisplay)
105         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
106             com.liferay.portal.PortalException;
107 
108     public java.lang.String getArticleContent(long groupId,
109         java.lang.String articleId, double version,
110         java.lang.String languageId,
111         com.liferay.portal.theme.ThemeDisplay themeDisplay)
112         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
113             com.liferay.portal.PortalException;
114 
115     public void deleteArticle(long groupId, java.lang.String articleId,
116         double version, java.lang.String articleURL,
117         javax.portlet.PortletPreferences prefs)
118         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
119             com.liferay.portal.PortalException;
120 
121     public void expireArticle(long groupId, java.lang.String articleId,
122         double version, java.lang.String articleURL,
123         javax.portlet.PortletPreferences prefs)
124         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
125             com.liferay.portal.PortalException;
126 
127     public void removeArticleLocale(long companyId, java.lang.String languageId)
128         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
129             com.liferay.portal.PortalException;
130 
131     public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
132         long groupId, java.lang.String articleId, double version,
133         java.lang.String languageId)
134         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
135             com.liferay.portal.PortalException;
136 
137     public com.liferay.portlet.journal.model.JournalArticle updateArticle(
138         long groupId, java.lang.String articleId, double version,
139         boolean incrementVersion, java.lang.String title,
140         java.lang.String description, java.lang.String content,
141         java.lang.String type, java.lang.String structureId,
142         java.lang.String templateId, int displayDateMonth, int displayDateDay,
143         int displayDateYear, int displayDateHour, int displayDateMinute,
144         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
145         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
146         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
147         int reviewDateHour, int reviewDateMinute, boolean neverReview,
148         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
149         java.io.File smallFile, java.util.Map<String, byte[]> images,
150         java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
151         java.lang.String[] tagsEntries)
152         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
153             com.liferay.portal.PortalException;
154 
155     public com.liferay.portlet.journal.model.JournalArticle updateContent(
156         long groupId, java.lang.String articleId, double version,
157         java.lang.String content)
158         throws java.rmi.RemoteException, com.liferay.portal.SystemException,
159             com.liferay.portal.PortalException;
160 }