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
050 public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
051 com.liferay.portlet.wiki.model.WikiPage wikiPage)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
061
062
069 public void deleteWikiPage(long pageId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110 int end) throws com.liferay.portal.kernel.exception.SystemException;
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133
140 public long dynamicQueryCount(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
168 java.lang.String uuid, long groupId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
186 int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public int getWikiPagesCount()
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
206 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
207 com.liferay.portlet.wiki.model.WikiPage wikiPage)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210
218 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
219 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
223 long nodeId, java.lang.String title, double version,
224 java.lang.String content, java.lang.String summary, boolean minorEdit,
225 java.lang.String format, boolean head, java.lang.String parentTitle,
226 java.lang.String redirectTitle,
227 com.liferay.portal.service.ServiceContext serviceContext)
228 throws com.liferay.portal.kernel.exception.PortalException,
229 com.liferay.portal.kernel.exception.SystemException;
230
231 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
232 long nodeId, java.lang.String title, java.lang.String content,
233 java.lang.String summary, boolean minorEdit,
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 void addPageAttachment(long companyId, java.lang.String dirName,
239 java.util.Date modifiedDate, java.lang.String fileName,
240 java.io.InputStream inputStream)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException;
243
244 public void addPageAttachments(long nodeId, java.lang.String title,
245 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249 public void addPageResources(long nodeId, java.lang.String title,
250 boolean addCommunityPermissions, boolean addGuestPermissions)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254 public void addPageResources(long nodeId, java.lang.String title,
255 java.lang.String[] communityPermissions,
256 java.lang.String[] guestPermissions)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
261 boolean addCommunityPermissions, boolean addGuestPermissions)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
266 java.lang.String[] communityPermissions,
267 java.lang.String[] guestPermissions)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void changeParent(long userId, long nodeId, java.lang.String title,
272 java.lang.String newParentTitle,
273 com.liferay.portal.service.ServiceContext serviceContext)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public void deletePage(long nodeId, java.lang.String title)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 public void deletePage(long nodeId, java.lang.String title, double version)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 public void deletePageAttachment(long nodeId, java.lang.String title,
290 java.lang.String fileName)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 public void deletePages(long nodeId)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
300 long nodeId, boolean head, java.lang.String parentTitle)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
305 java.lang.String title)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
311 long nodeId, java.lang.String title)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
321 long nodeId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
327 long nodeId, java.lang.String title)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public com.liferay.portlet.wiki.model.WikiPage getPage(
336 long resourcePrimKey, java.lang.Boolean head)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
341 java.lang.String title)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344
345 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
346 java.lang.String title, java.lang.Boolean head)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException;
349
350 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
351 java.lang.String title, double version)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
357 long nodeId, java.lang.String title,
358 javax.portlet.PortletURL viewPageURL,
359 javax.portlet.PortletURL editPageURL,
360 java.lang.String attachmentURLPrefix)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
366 com.liferay.portlet.wiki.model.WikiPage page,
367 javax.portlet.PortletURL viewPageURL,
368 javax.portlet.PortletURL editPageURL,
369 java.lang.String attachmentURLPrefix)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
375 long nodeId, boolean head, int start, int end)
376 throws com.liferay.portal.kernel.exception.SystemException;
377
378 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
380 long nodeId, boolean head, int start, int end,
381 com.liferay.portal.kernel.util.OrderByComparator obc)
382 throws com.liferay.portal.kernel.exception.SystemException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
386 long nodeId, int start, int end)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
391 long nodeId, int start, int end,
392 com.liferay.portal.kernel.util.OrderByComparator obc)
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
397 long resourcePrimKey, long nodeId, int status)
398 throws com.liferay.portal.kernel.exception.SystemException;
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
402 long userId, long nodeId, int status, int start, int end)
403 throws com.liferay.portal.kernel.exception.SystemException;
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
407 long nodeId, java.lang.String title, boolean head, int start, int end)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
412 long nodeId, java.lang.String title, int start, int end)
413 throws com.liferay.portal.kernel.exception.SystemException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
417 long nodeId, java.lang.String title, int start, int end,
418 com.liferay.portal.kernel.util.OrderByComparator obc)
419 throws com.liferay.portal.kernel.exception.SystemException;
420
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
423 java.lang.String format)
424 throws com.liferay.portal.kernel.exception.SystemException;
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public int getPagesCount(long nodeId)
428 throws com.liferay.portal.kernel.exception.SystemException;
429
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public int getPagesCount(long nodeId, boolean head)
432 throws com.liferay.portal.kernel.exception.SystemException;
433
434 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435 public int getPagesCount(long userId, long nodeId, int status)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439 public int getPagesCount(long nodeId, java.lang.String title)
440 throws com.liferay.portal.kernel.exception.SystemException;
441
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public int getPagesCount(java.lang.String format)
448 throws com.liferay.portal.kernel.exception.SystemException;
449
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
452 long nodeId, int start, int end)
453 throws com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public int getRecentChangesCount(long nodeId)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public boolean hasDraftPage(long nodeId, java.lang.String title)
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463 public void movePage(long userId, long nodeId, java.lang.String title,
464 java.lang.String newTitle, boolean strict,
465 com.liferay.portal.service.ServiceContext serviceContext)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException;
468
469 public void movePage(long userId, long nodeId, java.lang.String title,
470 java.lang.String newTitle,
471 com.liferay.portal.service.ServiceContext serviceContext)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException;
474
475 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
476 long nodeId, java.lang.String title, double version,
477 com.liferay.portal.service.ServiceContext serviceContext)
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException;
480
481 public void subscribePage(long userId, long nodeId, java.lang.String title)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException;
484
485 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException;
488
489 public void updateAsset(long userId,
490 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
491 java.lang.String[] assetTagNames)
492 throws com.liferay.portal.kernel.exception.PortalException,
493 com.liferay.portal.kernel.exception.SystemException;
494
495 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
496 long nodeId, java.lang.String title, double version,
497 java.lang.String content, java.lang.String summary, boolean minorEdit,
498 java.lang.String format, java.lang.String parentTitle,
499 java.lang.String redirectTitle,
500 com.liferay.portal.service.ServiceContext serviceContext)
501 throws com.liferay.portal.kernel.exception.PortalException,
502 com.liferay.portal.kernel.exception.SystemException;
503
504 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
505 long resourcePrimKey, int status,
506 com.liferay.portal.service.ServiceContext serviceContext)
507 throws com.liferay.portal.kernel.exception.PortalException,
508 com.liferay.portal.kernel.exception.SystemException;
509
510 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
511 com.liferay.portlet.wiki.model.WikiPage page, int status,
512 com.liferay.portal.service.ServiceContext serviceContext)
513 throws com.liferay.portal.kernel.exception.PortalException,
514 com.liferay.portal.kernel.exception.SystemException;
515
516 public void validateTitle(java.lang.String title)
517 throws com.liferay.portal.kernel.exception.PortalException;
518 }