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