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