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 com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1379 HttpPrincipal httpPrincipal, 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 Object returnObj = null;
1390
1391 try {
1392 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1393 }
1394 catch (Exception e) {
1395 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1396 throw (com.liferay.portal.kernel.exception.PortalException)e;
1397 }
1398
1399 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1400 throw (com.liferay.portal.kernel.exception.SystemException)e;
1401 }
1402
1403 throw new com.liferay.portal.kernel.exception.SystemException(e);
1404 }
1405
1406 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1407 }
1408 catch (com.liferay.portal.kernel.exception.SystemException se) {
1409 _log.error(se, se);
1410
1411 throw se;
1412 }
1413 }
1414
1415 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1416 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1417 double version)
1418 throws com.liferay.portal.kernel.exception.PortalException,
1419 com.liferay.portal.kernel.exception.SystemException {
1420 try {
1421 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1422 "movePageToTrash", _movePageToTrashParameterTypes37);
1423
1424 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1425 title, version);
1426
1427 Object returnObj = null;
1428
1429 try {
1430 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1431 }
1432 catch (Exception e) {
1433 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1434 throw (com.liferay.portal.kernel.exception.PortalException)e;
1435 }
1436
1437 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1438 throw (com.liferay.portal.kernel.exception.SystemException)e;
1439 }
1440
1441 throw new com.liferay.portal.kernel.exception.SystemException(e);
1442 }
1443
1444 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1445 }
1446 catch (com.liferay.portal.kernel.exception.SystemException se) {
1447 _log.error(se, se);
1448
1449 throw se;
1450 }
1451 }
1452
1453 public static void restorePageAttachmentFromTrash(
1454 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1455 java.lang.String fileName)
1456 throws com.liferay.portal.kernel.exception.PortalException,
1457 com.liferay.portal.kernel.exception.SystemException {
1458 try {
1459 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1460 "restorePageAttachmentFromTrash",
1461 _restorePageAttachmentFromTrashParameterTypes38);
1462
1463 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1464 title, fileName);
1465
1466 try {
1467 TunnelUtil.invoke(httpPrincipal, methodHandler);
1468 }
1469 catch (Exception e) {
1470 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1471 throw (com.liferay.portal.kernel.exception.PortalException)e;
1472 }
1473
1474 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1475 throw (com.liferay.portal.kernel.exception.SystemException)e;
1476 }
1477
1478 throw new com.liferay.portal.kernel.exception.SystemException(e);
1479 }
1480 }
1481 catch (com.liferay.portal.kernel.exception.SystemException se) {
1482 _log.error(se, se);
1483
1484 throw se;
1485 }
1486 }
1487
1488 public static void restorePageFromTrash(HttpPrincipal httpPrincipal,
1489 long resourcePrimKey)
1490 throws com.liferay.portal.kernel.exception.PortalException,
1491 com.liferay.portal.kernel.exception.SystemException {
1492 try {
1493 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1494 "restorePageFromTrash",
1495 _restorePageFromTrashParameterTypes39);
1496
1497 MethodHandler methodHandler = new MethodHandler(methodKey,
1498 resourcePrimKey);
1499
1500 try {
1501 TunnelUtil.invoke(httpPrincipal, methodHandler);
1502 }
1503 catch (Exception e) {
1504 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1505 throw (com.liferay.portal.kernel.exception.PortalException)e;
1506 }
1507
1508 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1509 throw (com.liferay.portal.kernel.exception.SystemException)e;
1510 }
1511
1512 throw new com.liferay.portal.kernel.exception.SystemException(e);
1513 }
1514 }
1515 catch (com.liferay.portal.kernel.exception.SystemException se) {
1516 _log.error(se, se);
1517
1518 throw se;
1519 }
1520 }
1521
1522 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
1523 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1524 double version, com.liferay.portal.service.ServiceContext serviceContext)
1525 throws com.liferay.portal.kernel.exception.PortalException,
1526 com.liferay.portal.kernel.exception.SystemException {
1527 try {
1528 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1529 "revertPage", _revertPageParameterTypes40);
1530
1531 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1532 title, version, serviceContext);
1533
1534 Object returnObj = null;
1535
1536 try {
1537 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1538 }
1539 catch (Exception e) {
1540 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1541 throw (com.liferay.portal.kernel.exception.PortalException)e;
1542 }
1543
1544 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1545 throw (com.liferay.portal.kernel.exception.SystemException)e;
1546 }
1547
1548 throw new com.liferay.portal.kernel.exception.SystemException(e);
1549 }
1550
1551 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1552 }
1553 catch (com.liferay.portal.kernel.exception.SystemException se) {
1554 _log.error(se, se);
1555
1556 throw se;
1557 }
1558 }
1559
1560 public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
1561 java.lang.String title)
1562 throws com.liferay.portal.kernel.exception.PortalException,
1563 com.liferay.portal.kernel.exception.SystemException {
1564 try {
1565 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1566 "subscribePage", _subscribePageParameterTypes41);
1567
1568 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1569 title);
1570
1571 try {
1572 TunnelUtil.invoke(httpPrincipal, methodHandler);
1573 }
1574 catch (Exception e) {
1575 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1576 throw (com.liferay.portal.kernel.exception.PortalException)e;
1577 }
1578
1579 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1580 throw (com.liferay.portal.kernel.exception.SystemException)e;
1581 }
1582
1583 throw new com.liferay.portal.kernel.exception.SystemException(e);
1584 }
1585 }
1586 catch (com.liferay.portal.kernel.exception.SystemException se) {
1587 _log.error(se, se);
1588
1589 throw se;
1590 }
1591 }
1592
1593 public static void unsubscribePage(HttpPrincipal httpPrincipal,
1594 long nodeId, java.lang.String title)
1595 throws com.liferay.portal.kernel.exception.PortalException,
1596 com.liferay.portal.kernel.exception.SystemException {
1597 try {
1598 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1599 "unsubscribePage", _unsubscribePageParameterTypes42);
1600
1601 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1602 title);
1603
1604 try {
1605 TunnelUtil.invoke(httpPrincipal, methodHandler);
1606 }
1607 catch (Exception e) {
1608 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1609 throw (com.liferay.portal.kernel.exception.PortalException)e;
1610 }
1611
1612 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1613 throw (com.liferay.portal.kernel.exception.SystemException)e;
1614 }
1615
1616 throw new com.liferay.portal.kernel.exception.SystemException(e);
1617 }
1618 }
1619 catch (com.liferay.portal.kernel.exception.SystemException se) {
1620 _log.error(se, se);
1621
1622 throw se;
1623 }
1624 }
1625
1626 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
1627 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1628 double version, java.lang.String content, java.lang.String summary,
1629 boolean minorEdit, java.lang.String format,
1630 java.lang.String parentTitle, java.lang.String redirectTitle,
1631 com.liferay.portal.service.ServiceContext serviceContext)
1632 throws com.liferay.portal.kernel.exception.PortalException,
1633 com.liferay.portal.kernel.exception.SystemException {
1634 try {
1635 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1636 "updatePage", _updatePageParameterTypes43);
1637
1638 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1639 title, version, content, summary, minorEdit, format,
1640 parentTitle, redirectTitle, serviceContext);
1641
1642 Object returnObj = null;
1643
1644 try {
1645 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1646 }
1647 catch (Exception e) {
1648 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1649 throw (com.liferay.portal.kernel.exception.PortalException)e;
1650 }
1651
1652 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1653 throw (com.liferay.portal.kernel.exception.SystemException)e;
1654 }
1655
1656 throw new com.liferay.portal.kernel.exception.SystemException(e);
1657 }
1658
1659 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1660 }
1661 catch (com.liferay.portal.kernel.exception.SystemException se) {
1662 _log.error(se, se);
1663
1664 throw se;
1665 }
1666 }
1667
1668 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1669 private static final Class<?>[] _addPageParameterTypes0 = new Class[] {
1670 long.class, java.lang.String.class, java.lang.String.class,
1671 java.lang.String.class, boolean.class,
1672 com.liferay.portal.service.ServiceContext.class
1673 };
1674 private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
1675 long.class, java.lang.String.class, java.lang.String.class,
1676 java.lang.String.class, boolean.class, java.lang.String.class,
1677 java.lang.String.class, java.lang.String.class,
1678 com.liferay.portal.service.ServiceContext.class
1679 };
1680 private static final Class<?>[] _addPageAttachmentParameterTypes2 = new Class[] {
1681 long.class, java.lang.String.class, java.lang.String.class,
1682 java.io.File.class, java.lang.String.class
1683 };
1684 private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
1685 long.class, java.lang.String.class, java.lang.String.class,
1686 java.io.InputStream.class, java.lang.String.class
1687 };
1688 private static final Class<?>[] _addPageAttachmentsParameterTypes4 = new Class[] {
1689 long.class, java.lang.String.class, java.util.List.class
1690 };
1691 private static final Class<?>[] _addTempPageAttachmentParameterTypes5 = new Class[] {
1692 long.class, java.lang.String.class, java.lang.String.class,
1693 java.io.InputStream.class, java.lang.String.class
1694 };
1695 private static final Class<?>[] _changeParentParameterTypes6 = new Class[] {
1696 long.class, java.lang.String.class, java.lang.String.class,
1697 com.liferay.portal.service.ServiceContext.class
1698 };
1699 private static final Class<?>[] _copyPageAttachmentsParameterTypes7 = new Class[] {
1700 long.class, java.lang.String.class, long.class,
1701 java.lang.String.class
1702 };
1703 private static final Class<?>[] _deletePageParameterTypes8 = new Class[] {
1704 long.class, java.lang.String.class
1705 };
1706 private static final Class<?>[] _deletePageParameterTypes9 = new Class[] {
1707 long.class, java.lang.String.class, double.class
1708 };
1709 private static final Class<?>[] _deletePageAttachmentParameterTypes10 = new Class[] {
1710 long.class, java.lang.String.class, java.lang.String.class
1711 };
1712 private static final Class<?>[] _deletePageAttachmentsParameterTypes11 = new Class[] {
1713 long.class, java.lang.String.class
1714 };
1715 private static final Class<?>[] _deleteTempPageAttachmentParameterTypes12 = new Class[] {
1716 long.class, java.lang.String.class, java.lang.String.class
1717 };
1718 private static final Class<?>[] _deleteTrashPageAttachmentsParameterTypes13 = new Class[] {
1719 long.class, java.lang.String.class
1720 };
1721 private static final Class<?>[] _discardDraftParameterTypes14 = new Class[] {
1722 long.class, java.lang.String.class, double.class
1723 };
1724 private static final Class<?>[] _getChildrenParameterTypes15 = new Class[] {
1725 long.class, long.class, boolean.class, java.lang.String.class
1726 };
1727 private static final Class<?>[] _getDraftPageParameterTypes16 = new Class[] {
1728 long.class, java.lang.String.class
1729 };
1730 private static final Class<?>[] _getNodePagesParameterTypes17 = new Class[] {
1731 long.class, int.class
1732 };
1733 private static final Class<?>[] _getNodePagesRSSParameterTypes18 = new Class[] {
1734 long.class, int.class, java.lang.String.class, double.class,
1735 java.lang.String.class, java.lang.String.class,
1736 java.lang.String.class
1737 };
1738 private static final Class<?>[] _getNodePagesRSSParameterTypes19 = new Class[] {
1739 long.class, int.class, java.lang.String.class, double.class,
1740 java.lang.String.class, java.lang.String.class,
1741 java.lang.String.class, java.lang.String.class
1742 };
1743 private static final Class<?>[] _getOrphansParameterTypes20 = new Class[] {
1744 long.class, long.class
1745 };
1746 private static final Class<?>[] _getPageParameterTypes21 = new Class[] {
1747 long.class, long.class, java.lang.String.class
1748 };
1749 private static final Class<?>[] _getPageParameterTypes22 = new Class[] {
1750 long.class, java.lang.String.class
1751 };
1752 private static final Class<?>[] _getPageParameterTypes23 = new Class[] {
1753 long.class, java.lang.String.class, java.lang.Boolean.class
1754 };
1755 private static final Class<?>[] _getPageParameterTypes24 = new Class[] {
1756 long.class, java.lang.String.class, double.class
1757 };
1758 private static final Class<?>[] _getPagesParameterTypes25 = new Class[] {
1759 long.class, long.class, boolean.class, int.class, int.class,
1760 int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1761 };
1762 private static final Class<?>[] _getPagesParameterTypes26 = new Class[] {
1763 long.class, long.class, long.class, int.class, int.class, int.class
1764 };
1765 private static final Class<?>[] _getPagesCountParameterTypes27 = new Class[] {
1766 long.class, long.class, boolean.class
1767 };
1768 private static final Class<?>[] _getPagesCountParameterTypes28 = new Class[] {
1769 long.class, long.class, long.class, int.class
1770 };
1771 private static final Class<?>[] _getPagesRSSParameterTypes29 = new Class[] {
1772 long.class, long.class, java.lang.String.class, int.class,
1773 java.lang.String.class, double.class, java.lang.String.class,
1774 java.lang.String.class, java.lang.String.class,
1775 java.util.Locale.class
1776 };
1777 private static final Class<?>[] _getPagesRSSParameterTypes30 = new Class[] {
1778 long.class, long.class, java.lang.String.class, int.class,
1779 java.lang.String.class, double.class, java.lang.String.class,
1780 java.lang.String.class, java.lang.String.class,
1781 java.lang.String.class, java.util.Locale.class
1782 };
1783 private static final Class<?>[] _getRecentChangesParameterTypes31 = new Class[] {
1784 long.class, long.class, int.class, int.class
1785 };
1786 private static final Class<?>[] _getRecentChangesCountParameterTypes32 = new Class[] {
1787 long.class, long.class
1788 };
1789 private static final Class<?>[] _getTempPageAttachmentNamesParameterTypes33 = new Class[] {
1790 long.class, java.lang.String.class
1791 };
1792 private static final Class<?>[] _movePageParameterTypes34 = new Class[] {
1793 long.class, java.lang.String.class, java.lang.String.class,
1794 com.liferay.portal.service.ServiceContext.class
1795 };
1796 private static final Class<?>[] _movePageAttachmentToTrashParameterTypes35 = new Class[] {
1797 long.class, java.lang.String.class, java.lang.String.class
1798 };
1799 private static final Class<?>[] _movePageToTrashParameterTypes36 = new Class[] {
1800 long.class, java.lang.String.class
1801 };
1802 private static final Class<?>[] _movePageToTrashParameterTypes37 = new Class[] {
1803 long.class, java.lang.String.class, double.class
1804 };
1805 private static final Class<?>[] _restorePageAttachmentFromTrashParameterTypes38 =
1806 new Class[] { long.class, java.lang.String.class, java.lang.String.class };
1807 private static final Class<?>[] _restorePageFromTrashParameterTypes39 = new Class[] {
1808 long.class
1809 };
1810 private static final Class<?>[] _revertPageParameterTypes40 = new Class[] {
1811 long.class, java.lang.String.class, double.class,
1812 com.liferay.portal.service.ServiceContext.class
1813 };
1814 private static final Class<?>[] _subscribePageParameterTypes41 = new Class[] {
1815 long.class, java.lang.String.class
1816 };
1817 private static final Class<?>[] _unsubscribePageParameterTypes42 = new Class[] {
1818 long.class, java.lang.String.class
1819 };
1820 private static final Class<?>[] _updatePageParameterTypes43 = new Class[] {
1821 long.class, java.lang.String.class, double.class,
1822 java.lang.String.class, java.lang.String.class, boolean.class,
1823 java.lang.String.class, java.lang.String.class,
1824 java.lang.String.class,
1825 com.liferay.portal.service.ServiceContext.class
1826 };
1827 }