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.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface WikiPageLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.wiki.model.WikiPage addWikiPage(
054 com.liferay.portlet.wiki.model.WikiPage wikiPage)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.wiki.model.WikiPage createWikiPage(long pageId);
064
065
072 public void deleteWikiPage(long pageId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076
082 public void deleteWikiPage(com.liferay.portlet.wiki.model.WikiPage wikiPage)
083 throws com.liferay.portal.kernel.exception.SystemException;
084
085
092 @SuppressWarnings("rawtypes")
093 public java.util.List dynamicQuery(
094 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097
110 @SuppressWarnings("rawtypes")
111 public java.util.List dynamicQuery(
112 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113 int end) throws com.liferay.portal.kernel.exception.SystemException;
114
115
129 @SuppressWarnings("rawtypes")
130 public java.util.List dynamicQuery(
131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132 int end,
133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134 throws com.liferay.portal.kernel.exception.SystemException;
135
136
143 public long dynamicQueryCount(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portal.model.PersistedModel getPersistedModel(
162 java.io.Serializable primaryKeyObj)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
177 java.lang.String uuid, long groupId)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
195 int start, int end)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int getWikiPagesCount()
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208
215 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
216 com.liferay.portlet.wiki.model.WikiPage wikiPage)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
227 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
228 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231
236 public java.lang.String getBeanIdentifier();
237
238
243 public void setBeanIdentifier(java.lang.String beanIdentifier);
244
245 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
246 long nodeId, java.lang.String title, double version,
247 java.lang.String content, java.lang.String summary, boolean minorEdit,
248 java.lang.String format, boolean head, java.lang.String parentTitle,
249 java.lang.String redirectTitle,
250 com.liferay.portal.service.ServiceContext serviceContext)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
255 long nodeId, java.lang.String title, java.lang.String content,
256 java.lang.String summary, boolean minorEdit,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void addPageAttachment(long userId, long nodeId,
262 java.lang.String title, java.lang.String fileName, java.io.File file)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void addPageAttachment(long userId, long nodeId,
267 java.lang.String title, java.lang.String fileName,
268 java.io.InputStream inputStream)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void addPageAttachment(long companyId, java.lang.String dirName,
273 java.util.Date modifiedDate, java.lang.String fileName,
274 java.io.InputStream inputStream)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 public void addPageAttachments(long userId, long nodeId,
279 java.lang.String title,
280 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreams)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public void addPageResources(long nodeId, java.lang.String title,
285 boolean addGroupPermissions, boolean addGuestPermissions)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 public void addPageResources(long nodeId, java.lang.String title,
290 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
295 boolean addGroupPermissions, boolean addGuestPermissions)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
300 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 public java.lang.String addTempPageAttachment(long userId,
305 java.lang.String fileName, java.lang.String tempFolderName,
306 java.io.InputStream inputStream)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException,
309 java.io.IOException;
310
311 public void changeParent(long userId, long nodeId, java.lang.String title,
312 java.lang.String newParentTitle,
313 com.liferay.portal.service.ServiceContext serviceContext)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public void deletePage(long nodeId, java.lang.String title)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void deletePage(long nodeId, java.lang.String title, double version)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public void deletePageAttachment(long nodeId, java.lang.String title,
330 java.lang.String fileName)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void deletePages(long nodeId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void deleteTempPageAttachment(long userId,
339 java.lang.String fileName, java.lang.String tempFolderName);
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
343 long nodeId, boolean head, java.lang.String parentTitle)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
348 java.lang.String title)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
354 long nodeId, java.lang.String title)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
360 throws com.liferay.portal.kernel.exception.SystemException;
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
364 long nodeId)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
370 long nodeId, java.lang.String title)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException;
373
374 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException;
377
378 public com.liferay.portlet.wiki.model.WikiPage getPage(
379 long resourcePrimKey, java.lang.Boolean head)
380 throws com.liferay.portal.kernel.exception.PortalException,
381 com.liferay.portal.kernel.exception.SystemException;
382
383 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
384 java.lang.String title)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException;
387
388 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
389 java.lang.String title, java.lang.Boolean head)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException;
392
393 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
394 java.lang.String title, double version)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException;
397
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException;
402
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
405 long nodeId, java.lang.String title,
406 javax.portlet.PortletURL viewPageURL,
407 javax.portlet.PortletURL editPageURL,
408 java.lang.String attachmentURLPrefix)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
414 com.liferay.portlet.wiki.model.WikiPage page,
415 javax.portlet.PortletURL viewPageURL,
416 javax.portlet.PortletURL editPageURL,
417 java.lang.String attachmentURLPrefix)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 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 long nodeId, boolean head, int start, int end)
424 throws com.liferay.portal.kernel.exception.SystemException;
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
428 long nodeId, boolean head, int start, int end,
429 com.liferay.portal.kernel.util.OrderByComparator obc)
430 throws com.liferay.portal.kernel.exception.SystemException;
431
432 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
434 long nodeId, int start, int end)
435 throws com.liferay.portal.kernel.exception.SystemException;
436
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
439 long nodeId, int start, int end,
440 com.liferay.portal.kernel.util.OrderByComparator obc)
441 throws com.liferay.portal.kernel.exception.SystemException;
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
445 long resourcePrimKey, long nodeId, int status)
446 throws com.liferay.portal.kernel.exception.SystemException;
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
450 long userId, long nodeId, int status, int start, int end)
451 throws com.liferay.portal.kernel.exception.SystemException;
452
453 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
455 long nodeId, java.lang.String title, boolean head, int start, int end)
456 throws com.liferay.portal.kernel.exception.SystemException;
457
458 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
460 long nodeId, java.lang.String title, int start, int end)
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
465 long nodeId, java.lang.String title, int start, int end,
466 com.liferay.portal.kernel.util.OrderByComparator obc)
467 throws com.liferay.portal.kernel.exception.SystemException;
468
469 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
470 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
471 java.lang.String format)
472 throws com.liferay.portal.kernel.exception.SystemException;
473
474 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475 public int getPagesCount(long nodeId)
476 throws com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public int getPagesCount(long nodeId, boolean head)
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483 public int getPagesCount(long userId, long nodeId, int status)
484 throws com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public int getPagesCount(long nodeId, java.lang.String title)
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public int getPagesCount(java.lang.String format)
496 throws com.liferay.portal.kernel.exception.SystemException;
497
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
500 long nodeId, int start, int end)
501 throws com.liferay.portal.kernel.exception.SystemException;
502
503 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504 public int getRecentChangesCount(long nodeId)
505 throws com.liferay.portal.kernel.exception.SystemException;
506
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public java.lang.String[] getTempPageAttachmentNames(long userId,
509 java.lang.String tempFolderName);
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public boolean hasDraftPage(long nodeId, java.lang.String title)
513 throws com.liferay.portal.kernel.exception.SystemException;
514
515 public void movePage(long userId, long nodeId, java.lang.String title,
516 java.lang.String newTitle, boolean strict,
517 com.liferay.portal.service.ServiceContext serviceContext)
518 throws com.liferay.portal.kernel.exception.PortalException,
519 com.liferay.portal.kernel.exception.SystemException;
520
521 public void movePage(long userId, long nodeId, java.lang.String title,
522 java.lang.String newTitle,
523 com.liferay.portal.service.ServiceContext serviceContext)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException;
526
527 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
528 long nodeId, java.lang.String title, double version,
529 com.liferay.portal.service.ServiceContext serviceContext)
530 throws com.liferay.portal.kernel.exception.PortalException,
531 com.liferay.portal.kernel.exception.SystemException;
532
533 public void subscribePage(long userId, long nodeId, java.lang.String title)
534 throws com.liferay.portal.kernel.exception.PortalException,
535 com.liferay.portal.kernel.exception.SystemException;
536
537 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException;
540
541 public void updateAsset(long userId,
542 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
543 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
544 throws com.liferay.portal.kernel.exception.PortalException,
545 com.liferay.portal.kernel.exception.SystemException;
546
547 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
548 long nodeId, java.lang.String title, double version,
549 java.lang.String content, java.lang.String summary, boolean minorEdit,
550 java.lang.String format, java.lang.String parentTitle,
551 java.lang.String redirectTitle,
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 updateStatus(long userId,
557 long resourcePrimKey, int status,
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 com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
563 com.liferay.portlet.wiki.model.WikiPage page, int status,
564 com.liferay.portal.service.ServiceContext serviceContext)
565 throws com.liferay.portal.kernel.exception.PortalException,
566 com.liferay.portal.kernel.exception.SystemException;
567
568 public void validateTitle(java.lang.String title)
569 throws com.liferay.portal.kernel.exception.PortalException;
570 }