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
054 public class WikiPageServiceHttp {
055 public static com.liferay.portlet.wiki.model.WikiPage addPage(
056 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
057 java.lang.String content, java.lang.String summary, boolean minorEdit,
058 com.liferay.portal.service.ServiceContext serviceContext)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 try {
062 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
063 "addPage", _addPageParameterTypes0);
064
065 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
066 title, content, summary, minorEdit, serviceContext);
067
068 Object returnObj = null;
069
070 try {
071 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
072 }
073 catch (Exception e) {
074 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
075 throw (com.liferay.portal.kernel.exception.PortalException)e;
076 }
077
078 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
079 throw (com.liferay.portal.kernel.exception.SystemException)e;
080 }
081
082 throw new com.liferay.portal.kernel.exception.SystemException(e);
083 }
084
085 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
086 }
087 catch (com.liferay.portal.kernel.exception.SystemException se) {
088 _log.error(se, se);
089
090 throw se;
091 }
092 }
093
094 public static com.liferay.portlet.wiki.model.WikiPage addPage(
095 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
096 java.lang.String content, java.lang.String summary, boolean minorEdit,
097 java.lang.String format, java.lang.String parentTitle,
098 java.lang.String redirectTitle,
099 com.liferay.portal.service.ServiceContext serviceContext)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 try {
103 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
104 "addPage", _addPageParameterTypes1);
105
106 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
107 title, content, summary, minorEdit, format, parentTitle,
108 redirectTitle, serviceContext);
109
110 Object returnObj = null;
111
112 try {
113 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
114 }
115 catch (Exception e) {
116 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
117 throw (com.liferay.portal.kernel.exception.PortalException)e;
118 }
119
120 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
121 throw (com.liferay.portal.kernel.exception.SystemException)e;
122 }
123
124 throw new com.liferay.portal.kernel.exception.SystemException(e);
125 }
126
127 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
128 }
129 catch (com.liferay.portal.kernel.exception.SystemException se) {
130 _log.error(se, se);
131
132 throw se;
133 }
134 }
135
136 public static void addPageAttachment(HttpPrincipal httpPrincipal,
137 long nodeId, java.lang.String title, java.lang.String fileName,
138 java.io.File file, java.lang.String mimeType)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 try {
142 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
143 "addPageAttachment", _addPageAttachmentParameterTypes2);
144
145 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
146 title, fileName, file, mimeType);
147
148 try {
149 TunnelUtil.invoke(httpPrincipal, methodHandler);
150 }
151 catch (Exception e) {
152 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
153 throw (com.liferay.portal.kernel.exception.PortalException)e;
154 }
155
156 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
157 throw (com.liferay.portal.kernel.exception.SystemException)e;
158 }
159
160 throw new com.liferay.portal.kernel.exception.SystemException(e);
161 }
162 }
163 catch (com.liferay.portal.kernel.exception.SystemException se) {
164 _log.error(se, se);
165
166 throw se;
167 }
168 }
169
170 public static void addPageAttachment(HttpPrincipal httpPrincipal,
171 long nodeId, java.lang.String title, java.lang.String fileName,
172 java.io.InputStream inputStream, java.lang.String mimeType)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 try {
176 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
177 "addPageAttachment", _addPageAttachmentParameterTypes3);
178
179 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
180 title, fileName, inputStream, mimeType);
181
182 try {
183 TunnelUtil.invoke(httpPrincipal, methodHandler);
184 }
185 catch (Exception e) {
186 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
187 throw (com.liferay.portal.kernel.exception.PortalException)e;
188 }
189
190 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
191 throw (com.liferay.portal.kernel.exception.SystemException)e;
192 }
193
194 throw new com.liferay.portal.kernel.exception.SystemException(e);
195 }
196 }
197 catch (com.liferay.portal.kernel.exception.SystemException se) {
198 _log.error(se, se);
199
200 throw se;
201 }
202 }
203
204 public static void addPageAttachments(HttpPrincipal httpPrincipal,
205 long nodeId, java.lang.String title,
206 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 try {
210 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
211 "addPageAttachments", _addPageAttachmentsParameterTypes4);
212
213 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
214 title, inputStreamOVPs);
215
216 try {
217 TunnelUtil.invoke(httpPrincipal, methodHandler);
218 }
219 catch (Exception e) {
220 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
221 throw (com.liferay.portal.kernel.exception.PortalException)e;
222 }
223
224 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
225 throw (com.liferay.portal.kernel.exception.SystemException)e;
226 }
227
228 throw new com.liferay.portal.kernel.exception.SystemException(e);
229 }
230 }
231 catch (com.liferay.portal.kernel.exception.SystemException se) {
232 _log.error(se, se);
233
234 throw se;
235 }
236 }
237
238 public static void addTempPageAttachment(HttpPrincipal httpPrincipal,
239 long nodeId, java.lang.String fileName,
240 java.lang.String tempFolderName, java.io.InputStream inputStream,
241 java.lang.String mimeType)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException {
244 try {
245 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
246 "addTempPageAttachment",
247 _addTempPageAttachmentParameterTypes5);
248
249 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
250 fileName, tempFolderName, inputStream, mimeType);
251
252 try {
253 TunnelUtil.invoke(httpPrincipal, methodHandler);
254 }
255 catch (Exception e) {
256 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
257 throw (com.liferay.portal.kernel.exception.PortalException)e;
258 }
259
260 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
261 throw (com.liferay.portal.kernel.exception.SystemException)e;
262 }
263
264 throw new com.liferay.portal.kernel.exception.SystemException(e);
265 }
266 }
267 catch (com.liferay.portal.kernel.exception.SystemException se) {
268 _log.error(se, se);
269
270 throw se;
271 }
272 }
273
274 public static void changeParent(HttpPrincipal httpPrincipal, long nodeId,
275 java.lang.String title, java.lang.String newParentTitle,
276 com.liferay.portal.service.ServiceContext serviceContext)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 try {
280 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
281 "changeParent", _changeParentParameterTypes6);
282
283 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
284 title, newParentTitle, serviceContext);
285
286 try {
287 TunnelUtil.invoke(httpPrincipal, methodHandler);
288 }
289 catch (Exception e) {
290 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
291 throw (com.liferay.portal.kernel.exception.PortalException)e;
292 }
293
294 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
295 throw (com.liferay.portal.kernel.exception.SystemException)e;
296 }
297
298 throw new com.liferay.portal.kernel.exception.SystemException(e);
299 }
300 }
301 catch (com.liferay.portal.kernel.exception.SystemException se) {
302 _log.error(se, se);
303
304 throw se;
305 }
306 }
307
308 public static void copyPageAttachments(HttpPrincipal httpPrincipal,
309 long templateNodeId, java.lang.String templateTitle, long nodeId,
310 java.lang.String title)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException {
313 try {
314 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
315 "copyPageAttachments", _copyPageAttachmentsParameterTypes7);
316
317 MethodHandler methodHandler = new MethodHandler(methodKey,
318 templateNodeId, templateTitle, nodeId, title);
319
320 try {
321 TunnelUtil.invoke(httpPrincipal, methodHandler);
322 }
323 catch (Exception e) {
324 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
325 throw (com.liferay.portal.kernel.exception.PortalException)e;
326 }
327
328 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
329 throw (com.liferay.portal.kernel.exception.SystemException)e;
330 }
331
332 throw new com.liferay.portal.kernel.exception.SystemException(e);
333 }
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 void deletePage(HttpPrincipal httpPrincipal, long nodeId,
343 java.lang.String title)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 try {
347 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
348 "deletePage", _deletePageParameterTypes8);
349
350 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
351 title);
352
353 try {
354 TunnelUtil.invoke(httpPrincipal, methodHandler);
355 }
356 catch (Exception e) {
357 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
358 throw (com.liferay.portal.kernel.exception.PortalException)e;
359 }
360
361 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
362 throw (com.liferay.portal.kernel.exception.SystemException)e;
363 }
364
365 throw new com.liferay.portal.kernel.exception.SystemException(e);
366 }
367 }
368 catch (com.liferay.portal.kernel.exception.SystemException se) {
369 _log.error(se, se);
370
371 throw se;
372 }
373 }
374
375 public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
376 java.lang.String title, double version)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException {
379 try {
380 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
381 "deletePage", _deletePageParameterTypes9);
382
383 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
384 title, version);
385
386 try {
387 TunnelUtil.invoke(httpPrincipal, methodHandler);
388 }
389 catch (Exception e) {
390 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
391 throw (com.liferay.portal.kernel.exception.PortalException)e;
392 }
393
394 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
395 throw (com.liferay.portal.kernel.exception.SystemException)e;
396 }
397
398 throw new com.liferay.portal.kernel.exception.SystemException(e);
399 }
400 }
401 catch (com.liferay.portal.kernel.exception.SystemException se) {
402 _log.error(se, se);
403
404 throw se;
405 }
406 }
407
408 public static void deletePageAttachment(HttpPrincipal httpPrincipal,
409 long nodeId, java.lang.String title, java.lang.String fileName)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 try {
413 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
414 "deletePageAttachment",
415 _deletePageAttachmentParameterTypes10);
416
417 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
418 title, fileName);
419
420 try {
421 TunnelUtil.invoke(httpPrincipal, methodHandler);
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 void deletePageAttachments(HttpPrincipal httpPrincipal,
443 long nodeId, java.lang.String title)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 try {
447 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
448 "deletePageAttachments",
449 _deletePageAttachmentsParameterTypes11);
450
451 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
452 title);
453
454 try {
455 TunnelUtil.invoke(httpPrincipal, methodHandler);
456 }
457 catch (Exception e) {
458 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
459 throw (com.liferay.portal.kernel.exception.PortalException)e;
460 }
461
462 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
463 throw (com.liferay.portal.kernel.exception.SystemException)e;
464 }
465
466 throw new com.liferay.portal.kernel.exception.SystemException(e);
467 }
468 }
469 catch (com.liferay.portal.kernel.exception.SystemException se) {
470 _log.error(se, se);
471
472 throw se;
473 }
474 }
475
476 public static void deleteTempPageAttachment(HttpPrincipal httpPrincipal,
477 long nodeId, java.lang.String fileName, java.lang.String tempFolderName)
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException {
480 try {
481 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
482 "deleteTempPageAttachment",
483 _deleteTempPageAttachmentParameterTypes12);
484
485 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
486 fileName, tempFolderName);
487
488 try {
489 TunnelUtil.invoke(httpPrincipal, methodHandler);
490 }
491 catch (Exception e) {
492 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
493 throw (com.liferay.portal.kernel.exception.PortalException)e;
494 }
495
496 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
497 throw (com.liferay.portal.kernel.exception.SystemException)e;
498 }
499
500 throw new com.liferay.portal.kernel.exception.SystemException(e);
501 }
502 }
503 catch (com.liferay.portal.kernel.exception.SystemException se) {
504 _log.error(se, se);
505
506 throw se;
507 }
508 }
509
510 public static void deleteTrashPageAttachments(HttpPrincipal httpPrincipal,
511 long nodeId, java.lang.String title)
512 throws com.liferay.portal.kernel.exception.PortalException,
513 com.liferay.portal.kernel.exception.SystemException {
514 try {
515 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
516 "deleteTrashPageAttachments",
517 _deleteTrashPageAttachmentsParameterTypes13);
518
519 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
520 title);
521
522 try {
523 TunnelUtil.invoke(httpPrincipal, methodHandler);
524 }
525 catch (Exception e) {
526 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
527 throw (com.liferay.portal.kernel.exception.PortalException)e;
528 }
529
530 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
531 throw (com.liferay.portal.kernel.exception.SystemException)e;
532 }
533
534 throw new com.liferay.portal.kernel.exception.SystemException(e);
535 }
536 }
537 catch (com.liferay.portal.kernel.exception.SystemException se) {
538 _log.error(se, se);
539
540 throw se;
541 }
542 }
543
544 public static void discardDraft(HttpPrincipal httpPrincipal, long nodeId,
545 java.lang.String title, double version)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException {
548 try {
549 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
550 "discardDraft", _discardDraftParameterTypes14);
551
552 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
553 title, version);
554
555 try {
556 TunnelUtil.invoke(httpPrincipal, methodHandler);
557 }
558 catch (Exception e) {
559 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
560 throw (com.liferay.portal.kernel.exception.PortalException)e;
561 }
562
563 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
564 throw (com.liferay.portal.kernel.exception.SystemException)e;
565 }
566
567 throw new com.liferay.portal.kernel.exception.SystemException(e);
568 }
569 }
570 catch (com.liferay.portal.kernel.exception.SystemException se) {
571 _log.error(se, se);
572
573 throw se;
574 }
575 }
576
577 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
578 HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
579 java.lang.String parentTitle)
580 throws com.liferay.portal.kernel.exception.PortalException,
581 com.liferay.portal.kernel.exception.SystemException {
582 try {
583 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
584 "getChildren", _getChildrenParameterTypes15);
585
586 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
587 nodeId, head, parentTitle);
588
589 Object returnObj = null;
590
591 try {
592 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
593 }
594 catch (Exception e) {
595 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
596 throw (com.liferay.portal.kernel.exception.PortalException)e;
597 }
598
599 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
600 throw (com.liferay.portal.kernel.exception.SystemException)e;
601 }
602
603 throw new com.liferay.portal.kernel.exception.SystemException(e);
604 }
605
606 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
607 }
608 catch (com.liferay.portal.kernel.exception.SystemException se) {
609 _log.error(se, se);
610
611 throw se;
612 }
613 }
614
615 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
616 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
617 throws com.liferay.portal.kernel.exception.PortalException,
618 com.liferay.portal.kernel.exception.SystemException {
619 try {
620 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
621 "getDraftPage", _getDraftPageParameterTypes16);
622
623 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
624 title);
625
626 Object returnObj = null;
627
628 try {
629 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
630 }
631 catch (Exception e) {
632 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
633 throw (com.liferay.portal.kernel.exception.PortalException)e;
634 }
635
636 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
637 throw (com.liferay.portal.kernel.exception.SystemException)e;
638 }
639
640 throw new com.liferay.portal.kernel.exception.SystemException(e);
641 }
642
643 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
644 }
645 catch (com.liferay.portal.kernel.exception.SystemException se) {
646 _log.error(se, se);
647
648 throw se;
649 }
650 }
651
652 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
653 HttpPrincipal httpPrincipal, long nodeId, int max)
654 throws com.liferay.portal.kernel.exception.PortalException,
655 com.liferay.portal.kernel.exception.SystemException {
656 try {
657 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
658 "getNodePages", _getNodePagesParameterTypes17);
659
660 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
661 max);
662
663 Object returnObj = null;
664
665 try {
666 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
667 }
668 catch (Exception e) {
669 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
670 throw (com.liferay.portal.kernel.exception.PortalException)e;
671 }
672
673 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
674 throw (com.liferay.portal.kernel.exception.SystemException)e;
675 }
676
677 throw new com.liferay.portal.kernel.exception.SystemException(e);
678 }
679
680 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
681 }
682 catch (com.liferay.portal.kernel.exception.SystemException se) {
683 _log.error(se, se);
684
685 throw se;
686 }
687 }
688
689 public static java.lang.String getNodePagesRSS(
690 HttpPrincipal httpPrincipal, long nodeId, int max,
691 java.lang.String type, double version, java.lang.String displayStyle,
692 java.lang.String feedURL, java.lang.String entryURL)
693 throws com.liferay.portal.kernel.exception.PortalException,
694 com.liferay.portal.kernel.exception.SystemException {
695 try {
696 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
697 "getNodePagesRSS", _getNodePagesRSSParameterTypes18);
698
699 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
700 max, type, version, displayStyle, feedURL, entryURL);
701
702 Object returnObj = null;
703
704 try {
705 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
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 (java.lang.String)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 getNodePagesRSS(
729 HttpPrincipal httpPrincipal, long nodeId, int max,
730 java.lang.String type, double version, java.lang.String displayStyle,
731 java.lang.String feedURL, java.lang.String entryURL,
732 java.lang.String attachmentURLPrefix)
733 throws com.liferay.portal.kernel.exception.PortalException,
734 com.liferay.portal.kernel.exception.SystemException {
735 try {
736 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
737 "getNodePagesRSS", _getNodePagesRSSParameterTypes19);
738
739 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
740 max, type, version, displayStyle, feedURL, entryURL,
741 attachmentURLPrefix);
742
743 Object returnObj = null;
744
745 try {
746 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
747 }
748 catch (Exception e) {
749 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
750 throw (com.liferay.portal.kernel.exception.PortalException)e;
751 }
752
753 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
754 throw (com.liferay.portal.kernel.exception.SystemException)e;
755 }
756
757 throw new com.liferay.portal.kernel.exception.SystemException(e);
758 }
759
760 return (java.lang.String)returnObj;
761 }
762 catch (com.liferay.portal.kernel.exception.SystemException se) {
763 _log.error(se, se);
764
765 throw se;
766 }
767 }
768
769 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
770 HttpPrincipal httpPrincipal, long groupId, long nodeId)
771 throws com.liferay.portal.kernel.exception.PortalException,
772 com.liferay.portal.kernel.exception.SystemException {
773 try {
774 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
775 "getOrphans", _getOrphansParameterTypes20);
776
777 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
778 nodeId);
779
780 Object returnObj = null;
781
782 try {
783 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
784 }
785 catch (Exception e) {
786 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
787 throw (com.liferay.portal.kernel.exception.PortalException)e;
788 }
789
790 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
791 throw (com.liferay.portal.kernel.exception.SystemException)e;
792 }
793
794 throw new com.liferay.portal.kernel.exception.SystemException(e);
795 }
796
797 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
798 }
799 catch (com.liferay.portal.kernel.exception.SystemException se) {
800 _log.error(se, se);
801
802 throw se;
803 }
804 }
805
806 public static com.liferay.portlet.wiki.model.WikiPage getPage(
807 HttpPrincipal httpPrincipal, long groupId, long nodeId,
808 java.lang.String title)
809 throws com.liferay.portal.kernel.exception.PortalException,
810 com.liferay.portal.kernel.exception.SystemException {
811 try {
812 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
813 "getPage", _getPageParameterTypes21);
814
815 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
816 nodeId, title);
817
818 Object returnObj = null;
819
820 try {
821 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
822 }
823 catch (Exception e) {
824 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
825 throw (com.liferay.portal.kernel.exception.PortalException)e;
826 }
827
828 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
829 throw (com.liferay.portal.kernel.exception.SystemException)e;
830 }
831
832 throw new com.liferay.portal.kernel.exception.SystemException(e);
833 }
834
835 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
836 }
837 catch (com.liferay.portal.kernel.exception.SystemException se) {
838 _log.error(se, se);
839
840 throw se;
841 }
842 }
843
844 public static com.liferay.portlet.wiki.model.WikiPage getPage(
845 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
846 throws com.liferay.portal.kernel.exception.PortalException,
847 com.liferay.portal.kernel.exception.SystemException {
848 try {
849 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
850 "getPage", _getPageParameterTypes22);
851
852 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
853 title);
854
855 Object returnObj = null;
856
857 try {
858 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
859 }
860 catch (Exception e) {
861 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
862 throw (com.liferay.portal.kernel.exception.PortalException)e;
863 }
864
865 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
866 throw (com.liferay.portal.kernel.exception.SystemException)e;
867 }
868
869 throw new com.liferay.portal.kernel.exception.SystemException(e);
870 }
871
872 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
873 }
874 catch (com.liferay.portal.kernel.exception.SystemException se) {
875 _log.error(se, se);
876
877 throw se;
878 }
879 }
880
881 public static com.liferay.portlet.wiki.model.WikiPage getPage(
882 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
883 java.lang.Boolean head)
884 throws com.liferay.portal.kernel.exception.PortalException,
885 com.liferay.portal.kernel.exception.SystemException {
886 try {
887 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
888 "getPage", _getPageParameterTypes23);
889
890 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
891 title, head);
892
893 Object returnObj = null;
894
895 try {
896 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
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 com.liferay.portlet.wiki.model.WikiPage getPage(
920 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
921 double version)
922 throws com.liferay.portal.kernel.exception.PortalException,
923 com.liferay.portal.kernel.exception.SystemException {
924 try {
925 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
926 "getPage", _getPageParameterTypes24);
927
928 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
929 title, version);
930
931 Object returnObj = null;
932
933 try {
934 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
935 }
936 catch (Exception e) {
937 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
938 throw (com.liferay.portal.kernel.exception.PortalException)e;
939 }
940
941 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
942 throw (com.liferay.portal.kernel.exception.SystemException)e;
943 }
944
945 throw new com.liferay.portal.kernel.exception.SystemException(e);
946 }
947
948 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
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 java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
958 HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
959 int status, int start, int end,
960 com.liferay.portal.kernel.util.OrderByComparator obc)
961 throws com.liferay.portal.kernel.exception.PortalException,
962 com.liferay.portal.kernel.exception.SystemException {
963 try {
964 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
965 "getPages", _getPagesParameterTypes25);
966
967 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
968 nodeId, head, status, start, end, obc);
969
970 Object returnObj = null;
971
972 try {
973 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
974 }
975 catch (Exception e) {
976 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
977 throw (com.liferay.portal.kernel.exception.PortalException)e;
978 }
979
980 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
981 throw (com.liferay.portal.kernel.exception.SystemException)e;
982 }
983
984 throw new com.liferay.portal.kernel.exception.SystemException(e);
985 }
986
987 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
988 }
989 catch (com.liferay.portal.kernel.exception.SystemException se) {
990 _log.error(se, se);
991
992 throw se;
993 }
994 }
995
996 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
997 HttpPrincipal httpPrincipal, long groupId, long userId, long nodeId,
998 int status, int start, int end)
999 throws com.liferay.portal.kernel.exception.PortalException,
1000 com.liferay.portal.kernel.exception.SystemException {
1001 try {
1002 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1003 "getPages", _getPagesParameterTypes26);
1004
1005 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1006 userId, nodeId, status, start, end);
1007
1008 Object returnObj = null;
1009
1010 try {
1011 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1012 }
1013 catch (Exception e) {
1014 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1015 throw (com.liferay.portal.kernel.exception.PortalException)e;
1016 }
1017
1018 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1019 throw (com.liferay.portal.kernel.exception.SystemException)e;
1020 }
1021
1022 throw new com.liferay.portal.kernel.exception.SystemException(e);
1023 }
1024
1025 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1026 }
1027 catch (com.liferay.portal.kernel.exception.SystemException se) {
1028 _log.error(se, se);
1029
1030 throw se;
1031 }
1032 }
1033
1034 public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
1035 long nodeId, boolean head)
1036 throws com.liferay.portal.kernel.exception.PortalException,
1037 com.liferay.portal.kernel.exception.SystemException {
1038 try {
1039 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1040 "getPagesCount", _getPagesCountParameterTypes27);
1041
1042 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1043 nodeId, head);
1044
1045 Object returnObj = null;
1046
1047 try {
1048 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1049 }
1050 catch (Exception e) {
1051 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1052 throw (com.liferay.portal.kernel.exception.PortalException)e;
1053 }
1054
1055 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1056 throw (com.liferay.portal.kernel.exception.SystemException)e;
1057 }
1058
1059 throw new com.liferay.portal.kernel.exception.SystemException(e);
1060 }
1061
1062 return ((Integer)returnObj).intValue();
1063 }
1064 catch (com.liferay.portal.kernel.exception.SystemException se) {
1065 _log.error(se, se);
1066
1067 throw se;
1068 }
1069 }
1070
1071 public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
1072 long userId, long nodeId, int status)
1073 throws com.liferay.portal.kernel.exception.PortalException,
1074 com.liferay.portal.kernel.exception.SystemException {
1075 try {
1076 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1077 "getPagesCount", _getPagesCountParameterTypes28);
1078
1079 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1080 userId, nodeId, status);
1081
1082 Object returnObj = null;
1083
1084 try {
1085 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1086 }
1087 catch (Exception e) {
1088 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1089 throw (com.liferay.portal.kernel.exception.PortalException)e;
1090 }
1091
1092 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1093 throw (com.liferay.portal.kernel.exception.SystemException)e;
1094 }
1095
1096 throw new com.liferay.portal.kernel.exception.SystemException(e);
1097 }
1098
1099 return ((Integer)returnObj).intValue();
1100 }
1101 catch (com.liferay.portal.kernel.exception.SystemException se) {
1102 _log.error(se, se);
1103
1104 throw se;
1105 }
1106 }
1107
1108 public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1109 long companyId, long nodeId, java.lang.String title, int max,
1110 java.lang.String type, double version, java.lang.String displayStyle,
1111 java.lang.String feedURL, java.lang.String entryURL,
1112 java.util.Locale locale)
1113 throws com.liferay.portal.kernel.exception.PortalException,
1114 com.liferay.portal.kernel.exception.SystemException {
1115 try {
1116 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1117 "getPagesRSS", _getPagesRSSParameterTypes29);
1118
1119 MethodHandler methodHandler = new MethodHandler(methodKey,
1120 companyId, nodeId, title, max, type, version, displayStyle,
1121 feedURL, entryURL, locale);
1122
1123 Object returnObj = null;
1124
1125 try {
1126 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1127 }
1128 catch (Exception e) {
1129 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1130 throw (com.liferay.portal.kernel.exception.PortalException)e;
1131 }
1132
1133 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1134 throw (com.liferay.portal.kernel.exception.SystemException)e;
1135 }
1136
1137 throw new com.liferay.portal.kernel.exception.SystemException(e);
1138 }
1139
1140 return (java.lang.String)returnObj;
1141 }
1142 catch (com.liferay.portal.kernel.exception.SystemException se) {
1143 _log.error(se, se);
1144
1145 throw se;
1146 }
1147 }
1148
1149 public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1150 long companyId, long nodeId, java.lang.String title, int max,
1151 java.lang.String type, double version, java.lang.String displayStyle,
1152 java.lang.String feedURL, java.lang.String entryURL,
1153 java.lang.String attachmentURLPrefix, java.util.Locale locale)
1154 throws com.liferay.portal.kernel.exception.PortalException,
1155 com.liferay.portal.kernel.exception.SystemException {
1156 try {
1157 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1158 "getPagesRSS", _getPagesRSSParameterTypes30);
1159
1160 MethodHandler methodHandler = new MethodHandler(methodKey,
1161 companyId, nodeId, title, max, type, version, displayStyle,
1162 feedURL, entryURL, attachmentURLPrefix, locale);
1163
1164 Object returnObj = null;
1165
1166 try {
1167 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1168 }
1169 catch (Exception e) {
1170 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1171 throw (com.liferay.portal.kernel.exception.PortalException)e;
1172 }
1173
1174 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1175 throw (com.liferay.portal.kernel.exception.SystemException)e;
1176 }
1177
1178 throw new com.liferay.portal.kernel.exception.SystemException(e);
1179 }
1180
1181 return (java.lang.String)returnObj;
1182 }
1183 catch (com.liferay.portal.kernel.exception.SystemException se) {
1184 _log.error(se, se);
1185
1186 throw se;
1187 }
1188 }
1189
1190 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
1191 HttpPrincipal httpPrincipal, long groupId, long nodeId, int start,
1192 int end)
1193 throws com.liferay.portal.kernel.exception.PortalException,
1194 com.liferay.portal.kernel.exception.SystemException {
1195 try {
1196 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1197 "getRecentChanges", _getRecentChangesParameterTypes31);
1198
1199 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1200 nodeId, start, end);
1201
1202 Object returnObj = null;
1203
1204 try {
1205 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1206 }
1207 catch (Exception e) {
1208 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1209 throw (com.liferay.portal.kernel.exception.PortalException)e;
1210 }
1211
1212 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1213 throw (com.liferay.portal.kernel.exception.SystemException)e;
1214 }
1215
1216 throw new com.liferay.portal.kernel.exception.SystemException(e);
1217 }
1218
1219 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1220 }
1221 catch (com.liferay.portal.kernel.exception.SystemException se) {
1222 _log.error(se, se);
1223
1224 throw se;
1225 }
1226 }
1227
1228 public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
1229 long groupId, long nodeId)
1230 throws com.liferay.portal.kernel.exception.PortalException,
1231 com.liferay.portal.kernel.exception.SystemException {
1232 try {
1233 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1234 "getRecentChangesCount",
1235 _getRecentChangesCountParameterTypes32);
1236
1237 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1238 nodeId);
1239
1240 Object returnObj = null;
1241
1242 try {
1243 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1244 }
1245 catch (Exception e) {
1246 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1247 throw (com.liferay.portal.kernel.exception.PortalException)e;
1248 }
1249
1250 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1251 throw (com.liferay.portal.kernel.exception.SystemException)e;
1252 }
1253
1254 throw new com.liferay.portal.kernel.exception.SystemException(e);
1255 }
1256
1257 return ((Integer)returnObj).intValue();
1258 }
1259 catch (com.liferay.portal.kernel.exception.SystemException se) {
1260 _log.error(se, se);
1261
1262 throw se;
1263 }
1264 }
1265
1266 public static java.lang.String[] getTempPageAttachmentNames(
1267 HttpPrincipal httpPrincipal, long nodeId,
1268 java.lang.String tempFolderName)
1269 throws com.liferay.portal.kernel.exception.PortalException,
1270 com.liferay.portal.kernel.exception.SystemException {
1271 try {
1272 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1273 "getTempPageAttachmentNames",
1274 _getTempPageAttachmentNamesParameterTypes33);
1275
1276 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1277 tempFolderName);
1278
1279 Object returnObj = null;
1280
1281 try {
1282 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1283 }
1284 catch (Exception e) {
1285 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1286 throw (com.liferay.portal.kernel.exception.PortalException)e;
1287 }
1288
1289 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1290 throw (com.liferay.portal.kernel.exception.SystemException)e;
1291 }
1292
1293 throw new com.liferay.portal.kernel.exception.SystemException(e);
1294 }
1295
1296 return (java.lang.String[])returnObj;
1297 }
1298 catch (com.liferay.portal.kernel.exception.SystemException se) {
1299 _log.error(se, se);
1300
1301 throw se;
1302 }
1303 }
1304
1305 public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
1306 java.lang.String title, java.lang.String newTitle,
1307 com.liferay.portal.service.ServiceContext serviceContext)
1308 throws com.liferay.portal.kernel.exception.PortalException,
1309 com.liferay.portal.kernel.exception.SystemException {
1310 try {
1311 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1312 "movePage", _movePageParameterTypes34);
1313
1314 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1315 title, newTitle, serviceContext);
1316
1317 try {
1318 TunnelUtil.invoke(httpPrincipal, methodHandler);
1319 }
1320 catch (Exception e) {
1321 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1322 throw (com.liferay.portal.kernel.exception.PortalException)e;
1323 }
1324
1325 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1326 throw (com.liferay.portal.kernel.exception.SystemException)e;
1327 }
1328
1329 throw new com.liferay.portal.kernel.exception.SystemException(e);
1330 }
1331 }
1332 catch (com.liferay.portal.kernel.exception.SystemException se) {
1333 _log.error(se, se);
1334
1335 throw se;
1336 }
1337 }
1338
1339 public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
1340 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1341 java.lang.String fileName)
1342 throws com.liferay.portal.kernel.exception.PortalException,
1343 com.liferay.portal.kernel.exception.SystemException {
1344 try {
1345 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1346 "movePageAttachmentToTrash",
1347 _movePageAttachmentToTrashParameterTypes35);
1348
1349 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1350 title, fileName);
1351
1352 Object returnObj = null;
1353
1354 try {
1355 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1356 }
1357 catch (Exception e) {
1358 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1359 throw (com.liferay.portal.kernel.exception.PortalException)e;
1360 }
1361
1362 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1363 throw (com.liferay.portal.kernel.exception.SystemException)e;
1364 }
1365
1366 throw new com.liferay.portal.kernel.exception.SystemException(e);
1367 }
1368
1369 return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
1370 }
1371 catch (com.liferay.portal.kernel.exception.SystemException se) {
1372 _log.error(se, se);
1373
1374 throw se;
1375 }
1376 }
1377
1378 public static void movePageToTrash(HttpPrincipal httpPrincipal,
1379 long nodeId, java.lang.String title)
1380 throws com.liferay.portal.kernel.exception.PortalException,
1381 com.liferay.portal.kernel.exception.SystemException {
1382 try {
1383 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1384 "movePageToTrash", _movePageToTrashParameterTypes36);
1385
1386 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1387 title);
1388
1389 try {
1390 TunnelUtil.invoke(httpPrincipal, methodHandler);
1391 }
1392 catch (Exception e) {
1393 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1394 throw (com.liferay.portal.kernel.exception.PortalException)e;
1395 }
1396
1397 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1398 throw (com.liferay.portal.kernel.exception.SystemException)e;
1399 }
1400
1401 throw new com.liferay.portal.kernel.exception.SystemException(e);
1402 }
1403 }
1404 catch (com.liferay.portal.kernel.exception.SystemException se) {
1405 _log.error(se, se);
1406
1407 throw se;
1408 }
1409 }
1410
1411 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1412 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1413 double version)
1414 throws com.liferay.portal.kernel.exception.PortalException,
1415 com.liferay.portal.kernel.exception.SystemException {
1416 try {
1417 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1418 "movePageToTrash", _movePageToTrashParameterTypes37);
1419
1420 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1421 title, version);
1422
1423 Object returnObj = null;
1424
1425 try {
1426 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1427 }
1428 catch (Exception e) {
1429 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1430 throw (com.liferay.portal.kernel.exception.PortalException)e;
1431 }
1432
1433 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1434 throw (com.liferay.portal.kernel.exception.SystemException)e;
1435 }
1436
1437 throw new com.liferay.portal.kernel.exception.SystemException(e);
1438 }
1439
1440 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1441 }
1442 catch (com.liferay.portal.kernel.exception.SystemException se) {
1443 _log.error(se, se);
1444
1445 throw se;
1446 }
1447 }
1448
1449 public static void restorePageAttachmentFromTrash(
1450 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1451 java.lang.String fileName)
1452 throws com.liferay.portal.kernel.exception.PortalException,
1453 com.liferay.portal.kernel.exception.SystemException {
1454 try {
1455 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1456 "restorePageAttachmentFromTrash",
1457 _restorePageAttachmentFromTrashParameterTypes38);
1458
1459 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1460 title, fileName);
1461
1462 try {
1463 TunnelUtil.invoke(httpPrincipal, methodHandler);
1464 }
1465 catch (Exception e) {
1466 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1467 throw (com.liferay.portal.kernel.exception.PortalException)e;
1468 }
1469
1470 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1471 throw (com.liferay.portal.kernel.exception.SystemException)e;
1472 }
1473
1474 throw new com.liferay.portal.kernel.exception.SystemException(e);
1475 }
1476 }
1477 catch (com.liferay.portal.kernel.exception.SystemException se) {
1478 _log.error(se, se);
1479
1480 throw se;
1481 }
1482 }
1483
1484 public static void restorePageFromTrash(HttpPrincipal httpPrincipal,
1485 long resourcePrimKey)
1486 throws com.liferay.portal.kernel.exception.PortalException,
1487 com.liferay.portal.kernel.exception.SystemException {
1488 try {
1489 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1490 "restorePageFromTrash",
1491 _restorePageFromTrashParameterTypes39);
1492
1493 MethodHandler methodHandler = new MethodHandler(methodKey,
1494 resourcePrimKey);
1495
1496 try {
1497 TunnelUtil.invoke(httpPrincipal, methodHandler);
1498 }
1499 catch (Exception e) {
1500 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1501 throw (com.liferay.portal.kernel.exception.PortalException)e;
1502 }
1503
1504 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1505 throw (com.liferay.portal.kernel.exception.SystemException)e;
1506 }
1507
1508 throw new com.liferay.portal.kernel.exception.SystemException(e);
1509 }
1510 }
1511 catch (com.liferay.portal.kernel.exception.SystemException se) {
1512 _log.error(se, se);
1513
1514 throw se;
1515 }
1516 }
1517
1518 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
1519 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1520 double version, com.liferay.portal.service.ServiceContext serviceContext)
1521 throws com.liferay.portal.kernel.exception.PortalException,
1522 com.liferay.portal.kernel.exception.SystemException {
1523 try {
1524 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1525 "revertPage", _revertPageParameterTypes40);
1526
1527 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1528 title, version, serviceContext);
1529
1530 Object returnObj = null;
1531
1532 try {
1533 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1534 }
1535 catch (Exception e) {
1536 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1537 throw (com.liferay.portal.kernel.exception.PortalException)e;
1538 }
1539
1540 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1541 throw (com.liferay.portal.kernel.exception.SystemException)e;
1542 }
1543
1544 throw new com.liferay.portal.kernel.exception.SystemException(e);
1545 }
1546
1547 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1548 }
1549 catch (com.liferay.portal.kernel.exception.SystemException se) {
1550 _log.error(se, se);
1551
1552 throw se;
1553 }
1554 }
1555
1556 public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
1557 java.lang.String title)
1558 throws com.liferay.portal.kernel.exception.PortalException,
1559 com.liferay.portal.kernel.exception.SystemException {
1560 try {
1561 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1562 "subscribePage", _subscribePageParameterTypes41);
1563
1564 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1565 title);
1566
1567 try {
1568 TunnelUtil.invoke(httpPrincipal, methodHandler);
1569 }
1570 catch (Exception e) {
1571 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1572 throw (com.liferay.portal.kernel.exception.PortalException)e;
1573 }
1574
1575 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1576 throw (com.liferay.portal.kernel.exception.SystemException)e;
1577 }
1578
1579 throw new com.liferay.portal.kernel.exception.SystemException(e);
1580 }
1581 }
1582 catch (com.liferay.portal.kernel.exception.SystemException se) {
1583 _log.error(se, se);
1584
1585 throw se;
1586 }
1587 }
1588
1589 public static void unsubscribePage(HttpPrincipal httpPrincipal,
1590 long nodeId, java.lang.String title)
1591 throws com.liferay.portal.kernel.exception.PortalException,
1592 com.liferay.portal.kernel.exception.SystemException {
1593 try {
1594 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1595 "unsubscribePage", _unsubscribePageParameterTypes42);
1596
1597 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1598 title);
1599
1600 try {
1601 TunnelUtil.invoke(httpPrincipal, methodHandler);
1602 }
1603 catch (Exception e) {
1604 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1605 throw (com.liferay.portal.kernel.exception.PortalException)e;
1606 }
1607
1608 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1609 throw (com.liferay.portal.kernel.exception.SystemException)e;
1610 }
1611
1612 throw new com.liferay.portal.kernel.exception.SystemException(e);
1613 }
1614 }
1615 catch (com.liferay.portal.kernel.exception.SystemException se) {
1616 _log.error(se, se);
1617
1618 throw se;
1619 }
1620 }
1621
1622 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
1623 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1624 double version, java.lang.String content, java.lang.String summary,
1625 boolean minorEdit, java.lang.String format,
1626 java.lang.String parentTitle, java.lang.String redirectTitle,
1627 com.liferay.portal.service.ServiceContext serviceContext)
1628 throws com.liferay.portal.kernel.exception.PortalException,
1629 com.liferay.portal.kernel.exception.SystemException {
1630 try {
1631 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1632 "updatePage", _updatePageParameterTypes43);
1633
1634 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1635 title, version, content, summary, minorEdit, format,
1636 parentTitle, redirectTitle, serviceContext);
1637
1638 Object returnObj = null;
1639
1640 try {
1641 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1642 }
1643 catch (Exception e) {
1644 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1645 throw (com.liferay.portal.kernel.exception.PortalException)e;
1646 }
1647
1648 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1649 throw (com.liferay.portal.kernel.exception.SystemException)e;
1650 }
1651
1652 throw new com.liferay.portal.kernel.exception.SystemException(e);
1653 }
1654
1655 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1656 }
1657 catch (com.liferay.portal.kernel.exception.SystemException se) {
1658 _log.error(se, se);
1659
1660 throw se;
1661 }
1662 }
1663
1664 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1665 private static final Class<?>[] _addPageParameterTypes0 = new Class[] {
1666 long.class, java.lang.String.class, java.lang.String.class,
1667 java.lang.String.class, boolean.class,
1668 com.liferay.portal.service.ServiceContext.class
1669 };
1670 private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
1671 long.class, java.lang.String.class, java.lang.String.class,
1672 java.lang.String.class, boolean.class, java.lang.String.class,
1673 java.lang.String.class, java.lang.String.class,
1674 com.liferay.portal.service.ServiceContext.class
1675 };
1676 private static final Class<?>[] _addPageAttachmentParameterTypes2 = new Class[] {
1677 long.class, java.lang.String.class, java.lang.String.class,
1678 java.io.File.class, java.lang.String.class
1679 };
1680 private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
1681 long.class, java.lang.String.class, java.lang.String.class,
1682 java.io.InputStream.class, java.lang.String.class
1683 };
1684 private static final Class<?>[] _addPageAttachmentsParameterTypes4 = new Class[] {
1685 long.class, java.lang.String.class, java.util.List.class
1686 };
1687 private static final Class<?>[] _addTempPageAttachmentParameterTypes5 = new Class[] {
1688 long.class, java.lang.String.class, java.lang.String.class,
1689 java.io.InputStream.class, java.lang.String.class
1690 };
1691 private static final Class<?>[] _changeParentParameterTypes6 = new Class[] {
1692 long.class, java.lang.String.class, java.lang.String.class,
1693 com.liferay.portal.service.ServiceContext.class
1694 };
1695 private static final Class<?>[] _copyPageAttachmentsParameterTypes7 = new Class[] {
1696 long.class, java.lang.String.class, long.class,
1697 java.lang.String.class
1698 };
1699 private static final Class<?>[] _deletePageParameterTypes8 = new Class[] {
1700 long.class, java.lang.String.class
1701 };
1702 private static final Class<?>[] _deletePageParameterTypes9 = new Class[] {
1703 long.class, java.lang.String.class, double.class
1704 };
1705 private static final Class<?>[] _deletePageAttachmentParameterTypes10 = new Class[] {
1706 long.class, java.lang.String.class, java.lang.String.class
1707 };
1708 private static final Class<?>[] _deletePageAttachmentsParameterTypes11 = new Class[] {
1709 long.class, java.lang.String.class
1710 };
1711 private static final Class<?>[] _deleteTempPageAttachmentParameterTypes12 = new Class[] {
1712 long.class, java.lang.String.class, java.lang.String.class
1713 };
1714 private static final Class<?>[] _deleteTrashPageAttachmentsParameterTypes13 = new Class[] {
1715 long.class, java.lang.String.class
1716 };
1717 private static final Class<?>[] _discardDraftParameterTypes14 = new Class[] {
1718 long.class, java.lang.String.class, double.class
1719 };
1720 private static final Class<?>[] _getChildrenParameterTypes15 = new Class[] {
1721 long.class, long.class, boolean.class, java.lang.String.class
1722 };
1723 private static final Class<?>[] _getDraftPageParameterTypes16 = new Class[] {
1724 long.class, java.lang.String.class
1725 };
1726 private static final Class<?>[] _getNodePagesParameterTypes17 = new Class[] {
1727 long.class, int.class
1728 };
1729 private static final Class<?>[] _getNodePagesRSSParameterTypes18 = new Class[] {
1730 long.class, int.class, java.lang.String.class, double.class,
1731 java.lang.String.class, java.lang.String.class,
1732 java.lang.String.class
1733 };
1734 private static final Class<?>[] _getNodePagesRSSParameterTypes19 = new Class[] {
1735 long.class, int.class, java.lang.String.class, double.class,
1736 java.lang.String.class, java.lang.String.class,
1737 java.lang.String.class, java.lang.String.class
1738 };
1739 private static final Class<?>[] _getOrphansParameterTypes20 = new Class[] {
1740 long.class, long.class
1741 };
1742 private static final Class<?>[] _getPageParameterTypes21 = new Class[] {
1743 long.class, long.class, java.lang.String.class
1744 };
1745 private static final Class<?>[] _getPageParameterTypes22 = new Class[] {
1746 long.class, java.lang.String.class
1747 };
1748 private static final Class<?>[] _getPageParameterTypes23 = new Class[] {
1749 long.class, java.lang.String.class, java.lang.Boolean.class
1750 };
1751 private static final Class<?>[] _getPageParameterTypes24 = new Class[] {
1752 long.class, java.lang.String.class, double.class
1753 };
1754 private static final Class<?>[] _getPagesParameterTypes25 = new Class[] {
1755 long.class, long.class, boolean.class, int.class, int.class,
1756 int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1757 };
1758 private static final Class<?>[] _getPagesParameterTypes26 = new Class[] {
1759 long.class, long.class, long.class, int.class, int.class, int.class
1760 };
1761 private static final Class<?>[] _getPagesCountParameterTypes27 = new Class[] {
1762 long.class, long.class, boolean.class
1763 };
1764 private static final Class<?>[] _getPagesCountParameterTypes28 = new Class[] {
1765 long.class, long.class, long.class, int.class
1766 };
1767 private static final Class<?>[] _getPagesRSSParameterTypes29 = new Class[] {
1768 long.class, long.class, java.lang.String.class, int.class,
1769 java.lang.String.class, double.class, java.lang.String.class,
1770 java.lang.String.class, java.lang.String.class,
1771 java.util.Locale.class
1772 };
1773 private static final Class<?>[] _getPagesRSSParameterTypes30 = new Class[] {
1774 long.class, long.class, java.lang.String.class, int.class,
1775 java.lang.String.class, double.class, java.lang.String.class,
1776 java.lang.String.class, java.lang.String.class,
1777 java.lang.String.class, java.util.Locale.class
1778 };
1779 private static final Class<?>[] _getRecentChangesParameterTypes31 = new Class[] {
1780 long.class, long.class, int.class, int.class
1781 };
1782 private static final Class<?>[] _getRecentChangesCountParameterTypes32 = new Class[] {
1783 long.class, long.class
1784 };
1785 private static final Class<?>[] _getTempPageAttachmentNamesParameterTypes33 = new Class[] {
1786 long.class, java.lang.String.class
1787 };
1788 private static final Class<?>[] _movePageParameterTypes34 = new Class[] {
1789 long.class, java.lang.String.class, java.lang.String.class,
1790 com.liferay.portal.service.ServiceContext.class
1791 };
1792 private static final Class<?>[] _movePageAttachmentToTrashParameterTypes35 = new Class[] {
1793 long.class, java.lang.String.class, java.lang.String.class
1794 };
1795 private static final Class<?>[] _movePageToTrashParameterTypes36 = new Class[] {
1796 long.class, java.lang.String.class
1797 };
1798 private static final Class<?>[] _movePageToTrashParameterTypes37 = new Class[] {
1799 long.class, java.lang.String.class, double.class
1800 };
1801 private static final Class<?>[] _restorePageAttachmentFromTrashParameterTypes38 =
1802 new Class[] { long.class, java.lang.String.class, java.lang.String.class };
1803 private static final Class<?>[] _restorePageFromTrashParameterTypes39 = new Class[] {
1804 long.class
1805 };
1806 private static final Class<?>[] _revertPageParameterTypes40 = new Class[] {
1807 long.class, java.lang.String.class, double.class,
1808 com.liferay.portal.service.ServiceContext.class
1809 };
1810 private static final Class<?>[] _subscribePageParameterTypes41 = new Class[] {
1811 long.class, java.lang.String.class
1812 };
1813 private static final Class<?>[] _unsubscribePageParameterTypes42 = new Class[] {
1814 long.class, java.lang.String.class
1815 };
1816 private static final Class<?>[] _updatePageParameterTypes43 = new Class[] {
1817 long.class, java.lang.String.class, double.class,
1818 java.lang.String.class, java.lang.String.class, boolean.class,
1819 java.lang.String.class, java.lang.String.class,
1820 java.lang.String.class,
1821 com.liferay.portal.service.ServiceContext.class
1822 };
1823 }