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, double version)
534 throws com.liferay.portal.kernel.exception.SystemException {
535 return getService().fetchPage(nodeId, title, version);
536 }
537
538 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
539 long nodeId, boolean head, java.lang.String parentTitle)
540 throws com.liferay.portal.kernel.exception.SystemException {
541 return getService().getChildren(nodeId, head, parentTitle);
542 }
543
544 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
545 long nodeId, java.lang.String title)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException {
548 return getService().getDraftPage(nodeId, title);
549 }
550
551 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
552 long nodeId, java.lang.String title)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException {
555 return getService().getIncomingLinks(nodeId, title);
556 }
557
558 public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
559 long resourcePrimKey, int status, boolean preferApproved)
560 throws com.liferay.portal.kernel.exception.PortalException,
561 com.liferay.portal.kernel.exception.SystemException {
562 return getService()
563 .getLatestPage(resourcePrimKey, status, preferApproved);
564 }
565
566 public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
567 long resourcePrimKey, long nodeId, int status, boolean preferApproved)
568 throws com.liferay.portal.kernel.exception.PortalException,
569 com.liferay.portal.kernel.exception.SystemException {
570 return getService()
571 .getLatestPage(resourcePrimKey, nodeId, status,
572 preferApproved);
573 }
574
575 public static com.liferay.portlet.wiki.model.WikiPage getLatestPage(
576 long nodeId, java.lang.String title, int status, boolean preferApproved)
577 throws com.liferay.portal.kernel.exception.PortalException,
578 com.liferay.portal.kernel.exception.SystemException {
579 return getService().getLatestPage(nodeId, title, status, preferApproved);
580 }
581
582 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
583 throws com.liferay.portal.kernel.exception.SystemException {
584 return getService().getNoAssetPages();
585 }
586
587 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
588 long nodeId)
589 throws com.liferay.portal.kernel.exception.PortalException,
590 com.liferay.portal.kernel.exception.SystemException {
591 return getService().getOrphans(nodeId);
592 }
593
594 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
595 long nodeId, java.lang.String title)
596 throws com.liferay.portal.kernel.exception.PortalException,
597 com.liferay.portal.kernel.exception.SystemException {
598 return getService().getOutgoingLinks(nodeId, title);
599 }
600
601 public static com.liferay.portlet.wiki.model.WikiPage getPage(
602 long resourcePrimKey)
603 throws com.liferay.portal.kernel.exception.PortalException,
604 com.liferay.portal.kernel.exception.SystemException {
605 return getService().getPage(resourcePrimKey);
606 }
607
608 public static com.liferay.portlet.wiki.model.WikiPage getPage(
609 long resourcePrimKey, java.lang.Boolean head)
610 throws com.liferay.portal.kernel.exception.PortalException,
611 com.liferay.portal.kernel.exception.SystemException {
612 return getService().getPage(resourcePrimKey, head);
613 }
614
615 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
616 java.lang.String title)
617 throws com.liferay.portal.kernel.exception.PortalException,
618 com.liferay.portal.kernel.exception.SystemException {
619 return getService().getPage(nodeId, title);
620 }
621
622 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
623 java.lang.String title, java.lang.Boolean head)
624 throws com.liferay.portal.kernel.exception.PortalException,
625 com.liferay.portal.kernel.exception.SystemException {
626 return getService().getPage(nodeId, title, head);
627 }
628
629 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
630 java.lang.String title, double version)
631 throws com.liferay.portal.kernel.exception.PortalException,
632 com.liferay.portal.kernel.exception.SystemException {
633 return getService().getPage(nodeId, title, version);
634 }
635
636 public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
637 long pageId)
638 throws com.liferay.portal.kernel.exception.PortalException,
639 com.liferay.portal.kernel.exception.SystemException {
640 return getService().getPageByPageId(pageId);
641 }
642
643 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
644 long nodeId, java.lang.String title,
645 javax.portlet.PortletURL viewPageURL,
646 javax.portlet.PortletURL editPageURL,
647 java.lang.String attachmentURLPrefix)
648 throws com.liferay.portal.kernel.exception.PortalException,
649 com.liferay.portal.kernel.exception.SystemException {
650 return getService()
651 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
652 attachmentURLPrefix);
653 }
654
655 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
656 com.liferay.portlet.wiki.model.WikiPage page,
657 javax.portlet.PortletURL viewPageURL,
658 javax.portlet.PortletURL editPageURL,
659 java.lang.String attachmentURLPrefix)
660 throws com.liferay.portal.kernel.exception.PortalException,
661 com.liferay.portal.kernel.exception.SystemException {
662 return getService()
663 .getPageDisplay(page, viewPageURL, editPageURL,
664 attachmentURLPrefix);
665 }
666
667 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
668 long nodeId, boolean head, int start, int end)
669 throws com.liferay.portal.kernel.exception.SystemException {
670 return getService().getPages(nodeId, head, start, end);
671 }
672
673 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
674 long nodeId, boolean head, int status, int start, int end)
675 throws com.liferay.portal.kernel.exception.SystemException {
676 return getService().getPages(nodeId, head, status, 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 com.liferay.portal.kernel.util.OrderByComparator obc)
682 throws com.liferay.portal.kernel.exception.SystemException {
683 return getService().getPages(nodeId, head, status, start, end, obc);
684 }
685
686 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
687 long nodeId, boolean head, int start, int end,
688 com.liferay.portal.kernel.util.OrderByComparator obc)
689 throws com.liferay.portal.kernel.exception.SystemException {
690 return getService().getPages(nodeId, head, start, end, obc);
691 }
692
693 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
694 long nodeId, int start, int end)
695 throws com.liferay.portal.kernel.exception.SystemException {
696 return getService().getPages(nodeId, start, end);
697 }
698
699 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
700 long nodeId, int start, int end,
701 com.liferay.portal.kernel.util.OrderByComparator obc)
702 throws com.liferay.portal.kernel.exception.SystemException {
703 return getService().getPages(nodeId, start, end, obc);
704 }
705
706 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
707 long resourcePrimKey, long nodeId, int status)
708 throws com.liferay.portal.kernel.exception.SystemException {
709 return getService().getPages(resourcePrimKey, nodeId, status);
710 }
711
712 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
713 long userId, long nodeId, int status, int start, int end)
714 throws com.liferay.portal.kernel.exception.SystemException {
715 return getService().getPages(userId, nodeId, status, start, end);
716 }
717
718 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
719 long nodeId, java.lang.String title, boolean head, int start, int end)
720 throws com.liferay.portal.kernel.exception.SystemException {
721 return getService().getPages(nodeId, title, head, start, end);
722 }
723
724 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
725 long nodeId, java.lang.String title, int start, int end)
726 throws com.liferay.portal.kernel.exception.SystemException {
727 return getService().getPages(nodeId, title, 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 com.liferay.portal.kernel.util.OrderByComparator obc)
733 throws com.liferay.portal.kernel.exception.SystemException {
734 return getService().getPages(nodeId, title, start, end, obc);
735 }
736
737 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
738 java.lang.String format)
739 throws com.liferay.portal.kernel.exception.SystemException {
740 return getService().getPages(format);
741 }
742
743 public static int getPagesCount(long nodeId)
744 throws com.liferay.portal.kernel.exception.SystemException {
745 return getService().getPagesCount(nodeId);
746 }
747
748 public static int getPagesCount(long nodeId, boolean head)
749 throws com.liferay.portal.kernel.exception.SystemException {
750 return getService().getPagesCount(nodeId, head);
751 }
752
753 public static int getPagesCount(long nodeId, boolean head, int status)
754 throws com.liferay.portal.kernel.exception.SystemException {
755 return getService().getPagesCount(nodeId, head, status);
756 }
757
758 public static int getPagesCount(long nodeId, int status)
759 throws com.liferay.portal.kernel.exception.SystemException {
760 return getService().getPagesCount(nodeId, status);
761 }
762
763 public static int getPagesCount(long userId, long nodeId, int status)
764 throws com.liferay.portal.kernel.exception.SystemException {
765 return getService().getPagesCount(userId, nodeId, status);
766 }
767
768 public static int getPagesCount(long nodeId, java.lang.String title)
769 throws com.liferay.portal.kernel.exception.SystemException {
770 return getService().getPagesCount(nodeId, title);
771 }
772
773 public static int getPagesCount(long nodeId, java.lang.String title,
774 boolean head)
775 throws com.liferay.portal.kernel.exception.SystemException {
776 return getService().getPagesCount(nodeId, title, head);
777 }
778
779 public static int getPagesCount(java.lang.String format)
780 throws com.liferay.portal.kernel.exception.SystemException {
781 return getService().getPagesCount(format);
782 }
783
784
788 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
789 long nodeId, int start, int end)
790 throws com.liferay.portal.kernel.exception.PortalException,
791 com.liferay.portal.kernel.exception.SystemException {
792 return getService().getRecentChanges(nodeId, start, end);
793 }
794
795 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
796 long groupId, long nodeId, int start, int end)
797 throws com.liferay.portal.kernel.exception.SystemException {
798 return getService().getRecentChanges(groupId, nodeId, start, end);
799 }
800
801
805 public static int getRecentChangesCount(long nodeId)
806 throws com.liferay.portal.kernel.exception.PortalException,
807 com.liferay.portal.kernel.exception.SystemException {
808 return getService().getRecentChangesCount(nodeId);
809 }
810
811 public static int getRecentChangesCount(long groupId, long nodeId)
812 throws com.liferay.portal.kernel.exception.SystemException {
813 return getService().getRecentChangesCount(groupId, nodeId);
814 }
815
816 public static java.lang.String[] getTempPageAttachmentNames(long groupId,
817 long userId, java.lang.String tempFolderName)
818 throws com.liferay.portal.kernel.exception.PortalException,
819 com.liferay.portal.kernel.exception.SystemException {
820 return getService()
821 .getTempPageAttachmentNames(groupId, userId, tempFolderName);
822 }
823
824 public static boolean hasDraftPage(long nodeId, java.lang.String title)
825 throws com.liferay.portal.kernel.exception.SystemException {
826 return getService().hasDraftPage(nodeId, title);
827 }
828
829 public static void movePage(long userId, long nodeId,
830 java.lang.String title, java.lang.String newTitle, boolean strict,
831 com.liferay.portal.service.ServiceContext serviceContext)
832 throws com.liferay.portal.kernel.exception.PortalException,
833 com.liferay.portal.kernel.exception.SystemException {
834 getService()
835 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
836 }
837
838 public static void movePage(long userId, long nodeId,
839 java.lang.String title, java.lang.String newTitle,
840 com.liferay.portal.service.ServiceContext serviceContext)
841 throws com.liferay.portal.kernel.exception.PortalException,
842 com.liferay.portal.kernel.exception.SystemException {
843 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
844 }
845
846 public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
847 long userId, long nodeId, java.lang.String title,
848 java.lang.String fileName)
849 throws com.liferay.portal.kernel.exception.PortalException,
850 com.liferay.portal.kernel.exception.SystemException {
851 return getService()
852 .movePageAttachmentToTrash(userId, nodeId, title, fileName);
853 }
854
855 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
856 long userId, long nodeId, java.lang.String title)
857 throws com.liferay.portal.kernel.exception.PortalException,
858 com.liferay.portal.kernel.exception.SystemException {
859 return getService().movePageToTrash(userId, nodeId, title);
860 }
861
862 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
863 long userId, long nodeId, java.lang.String title, double version)
864 throws com.liferay.portal.kernel.exception.PortalException,
865 com.liferay.portal.kernel.exception.SystemException {
866 return getService().movePageToTrash(userId, nodeId, title, version);
867 }
868
869 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
870 long userId, com.liferay.portlet.wiki.model.WikiPage page)
871 throws com.liferay.portal.kernel.exception.PortalException,
872 com.liferay.portal.kernel.exception.SystemException {
873 return getService().movePageToTrash(userId, page);
874 }
875
876 public static void restorePageAttachmentFromTrash(long userId, long nodeId,
877 java.lang.String title, java.lang.String fileName)
878 throws com.liferay.portal.kernel.exception.PortalException,
879 com.liferay.portal.kernel.exception.SystemException {
880 getService()
881 .restorePageAttachmentFromTrash(userId, nodeId, title, fileName);
882 }
883
884 public static void restorePageFromTrash(long userId,
885 com.liferay.portlet.wiki.model.WikiPage page)
886 throws com.liferay.portal.kernel.exception.PortalException,
887 com.liferay.portal.kernel.exception.SystemException {
888 getService().restorePageFromTrash(userId, page);
889 }
890
891 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
892 long userId, long nodeId, java.lang.String title, double version,
893 com.liferay.portal.service.ServiceContext serviceContext)
894 throws com.liferay.portal.kernel.exception.PortalException,
895 com.liferay.portal.kernel.exception.SystemException {
896 return getService()
897 .revertPage(userId, nodeId, title, version, serviceContext);
898 }
899
900 public static void subscribePage(long userId, long nodeId,
901 java.lang.String title)
902 throws com.liferay.portal.kernel.exception.PortalException,
903 com.liferay.portal.kernel.exception.SystemException {
904 getService().subscribePage(userId, nodeId, title);
905 }
906
907 public static void unsubscribePage(long userId, long nodeId,
908 java.lang.String title)
909 throws com.liferay.portal.kernel.exception.PortalException,
910 com.liferay.portal.kernel.exception.SystemException {
911 getService().unsubscribePage(userId, nodeId, title);
912 }
913
914 public static void updateAsset(long userId,
915 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
916 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
917 throws com.liferay.portal.kernel.exception.PortalException,
918 com.liferay.portal.kernel.exception.SystemException {
919 getService()
920 .updateAsset(userId, page, assetCategoryIds, assetTagNames,
921 assetLinkEntryIds);
922 }
923
924 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
925 long userId, long nodeId, java.lang.String title, double version,
926 java.lang.String content, java.lang.String summary, boolean minorEdit,
927 java.lang.String format, java.lang.String parentTitle,
928 java.lang.String redirectTitle,
929 com.liferay.portal.service.ServiceContext serviceContext)
930 throws com.liferay.portal.kernel.exception.PortalException,
931 com.liferay.portal.kernel.exception.SystemException {
932 return getService()
933 .updatePage(userId, nodeId, title, version, content,
934 summary, minorEdit, format, parentTitle, redirectTitle,
935 serviceContext);
936 }
937
938 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
939 long userId, long resourcePrimKey, 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()
944 .updateStatus(userId, resourcePrimKey, status, serviceContext);
945 }
946
947 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
948 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
949 com.liferay.portal.service.ServiceContext serviceContext)
950 throws com.liferay.portal.kernel.exception.PortalException,
951 com.liferay.portal.kernel.exception.SystemException {
952 return getService().updateStatus(userId, page, status, serviceContext);
953 }
954
955 public static void validateTitle(java.lang.String title)
956 throws com.liferay.portal.kernel.exception.PortalException {
957 getService().validateTitle(title);
958 }
959
960 public static WikiPageLocalService getService() {
961 if (_service == null) {
962 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
963
964 ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
965 "_service");
966 }
967
968 return _service;
969 }
970
971
974 public void setService(WikiPageLocalService service) {
975 }
976
977 private static WikiPageLocalService _service;
978 }