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