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