001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class WikiPageLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
048 com.liferay.portlet.wiki.model.WikiPage wikiPage)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addWikiPage(wikiPage);
051 }
052
053
059 public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
060 long pageId) {
061 return getService().createWikiPage(pageId);
062 }
063
064
072 public static com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
073 long pageId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteWikiPage(pageId);
077 }
078
079
086 public static com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
087 com.liferay.portlet.wiki.model.WikiPage wikiPage)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteWikiPage(wikiPage);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPage(
168 long pageId) throws com.liferay.portal.kernel.exception.SystemException {
169 return getService().fetchWikiPage(pageId);
170 }
171
172
180 public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
181 long pageId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getWikiPage(pageId);
185 }
186
187 public static com.liferay.portal.model.PersistedModel getPersistedModel(
188 java.io.Serializable primaryKeyObj)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().getPersistedModel(primaryKeyObj);
192 }
193
194
203 public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getService().getWikiPageByUuidAndGroupId(uuid, groupId);
208 }
209
210
222 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
223 int start, int end)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().getWikiPages(start, end);
226 }
227
228
234 public static int getWikiPagesCount()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().getWikiPagesCount();
237 }
238
239
246 public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
247 com.liferay.portlet.wiki.model.WikiPage wikiPage)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateWikiPage(wikiPage);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
271 long nodeId, java.lang.String title, double version,
272 java.lang.String content, java.lang.String summary, boolean minorEdit,
273 java.lang.String format, boolean head, java.lang.String parentTitle,
274 java.lang.String redirectTitle,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .addPage(userId, nodeId, title, version, content, summary,
280 minorEdit, format, head, parentTitle, redirectTitle, serviceContext);
281 }
282
283 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
284 long nodeId, java.lang.String title, java.lang.String content,
285 java.lang.String summary, boolean minorEdit,
286 com.liferay.portal.service.ServiceContext serviceContext)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 return getService()
290 .addPage(userId, nodeId, title, content, summary, minorEdit,
291 serviceContext);
292 }
293
294 public static void addPageAttachment(long userId, long nodeId,
295 java.lang.String title, java.lang.String fileName, java.io.File file,
296 java.lang.String mimeType)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 getService()
300 .addPageAttachment(userId, nodeId, title, fileName, file, mimeType);
301 }
302
303 public static void addPageAttachment(long userId, long nodeId,
304 java.lang.String title, java.lang.String fileName,
305 java.io.InputStream inputStream, java.lang.String mimeType)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException {
308 getService()
309 .addPageAttachment(userId, nodeId, title, fileName, inputStream,
310 mimeType);
311 }
312
313 public static void addPageAttachments(long userId, long nodeId,
314 java.lang.String title,
315 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 getService().addPageAttachments(userId, nodeId, title, inputStreamOVPs);
319 }
320
321 public static void addPageResources(long nodeId, java.lang.String title,
322 boolean addGroupPermissions, boolean addGuestPermissions)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 getService()
326 .addPageResources(nodeId, title, addGroupPermissions,
327 addGuestPermissions);
328 }
329
330 public static void addPageResources(long nodeId, java.lang.String title,
331 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 getService()
335 .addPageResources(nodeId, title, groupPermissions, guestPermissions);
336 }
337
338 public static void addPageResources(
339 com.liferay.portlet.wiki.model.WikiPage page,
340 boolean addGroupPermissions, boolean addGuestPermissions)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException {
343 getService()
344 .addPageResources(page, addGroupPermissions, addGuestPermissions);
345 }
346
347 public static void addPageResources(
348 com.liferay.portlet.wiki.model.WikiPage page,
349 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 getService().addPageResources(page, groupPermissions, guestPermissions);
353 }
354
355 public static void addTempPageAttachment(long groupId, long userId,
356 java.lang.String fileName, java.lang.String tempFolderName,
357 java.io.InputStream inputStream, java.lang.String mimeType)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException {
360 getService()
361 .addTempPageAttachment(groupId, userId, fileName, tempFolderName,
362 inputStream, mimeType);
363 }
364
365 public static void changeParent(long userId, long nodeId,
366 java.lang.String title, java.lang.String newParentTitle,
367 com.liferay.portal.service.ServiceContext serviceContext)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException {
370 getService()
371 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
372 }
373
374 public static void deletePage(long nodeId, java.lang.String title)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException {
377 getService().deletePage(nodeId, title);
378 }
379
380 public static void deletePage(long nodeId, java.lang.String title,
381 double version)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException {
384 getService().deletePage(nodeId, title, version);
385 }
386
387 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
388 throws com.liferay.portal.kernel.exception.PortalException,
389 com.liferay.portal.kernel.exception.SystemException {
390 getService().deletePage(page);
391 }
392
393 public static void deletePageAttachment(long nodeId,
394 java.lang.String title, java.lang.String fileName)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException {
397 getService().deletePageAttachment(nodeId, title, fileName);
398 }
399
400 public static void deletePageAttachments(long nodeId, java.lang.String title)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException {
403 getService().deletePageAttachments(nodeId, title);
404 }
405
406 public static void deletePages(long nodeId)
407 throws com.liferay.portal.kernel.exception.PortalException,
408 com.liferay.portal.kernel.exception.SystemException {
409 getService().deletePages(nodeId);
410 }
411
412 public static void deleteTempPageAttachment(long groupId, long userId,
413 java.lang.String fileName, java.lang.String tempFolderName)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 getService()
417 .deleteTempPageAttachment(groupId, userId, fileName, tempFolderName);
418 }
419
420 public static void deleteTrashPageAttachments(long nodeId,
421 java.lang.String title)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException {
424 getService().deleteTrashPageAttachments(nodeId, title);
425 }
426
427 public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
428 long nodeId, java.lang.String title, double version)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getService().fetchPage(nodeId, title, version);
431 }
432
433 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
434 long nodeId, boolean head, java.lang.String parentTitle)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getService().getChildren(nodeId, head, parentTitle);
437 }
438
439 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
440 long nodeId, java.lang.String title)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException {
443 return getService().getDraftPage(nodeId, title);
444 }
445
446 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
447 long nodeId, java.lang.String title)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException {
450 return getService().getIncomingLinks(nodeId, title);
451 }
452
453 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
454 throws com.liferay.portal.kernel.exception.SystemException {
455 return getService().getNoAssetPages();
456 }
457
458 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
459 long nodeId)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException {
462 return getService().getOrphans(nodeId);
463 }
464
465 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
466 long nodeId, java.lang.String title)
467 throws com.liferay.portal.kernel.exception.PortalException,
468 com.liferay.portal.kernel.exception.SystemException {
469 return getService().getOutgoingLinks(nodeId, title);
470 }
471
472 public static com.liferay.portlet.wiki.model.WikiPage getPage(
473 long resourcePrimKey)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException {
476 return getService().getPage(resourcePrimKey);
477 }
478
479 public static com.liferay.portlet.wiki.model.WikiPage getPage(
480 long resourcePrimKey, java.lang.Boolean head)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException {
483 return getService().getPage(resourcePrimKey, head);
484 }
485
486 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
487 java.lang.String title)
488 throws com.liferay.portal.kernel.exception.PortalException,
489 com.liferay.portal.kernel.exception.SystemException {
490 return getService().getPage(nodeId, title);
491 }
492
493 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
494 java.lang.String title, java.lang.Boolean head)
495 throws com.liferay.portal.kernel.exception.PortalException,
496 com.liferay.portal.kernel.exception.SystemException {
497 return getService().getPage(nodeId, title, head);
498 }
499
500 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
501 java.lang.String title, double version)
502 throws com.liferay.portal.kernel.exception.PortalException,
503 com.liferay.portal.kernel.exception.SystemException {
504 return getService().getPage(nodeId, title, version);
505 }
506
507 public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
508 long pageId)
509 throws com.liferay.portal.kernel.exception.PortalException,
510 com.liferay.portal.kernel.exception.SystemException {
511 return getService().getPageByPageId(pageId);
512 }
513
514 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
515 long nodeId, java.lang.String title,
516 javax.portlet.PortletURL viewPageURL,
517 javax.portlet.PortletURL editPageURL,
518 java.lang.String attachmentURLPrefix)
519 throws com.liferay.portal.kernel.exception.PortalException,
520 com.liferay.portal.kernel.exception.SystemException {
521 return getService()
522 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
523 attachmentURLPrefix);
524 }
525
526 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
527 com.liferay.portlet.wiki.model.WikiPage page,
528 javax.portlet.PortletURL viewPageURL,
529 javax.portlet.PortletURL editPageURL,
530 java.lang.String attachmentURLPrefix)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException {
533 return getService()
534 .getPageDisplay(page, viewPageURL, editPageURL,
535 attachmentURLPrefix);
536 }
537
538 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
539 long nodeId, boolean head, int start, int end)
540 throws com.liferay.portal.kernel.exception.SystemException {
541 return getService().getPages(nodeId, head, start, end);
542 }
543
544 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
545 long nodeId, boolean head, int status, int start, int end,
546 com.liferay.portal.kernel.util.OrderByComparator obc)
547 throws com.liferay.portal.kernel.exception.SystemException {
548 return getService().getPages(nodeId, head, status, start, end, obc);
549 }
550
551 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
552 long nodeId, boolean head, int start, int end,
553 com.liferay.portal.kernel.util.OrderByComparator obc)
554 throws com.liferay.portal.kernel.exception.SystemException {
555 return getService().getPages(nodeId, head, start, end, obc);
556 }
557
558 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
559 long nodeId, int start, int end)
560 throws com.liferay.portal.kernel.exception.SystemException {
561 return getService().getPages(nodeId, start, end);
562 }
563
564 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
565 long nodeId, int start, int end,
566 com.liferay.portal.kernel.util.OrderByComparator obc)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService().getPages(nodeId, start, end, obc);
569 }
570
571 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
572 long resourcePrimKey, long nodeId, int status)
573 throws com.liferay.portal.kernel.exception.SystemException {
574 return getService().getPages(resourcePrimKey, nodeId, status);
575 }
576
577 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
578 long userId, long nodeId, int status, int start, int end)
579 throws com.liferay.portal.kernel.exception.SystemException {
580 return getService().getPages(userId, nodeId, status, start, end);
581 }
582
583 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
584 long nodeId, java.lang.String title, boolean head, int start, int end)
585 throws com.liferay.portal.kernel.exception.SystemException {
586 return getService().getPages(nodeId, title, head, start, end);
587 }
588
589 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
590 long nodeId, java.lang.String title, int start, int end)
591 throws com.liferay.portal.kernel.exception.SystemException {
592 return getService().getPages(nodeId, title, start, end);
593 }
594
595 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
596 long nodeId, java.lang.String title, int start, int end,
597 com.liferay.portal.kernel.util.OrderByComparator obc)
598 throws com.liferay.portal.kernel.exception.SystemException {
599 return getService().getPages(nodeId, title, start, end, obc);
600 }
601
602 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
603 java.lang.String format)
604 throws com.liferay.portal.kernel.exception.SystemException {
605 return getService().getPages(format);
606 }
607
608 public static int getPagesCount(long nodeId)
609 throws com.liferay.portal.kernel.exception.SystemException {
610 return getService().getPagesCount(nodeId);
611 }
612
613 public static int getPagesCount(long nodeId, boolean head)
614 throws com.liferay.portal.kernel.exception.SystemException {
615 return getService().getPagesCount(nodeId, head);
616 }
617
618 public static int getPagesCount(long nodeId, boolean head, int status)
619 throws com.liferay.portal.kernel.exception.SystemException {
620 return getService().getPagesCount(nodeId, head, status);
621 }
622
623 public static int getPagesCount(long nodeId, int status)
624 throws com.liferay.portal.kernel.exception.SystemException {
625 return getService().getPagesCount(nodeId, status);
626 }
627
628 public static int getPagesCount(long userId, long nodeId, int status)
629 throws com.liferay.portal.kernel.exception.SystemException {
630 return getService().getPagesCount(userId, nodeId, status);
631 }
632
633 public static int getPagesCount(long nodeId, java.lang.String title)
634 throws com.liferay.portal.kernel.exception.SystemException {
635 return getService().getPagesCount(nodeId, title);
636 }
637
638 public static int getPagesCount(long nodeId, java.lang.String title,
639 boolean head)
640 throws com.liferay.portal.kernel.exception.SystemException {
641 return getService().getPagesCount(nodeId, title, head);
642 }
643
644 public static int getPagesCount(java.lang.String format)
645 throws com.liferay.portal.kernel.exception.SystemException {
646 return getService().getPagesCount(format);
647 }
648
649
652 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
653 long nodeId, int start, int end)
654 throws com.liferay.portal.kernel.exception.PortalException,
655 com.liferay.portal.kernel.exception.SystemException {
656 return getService().getRecentChanges(nodeId, start, end);
657 }
658
659 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
660 long groupId, long nodeId, int start, int end)
661 throws com.liferay.portal.kernel.exception.SystemException {
662 return getService().getRecentChanges(groupId, nodeId, start, end);
663 }
664
665
668 public static int getRecentChangesCount(long nodeId)
669 throws com.liferay.portal.kernel.exception.PortalException,
670 com.liferay.portal.kernel.exception.SystemException {
671 return getService().getRecentChangesCount(nodeId);
672 }
673
674 public static int getRecentChangesCount(long groupId, long nodeId)
675 throws com.liferay.portal.kernel.exception.SystemException {
676 return getService().getRecentChangesCount(groupId, nodeId);
677 }
678
679 public static java.lang.String[] getTempPageAttachmentNames(long groupId,
680 long userId, java.lang.String tempFolderName)
681 throws com.liferay.portal.kernel.exception.PortalException,
682 com.liferay.portal.kernel.exception.SystemException {
683 return getService()
684 .getTempPageAttachmentNames(groupId, userId, tempFolderName);
685 }
686
687 public static boolean hasDraftPage(long nodeId, java.lang.String title)
688 throws com.liferay.portal.kernel.exception.SystemException {
689 return getService().hasDraftPage(nodeId, title);
690 }
691
692 public static void movePage(long userId, long nodeId,
693 java.lang.String title, java.lang.String newTitle, boolean strict,
694 com.liferay.portal.service.ServiceContext serviceContext)
695 throws com.liferay.portal.kernel.exception.PortalException,
696 com.liferay.portal.kernel.exception.SystemException {
697 getService()
698 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
699 }
700
701 public static void movePage(long userId, long nodeId,
702 java.lang.String title, java.lang.String newTitle,
703 com.liferay.portal.service.ServiceContext serviceContext)
704 throws com.liferay.portal.kernel.exception.PortalException,
705 com.liferay.portal.kernel.exception.SystemException {
706 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
707 }
708
709 public static long movePageAttachmentToTrash(long userId, long nodeId,
710 java.lang.String title, java.lang.String fileName)
711 throws com.liferay.portal.kernel.exception.PortalException,
712 com.liferay.portal.kernel.exception.SystemException {
713 return getService()
714 .movePageAttachmentToTrash(userId, nodeId, title, fileName);
715 }
716
717 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
718 long userId, long nodeId, java.lang.String title)
719 throws com.liferay.portal.kernel.exception.PortalException,
720 com.liferay.portal.kernel.exception.SystemException {
721 return getService().movePageToTrash(userId, nodeId, title);
722 }
723
724 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
725 long userId, long nodeId, java.lang.String title, double version)
726 throws com.liferay.portal.kernel.exception.PortalException,
727 com.liferay.portal.kernel.exception.SystemException {
728 return getService().movePageToTrash(userId, nodeId, title, version);
729 }
730
731 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
732 long userId, com.liferay.portlet.wiki.model.WikiPage page)
733 throws com.liferay.portal.kernel.exception.PortalException,
734 com.liferay.portal.kernel.exception.SystemException {
735 return getService().movePageToTrash(userId, page);
736 }
737
738 public static void restorePageAttachmentFromTrash(long userId, long nodeId,
739 java.lang.String title, java.lang.String fileName)
740 throws com.liferay.portal.kernel.exception.PortalException,
741 com.liferay.portal.kernel.exception.SystemException {
742 getService()
743 .restorePageAttachmentFromTrash(userId, nodeId, title, fileName);
744 }
745
746 public static void restorePageFromTrash(long userId,
747 com.liferay.portlet.wiki.model.WikiPage page)
748 throws com.liferay.portal.kernel.exception.PortalException,
749 com.liferay.portal.kernel.exception.SystemException {
750 getService().restorePageFromTrash(userId, page);
751 }
752
753 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
754 long userId, long nodeId, java.lang.String title, double version,
755 com.liferay.portal.service.ServiceContext serviceContext)
756 throws com.liferay.portal.kernel.exception.PortalException,
757 com.liferay.portal.kernel.exception.SystemException {
758 return getService()
759 .revertPage(userId, nodeId, title, version, serviceContext);
760 }
761
762 public static void subscribePage(long userId, long nodeId,
763 java.lang.String title)
764 throws com.liferay.portal.kernel.exception.PortalException,
765 com.liferay.portal.kernel.exception.SystemException {
766 getService().subscribePage(userId, nodeId, title);
767 }
768
769 public static void unsubscribePage(long userId, long nodeId,
770 java.lang.String title)
771 throws com.liferay.portal.kernel.exception.PortalException,
772 com.liferay.portal.kernel.exception.SystemException {
773 getService().unsubscribePage(userId, nodeId, title);
774 }
775
776 public static void updateAsset(long userId,
777 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
778 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
779 throws com.liferay.portal.kernel.exception.PortalException,
780 com.liferay.portal.kernel.exception.SystemException {
781 getService()
782 .updateAsset(userId, page, assetCategoryIds, assetTagNames,
783 assetLinkEntryIds);
784 }
785
786 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
787 long userId, long nodeId, java.lang.String title, double version,
788 java.lang.String content, java.lang.String summary, boolean minorEdit,
789 java.lang.String format, java.lang.String parentTitle,
790 java.lang.String redirectTitle,
791 com.liferay.portal.service.ServiceContext serviceContext)
792 throws com.liferay.portal.kernel.exception.PortalException,
793 com.liferay.portal.kernel.exception.SystemException {
794 return getService()
795 .updatePage(userId, nodeId, title, version, content,
796 summary, minorEdit, format, parentTitle, redirectTitle,
797 serviceContext);
798 }
799
800 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
801 long userId, long resourcePrimKey, int status,
802 com.liferay.portal.service.ServiceContext serviceContext)
803 throws com.liferay.portal.kernel.exception.PortalException,
804 com.liferay.portal.kernel.exception.SystemException {
805 return getService()
806 .updateStatus(userId, resourcePrimKey, status, serviceContext);
807 }
808
809 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
810 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
811 com.liferay.portal.service.ServiceContext serviceContext)
812 throws com.liferay.portal.kernel.exception.PortalException,
813 com.liferay.portal.kernel.exception.SystemException {
814 return getService().updateStatus(userId, page, status, serviceContext);
815 }
816
817 public static void validateTitle(java.lang.String title)
818 throws com.liferay.portal.kernel.exception.PortalException {
819 getService().validateTitle(title);
820 }
821
822 public static WikiPageLocalService getService() {
823 if (_service == null) {
824 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
825
826 ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
827 "_service");
828 }
829
830 return _service;
831 }
832
833
836 public void setService(WikiPageLocalService service) {
837 }
838
839 private static WikiPageLocalService _service;
840 }