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 nodeId, boolean head,
998 long userId, boolean includeOwner, int status, int start, int end,
999 com.liferay.portal.kernel.util.OrderByComparator obc)
1000 throws com.liferay.portal.kernel.exception.PortalException,
1001 com.liferay.portal.kernel.exception.SystemException {
1002 try {
1003 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1004 "getPages", _getPagesParameterTypes26);
1005
1006 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1007 nodeId, head, userId, includeOwner, status, start, end, obc);
1008
1009 Object returnObj = null;
1010
1011 try {
1012 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1013 }
1014 catch (Exception e) {
1015 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1016 throw (com.liferay.portal.kernel.exception.PortalException)e;
1017 }
1018
1019 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1020 throw (com.liferay.portal.kernel.exception.SystemException)e;
1021 }
1022
1023 throw new com.liferay.portal.kernel.exception.SystemException(e);
1024 }
1025
1026 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1027 }
1028 catch (com.liferay.portal.kernel.exception.SystemException se) {
1029 _log.error(se, se);
1030
1031 throw se;
1032 }
1033 }
1034
1035 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
1036 HttpPrincipal httpPrincipal, long groupId, long userId, long nodeId,
1037 int status, int start, int end)
1038 throws com.liferay.portal.kernel.exception.PortalException,
1039 com.liferay.portal.kernel.exception.SystemException {
1040 try {
1041 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1042 "getPages", _getPagesParameterTypes27);
1043
1044 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1045 userId, nodeId, status, start, end);
1046
1047 Object returnObj = null;
1048
1049 try {
1050 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1051 }
1052 catch (Exception e) {
1053 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1054 throw (com.liferay.portal.kernel.exception.PortalException)e;
1055 }
1056
1057 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1058 throw (com.liferay.portal.kernel.exception.SystemException)e;
1059 }
1060
1061 throw new com.liferay.portal.kernel.exception.SystemException(e);
1062 }
1063
1064 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1065 }
1066 catch (com.liferay.portal.kernel.exception.SystemException se) {
1067 _log.error(se, se);
1068
1069 throw se;
1070 }
1071 }
1072
1073 public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
1074 long nodeId, boolean head)
1075 throws com.liferay.portal.kernel.exception.PortalException,
1076 com.liferay.portal.kernel.exception.SystemException {
1077 try {
1078 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1079 "getPagesCount", _getPagesCountParameterTypes28);
1080
1081 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1082 nodeId, head);
1083
1084 Object returnObj = null;
1085
1086 try {
1087 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1088 }
1089 catch (Exception e) {
1090 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1091 throw (com.liferay.portal.kernel.exception.PortalException)e;
1092 }
1093
1094 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1095 throw (com.liferay.portal.kernel.exception.SystemException)e;
1096 }
1097
1098 throw new com.liferay.portal.kernel.exception.SystemException(e);
1099 }
1100
1101 return ((Integer)returnObj).intValue();
1102 }
1103 catch (com.liferay.portal.kernel.exception.SystemException se) {
1104 _log.error(se, se);
1105
1106 throw se;
1107 }
1108 }
1109
1110 public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
1111 long nodeId, boolean head, long userId, boolean includeOwner, int status)
1112 throws com.liferay.portal.kernel.exception.PortalException,
1113 com.liferay.portal.kernel.exception.SystemException {
1114 try {
1115 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1116 "getPagesCount", _getPagesCountParameterTypes29);
1117
1118 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1119 nodeId, head, userId, includeOwner, status);
1120
1121 Object returnObj = null;
1122
1123 try {
1124 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1125 }
1126 catch (Exception e) {
1127 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1128 throw (com.liferay.portal.kernel.exception.PortalException)e;
1129 }
1130
1131 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1132 throw (com.liferay.portal.kernel.exception.SystemException)e;
1133 }
1134
1135 throw new com.liferay.portal.kernel.exception.SystemException(e);
1136 }
1137
1138 return ((Integer)returnObj).intValue();
1139 }
1140 catch (com.liferay.portal.kernel.exception.SystemException se) {
1141 _log.error(se, se);
1142
1143 throw se;
1144 }
1145 }
1146
1147 public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
1148 long userId, long nodeId, int status)
1149 throws com.liferay.portal.kernel.exception.PortalException,
1150 com.liferay.portal.kernel.exception.SystemException {
1151 try {
1152 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1153 "getPagesCount", _getPagesCountParameterTypes30);
1154
1155 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1156 userId, nodeId, status);
1157
1158 Object returnObj = null;
1159
1160 try {
1161 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1162 }
1163 catch (Exception e) {
1164 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1165 throw (com.liferay.portal.kernel.exception.PortalException)e;
1166 }
1167
1168 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1169 throw (com.liferay.portal.kernel.exception.SystemException)e;
1170 }
1171
1172 throw new com.liferay.portal.kernel.exception.SystemException(e);
1173 }
1174
1175 return ((Integer)returnObj).intValue();
1176 }
1177 catch (com.liferay.portal.kernel.exception.SystemException se) {
1178 _log.error(se, se);
1179
1180 throw se;
1181 }
1182 }
1183
1184 public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1185 long companyId, long nodeId, java.lang.String title, int max,
1186 java.lang.String type, double version, java.lang.String displayStyle,
1187 java.lang.String feedURL, java.lang.String entryURL,
1188 java.util.Locale locale)
1189 throws com.liferay.portal.kernel.exception.PortalException,
1190 com.liferay.portal.kernel.exception.SystemException {
1191 try {
1192 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1193 "getPagesRSS", _getPagesRSSParameterTypes31);
1194
1195 MethodHandler methodHandler = new MethodHandler(methodKey,
1196 companyId, nodeId, title, max, type, version, displayStyle,
1197 feedURL, entryURL, locale);
1198
1199 Object returnObj = null;
1200
1201 try {
1202 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1203 }
1204 catch (Exception e) {
1205 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1206 throw (com.liferay.portal.kernel.exception.PortalException)e;
1207 }
1208
1209 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1210 throw (com.liferay.portal.kernel.exception.SystemException)e;
1211 }
1212
1213 throw new com.liferay.portal.kernel.exception.SystemException(e);
1214 }
1215
1216 return (java.lang.String)returnObj;
1217 }
1218 catch (com.liferay.portal.kernel.exception.SystemException se) {
1219 _log.error(se, se);
1220
1221 throw se;
1222 }
1223 }
1224
1225 public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1226 long companyId, long nodeId, java.lang.String title, int max,
1227 java.lang.String type, double version, java.lang.String displayStyle,
1228 java.lang.String feedURL, java.lang.String entryURL,
1229 java.lang.String attachmentURLPrefix, java.util.Locale locale)
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 "getPagesRSS", _getPagesRSSParameterTypes32);
1235
1236 MethodHandler methodHandler = new MethodHandler(methodKey,
1237 companyId, nodeId, title, max, type, version, displayStyle,
1238 feedURL, entryURL, attachmentURLPrefix, locale);
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 (java.lang.String)returnObj;
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.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
1267 HttpPrincipal httpPrincipal, long groupId, long nodeId, int start,
1268 int end)
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 "getRecentChanges", _getRecentChangesParameterTypes33);
1274
1275 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1276 nodeId, start, end);
1277
1278 Object returnObj = null;
1279
1280 try {
1281 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1282 }
1283 catch (Exception e) {
1284 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1285 throw (com.liferay.portal.kernel.exception.PortalException)e;
1286 }
1287
1288 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1289 throw (com.liferay.portal.kernel.exception.SystemException)e;
1290 }
1291
1292 throw new com.liferay.portal.kernel.exception.SystemException(e);
1293 }
1294
1295 return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1296 }
1297 catch (com.liferay.portal.kernel.exception.SystemException se) {
1298 _log.error(se, se);
1299
1300 throw se;
1301 }
1302 }
1303
1304 public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
1305 long groupId, long nodeId)
1306 throws com.liferay.portal.kernel.exception.PortalException,
1307 com.liferay.portal.kernel.exception.SystemException {
1308 try {
1309 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1310 "getRecentChangesCount",
1311 _getRecentChangesCountParameterTypes34);
1312
1313 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1314 nodeId);
1315
1316 Object returnObj = null;
1317
1318 try {
1319 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1320 }
1321 catch (Exception e) {
1322 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1323 throw (com.liferay.portal.kernel.exception.PortalException)e;
1324 }
1325
1326 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1327 throw (com.liferay.portal.kernel.exception.SystemException)e;
1328 }
1329
1330 throw new com.liferay.portal.kernel.exception.SystemException(e);
1331 }
1332
1333 return ((Integer)returnObj).intValue();
1334 }
1335 catch (com.liferay.portal.kernel.exception.SystemException se) {
1336 _log.error(se, se);
1337
1338 throw se;
1339 }
1340 }
1341
1342 public static java.lang.String[] getTempPageAttachmentNames(
1343 HttpPrincipal httpPrincipal, long nodeId,
1344 java.lang.String tempFolderName)
1345 throws com.liferay.portal.kernel.exception.PortalException,
1346 com.liferay.portal.kernel.exception.SystemException {
1347 try {
1348 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1349 "getTempPageAttachmentNames",
1350 _getTempPageAttachmentNamesParameterTypes35);
1351
1352 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1353 tempFolderName);
1354
1355 Object returnObj = null;
1356
1357 try {
1358 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1359 }
1360 catch (Exception e) {
1361 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1362 throw (com.liferay.portal.kernel.exception.PortalException)e;
1363 }
1364
1365 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1366 throw (com.liferay.portal.kernel.exception.SystemException)e;
1367 }
1368
1369 throw new com.liferay.portal.kernel.exception.SystemException(e);
1370 }
1371
1372 return (java.lang.String[])returnObj;
1373 }
1374 catch (com.liferay.portal.kernel.exception.SystemException se) {
1375 _log.error(se, se);
1376
1377 throw se;
1378 }
1379 }
1380
1381 public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
1382 java.lang.String title, java.lang.String newTitle,
1383 com.liferay.portal.service.ServiceContext serviceContext)
1384 throws com.liferay.portal.kernel.exception.PortalException,
1385 com.liferay.portal.kernel.exception.SystemException {
1386 try {
1387 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1388 "movePage", _movePageParameterTypes36);
1389
1390 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1391 title, newTitle, serviceContext);
1392
1393 try {
1394 TunnelUtil.invoke(httpPrincipal, methodHandler);
1395 }
1396 catch (Exception e) {
1397 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1398 throw (com.liferay.portal.kernel.exception.PortalException)e;
1399 }
1400
1401 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1402 throw (com.liferay.portal.kernel.exception.SystemException)e;
1403 }
1404
1405 throw new com.liferay.portal.kernel.exception.SystemException(e);
1406 }
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.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
1416 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1417 java.lang.String fileName)
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 "movePageAttachmentToTrash",
1423 _movePageAttachmentToTrashParameterTypes37);
1424
1425 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1426 title, fileName);
1427
1428 Object returnObj = null;
1429
1430 try {
1431 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1432 }
1433 catch (Exception e) {
1434 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1435 throw (com.liferay.portal.kernel.exception.PortalException)e;
1436 }
1437
1438 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1439 throw (com.liferay.portal.kernel.exception.SystemException)e;
1440 }
1441
1442 throw new com.liferay.portal.kernel.exception.SystemException(e);
1443 }
1444
1445 return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
1446 }
1447 catch (com.liferay.portal.kernel.exception.SystemException se) {
1448 _log.error(se, se);
1449
1450 throw se;
1451 }
1452 }
1453
1454 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1455 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
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 "movePageToTrash", _movePageToTrashParameterTypes38);
1461
1462 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1463 title);
1464
1465 Object returnObj = null;
1466
1467 try {
1468 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1469 }
1470 catch (Exception e) {
1471 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1472 throw (com.liferay.portal.kernel.exception.PortalException)e;
1473 }
1474
1475 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1476 throw (com.liferay.portal.kernel.exception.SystemException)e;
1477 }
1478
1479 throw new com.liferay.portal.kernel.exception.SystemException(e);
1480 }
1481
1482 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1483 }
1484 catch (com.liferay.portal.kernel.exception.SystemException se) {
1485 _log.error(se, se);
1486
1487 throw se;
1488 }
1489 }
1490
1491 public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1492 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1493 double version)
1494 throws com.liferay.portal.kernel.exception.PortalException,
1495 com.liferay.portal.kernel.exception.SystemException {
1496 try {
1497 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1498 "movePageToTrash", _movePageToTrashParameterTypes39);
1499
1500 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1501 title, version);
1502
1503 Object returnObj = null;
1504
1505 try {
1506 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1507 }
1508 catch (Exception e) {
1509 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1510 throw (com.liferay.portal.kernel.exception.PortalException)e;
1511 }
1512
1513 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1514 throw (com.liferay.portal.kernel.exception.SystemException)e;
1515 }
1516
1517 throw new com.liferay.portal.kernel.exception.SystemException(e);
1518 }
1519
1520 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1521 }
1522 catch (com.liferay.portal.kernel.exception.SystemException se) {
1523 _log.error(se, se);
1524
1525 throw se;
1526 }
1527 }
1528
1529 public static void restorePageAttachmentFromTrash(
1530 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1531 java.lang.String fileName)
1532 throws com.liferay.portal.kernel.exception.PortalException,
1533 com.liferay.portal.kernel.exception.SystemException {
1534 try {
1535 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1536 "restorePageAttachmentFromTrash",
1537 _restorePageAttachmentFromTrashParameterTypes40);
1538
1539 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1540 title, fileName);
1541
1542 try {
1543 TunnelUtil.invoke(httpPrincipal, methodHandler);
1544 }
1545 catch (Exception e) {
1546 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1547 throw (com.liferay.portal.kernel.exception.PortalException)e;
1548 }
1549
1550 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1551 throw (com.liferay.portal.kernel.exception.SystemException)e;
1552 }
1553
1554 throw new com.liferay.portal.kernel.exception.SystemException(e);
1555 }
1556 }
1557 catch (com.liferay.portal.kernel.exception.SystemException se) {
1558 _log.error(se, se);
1559
1560 throw se;
1561 }
1562 }
1563
1564 public static void restorePageFromTrash(HttpPrincipal httpPrincipal,
1565 long resourcePrimKey)
1566 throws com.liferay.portal.kernel.exception.PortalException,
1567 com.liferay.portal.kernel.exception.SystemException {
1568 try {
1569 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1570 "restorePageFromTrash",
1571 _restorePageFromTrashParameterTypes41);
1572
1573 MethodHandler methodHandler = new MethodHandler(methodKey,
1574 resourcePrimKey);
1575
1576 try {
1577 TunnelUtil.invoke(httpPrincipal, methodHandler);
1578 }
1579 catch (Exception e) {
1580 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1581 throw (com.liferay.portal.kernel.exception.PortalException)e;
1582 }
1583
1584 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1585 throw (com.liferay.portal.kernel.exception.SystemException)e;
1586 }
1587
1588 throw new com.liferay.portal.kernel.exception.SystemException(e);
1589 }
1590 }
1591 catch (com.liferay.portal.kernel.exception.SystemException se) {
1592 _log.error(se, se);
1593
1594 throw se;
1595 }
1596 }
1597
1598 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
1599 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1600 double version, com.liferay.portal.service.ServiceContext serviceContext)
1601 throws com.liferay.portal.kernel.exception.PortalException,
1602 com.liferay.portal.kernel.exception.SystemException {
1603 try {
1604 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1605 "revertPage", _revertPageParameterTypes42);
1606
1607 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1608 title, version, serviceContext);
1609
1610 Object returnObj = null;
1611
1612 try {
1613 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1614 }
1615 catch (Exception e) {
1616 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1617 throw (com.liferay.portal.kernel.exception.PortalException)e;
1618 }
1619
1620 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1621 throw (com.liferay.portal.kernel.exception.SystemException)e;
1622 }
1623
1624 throw new com.liferay.portal.kernel.exception.SystemException(e);
1625 }
1626
1627 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1628 }
1629 catch (com.liferay.portal.kernel.exception.SystemException se) {
1630 _log.error(se, se);
1631
1632 throw se;
1633 }
1634 }
1635
1636 public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
1637 java.lang.String title)
1638 throws com.liferay.portal.kernel.exception.PortalException,
1639 com.liferay.portal.kernel.exception.SystemException {
1640 try {
1641 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1642 "subscribePage", _subscribePageParameterTypes43);
1643
1644 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1645 title);
1646
1647 try {
1648 TunnelUtil.invoke(httpPrincipal, methodHandler);
1649 }
1650 catch (Exception e) {
1651 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1652 throw (com.liferay.portal.kernel.exception.PortalException)e;
1653 }
1654
1655 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1656 throw (com.liferay.portal.kernel.exception.SystemException)e;
1657 }
1658
1659 throw new com.liferay.portal.kernel.exception.SystemException(e);
1660 }
1661 }
1662 catch (com.liferay.portal.kernel.exception.SystemException se) {
1663 _log.error(se, se);
1664
1665 throw se;
1666 }
1667 }
1668
1669 public static void unsubscribePage(HttpPrincipal httpPrincipal,
1670 long nodeId, java.lang.String title)
1671 throws com.liferay.portal.kernel.exception.PortalException,
1672 com.liferay.portal.kernel.exception.SystemException {
1673 try {
1674 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1675 "unsubscribePage", _unsubscribePageParameterTypes44);
1676
1677 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1678 title);
1679
1680 try {
1681 TunnelUtil.invoke(httpPrincipal, methodHandler);
1682 }
1683 catch (Exception e) {
1684 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1685 throw (com.liferay.portal.kernel.exception.PortalException)e;
1686 }
1687
1688 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1689 throw (com.liferay.portal.kernel.exception.SystemException)e;
1690 }
1691
1692 throw new com.liferay.portal.kernel.exception.SystemException(e);
1693 }
1694 }
1695 catch (com.liferay.portal.kernel.exception.SystemException se) {
1696 _log.error(se, se);
1697
1698 throw se;
1699 }
1700 }
1701
1702 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
1703 HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1704 double version, java.lang.String content, java.lang.String summary,
1705 boolean minorEdit, java.lang.String format,
1706 java.lang.String parentTitle, java.lang.String redirectTitle,
1707 com.liferay.portal.service.ServiceContext serviceContext)
1708 throws com.liferay.portal.kernel.exception.PortalException,
1709 com.liferay.portal.kernel.exception.SystemException {
1710 try {
1711 MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1712 "updatePage", _updatePageParameterTypes45);
1713
1714 MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1715 title, version, content, summary, minorEdit, format,
1716 parentTitle, redirectTitle, serviceContext);
1717
1718 Object returnObj = null;
1719
1720 try {
1721 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1722 }
1723 catch (Exception e) {
1724 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1725 throw (com.liferay.portal.kernel.exception.PortalException)e;
1726 }
1727
1728 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1729 throw (com.liferay.portal.kernel.exception.SystemException)e;
1730 }
1731
1732 throw new com.liferay.portal.kernel.exception.SystemException(e);
1733 }
1734
1735 return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1736 }
1737 catch (com.liferay.portal.kernel.exception.SystemException se) {
1738 _log.error(se, se);
1739
1740 throw se;
1741 }
1742 }
1743
1744 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1745 private static final Class<?>[] _addPageParameterTypes0 = new Class[] {
1746 long.class, java.lang.String.class, java.lang.String.class,
1747 java.lang.String.class, boolean.class,
1748 com.liferay.portal.service.ServiceContext.class
1749 };
1750 private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
1751 long.class, java.lang.String.class, java.lang.String.class,
1752 java.lang.String.class, boolean.class, java.lang.String.class,
1753 java.lang.String.class, java.lang.String.class,
1754 com.liferay.portal.service.ServiceContext.class
1755 };
1756 private static final Class<?>[] _addPageAttachmentParameterTypes2 = new Class[] {
1757 long.class, java.lang.String.class, java.lang.String.class,
1758 java.io.File.class, java.lang.String.class
1759 };
1760 private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
1761 long.class, java.lang.String.class, java.lang.String.class,
1762 java.io.InputStream.class, java.lang.String.class
1763 };
1764 private static final Class<?>[] _addPageAttachmentsParameterTypes4 = new Class[] {
1765 long.class, java.lang.String.class, java.util.List.class
1766 };
1767 private static final Class<?>[] _addTempPageAttachmentParameterTypes5 = new Class[] {
1768 long.class, java.lang.String.class, java.lang.String.class,
1769 java.io.InputStream.class, java.lang.String.class
1770 };
1771 private static final Class<?>[] _changeParentParameterTypes6 = new Class[] {
1772 long.class, java.lang.String.class, java.lang.String.class,
1773 com.liferay.portal.service.ServiceContext.class
1774 };
1775 private static final Class<?>[] _copyPageAttachmentsParameterTypes7 = new Class[] {
1776 long.class, java.lang.String.class, long.class,
1777 java.lang.String.class
1778 };
1779 private static final Class<?>[] _deletePageParameterTypes8 = new Class[] {
1780 long.class, java.lang.String.class
1781 };
1782 private static final Class<?>[] _deletePageParameterTypes9 = new Class[] {
1783 long.class, java.lang.String.class, double.class
1784 };
1785 private static final Class<?>[] _deletePageAttachmentParameterTypes10 = new Class[] {
1786 long.class, java.lang.String.class, java.lang.String.class
1787 };
1788 private static final Class<?>[] _deletePageAttachmentsParameterTypes11 = new Class[] {
1789 long.class, java.lang.String.class
1790 };
1791 private static final Class<?>[] _deleteTempPageAttachmentParameterTypes12 = new Class[] {
1792 long.class, java.lang.String.class, java.lang.String.class
1793 };
1794 private static final Class<?>[] _deleteTrashPageAttachmentsParameterTypes13 = new Class[] {
1795 long.class, java.lang.String.class
1796 };
1797 private static final Class<?>[] _discardDraftParameterTypes14 = new Class[] {
1798 long.class, java.lang.String.class, double.class
1799 };
1800 private static final Class<?>[] _getChildrenParameterTypes15 = new Class[] {
1801 long.class, long.class, boolean.class, java.lang.String.class
1802 };
1803 private static final Class<?>[] _getDraftPageParameterTypes16 = new Class[] {
1804 long.class, java.lang.String.class
1805 };
1806 private static final Class<?>[] _getNodePagesParameterTypes17 = new Class[] {
1807 long.class, int.class
1808 };
1809 private static final Class<?>[] _getNodePagesRSSParameterTypes18 = new Class[] {
1810 long.class, int.class, java.lang.String.class, double.class,
1811 java.lang.String.class, java.lang.String.class,
1812 java.lang.String.class
1813 };
1814 private static final Class<?>[] _getNodePagesRSSParameterTypes19 = new Class[] {
1815 long.class, int.class, java.lang.String.class, double.class,
1816 java.lang.String.class, java.lang.String.class,
1817 java.lang.String.class, java.lang.String.class
1818 };
1819 private static final Class<?>[] _getOrphansParameterTypes20 = new Class[] {
1820 long.class, long.class
1821 };
1822 private static final Class<?>[] _getPageParameterTypes21 = new Class[] {
1823 long.class, long.class, java.lang.String.class
1824 };
1825 private static final Class<?>[] _getPageParameterTypes22 = new Class[] {
1826 long.class, java.lang.String.class
1827 };
1828 private static final Class<?>[] _getPageParameterTypes23 = new Class[] {
1829 long.class, java.lang.String.class, java.lang.Boolean.class
1830 };
1831 private static final Class<?>[] _getPageParameterTypes24 = new Class[] {
1832 long.class, java.lang.String.class, double.class
1833 };
1834 private static final Class<?>[] _getPagesParameterTypes25 = new Class[] {
1835 long.class, long.class, boolean.class, int.class, int.class,
1836 int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1837 };
1838 private static final Class<?>[] _getPagesParameterTypes26 = new Class[] {
1839 long.class, long.class, boolean.class, long.class, boolean.class,
1840 int.class, int.class, int.class,
1841 com.liferay.portal.kernel.util.OrderByComparator.class
1842 };
1843 private static final Class<?>[] _getPagesParameterTypes27 = new Class[] {
1844 long.class, long.class, long.class, int.class, int.class, int.class
1845 };
1846 private static final Class<?>[] _getPagesCountParameterTypes28 = new Class[] {
1847 long.class, long.class, boolean.class
1848 };
1849 private static final Class<?>[] _getPagesCountParameterTypes29 = new Class[] {
1850 long.class, long.class, boolean.class, long.class, boolean.class,
1851 int.class
1852 };
1853 private static final Class<?>[] _getPagesCountParameterTypes30 = new Class[] {
1854 long.class, long.class, long.class, int.class
1855 };
1856 private static final Class<?>[] _getPagesRSSParameterTypes31 = new Class[] {
1857 long.class, long.class, java.lang.String.class, int.class,
1858 java.lang.String.class, double.class, java.lang.String.class,
1859 java.lang.String.class, java.lang.String.class,
1860 java.util.Locale.class
1861 };
1862 private static final Class<?>[] _getPagesRSSParameterTypes32 = new Class[] {
1863 long.class, long.class, java.lang.String.class, int.class,
1864 java.lang.String.class, double.class, java.lang.String.class,
1865 java.lang.String.class, java.lang.String.class,
1866 java.lang.String.class, java.util.Locale.class
1867 };
1868 private static final Class<?>[] _getRecentChangesParameterTypes33 = new Class[] {
1869 long.class, long.class, int.class, int.class
1870 };
1871 private static final Class<?>[] _getRecentChangesCountParameterTypes34 = new Class[] {
1872 long.class, long.class
1873 };
1874 private static final Class<?>[] _getTempPageAttachmentNamesParameterTypes35 = new Class[] {
1875 long.class, java.lang.String.class
1876 };
1877 private static final Class<?>[] _movePageParameterTypes36 = new Class[] {
1878 long.class, java.lang.String.class, java.lang.String.class,
1879 com.liferay.portal.service.ServiceContext.class
1880 };
1881 private static final Class<?>[] _movePageAttachmentToTrashParameterTypes37 = new Class[] {
1882 long.class, java.lang.String.class, java.lang.String.class
1883 };
1884 private static final Class<?>[] _movePageToTrashParameterTypes38 = new Class[] {
1885 long.class, java.lang.String.class
1886 };
1887 private static final Class<?>[] _movePageToTrashParameterTypes39 = new Class[] {
1888 long.class, java.lang.String.class, double.class
1889 };
1890 private static final Class<?>[] _restorePageAttachmentFromTrashParameterTypes40 =
1891 new Class[] { long.class, java.lang.String.class, java.lang.String.class };
1892 private static final Class<?>[] _restorePageFromTrashParameterTypes41 = new Class[] {
1893 long.class
1894 };
1895 private static final Class<?>[] _revertPageParameterTypes42 = new Class[] {
1896 long.class, java.lang.String.class, double.class,
1897 com.liferay.portal.service.ServiceContext.class
1898 };
1899 private static final Class<?>[] _subscribePageParameterTypes43 = new Class[] {
1900 long.class, java.lang.String.class
1901 };
1902 private static final Class<?>[] _unsubscribePageParameterTypes44 = new Class[] {
1903 long.class, java.lang.String.class
1904 };
1905 private static final Class<?>[] _updatePageParameterTypes45 = new Class[] {
1906 long.class, java.lang.String.class, double.class,
1907 java.lang.String.class, java.lang.String.class, boolean.class,
1908 java.lang.String.class, java.lang.String.class,
1909 java.lang.String.class,
1910 com.liferay.portal.service.ServiceContext.class
1911 };
1912 }