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
034 public class WikiPageLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
049 com.liferay.portlet.wiki.model.WikiPage wikiPage)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addWikiPage(wikiPage);
052 }
053
054
060 public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
061 long pageId) {
062 return getService().createWikiPage(pageId);
063 }
064
065
073 public static com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
074 long pageId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteWikiPage(pageId);
078 }
079
080
087 public static com.liferay.portlet.wiki.model.WikiPage deleteWikiPage(
088 com.liferay.portlet.wiki.model.WikiPage wikiPage)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteWikiPage(wikiPage);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPage(
184 long pageId) throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().fetchWikiPage(pageId);
186 }
187
188
196 public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPageByUuidAndCompanyId(
197 java.lang.String uuid, long companyId)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getService().fetchWikiPageByUuidAndCompanyId(uuid, companyId);
200 }
201
202
210 public static com.liferay.portlet.wiki.model.WikiPage fetchWikiPageByUuidAndGroupId(
211 java.lang.String uuid, long groupId)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getService().fetchWikiPageByUuidAndGroupId(uuid, groupId);
214 }
215
216
224 public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
225 long pageId)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException {
228 return getService().getWikiPage(pageId);
229 }
230
231 public static com.liferay.portal.model.PersistedModel getPersistedModel(
232 java.io.Serializable primaryKeyObj)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException {
235 return getService().getPersistedModel(primaryKeyObj);
236 }
237
238
247 public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndCompanyId(
248 java.lang.String uuid, long companyId)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException {
251 return getService().getWikiPageByUuidAndCompanyId(uuid, companyId);
252 }
253
254
263 public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
264 java.lang.String uuid, long groupId)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException {
267 return getService().getWikiPageByUuidAndGroupId(uuid, groupId);
268 }
269
270
282 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
283 int start, int end)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getService().getWikiPages(start, end);
286 }
287
288
294 public static int getWikiPagesCount()
295 throws com.liferay.portal.kernel.exception.SystemException {
296 return getService().getWikiPagesCount();
297 }
298
299
306 public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
307 com.liferay.portlet.wiki.model.WikiPage wikiPage)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getService().updateWikiPage(wikiPage);
310 }
311
312
317 public static java.lang.String getBeanIdentifier() {
318 return getService().getBeanIdentifier();
319 }
320
321
326 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
327 getService().setBeanIdentifier(beanIdentifier);
328 }
329
330 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
331 long nodeId, java.lang.String title, double version,
332 java.lang.String content, java.lang.String summary, boolean minorEdit,
333 java.lang.String format, boolean head, java.lang.String parentTitle,
334 java.lang.String redirectTitle,
335 com.liferay.portal.service.ServiceContext serviceContext)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 return getService()
339 .addPage(userId, nodeId, title, version, content, summary,
340 minorEdit, format, head, parentTitle, redirectTitle, serviceContext);
341 }
342
343 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
344 long nodeId, java.lang.String title, java.lang.String content,
345 java.lang.String summary, boolean minorEdit,
346 com.liferay.portal.service.ServiceContext serviceContext)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException {
349 return getService()
350 .addPage(userId, nodeId, title, content, summary, minorEdit,
351 serviceContext);
352 }
353
354 public static void addPageAttachment(long userId, long nodeId,
355 java.lang.String title, java.lang.String fileName, java.io.File file,
356 java.lang.String mimeType)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 getService()
360 .addPageAttachment(userId, nodeId, title, fileName, file, mimeType);
361 }
362
363 public static void addPageAttachment(long userId, long nodeId,
364 java.lang.String title, java.lang.String fileName,
365 java.io.InputStream inputStream, java.lang.String mimeType)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException {
368 getService()
369 .addPageAttachment(userId, nodeId, title, fileName, inputStream,
370 mimeType);
371 }
372
373 public static void addPageAttachments(long userId, long nodeId,
374 java.lang.String title,
375 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 getService().addPageAttachments(userId, nodeId, title, inputStreamOVPs);
379 }
380
381 public static void addPageResources(long nodeId, java.lang.String title,
382 boolean addGroupPermissions, boolean addGuestPermissions)
383 throws com.liferay.portal.kernel.exception.PortalException,
384 com.liferay.portal.kernel.exception.SystemException {
385 getService()
386 .addPageResources(nodeId, title, addGroupPermissions,
387 addGuestPermissions);
388 }
389
390 public static void addPageResources(long nodeId, java.lang.String title,
391 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException {
394 getService()
395 .addPageResources(nodeId, title, groupPermissions, guestPermissions);
396 }
397
398 public static void addPageResources(
399 com.liferay.portlet.wiki.model.WikiPage page,
400 boolean addGroupPermissions, boolean addGuestPermissions)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException {
403 getService()
404 .addPageResources(page, addGroupPermissions, addGuestPermissions);
405 }
406
407 public static void addPageResources(
408 com.liferay.portlet.wiki.model.WikiPage page,
409 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 getService().addPageResources(page, groupPermissions, guestPermissions);
413 }
414
415 public static void addTempPageAttachment(long groupId, long userId,
416 java.lang.String fileName, java.lang.String tempFolderName,
417 java.io.InputStream inputStream, java.lang.String mimeType)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 com.liferay.portal.kernel.exception.SystemException {
420 getService()
421 .addTempPageAttachment(groupId, userId, fileName, tempFolderName,
422 inputStream, mimeType);
423 }
424
425 public static void changeParent(long userId, long nodeId,
426 java.lang.String title, java.lang.String newParentTitle,
427 com.liferay.portal.service.ServiceContext serviceContext)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException {
430 getService()
431 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
432 }
433
434 public static void copyPageAttachments(long userId, long templateNodeId,
435 java.lang.String templateTitle, long nodeId, java.lang.String title)
436 throws com.liferay.portal.kernel.exception.PortalException,
437 com.liferay.portal.kernel.exception.SystemException {
438 getService()
439 .copyPageAttachments(userId, templateNodeId, templateTitle, nodeId,
440 title);
441 }
442
443 public static void deletePage(long nodeId, java.lang.String title)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 getService().deletePage(nodeId, title);
447 }
448
449
453 public static void deletePage(long nodeId, java.lang.String title,
454 double version)
455 throws com.liferay.portal.kernel.exception.PortalException,
456 com.liferay.portal.kernel.exception.SystemException {
457 getService().deletePage(nodeId, title, version);
458 }
459
460 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException {
463 getService().deletePage(page);
464 }
465
466 public static void deletePageAttachment(long nodeId,
467 java.lang.String title, java.lang.String fileName)
468 throws com.liferay.portal.kernel.exception.PortalException,
469 com.liferay.portal.kernel.exception.SystemException {
470 getService().deletePageAttachment(nodeId, title, fileName);
471 }
472
473 public static void deletePageAttachments(long nodeId, java.lang.String title)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException {
476 getService().deletePageAttachments(nodeId, title);
477 }
478
479 public static void deletePages(long nodeId)
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 getService().deletePages(nodeId);
483 }
484
485 public static void deleteTempPageAttachment(long groupId, long userId,
486 java.lang.String fileName, java.lang.String tempFolderName)
487 throws com.liferay.portal.kernel.exception.PortalException,
488 com.liferay.portal.kernel.exception.SystemException {
489 getService()
490 .deleteTempPageAttachment(groupId, userId, fileName, tempFolderName);
491 }
492
493 public static void deleteTrashPageAttachments(long nodeId,
494 java.lang.String title)
495 throws com.liferay.portal.kernel.exception.PortalException,
496 com.liferay.portal.kernel.exception.SystemException {
497 getService().deleteTrashPageAttachments(nodeId, title);
498 }
499
500 public static void discardDraft(long nodeId, java.lang.String title,
501 double version)
502 throws com.liferay.portal.kernel.exception.PortalException,
503 com.liferay.portal.kernel.exception.SystemException {
504 getService().discardDraft(nodeId, title, version);
505 }
506
507 public static com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
508 long resourcePrimKey, int status, boolean preferApproved)
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return getService()
511 .fetchLatestPage(resourcePrimKey, status, preferApproved);
512 }
513
514 public static com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
515 long resourcePrimKey, long nodeId, int status, boolean preferApproved)
516 throws com.liferay.portal.kernel.exception.SystemException {
517 return getService()
518 .fetchLatestPage(resourcePrimKey, nodeId, status,
519 preferApproved);
520 }
521
522 public static com.liferay.portlet.wiki.model.WikiPage fetchLatestPage(
523 long nodeId, java.lang.String title, int status, boolean preferApproved)
524 throws com.liferay.portal.kernel.exception.SystemException {
525 return getService()
526 .fetchLatestPage(nodeId, title, status, preferApproved);
527 }
528
529 public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
530 long nodeId, java.lang.String title, double version)
531 throws com.liferay.portal.kernel.exception.SystemException {
532 return getService().fetchPage(nodeId, title, version);
533 }
534
535 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
536 long nodeId, boolean head, java.lang.String parentTitle)
537 throws com.liferay.portal.kernel.exception.SystemException {
538 return getService().getChildren(nodeId, head, parentTitle);
539 }
540
541 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
542 long nodeId, java.lang.String title)
543 throws com.liferay.portal.kernel.exception.PortalException,
544 com.liferay.portal.kernel.exception.SystemException {
545 return getService().getDraftPage(nodeId, title);
546 }
547
548 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
549 long nodeId, java.lang.String title)
550 throws com.liferay.portal.kernel.exception.PortalException,
551 com.liferay.portal.kernel.exception.SystemException {
552 return getService().getIncomingLinks(nodeId, title);
553 }
554
555 public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
556 long resourcePrimKey, int status, boolean preferApproved)
557 throws com.liferay.portal.kernel.exception.PortalException,
558 com.liferay.portal.kernel.exception.SystemException {
559 return getService()
560 .getLatestPage(resourcePrimKey, status, preferApproved);
561 }
562
563 public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
564 long resourcePrimKey, long nodeId, int status, boolean preferApproved)
565 throws com.liferay.portal.kernel.exception.PortalException,
566 com.liferay.portal.kernel.exception.SystemException {
567 return getService()
568 .getLatestPage(resourcePrimKey, nodeId, status,
569 preferApproved);
570 }
571
572 public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
573 long nodeId, java.lang.String title, int status, boolean preferApproved)
574 throws com.liferay.portal.kernel.exception.PortalException,
575 com.liferay.portal.kernel.exception.SystemException {
576 return getService().getLatestPage(nodeId, title, status, preferApproved);
577 }
578
579 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
580 throws com.liferay.portal.kernel.exception.SystemException {
581 return getService().getNoAssetPages();
582 }
583
584 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
585 long nodeId)
586 throws com.liferay.portal.kernel.exception.PortalException,
587 com.liferay.portal.kernel.exception.SystemException {
588 return getService().getOrphans(nodeId);
589 }
590
591 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
592 long nodeId, java.lang.String title)
593 throws com.liferay.portal.kernel.exception.PortalException,
594 com.liferay.portal.kernel.exception.SystemException {
595 return getService().getOutgoingLinks(nodeId, title);
596 }
597
598 public static com.liferay.portlet.wiki.model.WikiPage getPage(
599 long resourcePrimKey)
600 throws com.liferay.portal.kernel.exception.PortalException,
601 com.liferay.portal.kernel.exception.SystemException {
602 return getService().getPage(resourcePrimKey);
603 }
604
605 public static com.liferay.portlet.wiki.model.WikiPage getPage(
606 long resourcePrimKey, java.lang.Boolean head)
607 throws com.liferay.portal.kernel.exception.PortalException,
608 com.liferay.portal.kernel.exception.SystemException {
609 return getService().getPage(resourcePrimKey, head);
610 }
611
612 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
613 java.lang.String title)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException {
616 return getService().getPage(nodeId, title);
617 }
618
619 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
620 java.lang.String title, java.lang.Boolean head)
621 throws com.liferay.portal.kernel.exception.PortalException,
622 com.liferay.portal.kernel.exception.SystemException {
623 return getService().getPage(nodeId, title, head);
624 }
625
626 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
627 java.lang.String title, double version)
628 throws com.liferay.portal.kernel.exception.PortalException,
629 com.liferay.portal.kernel.exception.SystemException {
630 return getService().getPage(nodeId, title, version);
631 }
632
633 public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
634 long pageId)
635 throws com.liferay.portal.kernel.exception.PortalException,
636 com.liferay.portal.kernel.exception.SystemException {
637 return getService().getPageByPageId(pageId);
638 }
639
640 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
641 long nodeId, java.lang.String title,
642 javax.portlet.PortletURL viewPageURL,
643 javax.portlet.PortletURL editPageURL,
644 java.lang.String attachmentURLPrefix)
645 throws com.liferay.portal.kernel.exception.PortalException,
646 com.liferay.portal.kernel.exception.SystemException {
647 return getService()
648 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
649 attachmentURLPrefix);
650 }
651
652 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
653 com.liferay.portlet.wiki.model.WikiPage page,
654 javax.portlet.PortletURL viewPageURL,
655 javax.portlet.PortletURL editPageURL,
656 java.lang.String attachmentURLPrefix)
657 throws com.liferay.portal.kernel.exception.PortalException,
658 com.liferay.portal.kernel.exception.SystemException {
659 return getService()
660 .getPageDisplay(page, viewPageURL, editPageURL,
661 attachmentURLPrefix);
662 }
663
664 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
665 long nodeId, boolean head, int start, int end)
666 throws com.liferay.portal.kernel.exception.SystemException {
667 return getService().getPages(nodeId, head, start, end);
668 }
669
670 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
671 long nodeId, boolean head, int status, int start, int end,
672 com.liferay.portal.kernel.util.OrderByComparator obc)
673 throws com.liferay.portal.kernel.exception.SystemException {
674 return getService().getPages(nodeId, head, status, start, end, obc);
675 }
676
677 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
678 long nodeId, boolean head, int start, int end,
679 com.liferay.portal.kernel.util.OrderByComparator obc)
680 throws com.liferay.portal.kernel.exception.SystemException {
681 return getService().getPages(nodeId, head, start, end, obc);
682 }
683
684 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
685 long nodeId, int start, int end)
686 throws com.liferay.portal.kernel.exception.SystemException {
687 return getService().getPages(nodeId, start, end);
688 }
689
690 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
691 long nodeId, int start, int end,
692 com.liferay.portal.kernel.util.OrderByComparator obc)
693 throws com.liferay.portal.kernel.exception.SystemException {
694 return getService().getPages(nodeId, start, end, obc);
695 }
696
697 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
698 long resourcePrimKey, long nodeId, int status)
699 throws com.liferay.portal.kernel.exception.SystemException {
700 return getService().getPages(resourcePrimKey, nodeId, status);
701 }
702
703 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
704 long userId, long nodeId, int status, int start, int end)
705 throws com.liferay.portal.kernel.exception.SystemException {
706 return getService().getPages(userId, nodeId, status, start, end);
707 }
708
709 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
710 long nodeId, java.lang.String title, boolean head, int start, int end)
711 throws com.liferay.portal.kernel.exception.SystemException {
712 return getService().getPages(nodeId, title, head, start, end);
713 }
714
715 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
716 long nodeId, java.lang.String title, int start, int end)
717 throws com.liferay.portal.kernel.exception.SystemException {
718 return getService().getPages(nodeId, title, start, end);
719 }
720
721 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
722 long nodeId, java.lang.String title, int start, int end,
723 com.liferay.portal.kernel.util.OrderByComparator obc)
724 throws com.liferay.portal.kernel.exception.SystemException {
725 return getService().getPages(nodeId, title, start, end, obc);
726 }
727
728 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
729 java.lang.String format)
730 throws com.liferay.portal.kernel.exception.SystemException {
731 return getService().getPages(format);
732 }
733
734 public static int getPagesCount(long nodeId)
735 throws com.liferay.portal.kernel.exception.SystemException {
736 return getService().getPagesCount(nodeId);
737 }
738
739 public static int getPagesCount(long nodeId, boolean head)
740 throws com.liferay.portal.kernel.exception.SystemException {
741 return getService().getPagesCount(nodeId, head);
742 }
743
744 public static int getPagesCount(long nodeId, boolean head, int status)
745 throws com.liferay.portal.kernel.exception.SystemException {
746 return getService().getPagesCount(nodeId, head, status);
747 }
748
749 public static int getPagesCount(long nodeId, int status)
750 throws com.liferay.portal.kernel.exception.SystemException {
751 return getService().getPagesCount(nodeId, status);
752 }
753
754 public static int getPagesCount(long userId, long nodeId, int status)
755 throws com.liferay.portal.kernel.exception.SystemException {
756 return getService().getPagesCount(userId, nodeId, status);
757 }
758
759 public static int getPagesCount(long nodeId, java.lang.String title)
760 throws com.liferay.portal.kernel.exception.SystemException {
761 return getService().getPagesCount(nodeId, title);
762 }
763
764 public static int getPagesCount(long nodeId, java.lang.String title,
765 boolean head)
766 throws com.liferay.portal.kernel.exception.SystemException {
767 return getService().getPagesCount(nodeId, title, head);
768 }
769
770 public static int getPagesCount(java.lang.String format)
771 throws com.liferay.portal.kernel.exception.SystemException {
772 return getService().getPagesCount(format);
773 }
774
775
779 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
780 long nodeId, int start, int end)
781 throws com.liferay.portal.kernel.exception.PortalException,
782 com.liferay.portal.kernel.exception.SystemException {
783 return getService().getRecentChanges(nodeId, start, end);
784 }
785
786 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
787 long groupId, long nodeId, int start, int end)
788 throws com.liferay.portal.kernel.exception.SystemException {
789 return getService().getRecentChanges(groupId, nodeId, start, end);
790 }
791
792
796 public static int getRecentChangesCount(long nodeId)
797 throws com.liferay.portal.kernel.exception.PortalException,
798 com.liferay.portal.kernel.exception.SystemException {
799 return getService().getRecentChangesCount(nodeId);
800 }
801
802 public static int getRecentChangesCount(long groupId, long nodeId)
803 throws com.liferay.portal.kernel.exception.SystemException {
804 return getService().getRecentChangesCount(groupId, nodeId);
805 }
806
807 public static java.lang.String[] getTempPageAttachmentNames(long groupId,
808 long userId, java.lang.String tempFolderName)
809 throws com.liferay.portal.kernel.exception.PortalException,
810 com.liferay.portal.kernel.exception.SystemException {
811 return getService()
812 .getTempPageAttachmentNames(groupId, userId, tempFolderName);
813 }
814
815 public static boolean hasDraftPage(long nodeId, java.lang.String title)
816 throws com.liferay.portal.kernel.exception.SystemException {
817 return getService().hasDraftPage(nodeId, title);
818 }
819
820 public static void movePage(long userId, long nodeId,
821 java.lang.String title, java.lang.String newTitle, boolean strict,
822 com.liferay.portal.service.ServiceContext serviceContext)
823 throws com.liferay.portal.kernel.exception.PortalException,
824 com.liferay.portal.kernel.exception.SystemException {
825 getService()
826 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
827 }
828
829 public static void movePage(long userId, long nodeId,
830 java.lang.String title, java.lang.String newTitle,
831 com.liferay.portal.service.ServiceContext serviceContext)
832 throws com.liferay.portal.kernel.exception.PortalException,
833 com.liferay.portal.kernel.exception.SystemException {
834 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
835 }
836
837 public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
838 long userId, long nodeId, java.lang.String title,
839 java.lang.String fileName)
840 throws com.liferay.portal.kernel.exception.PortalException,
841 com.liferay.portal.kernel.exception.SystemException {
842 return getService()
843 .movePageAttachmentToTrash(userId, nodeId, title, fileName);
844 }
845
846 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
847 long userId, long nodeId, java.lang.String title)
848 throws com.liferay.portal.kernel.exception.PortalException,
849 com.liferay.portal.kernel.exception.SystemException {
850 return getService().movePageToTrash(userId, nodeId, title);
851 }
852
853 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
854 long userId, long nodeId, java.lang.String title, double version)
855 throws com.liferay.portal.kernel.exception.PortalException,
856 com.liferay.portal.kernel.exception.SystemException {
857 return getService().movePageToTrash(userId, nodeId, title, version);
858 }
859
860 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
861 long userId, com.liferay.portlet.wiki.model.WikiPage page)
862 throws com.liferay.portal.kernel.exception.PortalException,
863 com.liferay.portal.kernel.exception.SystemException {
864 return getService().movePageToTrash(userId, page);
865 }
866
867 public static void restorePageAttachmentFromTrash(long userId, long nodeId,
868 java.lang.String title, java.lang.String fileName)
869 throws com.liferay.portal.kernel.exception.PortalException,
870 com.liferay.portal.kernel.exception.SystemException {
871 getService()
872 .restorePageAttachmentFromTrash(userId, nodeId, title, fileName);
873 }
874
875 public static void restorePageFromTrash(long userId,
876 com.liferay.portlet.wiki.model.WikiPage page)
877 throws com.liferay.portal.kernel.exception.PortalException,
878 com.liferay.portal.kernel.exception.SystemException {
879 getService().restorePageFromTrash(userId, page);
880 }
881
882 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
883 long userId, long nodeId, java.lang.String title, double version,
884 com.liferay.portal.service.ServiceContext serviceContext)
885 throws com.liferay.portal.kernel.exception.PortalException,
886 com.liferay.portal.kernel.exception.SystemException {
887 return getService()
888 .revertPage(userId, nodeId, title, version, serviceContext);
889 }
890
891 public static void subscribePage(long userId, long nodeId,
892 java.lang.String title)
893 throws com.liferay.portal.kernel.exception.PortalException,
894 com.liferay.portal.kernel.exception.SystemException {
895 getService().subscribePage(userId, nodeId, title);
896 }
897
898 public static void unsubscribePage(long userId, long nodeId,
899 java.lang.String title)
900 throws com.liferay.portal.kernel.exception.PortalException,
901 com.liferay.portal.kernel.exception.SystemException {
902 getService().unsubscribePage(userId, nodeId, title);
903 }
904
905 public static void updateAsset(long userId,
906 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
907 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
908 throws com.liferay.portal.kernel.exception.PortalException,
909 com.liferay.portal.kernel.exception.SystemException {
910 getService()
911 .updateAsset(userId, page, assetCategoryIds, assetTagNames,
912 assetLinkEntryIds);
913 }
914
915 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
916 long userId, long nodeId, java.lang.String title, double version,
917 java.lang.String content, java.lang.String summary, boolean minorEdit,
918 java.lang.String format, java.lang.String parentTitle,
919 java.lang.String redirectTitle,
920 com.liferay.portal.service.ServiceContext serviceContext)
921 throws com.liferay.portal.kernel.exception.PortalException,
922 com.liferay.portal.kernel.exception.SystemException {
923 return getService()
924 .updatePage(userId, nodeId, title, version, content,
925 summary, minorEdit, format, parentTitle, redirectTitle,
926 serviceContext);
927 }
928
929 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
930 long userId, long resourcePrimKey, int status,
931 com.liferay.portal.service.ServiceContext serviceContext)
932 throws com.liferay.portal.kernel.exception.PortalException,
933 com.liferay.portal.kernel.exception.SystemException {
934 return getService()
935 .updateStatus(userId, resourcePrimKey, status, serviceContext);
936 }
937
938 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
939 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
940 com.liferay.portal.service.ServiceContext serviceContext)
941 throws com.liferay.portal.kernel.exception.PortalException,
942 com.liferay.portal.kernel.exception.SystemException {
943 return getService().updateStatus(userId, page, status, serviceContext);
944 }
945
946 public static void validateTitle(java.lang.String title)
947 throws com.liferay.portal.kernel.exception.PortalException {
948 getService().validateTitle(title);
949 }
950
951 public static WikiPageLocalService getService() {
952 if (_service == null) {
953 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
954
955 ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
956 "_service");
957 }
958
959 return _service;
960 }
961
962
965 public void setService(WikiPageLocalService service) {
966 }
967
968 private static WikiPageLocalService _service;
969 }