1
14
15 package com.liferay.portlet.wiki.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.kernel.util.BooleanWrapper;
20 import com.liferay.portal.kernel.util.DoubleWrapper;
21 import com.liferay.portal.kernel.util.IntegerWrapper;
22 import com.liferay.portal.kernel.util.LongWrapper;
23 import com.liferay.portal.kernel.util.MethodWrapper;
24 import com.liferay.portal.kernel.util.NullWrapper;
25 import com.liferay.portal.security.auth.HttpPrincipal;
26 import com.liferay.portal.service.http.TunnelUtil;
27
28 import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
29
30
67 public class WikiPageServiceHttp {
68 public static com.liferay.portlet.wiki.model.WikiPage addPage(
69 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
70 java.lang.String content, java.lang.String summary, boolean minorEdit,
71 javax.portlet.PortletPreferences prefs,
72 com.liferay.portal.theme.ThemeDisplay themeDisplay)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException {
75 try {
76 Object paramObj0 = new LongWrapper(nodeId);
77
78 Object paramObj1 = title;
79
80 if (title == null) {
81 paramObj1 = new NullWrapper("java.lang.String");
82 }
83
84 Object paramObj2 = content;
85
86 if (content == null) {
87 paramObj2 = new NullWrapper("java.lang.String");
88 }
89
90 Object paramObj3 = summary;
91
92 if (summary == null) {
93 paramObj3 = new NullWrapper("java.lang.String");
94 }
95
96 Object paramObj4 = new BooleanWrapper(minorEdit);
97
98 Object paramObj5 = prefs;
99
100 if (prefs == null) {
101 paramObj5 = new NullWrapper("javax.portlet.PortletPreferences");
102 }
103
104 Object paramObj6 = themeDisplay;
105
106 if (themeDisplay == null) {
107 paramObj6 = new NullWrapper(
108 "com.liferay.portal.theme.ThemeDisplay");
109 }
110
111 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
112 "addPage",
113 new Object[] {
114 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
115 paramObj5, paramObj6
116 });
117
118 Object returnObj = null;
119
120 try {
121 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
122 }
123 catch (Exception e) {
124 if (e instanceof com.liferay.portal.PortalException) {
125 throw (com.liferay.portal.PortalException)e;
126 }
127
128 if (e instanceof com.liferay.portal.SystemException) {
129 throw (com.liferay.portal.SystemException)e;
130 }
131
132 throw new com.liferay.portal.SystemException(e);
133 }
134
135 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
136 }
137 catch (com.liferay.portal.SystemException se) {
138 _log.error(se, se);
139
140 throw se;
141 }
142 }
143
144 public static com.liferay.portlet.wiki.model.WikiPage addPage(
145 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
146 java.lang.String content, java.lang.String summary, boolean minorEdit,
147 java.lang.String format, java.lang.String parentTitle,
148 java.lang.String redirectTitle, java.lang.String[] tagsEntries,
149 javax.portlet.PortletPreferences prefs,
150 com.liferay.portal.theme.ThemeDisplay themeDisplay)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 try {
154 Object paramObj0 = new LongWrapper(nodeId);
155
156 Object paramObj1 = title;
157
158 if (title == null) {
159 paramObj1 = new NullWrapper("java.lang.String");
160 }
161
162 Object paramObj2 = content;
163
164 if (content == null) {
165 paramObj2 = new NullWrapper("java.lang.String");
166 }
167
168 Object paramObj3 = summary;
169
170 if (summary == null) {
171 paramObj3 = new NullWrapper("java.lang.String");
172 }
173
174 Object paramObj4 = new BooleanWrapper(minorEdit);
175
176 Object paramObj5 = format;
177
178 if (format == null) {
179 paramObj5 = new NullWrapper("java.lang.String");
180 }
181
182 Object paramObj6 = parentTitle;
183
184 if (parentTitle == null) {
185 paramObj6 = new NullWrapper("java.lang.String");
186 }
187
188 Object paramObj7 = redirectTitle;
189
190 if (redirectTitle == null) {
191 paramObj7 = new NullWrapper("java.lang.String");
192 }
193
194 Object paramObj8 = tagsEntries;
195
196 if (tagsEntries == null) {
197 paramObj8 = new NullWrapper("[Ljava.lang.String;");
198 }
199
200 Object paramObj9 = prefs;
201
202 if (prefs == null) {
203 paramObj9 = new NullWrapper("javax.portlet.PortletPreferences");
204 }
205
206 Object paramObj10 = themeDisplay;
207
208 if (themeDisplay == null) {
209 paramObj10 = new NullWrapper(
210 "com.liferay.portal.theme.ThemeDisplay");
211 }
212
213 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
214 "addPage",
215 new Object[] {
216 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
217 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
218 paramObj10
219 });
220
221 Object returnObj = null;
222
223 try {
224 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
225 }
226 catch (Exception e) {
227 if (e instanceof com.liferay.portal.PortalException) {
228 throw (com.liferay.portal.PortalException)e;
229 }
230
231 if (e instanceof com.liferay.portal.SystemException) {
232 throw (com.liferay.portal.SystemException)e;
233 }
234
235 throw new com.liferay.portal.SystemException(e);
236 }
237
238 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
239 }
240 catch (com.liferay.portal.SystemException se) {
241 _log.error(se, se);
242
243 throw se;
244 }
245 }
246
247 public static void addPageAttachments(HttpPrincipal httpPrincipal,
248 long nodeId, java.lang.String title,
249 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
250 throws com.liferay.portal.PortalException,
251 com.liferay.portal.SystemException {
252 try {
253 Object paramObj0 = new LongWrapper(nodeId);
254
255 Object paramObj1 = title;
256
257 if (title == null) {
258 paramObj1 = new NullWrapper("java.lang.String");
259 }
260
261 Object paramObj2 = files;
262
263 if (files == null) {
264 paramObj2 = new NullWrapper("java.util.List");
265 }
266
267 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
268 "addPageAttachments",
269 new Object[] { paramObj0, paramObj1, paramObj2 });
270
271 try {
272 TunnelUtil.invoke(httpPrincipal, methodWrapper);
273 }
274 catch (Exception e) {
275 if (e instanceof com.liferay.portal.PortalException) {
276 throw (com.liferay.portal.PortalException)e;
277 }
278
279 if (e instanceof com.liferay.portal.SystemException) {
280 throw (com.liferay.portal.SystemException)e;
281 }
282
283 throw new com.liferay.portal.SystemException(e);
284 }
285 }
286 catch (com.liferay.portal.SystemException se) {
287 _log.error(se, se);
288
289 throw se;
290 }
291 }
292
293 public static void changeParent(HttpPrincipal httpPrincipal, long nodeId,
294 java.lang.String title, java.lang.String newParentTitle,
295 javax.portlet.PortletPreferences prefs,
296 com.liferay.portal.theme.ThemeDisplay themeDisplay)
297 throws com.liferay.portal.PortalException,
298 com.liferay.portal.SystemException {
299 try {
300 Object paramObj0 = new LongWrapper(nodeId);
301
302 Object paramObj1 = title;
303
304 if (title == null) {
305 paramObj1 = new NullWrapper("java.lang.String");
306 }
307
308 Object paramObj2 = newParentTitle;
309
310 if (newParentTitle == null) {
311 paramObj2 = new NullWrapper("java.lang.String");
312 }
313
314 Object paramObj3 = prefs;
315
316 if (prefs == null) {
317 paramObj3 = new NullWrapper("javax.portlet.PortletPreferences");
318 }
319
320 Object paramObj4 = themeDisplay;
321
322 if (themeDisplay == null) {
323 paramObj4 = new NullWrapper(
324 "com.liferay.portal.theme.ThemeDisplay");
325 }
326
327 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
328 "changeParent",
329 new Object[] {
330 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
331 });
332
333 try {
334 TunnelUtil.invoke(httpPrincipal, methodWrapper);
335 }
336 catch (Exception e) {
337 if (e instanceof com.liferay.portal.PortalException) {
338 throw (com.liferay.portal.PortalException)e;
339 }
340
341 if (e instanceof com.liferay.portal.SystemException) {
342 throw (com.liferay.portal.SystemException)e;
343 }
344
345 throw new com.liferay.portal.SystemException(e);
346 }
347 }
348 catch (com.liferay.portal.SystemException se) {
349 _log.error(se, se);
350
351 throw se;
352 }
353 }
354
355 public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
356 java.lang.String title)
357 throws com.liferay.portal.PortalException,
358 com.liferay.portal.SystemException {
359 try {
360 Object paramObj0 = new LongWrapper(nodeId);
361
362 Object paramObj1 = title;
363
364 if (title == null) {
365 paramObj1 = new NullWrapper("java.lang.String");
366 }
367
368 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
369 "deletePage", new Object[] { paramObj0, paramObj1 });
370
371 try {
372 TunnelUtil.invoke(httpPrincipal, methodWrapper);
373 }
374 catch (Exception e) {
375 if (e instanceof com.liferay.portal.PortalException) {
376 throw (com.liferay.portal.PortalException)e;
377 }
378
379 if (e instanceof com.liferay.portal.SystemException) {
380 throw (com.liferay.portal.SystemException)e;
381 }
382
383 throw new com.liferay.portal.SystemException(e);
384 }
385 }
386 catch (com.liferay.portal.SystemException se) {
387 _log.error(se, se);
388
389 throw se;
390 }
391 }
392
393 public static void deletePageAttachment(HttpPrincipal httpPrincipal,
394 long nodeId, java.lang.String title, java.lang.String fileName)
395 throws com.liferay.portal.PortalException,
396 com.liferay.portal.SystemException {
397 try {
398 Object paramObj0 = new LongWrapper(nodeId);
399
400 Object paramObj1 = title;
401
402 if (title == null) {
403 paramObj1 = new NullWrapper("java.lang.String");
404 }
405
406 Object paramObj2 = fileName;
407
408 if (fileName == null) {
409 paramObj2 = new NullWrapper("java.lang.String");
410 }
411
412 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
413 "deletePageAttachment",
414 new Object[] { paramObj0, paramObj1, paramObj2 });
415
416 try {
417 TunnelUtil.invoke(httpPrincipal, methodWrapper);
418 }
419 catch (Exception e) {
420 if (e instanceof com.liferay.portal.PortalException) {
421 throw (com.liferay.portal.PortalException)e;
422 }
423
424 if (e instanceof com.liferay.portal.SystemException) {
425 throw (com.liferay.portal.SystemException)e;
426 }
427
428 throw new com.liferay.portal.SystemException(e);
429 }
430 }
431 catch (com.liferay.portal.SystemException se) {
432 _log.error(se, se);
433
434 throw se;
435 }
436 }
437
438 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
439 HttpPrincipal httpPrincipal, long nodeId, int max)
440 throws com.liferay.portal.PortalException,
441 com.liferay.portal.SystemException {
442 try {
443 Object paramObj0 = new LongWrapper(nodeId);
444
445 Object paramObj1 = new IntegerWrapper(max);
446
447 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
448 "getNodePages", new Object[] { paramObj0, paramObj1 });
449
450 Object returnObj = null;
451
452 try {
453 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
454 }
455 catch (Exception e) {
456 if (e instanceof com.liferay.portal.PortalException) {
457 throw (com.liferay.portal.PortalException)e;
458 }
459
460 if (e instanceof com.liferay.portal.SystemException) {
461 throw (com.liferay.portal.SystemException)e;
462 }
463
464 throw new com.liferay.portal.SystemException(e);
465 }
466
467 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
468 }
469 catch (com.liferay.portal.SystemException se) {
470 _log.error(se, se);
471
472 throw se;
473 }
474 }
475
476 public static java.lang.String getNodePagesRSS(
477 HttpPrincipal httpPrincipal, long nodeId, int max,
478 java.lang.String type, double version, java.lang.String displayStyle,
479 java.lang.String feedURL, java.lang.String entryURL)
480 throws com.liferay.portal.PortalException,
481 com.liferay.portal.SystemException {
482 try {
483 Object paramObj0 = new LongWrapper(nodeId);
484
485 Object paramObj1 = new IntegerWrapper(max);
486
487 Object paramObj2 = type;
488
489 if (type == null) {
490 paramObj2 = new NullWrapper("java.lang.String");
491 }
492
493 Object paramObj3 = new DoubleWrapper(version);
494
495 Object paramObj4 = displayStyle;
496
497 if (displayStyle == null) {
498 paramObj4 = new NullWrapper("java.lang.String");
499 }
500
501 Object paramObj5 = feedURL;
502
503 if (feedURL == null) {
504 paramObj5 = new NullWrapper("java.lang.String");
505 }
506
507 Object paramObj6 = entryURL;
508
509 if (entryURL == null) {
510 paramObj6 = new NullWrapper("java.lang.String");
511 }
512
513 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
514 "getNodePagesRSS",
515 new Object[] {
516 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
517 paramObj5, paramObj6
518 });
519
520 Object returnObj = null;
521
522 try {
523 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
524 }
525 catch (Exception e) {
526 if (e instanceof com.liferay.portal.PortalException) {
527 throw (com.liferay.portal.PortalException)e;
528 }
529
530 if (e instanceof com.liferay.portal.SystemException) {
531 throw (com.liferay.portal.SystemException)e;
532 }
533
534 throw new com.liferay.portal.SystemException(e);
535 }
536
537 return (java.lang.String)returnObj;
538 }
539 catch (com.liferay.portal.SystemException se) {
540 _log.error(se, se);
541
542 throw se;
543 }
544 }
545
546 public static com.liferay.portlet.wiki.model.WikiPage getPage(
547 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
548 throws com.liferay.portal.PortalException,
549 com.liferay.portal.SystemException {
550 try {
551 Object paramObj0 = new LongWrapper(nodeId);
552
553 Object paramObj1 = title;
554
555 if (title == null) {
556 paramObj1 = new NullWrapper("java.lang.String");
557 }
558
559 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
560 "getPage", new Object[] { paramObj0, paramObj1 });
561
562 Object returnObj = null;
563
564 try {
565 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
566 }
567 catch (Exception e) {
568 if (e instanceof com.liferay.portal.PortalException) {
569 throw (com.liferay.portal.PortalException)e;
570 }
571
572 if (e instanceof com.liferay.portal.SystemException) {
573 throw (com.liferay.portal.SystemException)e;
574 }
575
576 throw new com.liferay.portal.SystemException(e);
577 }
578
579 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
580 }
581 catch (com.liferay.portal.SystemException se) {
582 _log.error(se, se);
583
584 throw se;
585 }
586 }
587
588 public static com.liferay.portlet.wiki.model.WikiPage getPage(
589 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
590 double version)
591 throws com.liferay.portal.PortalException,
592 com.liferay.portal.SystemException {
593 try {
594 Object paramObj0 = new LongWrapper(nodeId);
595
596 Object paramObj1 = title;
597
598 if (title == null) {
599 paramObj1 = new NullWrapper("java.lang.String");
600 }
601
602 Object paramObj2 = new DoubleWrapper(version);
603
604 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
605 "getPage", new Object[] { paramObj0, paramObj1, paramObj2 });
606
607 Object returnObj = null;
608
609 try {
610 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
611 }
612 catch (Exception e) {
613 if (e instanceof com.liferay.portal.PortalException) {
614 throw (com.liferay.portal.PortalException)e;
615 }
616
617 if (e instanceof com.liferay.portal.SystemException) {
618 throw (com.liferay.portal.SystemException)e;
619 }
620
621 throw new com.liferay.portal.SystemException(e);
622 }
623
624 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
625 }
626 catch (com.liferay.portal.SystemException se) {
627 _log.error(se, se);
628
629 throw se;
630 }
631 }
632
633 public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
634 long companyId, long nodeId, java.lang.String title, int max,
635 java.lang.String type, double version, java.lang.String displayStyle,
636 java.lang.String feedURL, java.lang.String entryURL,
637 java.util.Locale locale)
638 throws com.liferay.portal.PortalException,
639 com.liferay.portal.SystemException {
640 try {
641 Object paramObj0 = new LongWrapper(companyId);
642
643 Object paramObj1 = new LongWrapper(nodeId);
644
645 Object paramObj2 = title;
646
647 if (title == null) {
648 paramObj2 = new NullWrapper("java.lang.String");
649 }
650
651 Object paramObj3 = new IntegerWrapper(max);
652
653 Object paramObj4 = type;
654
655 if (type == null) {
656 paramObj4 = new NullWrapper("java.lang.String");
657 }
658
659 Object paramObj5 = new DoubleWrapper(version);
660
661 Object paramObj6 = displayStyle;
662
663 if (displayStyle == null) {
664 paramObj6 = new NullWrapper("java.lang.String");
665 }
666
667 Object paramObj7 = feedURL;
668
669 if (feedURL == null) {
670 paramObj7 = new NullWrapper("java.lang.String");
671 }
672
673 Object paramObj8 = entryURL;
674
675 if (entryURL == null) {
676 paramObj8 = new NullWrapper("java.lang.String");
677 }
678
679 Object paramObj9 = locale;
680
681 if (locale == null) {
682 paramObj9 = new NullWrapper("java.util.Locale");
683 }
684
685 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
686 "getPagesRSS",
687 new Object[] {
688 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
689 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
690 });
691
692 Object returnObj = null;
693
694 try {
695 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
696 }
697 catch (Exception e) {
698 if (e instanceof com.liferay.portal.PortalException) {
699 throw (com.liferay.portal.PortalException)e;
700 }
701
702 if (e instanceof com.liferay.portal.SystemException) {
703 throw (com.liferay.portal.SystemException)e;
704 }
705
706 throw new com.liferay.portal.SystemException(e);
707 }
708
709 return (java.lang.String)returnObj;
710 }
711 catch (com.liferay.portal.SystemException se) {
712 _log.error(se, se);
713
714 throw se;
715 }
716 }
717
718 public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
719 java.lang.String title, java.lang.String newTitle,
720 javax.portlet.PortletPreferences prefs,
721 com.liferay.portal.theme.ThemeDisplay themeDisplay)
722 throws com.liferay.portal.PortalException,
723 com.liferay.portal.SystemException {
724 try {
725 Object paramObj0 = new LongWrapper(nodeId);
726
727 Object paramObj1 = title;
728
729 if (title == null) {
730 paramObj1 = new NullWrapper("java.lang.String");
731 }
732
733 Object paramObj2 = newTitle;
734
735 if (newTitle == null) {
736 paramObj2 = new NullWrapper("java.lang.String");
737 }
738
739 Object paramObj3 = prefs;
740
741 if (prefs == null) {
742 paramObj3 = new NullWrapper("javax.portlet.PortletPreferences");
743 }
744
745 Object paramObj4 = themeDisplay;
746
747 if (themeDisplay == null) {
748 paramObj4 = new NullWrapper(
749 "com.liferay.portal.theme.ThemeDisplay");
750 }
751
752 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
753 "movePage",
754 new Object[] {
755 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
756 });
757
758 try {
759 TunnelUtil.invoke(httpPrincipal, methodWrapper);
760 }
761 catch (Exception e) {
762 if (e instanceof com.liferay.portal.PortalException) {
763 throw (com.liferay.portal.PortalException)e;
764 }
765
766 if (e instanceof com.liferay.portal.SystemException) {
767 throw (com.liferay.portal.SystemException)e;
768 }
769
770 throw new com.liferay.portal.SystemException(e);
771 }
772 }
773 catch (com.liferay.portal.SystemException se) {
774 _log.error(se, se);
775
776 throw se;
777 }
778 }
779
780 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
781 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
782 double version, javax.portlet.PortletPreferences prefs,
783 com.liferay.portal.theme.ThemeDisplay themeDisplay)
784 throws com.liferay.portal.PortalException,
785 com.liferay.portal.SystemException {
786 try {
787 Object paramObj0 = new LongWrapper(nodeId);
788
789 Object paramObj1 = title;
790
791 if (title == null) {
792 paramObj1 = new NullWrapper("java.lang.String");
793 }
794
795 Object paramObj2 = new DoubleWrapper(version);
796
797 Object paramObj3 = prefs;
798
799 if (prefs == null) {
800 paramObj3 = new NullWrapper("javax.portlet.PortletPreferences");
801 }
802
803 Object paramObj4 = themeDisplay;
804
805 if (themeDisplay == null) {
806 paramObj4 = new NullWrapper(
807 "com.liferay.portal.theme.ThemeDisplay");
808 }
809
810 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
811 "revertPage",
812 new Object[] {
813 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
814 });
815
816 Object returnObj = null;
817
818 try {
819 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
820 }
821 catch (Exception e) {
822 if (e instanceof com.liferay.portal.PortalException) {
823 throw (com.liferay.portal.PortalException)e;
824 }
825
826 if (e instanceof com.liferay.portal.SystemException) {
827 throw (com.liferay.portal.SystemException)e;
828 }
829
830 throw new com.liferay.portal.SystemException(e);
831 }
832
833 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
834 }
835 catch (com.liferay.portal.SystemException se) {
836 _log.error(se, se);
837
838 throw se;
839 }
840 }
841
842 public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
843 java.lang.String title)
844 throws com.liferay.portal.PortalException,
845 com.liferay.portal.SystemException {
846 try {
847 Object paramObj0 = new LongWrapper(nodeId);
848
849 Object paramObj1 = title;
850
851 if (title == null) {
852 paramObj1 = new NullWrapper("java.lang.String");
853 }
854
855 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
856 "subscribePage", new Object[] { paramObj0, paramObj1 });
857
858 try {
859 TunnelUtil.invoke(httpPrincipal, methodWrapper);
860 }
861 catch (Exception e) {
862 if (e instanceof com.liferay.portal.PortalException) {
863 throw (com.liferay.portal.PortalException)e;
864 }
865
866 if (e instanceof com.liferay.portal.SystemException) {
867 throw (com.liferay.portal.SystemException)e;
868 }
869
870 throw new com.liferay.portal.SystemException(e);
871 }
872 }
873 catch (com.liferay.portal.SystemException se) {
874 _log.error(se, se);
875
876 throw se;
877 }
878 }
879
880 public static void unsubscribePage(HttpPrincipal httpPrincipal,
881 long nodeId, java.lang.String title)
882 throws com.liferay.portal.PortalException,
883 com.liferay.portal.SystemException {
884 try {
885 Object paramObj0 = new LongWrapper(nodeId);
886
887 Object paramObj1 = title;
888
889 if (title == null) {
890 paramObj1 = new NullWrapper("java.lang.String");
891 }
892
893 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
894 "unsubscribePage", new Object[] { paramObj0, paramObj1 });
895
896 try {
897 TunnelUtil.invoke(httpPrincipal, methodWrapper);
898 }
899 catch (Exception e) {
900 if (e instanceof com.liferay.portal.PortalException) {
901 throw (com.liferay.portal.PortalException)e;
902 }
903
904 if (e instanceof com.liferay.portal.SystemException) {
905 throw (com.liferay.portal.SystemException)e;
906 }
907
908 throw new com.liferay.portal.SystemException(e);
909 }
910 }
911 catch (com.liferay.portal.SystemException se) {
912 _log.error(se, se);
913
914 throw se;
915 }
916 }
917
918 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
919 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
920 double version, java.lang.String content, java.lang.String summary,
921 boolean minorEdit, java.lang.String format,
922 java.lang.String parentTitle, java.lang.String redirectTitle,
923 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
924 com.liferay.portal.theme.ThemeDisplay themeDisplay)
925 throws com.liferay.portal.PortalException,
926 com.liferay.portal.SystemException {
927 try {
928 Object paramObj0 = new LongWrapper(nodeId);
929
930 Object paramObj1 = title;
931
932 if (title == null) {
933 paramObj1 = new NullWrapper("java.lang.String");
934 }
935
936 Object paramObj2 = new DoubleWrapper(version);
937
938 Object paramObj3 = content;
939
940 if (content == null) {
941 paramObj3 = new NullWrapper("java.lang.String");
942 }
943
944 Object paramObj4 = summary;
945
946 if (summary == null) {
947 paramObj4 = new NullWrapper("java.lang.String");
948 }
949
950 Object paramObj5 = new BooleanWrapper(minorEdit);
951
952 Object paramObj6 = format;
953
954 if (format == null) {
955 paramObj6 = new NullWrapper("java.lang.String");
956 }
957
958 Object paramObj7 = parentTitle;
959
960 if (parentTitle == null) {
961 paramObj7 = new NullWrapper("java.lang.String");
962 }
963
964 Object paramObj8 = redirectTitle;
965
966 if (redirectTitle == null) {
967 paramObj8 = new NullWrapper("java.lang.String");
968 }
969
970 Object paramObj9 = tagsEntries;
971
972 if (tagsEntries == null) {
973 paramObj9 = new NullWrapper("[Ljava.lang.String;");
974 }
975
976 Object paramObj10 = prefs;
977
978 if (prefs == null) {
979 paramObj10 = new NullWrapper("javax.portlet.PortletPreferences");
980 }
981
982 Object paramObj11 = themeDisplay;
983
984 if (themeDisplay == null) {
985 paramObj11 = new NullWrapper(
986 "com.liferay.portal.theme.ThemeDisplay");
987 }
988
989 MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
990 "updatePage",
991 new Object[] {
992 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
993 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
994 paramObj10, paramObj11
995 });
996
997 Object returnObj = null;
998
999 try {
1000 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1001 }
1002 catch (Exception e) {
1003 if (e instanceof com.liferay.portal.PortalException) {
1004 throw (com.liferay.portal.PortalException)e;
1005 }
1006
1007 if (e instanceof com.liferay.portal.SystemException) {
1008 throw (com.liferay.portal.SystemException)e;
1009 }
1010
1011 throw new com.liferay.portal.SystemException(e);
1012 }
1013
1014 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1015 }
1016 catch (com.liferay.portal.SystemException se) {
1017 _log.error(se, se);
1018
1019 throw se;
1020 }
1021 }
1022
1023 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1024}