001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface WikiPageLocalService {
043 public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
044 com.liferay.portlet.wiki.model.WikiPage wikiPage)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
048
049 public void deleteWikiPage(long pageId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @SuppressWarnings("unchecked")
057 public java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @SuppressWarnings("unchecked")
062 public java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException;
065
066 @SuppressWarnings("unchecked")
067 public java.util.List dynamicQuery(
068 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069 int end,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 public long dynamicQueryCount(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
084 java.lang.String uuid, long groupId)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
090 int start, int end)
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094 public int getWikiPagesCount()
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
098 com.liferay.portlet.wiki.model.WikiPage wikiPage)
099 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
102 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
106 long nodeId, java.lang.String title, double version,
107 java.lang.String content, java.lang.String summary, boolean minorEdit,
108 java.lang.String format, boolean head, java.lang.String parentTitle,
109 java.lang.String redirectTitle,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
115 long nodeId, java.lang.String title, java.lang.String content,
116 java.lang.String summary, boolean minorEdit,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addPageAttachment(long companyId, java.lang.String dirName,
122 java.util.Date modifiedDate, java.lang.String fileName,
123 java.io.InputStream inputStream)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void addPageAttachments(long nodeId, java.lang.String title,
128 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void addPageResources(long nodeId, java.lang.String title,
133 boolean addCommunityPermissions, boolean addGuestPermissions)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 public void addPageResources(long nodeId, java.lang.String title,
138 java.lang.String[] communityPermissions,
139 java.lang.String[] guestPermissions)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
144 boolean addCommunityPermissions, boolean addGuestPermissions)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException;
153
154 public void changeParent(long userId, long nodeId, java.lang.String title,
155 java.lang.String newParentTitle,
156 com.liferay.portal.service.ServiceContext serviceContext)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 public void deletePage(long nodeId, java.lang.String title)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 public void deletePage(long nodeId, java.lang.String title, double version)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 public void deletePageAttachment(long nodeId, java.lang.String title,
173 java.lang.String fileName)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 public void deletePages(long nodeId)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
183 long nodeId, boolean head, java.lang.String parentTitle)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
188 java.lang.String title)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
194 long nodeId, java.lang.String title)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
204 long nodeId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
210 long nodeId, java.lang.String title)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException;
213
214 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException;
217
218 public com.liferay.portlet.wiki.model.WikiPage getPage(
219 long resourcePrimKey, java.lang.Boolean head)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
224 java.lang.String title)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
229 java.lang.String title, java.lang.Boolean head)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException;
232
233 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
234 java.lang.String title, double version)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
240 long nodeId, java.lang.String title,
241 javax.portlet.PortletURL viewPageURL,
242 javax.portlet.PortletURL editPageURL,
243 java.lang.String attachmentURLPrefix)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
249 com.liferay.portlet.wiki.model.WikiPage page,
250 javax.portlet.PortletURL viewPageURL,
251 javax.portlet.PortletURL editPageURL,
252 java.lang.String attachmentURLPrefix)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
258 long nodeId, boolean head, int start, int end)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
263 long nodeId, int start, int end)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
268 long resourcePrimKey, long nodeId, int status)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
273 long userId, long nodeId, int status, int start, int end)
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, java.lang.String title, 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 nodeId, java.lang.String title, int start, int end)
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, int start, int end,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
294 java.lang.String format)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public int getPagesCount(long nodeId)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int getPagesCount(long nodeId, boolean head)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getPagesCount(long userId, long nodeId, int status)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public int getPagesCount(long nodeId, java.lang.String title)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public int getPagesCount(java.lang.String format)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
323 long nodeId, int start, int end)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public int getRecentChangesCount(long nodeId)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public boolean hasDraftPage(long nodeId, java.lang.String title)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334 public void movePage(long userId, long nodeId, java.lang.String title,
335 java.lang.String newTitle, boolean strict,
336 com.liferay.portal.service.ServiceContext serviceContext)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public void movePage(long userId, long nodeId, java.lang.String title,
341 java.lang.String newTitle,
342 com.liferay.portal.service.ServiceContext serviceContext)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345
346 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
347 long nodeId, java.lang.String title, double version,
348 com.liferay.portal.service.ServiceContext serviceContext)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352 public void subscribePage(long userId, long nodeId, java.lang.String title)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException;
359
360 public void updateAsset(long userId,
361 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
362 java.lang.String[] assetTagNames)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException;
365
366 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
367 long nodeId, java.lang.String title, double version,
368 java.lang.String content, java.lang.String summary, boolean minorEdit,
369 java.lang.String format, java.lang.String parentTitle,
370 java.lang.String redirectTitle,
371 com.liferay.portal.service.ServiceContext serviceContext)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException;
374
375 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
376 long resourcePrimKey, int status,
377 com.liferay.portal.service.ServiceContext serviceContext)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException;
380
381 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
382 com.liferay.portlet.wiki.model.WikiPage page, int status,
383 com.liferay.portal.service.ServiceContext serviceContext)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException;
386
387 public void validateTitle(java.lang.String title)
388 throws com.liferay.portal.kernel.exception.PortalException;
389 }