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