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