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