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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.wiki.model.WikiPage fetchWikiPage(long pageId)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.wiki.model.WikiPage getWikiPage(long pageId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.model.PersistedModel getPersistedModel(
166 java.io.Serializable primaryKeyObj)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
181 java.lang.String uuid, long groupId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184
185
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
199 int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getWikiPagesCount()
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
219 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
220 com.liferay.portlet.wiki.model.WikiPage wikiPage)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
231 public com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
232 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
240 public java.lang.String getBeanIdentifier();
241
242
247 public void setBeanIdentifier(java.lang.String beanIdentifier);
248
249 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
250 long nodeId, java.lang.String title, double version,
251 java.lang.String content, java.lang.String summary, boolean minorEdit,
252 java.lang.String format, boolean head, java.lang.String parentTitle,
253 java.lang.String redirectTitle,
254 com.liferay.portal.service.ServiceContext serviceContext)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 public com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
259 long nodeId, java.lang.String title, java.lang.String content,
260 java.lang.String summary, boolean minorEdit,
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 void addPageAttachment(long userId, long nodeId,
266 java.lang.String title, java.lang.String fileName, java.io.File file)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void addPageAttachment(long userId, long nodeId,
271 java.lang.String title, java.lang.String fileName,
272 java.io.InputStream inputStream)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 public void addPageAttachment(long companyId, java.lang.String dirName,
277 java.util.Date modifiedDate, java.lang.String fileName,
278 java.io.InputStream inputStream)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void addPageAttachments(long userId, long nodeId,
283 java.lang.String title,
284 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreams)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 public void addPageResources(long nodeId, java.lang.String title,
289 boolean addGroupPermissions, boolean addGuestPermissions)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 public void addPageResources(long nodeId, java.lang.String title,
294 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
299 boolean addGroupPermissions, boolean addGuestPermissions)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
304 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException;
307
308 public java.lang.String addTempPageAttachment(long userId,
309 java.lang.String fileName, java.lang.String tempFolderName,
310 java.io.InputStream inputStream)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException,
313 java.io.IOException;
314
315 public void changeParent(long userId, long nodeId, java.lang.String title,
316 java.lang.String newParentTitle,
317 com.liferay.portal.service.ServiceContext serviceContext)
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)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 public void deletePage(long nodeId, java.lang.String title, double version)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 public void deletePageAttachment(long nodeId, java.lang.String title,
334 java.lang.String fileName)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void deletePages(long nodeId)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public void deleteTempPageAttachment(long userId,
343 java.lang.String fileName, java.lang.String tempFolderName);
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
347 long nodeId, boolean head, java.lang.String parentTitle)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
352 java.lang.String title)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
358 long nodeId, java.lang.String title)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 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> getNoAssetPages()
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
368 long nodeId)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
374 long nodeId, java.lang.String title)
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(long resourcePrimKey)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException;
381
382 public com.liferay.portlet.wiki.model.WikiPage getPage(
383 long resourcePrimKey, java.lang.Boolean head)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException;
386
387 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
388 java.lang.String title)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException;
391
392 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
393 java.lang.String title, java.lang.Boolean head)
394 throws com.liferay.portal.kernel.exception.PortalException,
395 com.liferay.portal.kernel.exception.SystemException;
396
397 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
398 java.lang.String title, double version)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
409 long nodeId, java.lang.String title,
410 javax.portlet.PortletURL viewPageURL,
411 javax.portlet.PortletURL editPageURL,
412 java.lang.String attachmentURLPrefix)
413 throws com.liferay.portal.kernel.exception.PortalException,
414 com.liferay.portal.kernel.exception.SystemException;
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
418 com.liferay.portlet.wiki.model.WikiPage page,
419 javax.portlet.PortletURL viewPageURL,
420 javax.portlet.PortletURL editPageURL,
421 java.lang.String attachmentURLPrefix)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException;
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
427 long nodeId, boolean head, int start, int end)
428 throws com.liferay.portal.kernel.exception.SystemException;
429
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
432 long nodeId, boolean head, int start, int end,
433 com.liferay.portal.kernel.util.OrderByComparator obc)
434 throws com.liferay.portal.kernel.exception.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
438 long nodeId, int start, int end)
439 throws com.liferay.portal.kernel.exception.SystemException;
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
443 long nodeId, int start, int end,
444 com.liferay.portal.kernel.util.OrderByComparator obc)
445 throws com.liferay.portal.kernel.exception.SystemException;
446
447 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
449 long resourcePrimKey, long nodeId, int status)
450 throws com.liferay.portal.kernel.exception.SystemException;
451
452 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
454 long userId, long nodeId, int status, int start, int end)
455 throws com.liferay.portal.kernel.exception.SystemException;
456
457 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
459 long nodeId, java.lang.String title, boolean head, int start, int end)
460 throws com.liferay.portal.kernel.exception.SystemException;
461
462 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
464 long nodeId, java.lang.String title, int start, int end)
465 throws com.liferay.portal.kernel.exception.SystemException;
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
469 long nodeId, java.lang.String title, int start, int end,
470 com.liferay.portal.kernel.util.OrderByComparator obc)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
475 java.lang.String format)
476 throws com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public int getPagesCount(long nodeId)
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483 public int getPagesCount(long nodeId, boolean head)
484 throws com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public int getPagesCount(long userId, long nodeId, int status)
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)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
496 throws com.liferay.portal.kernel.exception.SystemException;
497
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public int getPagesCount(java.lang.String format)
500 throws com.liferay.portal.kernel.exception.SystemException;
501
502 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
504 long nodeId, int start, int end)
505 throws com.liferay.portal.kernel.exception.SystemException;
506
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public int getRecentChangesCount(long nodeId)
509 throws com.liferay.portal.kernel.exception.SystemException;
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public java.lang.String[] getTempPageAttachmentNames(long userId,
513 java.lang.String tempFolderName);
514
515 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516 public boolean hasDraftPage(long nodeId, java.lang.String title)
517 throws com.liferay.portal.kernel.exception.SystemException;
518
519 public void movePage(long userId, long nodeId, java.lang.String title,
520 java.lang.String newTitle, boolean strict,
521 com.liferay.portal.service.ServiceContext serviceContext)
522 throws com.liferay.portal.kernel.exception.PortalException,
523 com.liferay.portal.kernel.exception.SystemException;
524
525 public void movePage(long userId, long nodeId, java.lang.String title,
526 java.lang.String newTitle,
527 com.liferay.portal.service.ServiceContext serviceContext)
528 throws com.liferay.portal.kernel.exception.PortalException,
529 com.liferay.portal.kernel.exception.SystemException;
530
531 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
532 long nodeId, java.lang.String title, double version,
533 com.liferay.portal.service.ServiceContext serviceContext)
534 throws com.liferay.portal.kernel.exception.PortalException,
535 com.liferay.portal.kernel.exception.SystemException;
536
537 public void subscribePage(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 unsubscribePage(long userId, long nodeId, java.lang.String title)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException;
544
545 public void updateAsset(long userId,
546 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
547 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
548 throws com.liferay.portal.kernel.exception.PortalException,
549 com.liferay.portal.kernel.exception.SystemException;
550
551 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
552 long nodeId, java.lang.String title, double version,
553 java.lang.String content, java.lang.String summary, boolean minorEdit,
554 java.lang.String format, java.lang.String parentTitle,
555 java.lang.String redirectTitle,
556 com.liferay.portal.service.ServiceContext serviceContext)
557 throws com.liferay.portal.kernel.exception.PortalException,
558 com.liferay.portal.kernel.exception.SystemException;
559
560 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
561 long resourcePrimKey, int status,
562 com.liferay.portal.service.ServiceContext serviceContext)
563 throws com.liferay.portal.kernel.exception.PortalException,
564 com.liferay.portal.kernel.exception.SystemException;
565
566 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
567 com.liferay.portlet.wiki.model.WikiPage page, int status,
568 com.liferay.portal.service.ServiceContext serviceContext)
569 throws com.liferay.portal.kernel.exception.PortalException,
570 com.liferay.portal.kernel.exception.SystemException;
571
572 public void validateTitle(java.lang.String title)
573 throws com.liferay.portal.kernel.exception.PortalException;
574 }