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