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 changeParent(long nodeId, java.lang.String title,
122 java.lang.String newParentTitle,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws RemoteException {
125 try {
126 WikiPageServiceUtil.changeParent(nodeId, title, newParentTitle,
127 serviceContext);
128 }
129 catch (Exception e) {
130 _log.error(e, e);
131
132 throw new RemoteException(e.getMessage());
133 }
134 }
135
136 public static void copyPageAttachments(long templateNodeId,
137 java.lang.String templateTitle, long nodeId, java.lang.String title)
138 throws RemoteException {
139 try {
140 WikiPageServiceUtil.copyPageAttachments(templateNodeId,
141 templateTitle, nodeId, title);
142 }
143 catch (Exception e) {
144 _log.error(e, e);
145
146 throw new RemoteException(e.getMessage());
147 }
148 }
149
150 public static void deletePage(long nodeId, java.lang.String title)
151 throws RemoteException {
152 try {
153 WikiPageServiceUtil.deletePage(nodeId, title);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162
166 public static void deletePage(long nodeId, java.lang.String title,
167 double version) throws RemoteException {
168 try {
169 WikiPageServiceUtil.deletePage(nodeId, title, version);
170 }
171 catch (Exception e) {
172 _log.error(e, e);
173
174 throw new RemoteException(e.getMessage());
175 }
176 }
177
178 public static void deletePageAttachment(long nodeId,
179 java.lang.String title, java.lang.String fileName)
180 throws RemoteException {
181 try {
182 WikiPageServiceUtil.deletePageAttachment(nodeId, title, fileName);
183 }
184 catch (Exception e) {
185 _log.error(e, e);
186
187 throw new RemoteException(e.getMessage());
188 }
189 }
190
191 public static void deletePageAttachments(long nodeId, java.lang.String title)
192 throws RemoteException {
193 try {
194 WikiPageServiceUtil.deletePageAttachments(nodeId, title);
195 }
196 catch (Exception e) {
197 _log.error(e, e);
198
199 throw new RemoteException(e.getMessage());
200 }
201 }
202
203 public static void deleteTempPageAttachment(long nodeId,
204 java.lang.String fileName, java.lang.String tempFolderName)
205 throws RemoteException {
206 try {
207 WikiPageServiceUtil.deleteTempPageAttachment(nodeId, fileName,
208 tempFolderName);
209 }
210 catch (Exception e) {
211 _log.error(e, e);
212
213 throw new RemoteException(e.getMessage());
214 }
215 }
216
217 public static void deleteTrashPageAttachments(long nodeId,
218 java.lang.String title) throws RemoteException {
219 try {
220 WikiPageServiceUtil.deleteTrashPageAttachments(nodeId, title);
221 }
222 catch (Exception e) {
223 _log.error(e, e);
224
225 throw new RemoteException(e.getMessage());
226 }
227 }
228
229 public static void discardDraft(long nodeId, java.lang.String title,
230 double version) throws RemoteException {
231 try {
232 WikiPageServiceUtil.discardDraft(nodeId, title, version);
233 }
234 catch (Exception e) {
235 _log.error(e, e);
236
237 throw new RemoteException(e.getMessage());
238 }
239 }
240
241 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getChildren(
242 long groupId, long nodeId, boolean head, java.lang.String parentTitle)
243 throws RemoteException {
244 try {
245 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getChildren(groupId,
246 nodeId, head, parentTitle);
247
248 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
249 }
250 catch (Exception e) {
251 _log.error(e, e);
252
253 throw new RemoteException(e.getMessage());
254 }
255 }
256
257 public static com.liferay.portlet.wiki.model.WikiPageSoap getDraftPage(
258 long nodeId, java.lang.String title) throws RemoteException {
259 try {
260 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getDraftPage(nodeId,
261 title);
262
263 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
264 }
265 catch (Exception e) {
266 _log.error(e, e);
267
268 throw new RemoteException(e.getMessage());
269 }
270 }
271
272 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getNodePages(
273 long nodeId, int max) throws RemoteException {
274 try {
275 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getNodePages(nodeId,
276 max);
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
291 public static java.lang.String getNodePagesRSS(long nodeId, int max,
292 java.lang.String type, double version, java.lang.String displayStyle,
293 java.lang.String feedURL, java.lang.String entryURL)
294 throws RemoteException {
295 try {
296 java.lang.String returnValue = WikiPageServiceUtil.getNodePagesRSS(nodeId,
297 max, type, version, displayStyle, feedURL, entryURL);
298
299 return returnValue;
300 }
301 catch (Exception e) {
302 _log.error(e, e);
303
304 throw new RemoteException(e.getMessage());
305 }
306 }
307
308 public static java.lang.String getNodePagesRSS(long nodeId, int max,
309 java.lang.String type, double version, java.lang.String displayStyle,
310 java.lang.String feedURL, java.lang.String entryURL,
311 java.lang.String attachmentURLPrefix) throws RemoteException {
312 try {
313 java.lang.String returnValue = WikiPageServiceUtil.getNodePagesRSS(nodeId,
314 max, type, version, displayStyle, feedURL, entryURL,
315 attachmentURLPrefix);
316
317 return returnValue;
318 }
319 catch (Exception e) {
320 _log.error(e, e);
321
322 throw new RemoteException(e.getMessage());
323 }
324 }
325
326 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getOrphans(
327 long groupId, long nodeId) throws RemoteException {
328 try {
329 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getOrphans(groupId,
330 nodeId);
331
332 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
333 }
334 catch (Exception e) {
335 _log.error(e, e);
336
337 throw new RemoteException(e.getMessage());
338 }
339 }
340
341 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
342 long groupId, long nodeId, java.lang.String title)
343 throws RemoteException {
344 try {
345 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(groupId,
346 nodeId, title);
347
348 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(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 getPage(
358 long nodeId, java.lang.String title) throws RemoteException {
359 try {
360 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
361 title);
362
363 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(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 nodeId, java.lang.String title, java.lang.Boolean head)
374 throws RemoteException {
375 try {
376 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
377 title, head);
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, double version)
390 throws RemoteException {
391 try {
392 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
393 title, version);
394
395 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
396 }
397 catch (Exception e) {
398 _log.error(e, e);
399
400 throw new RemoteException(e.getMessage());
401 }
402 }
403
404 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getPages(
405 long groupId, long nodeId, boolean head, int status, int start,
406 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
407 throws RemoteException {
408 try {
409 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getPages(groupId,
410 nodeId, head, status, start, end, obc);
411
412 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
413 }
414 catch (Exception e) {
415 _log.error(e, e);
416
417 throw new RemoteException(e.getMessage());
418 }
419 }
420
421 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getPages(
422 long groupId, long userId, long nodeId, int status, int start, int end)
423 throws RemoteException {
424 try {
425 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getPages(groupId,
426 userId, nodeId, status, start, end);
427
428 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
429 }
430 catch (Exception e) {
431 _log.error(e, e);
432
433 throw new RemoteException(e.getMessage());
434 }
435 }
436
437 public static int getPagesCount(long groupId, long nodeId, boolean head)
438 throws RemoteException {
439 try {
440 int returnValue = WikiPageServiceUtil.getPagesCount(groupId,
441 nodeId, head);
442
443 return returnValue;
444 }
445 catch (Exception e) {
446 _log.error(e, e);
447
448 throw new RemoteException(e.getMessage());
449 }
450 }
451
452 public static int getPagesCount(long groupId, long userId, long nodeId,
453 int status) throws RemoteException {
454 try {
455 int returnValue = WikiPageServiceUtil.getPagesCount(groupId,
456 userId, nodeId, status);
457
458 return returnValue;
459 }
460 catch (Exception e) {
461 _log.error(e, e);
462
463 throw new RemoteException(e.getMessage());
464 }
465 }
466
467
472 public static java.lang.String getPagesRSS(long companyId, long nodeId,
473 java.lang.String title, int max, java.lang.String type, double version,
474 java.lang.String displayStyle, java.lang.String feedURL,
475 java.lang.String entryURL, String locale) throws RemoteException {
476 try {
477 java.lang.String returnValue = WikiPageServiceUtil.getPagesRSS(companyId,
478 nodeId, title, max, type, version, displayStyle, feedURL,
479 entryURL, LocaleUtil.fromLanguageId(locale));
480
481 return returnValue;
482 }
483 catch (Exception e) {
484 _log.error(e, e);
485
486 throw new RemoteException(e.getMessage());
487 }
488 }
489
490 public static java.lang.String getPagesRSS(long companyId, long nodeId,
491 java.lang.String title, int max, java.lang.String type, double version,
492 java.lang.String displayStyle, java.lang.String feedURL,
493 java.lang.String entryURL, java.lang.String attachmentURLPrefix,
494 String locale) throws RemoteException {
495 try {
496 java.lang.String returnValue = WikiPageServiceUtil.getPagesRSS(companyId,
497 nodeId, title, max, type, version, displayStyle, feedURL,
498 entryURL, attachmentURLPrefix,
499 LocaleUtil.fromLanguageId(locale));
500
501 return returnValue;
502 }
503 catch (Exception e) {
504 _log.error(e, e);
505
506 throw new RemoteException(e.getMessage());
507 }
508 }
509
510 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getRecentChanges(
511 long groupId, long nodeId, int start, int end)
512 throws RemoteException {
513 try {
514 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getRecentChanges(groupId,
515 nodeId, start, end);
516
517 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
518 }
519 catch (Exception e) {
520 _log.error(e, e);
521
522 throw new RemoteException(e.getMessage());
523 }
524 }
525
526 public static int getRecentChangesCount(long groupId, long nodeId)
527 throws RemoteException {
528 try {
529 int returnValue = WikiPageServiceUtil.getRecentChangesCount(groupId,
530 nodeId);
531
532 return returnValue;
533 }
534 catch (Exception e) {
535 _log.error(e, e);
536
537 throw new RemoteException(e.getMessage());
538 }
539 }
540
541 public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
542 java.lang.String tempFolderName) throws RemoteException {
543 try {
544 java.lang.String[] returnValue = WikiPageServiceUtil.getTempPageAttachmentNames(nodeId,
545 tempFolderName);
546
547 return returnValue;
548 }
549 catch (Exception e) {
550 _log.error(e, e);
551
552 throw new RemoteException(e.getMessage());
553 }
554 }
555
556 public static void movePage(long nodeId, java.lang.String title,
557 java.lang.String newTitle,
558 com.liferay.portal.service.ServiceContext serviceContext)
559 throws RemoteException {
560 try {
561 WikiPageServiceUtil.movePage(nodeId, title, newTitle, serviceContext);
562 }
563 catch (Exception e) {
564 _log.error(e, e);
565
566 throw new RemoteException(e.getMessage());
567 }
568 }
569
570 public static com.liferay.portal.kernel.repository.model.FileEntrySoap movePageAttachmentToTrash(
571 long nodeId, java.lang.String title, java.lang.String fileName)
572 throws RemoteException {
573 try {
574 com.liferay.portal.kernel.repository.model.FileEntry returnValue = WikiPageServiceUtil.movePageAttachmentToTrash(nodeId,
575 title, fileName);
576
577 return com.liferay.portal.kernel.repository.model.FileEntrySoap.toSoapModel(returnValue);
578 }
579 catch (Exception e) {
580 _log.error(e, e);
581
582 throw new RemoteException(e.getMessage());
583 }
584 }
585
586 public static com.liferay.portlet.wiki.model.WikiPageSoap movePageToTrash(
587 long nodeId, java.lang.String title) throws RemoteException {
588 try {
589 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.movePageToTrash(nodeId,
590 title);
591
592 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
593 }
594 catch (Exception e) {
595 _log.error(e, e);
596
597 throw new RemoteException(e.getMessage());
598 }
599 }
600
601 public static com.liferay.portlet.wiki.model.WikiPageSoap movePageToTrash(
602 long nodeId, java.lang.String title, double version)
603 throws RemoteException {
604 try {
605 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.movePageToTrash(nodeId,
606 title, version);
607
608 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
609 }
610 catch (Exception e) {
611 _log.error(e, e);
612
613 throw new RemoteException(e.getMessage());
614 }
615 }
616
617 public static void restorePageAttachmentFromTrash(long nodeId,
618 java.lang.String title, java.lang.String fileName)
619 throws RemoteException {
620 try {
621 WikiPageServiceUtil.restorePageAttachmentFromTrash(nodeId, title,
622 fileName);
623 }
624 catch (Exception e) {
625 _log.error(e, e);
626
627 throw new RemoteException(e.getMessage());
628 }
629 }
630
631 public static void restorePageFromTrash(long resourcePrimKey)
632 throws RemoteException {
633 try {
634 WikiPageServiceUtil.restorePageFromTrash(resourcePrimKey);
635 }
636 catch (Exception e) {
637 _log.error(e, e);
638
639 throw new RemoteException(e.getMessage());
640 }
641 }
642
643 public static com.liferay.portlet.wiki.model.WikiPageSoap revertPage(
644 long nodeId, java.lang.String title, double version,
645 com.liferay.portal.service.ServiceContext serviceContext)
646 throws RemoteException {
647 try {
648 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.revertPage(nodeId,
649 title, version, serviceContext);
650
651 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
652 }
653 catch (Exception e) {
654 _log.error(e, e);
655
656 throw new RemoteException(e.getMessage());
657 }
658 }
659
660 public static void subscribePage(long nodeId, java.lang.String title)
661 throws RemoteException {
662 try {
663 WikiPageServiceUtil.subscribePage(nodeId, title);
664 }
665 catch (Exception e) {
666 _log.error(e, e);
667
668 throw new RemoteException(e.getMessage());
669 }
670 }
671
672 public static void unsubscribePage(long nodeId, java.lang.String title)
673 throws RemoteException {
674 try {
675 WikiPageServiceUtil.unsubscribePage(nodeId, title);
676 }
677 catch (Exception e) {
678 _log.error(e, e);
679
680 throw new RemoteException(e.getMessage());
681 }
682 }
683
684 public static com.liferay.portlet.wiki.model.WikiPageSoap updatePage(
685 long nodeId, java.lang.String title, double version,
686 java.lang.String content, java.lang.String summary, boolean minorEdit,
687 java.lang.String format, java.lang.String parentTitle,
688 java.lang.String redirectTitle,
689 com.liferay.portal.service.ServiceContext serviceContext)
690 throws RemoteException {
691 try {
692 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.updatePage(nodeId,
693 title, version, content, summary, minorEdit, format,
694 parentTitle, redirectTitle, serviceContext);
695
696 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
697 }
698 catch (Exception e) {
699 _log.error(e, e);
700
701 throw new RemoteException(e.getMessage());
702 }
703 }
704
705 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceSoap.class);
706 }