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.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface WikiPageLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
056 com.liferay.portlet.wiki.model.WikiPage wikiPage)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
066
067
075 public com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(long pageId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079
086 public com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
087 com.liferay.portlet.wiki.model.WikiPage wikiPage)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091
092
099 @SuppressWarnings("rawtypes")
100 public java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
117 @SuppressWarnings("rawtypes")
118 public java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException;
121
122
136 @SuppressWarnings("rawtypes")
137 public java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.wiki.model.WikiPage fetchWikiPage(long pageId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.model.PersistedModel getPersistedModel(
173 java.io.Serializable primaryKeyObj)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
188 java.lang.String uuid, long groupId)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
206 int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException;
208
209
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public int getWikiPagesCount()
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
226 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
227 com.liferay.portlet.wiki.model.WikiPage wikiPage)
228 throws com.liferay.portal.kernel.exception.SystemException;
229
230
238 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
239 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242
247 public java.lang.String getBeanIdentifier();
248
249
254 public void setBeanIdentifier(java.lang.String beanIdentifier);
255
256 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
257 long nodeId, java.lang.String title, double version,
258 java.lang.String content, java.lang.String summary, boolean minorEdit,
259 java.lang.String format, boolean head, java.lang.String parentTitle,
260 java.lang.String redirectTitle,
261 com.liferay.portal.service.ServiceContext serviceContext)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
266 long nodeId, java.lang.String title, java.lang.String content,
267 java.lang.String summary, boolean minorEdit,
268 com.liferay.portal.service.ServiceContext serviceContext)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void addPageAttachment(long userId, long nodeId,
273 java.lang.String title, java.lang.String fileName, java.io.File file)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public void addPageAttachment(long userId, long nodeId,
278 java.lang.String title, java.lang.String fileName,
279 java.io.InputStream inputStream)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 public void addPageAttachment(long companyId, java.lang.String dirName,
284 java.util.Date modifiedDate, java.lang.String fileName,
285 java.io.InputStream inputStream)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 public void addPageAttachments(long userId, long nodeId,
290 java.lang.String title,
291 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreams)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 public void addPageResources(long nodeId, java.lang.String title,
296 boolean addGroupPermissions, boolean addGuestPermissions)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException;
299
300 public void addPageResources(long nodeId, java.lang.String title,
301 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304
305 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
306 boolean addGroupPermissions, boolean addGuestPermissions)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
311 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 public java.lang.String addTempPageAttachment(long userId,
316 java.lang.String fileName, java.lang.String tempFolderName,
317 java.io.InputStream inputStream)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void changeParent(long userId, long nodeId, java.lang.String title,
322 java.lang.String newParentTitle,
323 com.liferay.portal.service.ServiceContext serviceContext)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException;
326
327 public void deletePage(long nodeId, java.lang.String title)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 public void deletePage(long nodeId, java.lang.String title, double version)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 public void deletePageAttachment(long nodeId, java.lang.String title,
340 java.lang.String fileName)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343
344 public void deletePages(long nodeId)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException;
347
348 public void deleteTempPageAttachment(long userId,
349 java.lang.String fileName, java.lang.String tempFolderName)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
355 long nodeId, boolean head, java.lang.String parentTitle)
356 throws com.liferay.portal.kernel.exception.SystemException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
360 java.lang.String title)
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 java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
366 long nodeId, java.lang.String title)
367 throws com.liferay.portal.kernel.exception.PortalException,
368 com.liferay.portal.kernel.exception.SystemException;
369
370 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
376 long nodeId)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException;
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
382 long nodeId, java.lang.String title)
383 throws com.liferay.portal.kernel.exception.PortalException,
384 com.liferay.portal.kernel.exception.SystemException;
385
386 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException;
389
390 public com.liferay.portlet.wiki.model.WikiPage getPage(
391 long resourcePrimKey, java.lang.Boolean head)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException;
394
395 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
396 java.lang.String title)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException;
399
400 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
401 java.lang.String title, java.lang.Boolean head)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException;
404
405 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
406 java.lang.String title, double version)
407 throws com.liferay.portal.kernel.exception.PortalException,
408 com.liferay.portal.kernel.exception.SystemException;
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
417 long nodeId, java.lang.String title,
418 javax.portlet.PortletURL viewPageURL,
419 javax.portlet.PortletURL editPageURL,
420 java.lang.String attachmentURLPrefix)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException;
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
426 com.liferay.portlet.wiki.model.WikiPage page,
427 javax.portlet.PortletURL viewPageURL,
428 javax.portlet.PortletURL editPageURL,
429 java.lang.String attachmentURLPrefix)
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException;
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
435 long nodeId, boolean head, int start, int end)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
440 long nodeId, boolean head, int start, int end,
441 com.liferay.portal.kernel.util.OrderByComparator obc)
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
446 long nodeId, int start, int end)
447 throws com.liferay.portal.kernel.exception.SystemException;
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
451 long nodeId, int start, int end,
452 com.liferay.portal.kernel.util.OrderByComparator obc)
453 throws com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
457 long resourcePrimKey, long nodeId, int status)
458 throws com.liferay.portal.kernel.exception.SystemException;
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
462 long userId, long nodeId, int status, int start, int end)
463 throws com.liferay.portal.kernel.exception.SystemException;
464
465 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
467 long nodeId, java.lang.String title, boolean head, int start, int end)
468 throws com.liferay.portal.kernel.exception.SystemException;
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
472 long nodeId, java.lang.String title, int start, int end)
473 throws com.liferay.portal.kernel.exception.SystemException;
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
477 long nodeId, java.lang.String title, int start, int end,
478 com.liferay.portal.kernel.util.OrderByComparator obc)
479 throws com.liferay.portal.kernel.exception.SystemException;
480
481 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
483 java.lang.String format)
484 throws com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public int getPagesCount(long nodeId)
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public int getPagesCount(long nodeId, boolean head)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public int getPagesCount(long userId, long nodeId, int status)
496 throws com.liferay.portal.kernel.exception.SystemException;
497
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public int getPagesCount(long nodeId, java.lang.String title)
500 throws com.liferay.portal.kernel.exception.SystemException;
501
502 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
504 throws com.liferay.portal.kernel.exception.SystemException;
505
506 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
507 public int getPagesCount(java.lang.String format)
508 throws com.liferay.portal.kernel.exception.SystemException;
509
510
513 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
515 long nodeId, int start, int end)
516 throws com.liferay.portal.kernel.exception.PortalException,
517 com.liferay.portal.kernel.exception.SystemException;
518
519 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
521 long groupId, long nodeId, int start, int end)
522 throws com.liferay.portal.kernel.exception.SystemException;
523
524
527 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
528 public int getRecentChangesCount(long nodeId)
529 throws com.liferay.portal.kernel.exception.PortalException,
530 com.liferay.portal.kernel.exception.SystemException;
531
532 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533 public int getRecentChangesCount(long groupId, long nodeId)
534 throws com.liferay.portal.kernel.exception.SystemException;
535
536 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537 public java.lang.String[] getTempPageAttachmentNames(long userId,
538 java.lang.String tempFolderName);
539
540 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541 public boolean hasDraftPage(long nodeId, java.lang.String title)
542 throws com.liferay.portal.kernel.exception.SystemException;
543
544 public void movePage(long userId, long nodeId, java.lang.String title,
545 java.lang.String newTitle, boolean strict,
546 com.liferay.portal.service.ServiceContext serviceContext)
547 throws com.liferay.portal.kernel.exception.PortalException,
548 com.liferay.portal.kernel.exception.SystemException;
549
550 public void movePage(long userId, long nodeId, java.lang.String title,
551 java.lang.String newTitle,
552 com.liferay.portal.service.ServiceContext serviceContext)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException;
555
556 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
557 long nodeId, java.lang.String title, double version,
558 com.liferay.portal.service.ServiceContext serviceContext)
559 throws com.liferay.portal.kernel.exception.PortalException,
560 com.liferay.portal.kernel.exception.SystemException;
561
562 public void subscribePage(long userId, long nodeId, java.lang.String title)
563 throws com.liferay.portal.kernel.exception.PortalException,
564 com.liferay.portal.kernel.exception.SystemException;
565
566 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
567 throws com.liferay.portal.kernel.exception.PortalException,
568 com.liferay.portal.kernel.exception.SystemException;
569
570 public void updateAsset(long userId,
571 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
572 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
573 throws com.liferay.portal.kernel.exception.PortalException,
574 com.liferay.portal.kernel.exception.SystemException;
575
576 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
577 long nodeId, java.lang.String title, double version,
578 java.lang.String content, java.lang.String summary, boolean minorEdit,
579 java.lang.String format, java.lang.String parentTitle,
580 java.lang.String redirectTitle,
581 com.liferay.portal.service.ServiceContext serviceContext)
582 throws com.liferay.portal.kernel.exception.PortalException,
583 com.liferay.portal.kernel.exception.SystemException;
584
585 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
586 long resourcePrimKey, int status,
587 com.liferay.portal.service.ServiceContext serviceContext)
588 throws com.liferay.portal.kernel.exception.PortalException,
589 com.liferay.portal.kernel.exception.SystemException;
590
591 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
592 com.liferay.portlet.wiki.model.WikiPage page, int status,
593 com.liferay.portal.service.ServiceContext serviceContext)
594 throws com.liferay.portal.kernel.exception.PortalException,
595 com.liferay.portal.kernel.exception.SystemException;
596
597 public void validateTitle(java.lang.String title)
598 throws com.liferay.portal.kernel.exception.PortalException;
599 }