1
14
15 package com.liferay.portlet.wiki.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface WikiPageLocalService {
50 public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
51 com.liferay.portlet.wiki.model.WikiPage wikiPage)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
55
56 public void deleteWikiPage(long pageId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 @SuppressWarnings("unchecked")
64 public java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 @SuppressWarnings("unchecked")
69 public java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @SuppressWarnings("unchecked")
74 public java.util.List dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.kernel.exception.SystemException;
79
80 public long dynamicQueryCount(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
91 java.lang.String uuid, long groupId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
97 int start, int end)
98 throws com.liferay.portal.kernel.exception.SystemException;
99
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public int getWikiPagesCount()
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
105 com.liferay.portlet.wiki.model.WikiPage wikiPage)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
109 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
113 long nodeId, java.lang.String title, java.lang.String content,
114 java.lang.String summary, boolean minorEdit,
115 com.liferay.portal.service.ServiceContext serviceContext)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portlet.wiki.model.WikiPage addPage(
120 java.lang.String uuid, long userId, long nodeId,
121 java.lang.String title, double version, java.lang.String content,
122 java.lang.String summary, boolean minorEdit, java.lang.String format,
123 boolean head, java.lang.String parentTitle,
124 java.lang.String redirectTitle,
125 com.liferay.portal.service.ServiceContext serviceContext)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void addPageAttachment(long companyId, java.lang.String dirName,
130 java.util.Date modifiedDate, java.lang.String fileName,
131 java.io.InputStream inputStream)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public void addPageAttachments(long nodeId, java.lang.String title,
136 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void addPageResources(long nodeId, java.lang.String title,
141 boolean addCommunityPermissions, boolean addGuestPermissions)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
146 boolean addCommunityPermissions, boolean addGuestPermissions)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public void addPageResources(long nodeId, java.lang.String title,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
157 java.lang.String[] communityPermissions,
158 java.lang.String[] guestPermissions)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException;
161
162 public void changeParent(long userId, long nodeId, java.lang.String title,
163 java.lang.String newParentTitle,
164 com.liferay.portal.service.ServiceContext serviceContext)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 public void deletePage(long nodeId, java.lang.String title)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException;
175
176 public void deletePageAttachment(long nodeId, java.lang.String title,
177 java.lang.String fileName)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181 public void deletePages(long nodeId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
187 long nodeId, boolean head, java.lang.String parentTitle)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
192 java.lang.String title)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getDraftPages(
198 long userId, long nodeId, int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public int getDraftPagesCount(long userId, long nodeId)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
207 long nodeId, java.lang.String title)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
213 throws 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> getOrphans(
217 long nodeId)
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 java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
223 long nodeId, java.lang.String title)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
228 throws com.liferay.portal.kernel.exception.PortalException,
229 com.liferay.portal.kernel.exception.SystemException;
230
231 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
232 java.lang.String title)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException;
235
236 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
237 java.lang.String title, boolean head)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
242 java.lang.String title, double version)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
248 long nodeId, java.lang.String title,
249 javax.portlet.PortletURL viewPageURL,
250 javax.portlet.PortletURL editPageURL,
251 java.lang.String attachmentURLPrefix)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
257 long nodeId, int start, int end)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
262 java.lang.String format)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
267 long nodeId, java.lang.String title, int start, int end)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
272 long nodeId, java.lang.String title, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator obc)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
278 long nodeId, boolean head, int start, int end)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
283 long resourcePrimKey, long nodeId, int status)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
288 long nodeId, java.lang.String title, boolean head, int start, int end)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getPagesCount(long nodeId)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public int getPagesCount(long nodeId, java.lang.String title)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public int getPagesCount(long nodeId, boolean head)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public int getPagesCount(java.lang.String format)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
313 long nodeId, int start, int end)
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int getRecentChangesCount(long nodeId)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public boolean hasDraftPage(long nodeId, java.lang.String title)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 public void movePage(long userId, long nodeId, java.lang.String title,
325 java.lang.String newTitle,
326 com.liferay.portal.service.ServiceContext serviceContext)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public void movePage(long userId, long nodeId, java.lang.String title,
331 java.lang.String newTitle, boolean strict,
332 com.liferay.portal.service.ServiceContext serviceContext)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException;
335
336 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
337 long nodeId, java.lang.String title, double version,
338 com.liferay.portal.service.ServiceContext serviceContext)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public void subscribePage(long userId, long nodeId, java.lang.String title)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345
346 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException;
349
350 public void updateAsset(long userId,
351 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
352 java.lang.String[] assetTagNames)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
357 long nodeId, java.lang.String title, double version,
358 java.lang.String content, java.lang.String summary, boolean minorEdit,
359 java.lang.String format, java.lang.String parentTitle,
360 java.lang.String redirectTitle,
361 com.liferay.portal.service.ServiceContext serviceContext)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364
365 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
366 long resourcePrimKey, int status,
367 com.liferay.portal.service.ServiceContext serviceContext)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
372 com.liferay.portlet.wiki.model.WikiPage page, int status,
373 com.liferay.portal.service.ServiceContext serviceContext)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376
377 public void validateTitle(java.lang.String title)
378 throws com.liferay.portal.kernel.exception.PortalException;
379 }