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 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 getService().addPageAttachment(userId, nodeId, title, fileName, file);
299 }
300
301 public static void addPageAttachment(long userId, long nodeId,
302 java.lang.String title, java.lang.String fileName,
303 java.io.InputStream inputStream)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException {
306 getService()
307 .addPageAttachment(userId, nodeId, title, fileName, inputStream);
308 }
309
310 public static void addPageAttachment(long companyId,
311 java.lang.String dirName, java.util.Date modifiedDate,
312 java.lang.String fileName, java.io.InputStream inputStream)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 getService()
316 .addPageAttachment(companyId, dirName, modifiedDate, fileName,
317 inputStream);
318 }
319
320 public static void addPageAttachments(long userId, long nodeId,
321 java.lang.String title,
322 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 getService().addPageAttachments(userId, nodeId, title, inputStreamOVPs);
326 }
327
328 public static void addPageResources(long nodeId, java.lang.String title,
329 boolean addGroupPermissions, boolean addGuestPermissions)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException {
332 getService()
333 .addPageResources(nodeId, title, addGroupPermissions,
334 addGuestPermissions);
335 }
336
337 public static void addPageResources(long nodeId, java.lang.String title,
338 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException {
341 getService()
342 .addPageResources(nodeId, title, groupPermissions, guestPermissions);
343 }
344
345 public static void addPageResources(
346 com.liferay.portlet.wiki.model.WikiPage page,
347 boolean addGroupPermissions, boolean addGuestPermissions)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 getService()
351 .addPageResources(page, addGroupPermissions, addGuestPermissions);
352 }
353
354 public static void addPageResources(
355 com.liferay.portlet.wiki.model.WikiPage page,
356 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 getService().addPageResources(page, groupPermissions, guestPermissions);
360 }
361
362 public static java.lang.String addTempPageAttachment(long userId,
363 java.lang.String fileName, java.lang.String tempFolderName,
364 java.io.InputStream inputStream)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException {
367 return getService()
368 .addTempPageAttachment(userId, fileName, tempFolderName,
369 inputStream);
370 }
371
372 public static void changeParent(long userId, long nodeId,
373 java.lang.String title, java.lang.String newParentTitle,
374 com.liferay.portal.service.ServiceContext serviceContext)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException {
377 getService()
378 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
379 }
380
381 public static void deletePage(long nodeId, java.lang.String title)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException {
384 getService().deletePage(nodeId, title);
385 }
386
387 public static void deletePage(long nodeId, java.lang.String title,
388 double version)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException {
391 getService().deletePage(nodeId, title, version);
392 }
393
394 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException {
397 getService().deletePage(page);
398 }
399
400 public static void deletePageAttachment(long nodeId,
401 java.lang.String title, java.lang.String fileName)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException {
404 getService().deletePageAttachment(nodeId, title, fileName);
405 }
406
407 public static void deletePageAttachments(long nodeId, java.lang.String title)
408 throws com.liferay.portal.kernel.exception.PortalException,
409 com.liferay.portal.kernel.exception.SystemException {
410 getService().deletePageAttachments(nodeId, title);
411 }
412
413 public static void deletePages(long nodeId)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 getService().deletePages(nodeId);
417 }
418
419 public static void deleteTempPageAttachment(long userId,
420 java.lang.String fileName, java.lang.String tempFolderName)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException {
423 getService().deleteTempPageAttachment(userId, fileName, tempFolderName);
424 }
425
426 public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
427 long nodeId, java.lang.String title, double version)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 return getService().fetchPage(nodeId, title, version);
430 }
431
432 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
433 long nodeId, boolean head, java.lang.String parentTitle)
434 throws com.liferay.portal.kernel.exception.SystemException {
435 return getService().getChildren(nodeId, head, parentTitle);
436 }
437
438 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
439 long nodeId, java.lang.String title)
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException {
442 return getService().getDraftPage(nodeId, title);
443 }
444
445 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
446 long nodeId, java.lang.String title)
447 throws com.liferay.portal.kernel.exception.PortalException,
448 com.liferay.portal.kernel.exception.SystemException {
449 return getService().getIncomingLinks(nodeId, title);
450 }
451
452 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
453 throws com.liferay.portal.kernel.exception.SystemException {
454 return getService().getNoAssetPages();
455 }
456
457 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
458 long nodeId)
459 throws com.liferay.portal.kernel.exception.PortalException,
460 com.liferay.portal.kernel.exception.SystemException {
461 return getService().getOrphans(nodeId);
462 }
463
464 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
465 long nodeId, java.lang.String title)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException {
468 return getService().getOutgoingLinks(nodeId, title);
469 }
470
471 public static com.liferay.portlet.wiki.model.WikiPage getPage(
472 long resourcePrimKey)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException {
475 return getService().getPage(resourcePrimKey);
476 }
477
478 public static com.liferay.portlet.wiki.model.WikiPage getPage(
479 long resourcePrimKey, java.lang.Boolean head)
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 return getService().getPage(resourcePrimKey, head);
483 }
484
485 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
486 java.lang.String title)
487 throws com.liferay.portal.kernel.exception.PortalException,
488 com.liferay.portal.kernel.exception.SystemException {
489 return getService().getPage(nodeId, title);
490 }
491
492 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
493 java.lang.String title, java.lang.Boolean head)
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException {
496 return getService().getPage(nodeId, title, head);
497 }
498
499 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
500 java.lang.String title, double version)
501 throws com.liferay.portal.kernel.exception.PortalException,
502 com.liferay.portal.kernel.exception.SystemException {
503 return getService().getPage(nodeId, title, version);
504 }
505
506 public static com.liferay.portlet.wiki.model.WikiPage getPageByPageId(
507 long pageId)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException {
510 return getService().getPageByPageId(pageId);
511 }
512
513 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
514 long nodeId, java.lang.String title,
515 javax.portlet.PortletURL viewPageURL,
516 javax.portlet.PortletURL editPageURL,
517 java.lang.String attachmentURLPrefix)
518 throws com.liferay.portal.kernel.exception.PortalException,
519 com.liferay.portal.kernel.exception.SystemException {
520 return getService()
521 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
522 attachmentURLPrefix);
523 }
524
525 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
526 com.liferay.portlet.wiki.model.WikiPage page,
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(page, viewPageURL, editPageURL,
534 attachmentURLPrefix);
535 }
536
537 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
538 long nodeId, boolean head, int start, int end)
539 throws com.liferay.portal.kernel.exception.SystemException {
540 return getService().getPages(nodeId, head, start, end);
541 }
542
543 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
544 long nodeId, boolean head, int status, int start, int end,
545 com.liferay.portal.kernel.util.OrderByComparator obc)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 return getService().getPages(nodeId, head, status, start, end, obc);
548 }
549
550 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
551 long nodeId, boolean head, int start, int end,
552 com.liferay.portal.kernel.util.OrderByComparator obc)
553 throws com.liferay.portal.kernel.exception.SystemException {
554 return getService().getPages(nodeId, head, start, end, obc);
555 }
556
557 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
558 long nodeId, int start, int end)
559 throws com.liferay.portal.kernel.exception.SystemException {
560 return getService().getPages(nodeId, start, end);
561 }
562
563 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
564 long nodeId, int start, int end,
565 com.liferay.portal.kernel.util.OrderByComparator obc)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 return getService().getPages(nodeId, start, end, obc);
568 }
569
570 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
571 long resourcePrimKey, long nodeId, int status)
572 throws com.liferay.portal.kernel.exception.SystemException {
573 return getService().getPages(resourcePrimKey, nodeId, status);
574 }
575
576 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
577 long userId, long nodeId, int status, int start, int end)
578 throws com.liferay.portal.kernel.exception.SystemException {
579 return getService().getPages(userId, nodeId, status, start, end);
580 }
581
582 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
583 long nodeId, java.lang.String title, boolean head, int start, int end)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 return getService().getPages(nodeId, title, head, start, end);
586 }
587
588 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
589 long nodeId, java.lang.String title, int start, int end)
590 throws com.liferay.portal.kernel.exception.SystemException {
591 return getService().getPages(nodeId, title, start, end);
592 }
593
594 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
595 long nodeId, java.lang.String title, int start, int end,
596 com.liferay.portal.kernel.util.OrderByComparator obc)
597 throws com.liferay.portal.kernel.exception.SystemException {
598 return getService().getPages(nodeId, title, start, end, obc);
599 }
600
601 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
602 java.lang.String format)
603 throws com.liferay.portal.kernel.exception.SystemException {
604 return getService().getPages(format);
605 }
606
607 public static int getPagesCount(long nodeId)
608 throws com.liferay.portal.kernel.exception.SystemException {
609 return getService().getPagesCount(nodeId);
610 }
611
612 public static int getPagesCount(long nodeId, boolean head)
613 throws com.liferay.portal.kernel.exception.SystemException {
614 return getService().getPagesCount(nodeId, head);
615 }
616
617 public static int getPagesCount(long nodeId, boolean head, int status)
618 throws com.liferay.portal.kernel.exception.SystemException {
619 return getService().getPagesCount(nodeId, head, status);
620 }
621
622 public static int getPagesCount(long nodeId, int status)
623 throws com.liferay.portal.kernel.exception.SystemException {
624 return getService().getPagesCount(nodeId, status);
625 }
626
627 public static int getPagesCount(long userId, long nodeId, int status)
628 throws com.liferay.portal.kernel.exception.SystemException {
629 return getService().getPagesCount(userId, nodeId, status);
630 }
631
632 public static int getPagesCount(long nodeId, java.lang.String title)
633 throws com.liferay.portal.kernel.exception.SystemException {
634 return getService().getPagesCount(nodeId, title);
635 }
636
637 public static int getPagesCount(long nodeId, java.lang.String title,
638 boolean head)
639 throws com.liferay.portal.kernel.exception.SystemException {
640 return getService().getPagesCount(nodeId, title, head);
641 }
642
643 public static int getPagesCount(java.lang.String format)
644 throws com.liferay.portal.kernel.exception.SystemException {
645 return getService().getPagesCount(format);
646 }
647
648 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
649 long nodeId, int start, int end)
650 throws com.liferay.portal.kernel.exception.SystemException {
651 return getService().getRecentChanges(nodeId, start, end);
652 }
653
654 public static int getRecentChangesCount(long nodeId)
655 throws com.liferay.portal.kernel.exception.SystemException {
656 return getService().getRecentChangesCount(nodeId);
657 }
658
659 public static java.lang.String[] getTempPageAttachmentNames(long userId,
660 java.lang.String tempFolderName) {
661 return getService().getTempPageAttachmentNames(userId, tempFolderName);
662 }
663
664 public static boolean hasDraftPage(long nodeId, java.lang.String title)
665 throws com.liferay.portal.kernel.exception.SystemException {
666 return getService().hasDraftPage(nodeId, title);
667 }
668
669 public static void movePage(long userId, long nodeId,
670 java.lang.String title, java.lang.String newTitle, boolean strict,
671 com.liferay.portal.service.ServiceContext serviceContext)
672 throws com.liferay.portal.kernel.exception.PortalException,
673 com.liferay.portal.kernel.exception.SystemException {
674 getService()
675 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
676 }
677
678 public static void movePage(long userId, long nodeId,
679 java.lang.String title, java.lang.String newTitle,
680 com.liferay.portal.service.ServiceContext serviceContext)
681 throws com.liferay.portal.kernel.exception.PortalException,
682 com.liferay.portal.kernel.exception.SystemException {
683 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
684 }
685
686 public static void movePageAttachmentFromTrash(long nodeId,
687 java.lang.String title, java.lang.String deletedFileName)
688 throws com.liferay.portal.kernel.exception.PortalException,
689 com.liferay.portal.kernel.exception.SystemException {
690 getService().movePageAttachmentFromTrash(nodeId, title, deletedFileName);
691 }
692
693 public static java.lang.String movePageAttachmentToTrash(long nodeId,
694 java.lang.String title, java.lang.String fileName)
695 throws com.liferay.portal.kernel.exception.PortalException,
696 com.liferay.portal.kernel.exception.SystemException {
697 return getService().movePageAttachmentToTrash(nodeId, title, fileName);
698 }
699
700 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
701 long userId, long nodeId, java.lang.String title)
702 throws com.liferay.portal.kernel.exception.PortalException,
703 com.liferay.portal.kernel.exception.SystemException {
704 return getService().movePageToTrash(userId, nodeId, title);
705 }
706
707 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
708 long userId, long nodeId, java.lang.String title, double version)
709 throws com.liferay.portal.kernel.exception.PortalException,
710 com.liferay.portal.kernel.exception.SystemException {
711 return getService().movePageToTrash(userId, nodeId, title, version);
712 }
713
714 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
715 long userId, com.liferay.portlet.wiki.model.WikiPage page)
716 throws com.liferay.portal.kernel.exception.PortalException,
717 com.liferay.portal.kernel.exception.SystemException {
718 return getService().movePageToTrash(userId, page);
719 }
720
721 public static void restorePageFromTrash(long userId,
722 com.liferay.portlet.wiki.model.WikiPage page)
723 throws com.liferay.portal.kernel.exception.PortalException,
724 com.liferay.portal.kernel.exception.SystemException {
725 getService().restorePageFromTrash(userId, page);
726 }
727
728 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
729 long userId, long nodeId, java.lang.String title, double version,
730 com.liferay.portal.service.ServiceContext serviceContext)
731 throws com.liferay.portal.kernel.exception.PortalException,
732 com.liferay.portal.kernel.exception.SystemException {
733 return getService()
734 .revertPage(userId, nodeId, title, version, serviceContext);
735 }
736
737 public static void subscribePage(long userId, long nodeId,
738 java.lang.String title)
739 throws com.liferay.portal.kernel.exception.PortalException,
740 com.liferay.portal.kernel.exception.SystemException {
741 getService().subscribePage(userId, nodeId, title);
742 }
743
744 public static void unsubscribePage(long userId, long nodeId,
745 java.lang.String title)
746 throws com.liferay.portal.kernel.exception.PortalException,
747 com.liferay.portal.kernel.exception.SystemException {
748 getService().unsubscribePage(userId, nodeId, title);
749 }
750
751 public static void updateAsset(long userId,
752 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
753 java.lang.String[] assetTagNames, long[] assetLinkEntryIds)
754 throws com.liferay.portal.kernel.exception.PortalException,
755 com.liferay.portal.kernel.exception.SystemException {
756 getService()
757 .updateAsset(userId, page, assetCategoryIds, assetTagNames,
758 assetLinkEntryIds);
759 }
760
761 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
762 long userId, long nodeId, java.lang.String title, double version,
763 java.lang.String content, java.lang.String summary, boolean minorEdit,
764 java.lang.String format, java.lang.String parentTitle,
765 java.lang.String redirectTitle,
766 com.liferay.portal.service.ServiceContext serviceContext)
767 throws com.liferay.portal.kernel.exception.PortalException,
768 com.liferay.portal.kernel.exception.SystemException {
769 return getService()
770 .updatePage(userId, nodeId, title, version, content,
771 summary, minorEdit, format, parentTitle, redirectTitle,
772 serviceContext);
773 }
774
775 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
776 long userId, long resourcePrimKey, int status,
777 com.liferay.portal.service.ServiceContext serviceContext)
778 throws com.liferay.portal.kernel.exception.PortalException,
779 com.liferay.portal.kernel.exception.SystemException {
780 return getService()
781 .updateStatus(userId, resourcePrimKey, status, serviceContext);
782 }
783
784 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
785 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
786 int nodeStatus, com.liferay.portal.service.ServiceContext serviceContext)
787 throws com.liferay.portal.kernel.exception.PortalException,
788 com.liferay.portal.kernel.exception.SystemException {
789 return getService()
790 .updateStatus(userId, page, status, nodeStatus,
791 serviceContext);
792 }
793
794 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
795 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
796 com.liferay.portal.service.ServiceContext serviceContext)
797 throws com.liferay.portal.kernel.exception.PortalException,
798 com.liferay.portal.kernel.exception.SystemException {
799 return getService().updateStatus(userId, page, status, serviceContext);
800 }
801
802 public static void validateTitle(java.lang.String title)
803 throws com.liferay.portal.kernel.exception.PortalException {
804 getService().validateTitle(title);
805 }
806
807 public static WikiPageLocalService getService() {
808 if (_service == null) {
809 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
810
811 ReferenceRegistry.registerReference(WikiPageLocalServiceUtil.class,
812 "_service");
813 }
814
815 return _service;
816 }
817
818
821 public void setService(WikiPageLocalService service) {
822 }
823
824 private static WikiPageLocalService _service;
825 }