001
014
015 package com.liferay.portlet.wiki.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.LocaleUtil;
022
023 import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
024
025 import java.rmi.RemoteException;
026
027
067 @ProviderType
068 public class WikiPageServiceSoap {
069 public static com.liferay.portlet.wiki.model.WikiPageSoap addPage(
070 long nodeId, java.lang.String title, java.lang.String content,
071 java.lang.String summary, boolean minorEdit,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws RemoteException {
074 try {
075 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage(nodeId,
076 title, content, summary, minorEdit, serviceContext);
077
078 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
079 }
080 catch (Exception e) {
081 _log.error(e, e);
082
083 throw new RemoteException(e.getMessage());
084 }
085 }
086
087 public static com.liferay.portlet.wiki.model.WikiPageSoap addPage(
088 long nodeId, java.lang.String title, java.lang.String content,
089 java.lang.String summary, boolean minorEdit, java.lang.String format,
090 java.lang.String parentTitle, java.lang.String redirectTitle,
091 com.liferay.portal.service.ServiceContext serviceContext)
092 throws RemoteException {
093 try {
094 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage(nodeId,
095 title, content, summary, minorEdit, format, parentTitle,
096 redirectTitle, serviceContext);
097
098 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static void addPageAttachments(long nodeId, java.lang.String title,
108 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
109 throws RemoteException {
110 try {
111 WikiPageServiceUtil.addPageAttachments(nodeId, title,
112 inputStreamOVPs);
113 }
114 catch (Exception e) {
115 _log.error(e, e);
116
117 throw new RemoteException(e.getMessage());
118 }
119 }
120
121 public static void changeNode(long nodeId, java.lang.String title,
122 long newNodeId, com.liferay.portal.service.ServiceContext serviceContext)
123 throws RemoteException {
124 try {
125 WikiPageServiceUtil.changeNode(nodeId, title, newNodeId,
126 serviceContext);
127 }
128 catch (Exception e) {
129 _log.error(e, e);
130
131 throw new RemoteException(e.getMessage());
132 }
133 }
134
135 public static void changeParent(long nodeId, java.lang.String title,
136 java.lang.String newParentTitle,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws RemoteException {
139 try {
140 WikiPageServiceUtil.changeParent(nodeId, title, newParentTitle,
141 serviceContext);
142 }
143 catch (Exception e) {
144 _log.error(e, e);
145
146 throw new RemoteException(e.getMessage());
147 }
148 }
149
150 public static void copyPageAttachments(long templateNodeId,
151 java.lang.String templateTitle, long nodeId, java.lang.String title)
152 throws RemoteException {
153 try {
154 WikiPageServiceUtil.copyPageAttachments(templateNodeId,
155 templateTitle, nodeId, title);
156 }
157 catch (Exception e) {
158 _log.error(e, e);
159
160 throw new RemoteException(e.getMessage());
161 }
162 }
163
164 public static void deletePage(long nodeId, java.lang.String title)
165 throws RemoteException {
166 try {
167 WikiPageServiceUtil.deletePage(nodeId, title);
168 }
169 catch (Exception e) {
170 _log.error(e, e);
171
172 throw new RemoteException(e.getMessage());
173 }
174 }
175
176
180 @Deprecated
181 public static void deletePage(long nodeId, java.lang.String title,
182 double version) throws RemoteException {
183 try {
184 WikiPageServiceUtil.deletePage(nodeId, title, version);
185 }
186 catch (Exception e) {
187 _log.error(e, e);
188
189 throw new RemoteException(e.getMessage());
190 }
191 }
192
193 public static void deletePageAttachment(long nodeId,
194 java.lang.String title, java.lang.String fileName)
195 throws RemoteException {
196 try {
197 WikiPageServiceUtil.deletePageAttachment(nodeId, title, fileName);
198 }
199 catch (Exception e) {
200 _log.error(e, e);
201
202 throw new RemoteException(e.getMessage());
203 }
204 }
205
206 public static void deletePageAttachments(long nodeId, java.lang.String title)
207 throws RemoteException {
208 try {
209 WikiPageServiceUtil.deletePageAttachments(nodeId, title);
210 }
211 catch (Exception e) {
212 _log.error(e, e);
213
214 throw new RemoteException(e.getMessage());
215 }
216 }
217
218 public static void deleteTempFileEntry(long nodeId,
219 java.lang.String folderName, java.lang.String fileName)
220 throws RemoteException {
221 try {
222 WikiPageServiceUtil.deleteTempFileEntry(nodeId, folderName, fileName);
223 }
224 catch (Exception e) {
225 _log.error(e, e);
226
227 throw new RemoteException(e.getMessage());
228 }
229 }
230
231 public static void deleteTrashPageAttachments(long nodeId,
232 java.lang.String title) throws RemoteException {
233 try {
234 WikiPageServiceUtil.deleteTrashPageAttachments(nodeId, title);
235 }
236 catch (Exception e) {
237 _log.error(e, e);
238
239 throw new RemoteException(e.getMessage());
240 }
241 }
242
243 public static void discardDraft(long nodeId, java.lang.String title,
244 double version) throws RemoteException {
245 try {
246 WikiPageServiceUtil.discardDraft(nodeId, title, version);
247 }
248 catch (Exception e) {
249 _log.error(e, e);
250
251 throw new RemoteException(e.getMessage());
252 }
253 }
254
255 public static com.liferay.portlet.wiki.model.WikiPageSoap fetchPage(
256 long nodeId, java.lang.String title, double version)
257 throws RemoteException {
258 try {
259 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.fetchPage(nodeId,
260 title, version);
261
262 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
263 }
264 catch (Exception e) {
265 _log.error(e, e);
266
267 throw new RemoteException(e.getMessage());
268 }
269 }
270
271 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getChildren(
272 long groupId, long nodeId, boolean head, java.lang.String parentTitle)
273 throws RemoteException {
274 try {
275 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getChildren(groupId,
276 nodeId, head, parentTitle);
277
278 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
279 }
280 catch (Exception e) {
281 _log.error(e, e);
282
283 throw new RemoteException(e.getMessage());
284 }
285 }
286
287 public static com.liferay.portlet.wiki.model.WikiPageSoap getDraftPage(
288 long nodeId, java.lang.String title) throws RemoteException {
289 try {
290 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getDraftPage(nodeId,
291 title);
292
293 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
294 }
295 catch (Exception e) {
296 _log.error(e, e);
297
298 throw new RemoteException(e.getMessage());
299 }
300 }
301
302 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getNodePages(
303 long nodeId, int max) throws RemoteException {
304 try {
305 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getNodePages(nodeId,
306 max);
307
308 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
309 }
310 catch (Exception e) {
311 _log.error(e, e);
312
313 throw new RemoteException(e.getMessage());
314 }
315 }
316
317
321 @Deprecated
322 public static java.lang.String getNodePagesRSS(long nodeId, int max,
323 java.lang.String type, double version, java.lang.String displayStyle,
324 java.lang.String feedURL, java.lang.String entryURL)
325 throws RemoteException {
326 try {
327 java.lang.String returnValue = WikiPageServiceUtil.getNodePagesRSS(nodeId,
328 max, type, version, displayStyle, feedURL, entryURL);
329
330 return returnValue;
331 }
332 catch (Exception e) {
333 _log.error(e, e);
334
335 throw new RemoteException(e.getMessage());
336 }
337 }
338
339 public static java.lang.String getNodePagesRSS(long nodeId, int max,
340 java.lang.String type, double version, java.lang.String displayStyle,
341 java.lang.String feedURL, java.lang.String entryURL,
342 java.lang.String attachmentURLPrefix) throws RemoteException {
343 try {
344 java.lang.String returnValue = WikiPageServiceUtil.getNodePagesRSS(nodeId,
345 max, type, version, displayStyle, feedURL, entryURL,
346 attachmentURLPrefix);
347
348 return returnValue;
349 }
350 catch (Exception e) {
351 _log.error(e, e);
352
353 throw new RemoteException(e.getMessage());
354 }
355 }
356
357 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getOrphans(
358 long groupId, long nodeId) throws RemoteException {
359 try {
360 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getOrphans(groupId,
361 nodeId);
362
363 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
364 }
365 catch (Exception e) {
366 _log.error(e, e);
367
368 throw new RemoteException(e.getMessage());
369 }
370 }
371
372 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
373 long groupId, long nodeId, java.lang.String title)
374 throws RemoteException {
375 try {
376 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(groupId,
377 nodeId, title);
378
379 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
380 }
381 catch (Exception e) {
382 _log.error(e, e);
383
384 throw new RemoteException(e.getMessage());
385 }
386 }
387
388 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
389 long nodeId, java.lang.String title) throws RemoteException {
390 try {
391 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
392 title);
393
394 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
395 }
396 catch (Exception e) {
397 _log.error(e, e);
398
399 throw new RemoteException(e.getMessage());
400 }
401 }
402
403 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
404 long nodeId, java.lang.String title, java.lang.Boolean head)
405 throws RemoteException {
406 try {
407 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
408 title, head);
409
410 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
411 }
412 catch (Exception e) {
413 _log.error(e, e);
414
415 throw new RemoteException(e.getMessage());
416 }
417 }
418
419 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
420 long nodeId, java.lang.String title, double version)
421 throws RemoteException {
422 try {
423 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
424 title, version);
425
426 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
427 }
428 catch (Exception e) {
429 _log.error(e, e);
430
431 throw new RemoteException(e.getMessage());
432 }
433 }
434
435 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getPages(
436 long groupId, long nodeId, boolean head, int status, int start,
437 int end,
438 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiPage> obc)
439 throws RemoteException {
440 try {
441 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getPages(groupId,
442 nodeId, head, status, start, end, obc);
443
444 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
445 }
446 catch (Exception e) {
447 _log.error(e, e);
448
449 throw new RemoteException(e.getMessage());
450 }
451 }
452
453 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getPages(
454 long groupId, long userId, long nodeId, int status, int start, int end)
455 throws RemoteException {
456 try {
457 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getPages(groupId,
458 userId, nodeId, status, start, end);
459
460 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
461 }
462 catch (Exception e) {
463 _log.error(e, e);
464
465 throw new RemoteException(e.getMessage());
466 }
467 }
468
469 public static int getPagesCount(long groupId, long nodeId, boolean head)
470 throws RemoteException {
471 try {
472 int returnValue = WikiPageServiceUtil.getPagesCount(groupId,
473 nodeId, head);
474
475 return returnValue;
476 }
477 catch (Exception e) {
478 _log.error(e, e);
479
480 throw new RemoteException(e.getMessage());
481 }
482 }
483
484 public static int getPagesCount(long groupId, long userId, long nodeId,
485 int status) throws RemoteException {
486 try {
487 int returnValue = WikiPageServiceUtil.getPagesCount(groupId,
488 userId, nodeId, status);
489
490 return returnValue;
491 }
492 catch (Exception e) {
493 _log.error(e, e);
494
495 throw new RemoteException(e.getMessage());
496 }
497 }
498
499
504 @Deprecated
505 public static java.lang.String getPagesRSS(long companyId, long nodeId,
506 java.lang.String title, int max, java.lang.String type, double version,
507 java.lang.String displayStyle, java.lang.String feedURL,
508 java.lang.String entryURL, String locale) throws RemoteException {
509 try {
510 java.lang.String returnValue = WikiPageServiceUtil.getPagesRSS(companyId,
511 nodeId, title, max, type, version, displayStyle, feedURL,
512 entryURL, LocaleUtil.fromLanguageId(locale));
513
514 return returnValue;
515 }
516 catch (Exception e) {
517 _log.error(e, e);
518
519 throw new RemoteException(e.getMessage());
520 }
521 }
522
523 public static java.lang.String getPagesRSS(long companyId, long nodeId,
524 java.lang.String title, int max, java.lang.String type, double version,
525 java.lang.String displayStyle, java.lang.String feedURL,
526 java.lang.String entryURL, java.lang.String attachmentURLPrefix,
527 String locale) throws RemoteException {
528 try {
529 java.lang.String returnValue = WikiPageServiceUtil.getPagesRSS(companyId,
530 nodeId, title, max, type, version, displayStyle, feedURL,
531 entryURL, attachmentURLPrefix,
532 LocaleUtil.fromLanguageId(locale));
533
534 return returnValue;
535 }
536 catch (Exception e) {
537 _log.error(e, e);
538
539 throw new RemoteException(e.getMessage());
540 }
541 }
542
543 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getRecentChanges(
544 long groupId, long nodeId, int start, int end)
545 throws RemoteException {
546 try {
547 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getRecentChanges(groupId,
548 nodeId, start, end);
549
550 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
551 }
552 catch (Exception e) {
553 _log.error(e, e);
554
555 throw new RemoteException(e.getMessage());
556 }
557 }
558
559 public static int getRecentChangesCount(long groupId, long nodeId)
560 throws RemoteException {
561 try {
562 int returnValue = WikiPageServiceUtil.getRecentChangesCount(groupId,
563 nodeId);
564
565 return returnValue;
566 }
567 catch (Exception e) {
568 _log.error(e, e);
569
570 throw new RemoteException(e.getMessage());
571 }
572 }
573
574 public static java.lang.String[] getTempFileNames(long nodeId,
575 java.lang.String folderName) throws RemoteException {
576 try {
577 java.lang.String[] returnValue = WikiPageServiceUtil.getTempFileNames(nodeId,
578 folderName);
579
580 return returnValue;
581 }
582 catch (Exception e) {
583 _log.error(e, e);
584
585 throw new RemoteException(e.getMessage());
586 }
587 }
588
589
593 @Deprecated
594 public static void movePage(long nodeId, java.lang.String title,
595 java.lang.String newTitle,
596 com.liferay.portal.service.ServiceContext serviceContext)
597 throws RemoteException {
598 try {
599 WikiPageServiceUtil.movePage(nodeId, title, newTitle, serviceContext);
600 }
601 catch (Exception e) {
602 _log.error(e, e);
603
604 throw new RemoteException(e.getMessage());
605 }
606 }
607
608 public static com.liferay.portal.kernel.repository.model.FileEntrySoap movePageAttachmentToTrash(
609 long nodeId, java.lang.String title, java.lang.String fileName)
610 throws RemoteException {
611 try {
612 com.liferay.portal.kernel.repository.model.FileEntry returnValue = WikiPageServiceUtil.movePageAttachmentToTrash(nodeId,
613 title, fileName);
614
615 return com.liferay.portal.kernel.repository.model.FileEntrySoap.toSoapModel(returnValue);
616 }
617 catch (Exception e) {
618 _log.error(e, e);
619
620 throw new RemoteException(e.getMessage());
621 }
622 }
623
624 public static com.liferay.portlet.wiki.model.WikiPageSoap movePageToTrash(
625 long nodeId, java.lang.String title) throws RemoteException {
626 try {
627 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.movePageToTrash(nodeId,
628 title);
629
630 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
631 }
632 catch (Exception e) {
633 _log.error(e, e);
634
635 throw new RemoteException(e.getMessage());
636 }
637 }
638
639 public static com.liferay.portlet.wiki.model.WikiPageSoap movePageToTrash(
640 long nodeId, java.lang.String title, double version)
641 throws RemoteException {
642 try {
643 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.movePageToTrash(nodeId,
644 title, version);
645
646 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
647 }
648 catch (Exception e) {
649 _log.error(e, e);
650
651 throw new RemoteException(e.getMessage());
652 }
653 }
654
655 public static void renamePage(long nodeId, java.lang.String title,
656 java.lang.String newTitle,
657 com.liferay.portal.service.ServiceContext serviceContext)
658 throws RemoteException {
659 try {
660 WikiPageServiceUtil.renamePage(nodeId, title, newTitle,
661 serviceContext);
662 }
663 catch (Exception e) {
664 _log.error(e, e);
665
666 throw new RemoteException(e.getMessage());
667 }
668 }
669
670 public static void restorePageAttachmentFromTrash(long nodeId,
671 java.lang.String title, java.lang.String fileName)
672 throws RemoteException {
673 try {
674 WikiPageServiceUtil.restorePageAttachmentFromTrash(nodeId, title,
675 fileName);
676 }
677 catch (Exception e) {
678 _log.error(e, e);
679
680 throw new RemoteException(e.getMessage());
681 }
682 }
683
684 public static void restorePageFromTrash(long resourcePrimKey)
685 throws RemoteException {
686 try {
687 WikiPageServiceUtil.restorePageFromTrash(resourcePrimKey);
688 }
689 catch (Exception e) {
690 _log.error(e, e);
691
692 throw new RemoteException(e.getMessage());
693 }
694 }
695
696 public static com.liferay.portlet.wiki.model.WikiPageSoap revertPage(
697 long nodeId, java.lang.String title, double version,
698 com.liferay.portal.service.ServiceContext serviceContext)
699 throws RemoteException {
700 try {
701 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.revertPage(nodeId,
702 title, version, serviceContext);
703
704 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
705 }
706 catch (Exception e) {
707 _log.error(e, e);
708
709 throw new RemoteException(e.getMessage());
710 }
711 }
712
713 public static void subscribePage(long nodeId, java.lang.String title)
714 throws RemoteException {
715 try {
716 WikiPageServiceUtil.subscribePage(nodeId, title);
717 }
718 catch (Exception e) {
719 _log.error(e, e);
720
721 throw new RemoteException(e.getMessage());
722 }
723 }
724
725 public static void unsubscribePage(long nodeId, java.lang.String title)
726 throws RemoteException {
727 try {
728 WikiPageServiceUtil.unsubscribePage(nodeId, title);
729 }
730 catch (Exception e) {
731 _log.error(e, e);
732
733 throw new RemoteException(e.getMessage());
734 }
735 }
736
737 public static com.liferay.portlet.wiki.model.WikiPageSoap updatePage(
738 long nodeId, java.lang.String title, double version,
739 java.lang.String content, java.lang.String summary, boolean minorEdit,
740 java.lang.String format, java.lang.String parentTitle,
741 java.lang.String redirectTitle,
742 com.liferay.portal.service.ServiceContext serviceContext)
743 throws RemoteException {
744 try {
745 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.updatePage(nodeId,
746 title, version, content, summary, minorEdit, format,
747 parentTitle, redirectTitle, serviceContext);
748
749 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
750 }
751 catch (Exception e) {
752 _log.error(e, e);
753
754 throw new RemoteException(e.getMessage());
755 }
756 }
757
758 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceSoap.class);
759 }