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 companyId, java.lang.String dirName,
262 java.util.Date modifiedDate, java.lang.String fileName,
263 java.io.InputStream inputStream)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void addPageAttachments(long userId, long nodeId,
268 java.lang.String title,
269 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException;
272
273
276 public void addPageAttachments(long nodeId, java.lang.String title,
277 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 public void addPageResources(long nodeId, java.lang.String title,
282 boolean addCommunityPermissions, boolean addGuestPermissions)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 public void addPageResources(long nodeId, java.lang.String title,
287 java.lang.String[] communityPermissions,
288 java.lang.String[] guestPermissions)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException;
291
292 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
293 boolean addCommunityPermissions, boolean addGuestPermissions)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException;
296
297 public void addPageResources(com.liferay.portlet.wiki.model.WikiPage page,
298 java.lang.String[] communityPermissions,
299 java.lang.String[] guestPermissions)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 public void changeParent(long userId, long nodeId, java.lang.String title,
304 java.lang.String newParentTitle,
305 com.liferay.portal.service.ServiceContext serviceContext)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 public void deletePage(long nodeId, java.lang.String title)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException;
312
313 public void deletePage(long nodeId, java.lang.String title, double version)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void deletePageAttachment(long nodeId, java.lang.String title,
322 java.lang.String fileName)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException;
325
326 public void deletePages(long nodeId)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
332 long nodeId, boolean head, java.lang.String parentTitle)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portlet.wiki.model.WikiPage getDraftPage(long nodeId,
337 java.lang.String title)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
343 long nodeId, java.lang.String title)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
353 long nodeId)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
359 long nodeId, java.lang.String title)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException;
362
363 public com.liferay.portlet.wiki.model.WikiPage getPage(long resourcePrimKey)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException;
366
367 public com.liferay.portlet.wiki.model.WikiPage getPage(
368 long resourcePrimKey, java.lang.Boolean head)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371
372 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
373 java.lang.String title)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376
377 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
378 java.lang.String title, java.lang.Boolean head)
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(long nodeId,
383 java.lang.String title, double version)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException;
386
387 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388 public com.liferay.portlet.wiki.model.WikiPage getPageByPageId(long pageId)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException;
391
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
394 long nodeId, java.lang.String title,
395 javax.portlet.PortletURL viewPageURL,
396 javax.portlet.PortletURL editPageURL,
397 java.lang.String attachmentURLPrefix)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException;
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
403 com.liferay.portlet.wiki.model.WikiPage page,
404 javax.portlet.PortletURL viewPageURL,
405 javax.portlet.PortletURL editPageURL,
406 java.lang.String attachmentURLPrefix)
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 java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
412 long nodeId, boolean head, 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, boolean head, 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 long nodeId, 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, 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 resourcePrimKey, long nodeId, int status)
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 userId, long nodeId, int status, int start, int end)
440 throws com.liferay.portal.kernel.exception.SystemException;
441
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
444 long nodeId, java.lang.String title, boolean head, int start, int end)
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 nodeId, java.lang.String title, int start, int end)
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 nodeId, java.lang.String title, int start, int end,
455 com.liferay.portal.kernel.util.OrderByComparator obc)
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 java.lang.String format)
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public int getPagesCount(long nodeId)
465 throws com.liferay.portal.kernel.exception.SystemException;
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public int getPagesCount(long nodeId, boolean head)
469 throws com.liferay.portal.kernel.exception.SystemException;
470
471 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472 public int getPagesCount(long userId, long nodeId, int status)
473 throws com.liferay.portal.kernel.exception.SystemException;
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public int getPagesCount(long nodeId, java.lang.String title)
477 throws com.liferay.portal.kernel.exception.SystemException;
478
479 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480 public int getPagesCount(long nodeId, java.lang.String title, boolean head)
481 throws com.liferay.portal.kernel.exception.SystemException;
482
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public int getPagesCount(java.lang.String format)
485 throws com.liferay.portal.kernel.exception.SystemException;
486
487 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
489 long nodeId, int start, int end)
490 throws com.liferay.portal.kernel.exception.SystemException;
491
492 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493 public int getRecentChangesCount(long nodeId)
494 throws com.liferay.portal.kernel.exception.SystemException;
495
496 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497 public boolean hasDraftPage(long nodeId, java.lang.String title)
498 throws com.liferay.portal.kernel.exception.SystemException;
499
500 public void movePage(long userId, long nodeId, java.lang.String title,
501 java.lang.String newTitle, boolean strict,
502 com.liferay.portal.service.ServiceContext serviceContext)
503 throws com.liferay.portal.kernel.exception.PortalException,
504 com.liferay.portal.kernel.exception.SystemException;
505
506 public void movePage(long userId, long nodeId, java.lang.String title,
507 java.lang.String newTitle,
508 com.liferay.portal.service.ServiceContext serviceContext)
509 throws com.liferay.portal.kernel.exception.PortalException,
510 com.liferay.portal.kernel.exception.SystemException;
511
512 public com.liferay.portlet.wiki.model.WikiPage revertPage(long userId,
513 long nodeId, java.lang.String title, double version,
514 com.liferay.portal.service.ServiceContext serviceContext)
515 throws com.liferay.portal.kernel.exception.PortalException,
516 com.liferay.portal.kernel.exception.SystemException;
517
518 public void subscribePage(long userId, long nodeId, java.lang.String title)
519 throws com.liferay.portal.kernel.exception.PortalException,
520 com.liferay.portal.kernel.exception.SystemException;
521
522 public void unsubscribePage(long userId, long nodeId, java.lang.String title)
523 throws com.liferay.portal.kernel.exception.PortalException,
524 com.liferay.portal.kernel.exception.SystemException;
525
526 public void updateAsset(long userId,
527 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
528 java.lang.String[] assetTagNames)
529 throws com.liferay.portal.kernel.exception.PortalException,
530 com.liferay.portal.kernel.exception.SystemException;
531
532 public com.liferay.portlet.wiki.model.WikiPage updatePage(long userId,
533 long nodeId, java.lang.String title, double version,
534 java.lang.String content, java.lang.String summary, boolean minorEdit,
535 java.lang.String format, java.lang.String parentTitle,
536 java.lang.String redirectTitle,
537 com.liferay.portal.service.ServiceContext serviceContext)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException;
540
541 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
542 long resourcePrimKey, int status,
543 com.liferay.portal.service.ServiceContext serviceContext)
544 throws com.liferay.portal.kernel.exception.PortalException,
545 com.liferay.portal.kernel.exception.SystemException;
546
547 public com.liferay.portlet.wiki.model.WikiPage updateStatus(long userId,
548 com.liferay.portlet.wiki.model.WikiPage page, int status,
549 com.liferay.portal.service.ServiceContext serviceContext)
550 throws com.liferay.portal.kernel.exception.PortalException,
551 com.liferay.portal.kernel.exception.SystemException;
552
553 public void validateTitle(java.lang.String title)
554 throws com.liferay.portal.kernel.exception.PortalException;
555 }