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