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