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