001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface WikiPageService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
065 java.lang.String title, java.lang.String content,
066 java.lang.String summary, boolean minorEdit,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
072 java.lang.String title, java.lang.String content,
073 java.lang.String summary, boolean minorEdit, java.lang.String format,
074 java.lang.String parentTitle, java.lang.String redirectTitle,
075 com.liferay.portal.service.ServiceContext serviceContext)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 public void addPageAttachment(long nodeId, java.lang.String title,
080 java.lang.String fileName, java.io.File file, java.lang.String mimeType)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 public void addPageAttachment(long nodeId, java.lang.String title,
085 java.lang.String fileName, java.io.InputStream inputStream,
086 java.lang.String mimeType)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException;
089
090 public void addPageAttachments(long nodeId, java.lang.String title,
091 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 public void addTempPageAttachment(long nodeId, java.lang.String fileName,
096 java.lang.String tempFolderName, java.io.InputStream inputStream,
097 java.lang.String mimeType)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException;
100
101 public void changeParent(long nodeId, java.lang.String title,
102 java.lang.String newParentTitle,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public void deletePage(long nodeId, java.lang.String title)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void deletePage(long nodeId, java.lang.String title, double version)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void deletePageAttachment(long nodeId, java.lang.String title,
116 java.lang.String fileName)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void deletePageAttachments(long nodeId, java.lang.String title)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public void deleteTempPageAttachment(long nodeId,
125 java.lang.String fileName, java.lang.String tempFolderName)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void deleteTrashPageAttachments(long nodeId, java.lang.String title)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
135 long groupId, long nodeId, boolean head, java.lang.String parentTitle)
136 throws com.liferay.portal.kernel.exception.PortalException,
137 com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
141 java.lang.String title)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
147 long nodeId, int max)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.lang.String getNodePagesRSS(long nodeId, int max,
153 java.lang.String type, double version, java.lang.String displayStyle,
154 java.lang.String feedURL, java.lang.String entryURL)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
160 long groupId, long nodeId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 public com.liferay.portlet.wiki.model.WikiPage getPage(long groupId,
165 long nodeId, java.lang.String title)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
170 java.lang.String title)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
175 java.lang.String title, java.lang.Boolean head)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
180 java.lang.String title, double version)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
186 long groupId, long nodeId, boolean head, int status, int start,
187 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
193 long groupId, long userId, long nodeId, int status, int start, int end)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getPagesCount(long groupId, long nodeId, boolean head)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public int getPagesCount(long groupId, long userId, long nodeId, int status)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.lang.String getPagesRSS(long companyId, long nodeId,
209 java.lang.String title, int max, java.lang.String type, double version,
210 java.lang.String displayStyle, java.lang.String feedURL,
211 java.lang.String entryURL, java.util.Locale locale)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
217 long groupId, long nodeId, int start, int end)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public int getRecentChangesCount(long groupId, long nodeId)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public java.lang.String[] getTempPageAttachmentNames(long nodeId,
228 java.lang.String tempFolderName)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231
232 public void movePage(long nodeId, java.lang.String title,
233 java.lang.String newTitle,
234 com.liferay.portal.service.ServiceContext serviceContext)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 public long movePageAttachmentToTrash(long nodeId, java.lang.String title,
239 java.lang.String fileName)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243 public void movePageToTrash(long nodeId, java.lang.String title)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void movePageToTrash(long nodeId, java.lang.String title,
248 double version)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void restorePageAttachmentFromTrash(long nodeId,
253 java.lang.String title, java.lang.String fileName)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public void restorePageFromTrash(long resourcePrimKey)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
262 java.lang.String title, double version,
263 com.liferay.portal.service.ServiceContext serviceContext)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void subscribePage(long nodeId, java.lang.String title)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void unsubscribePage(long nodeId, java.lang.String title)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
276 java.lang.String title, double version, java.lang.String content,
277 java.lang.String summary, boolean minorEdit, java.lang.String format,
278 java.lang.String parentTitle, java.lang.String redirectTitle,
279 com.liferay.portal.service.ServiceContext serviceContext)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282 }