1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.wiki.service.http;
16  
17  import com.liferay.portal.kernel.log.Log;
18  import com.liferay.portal.kernel.log.LogFactoryUtil;
19  import com.liferay.portal.kernel.util.BooleanWrapper;
20  import com.liferay.portal.kernel.util.DoubleWrapper;
21  import com.liferay.portal.kernel.util.IntegerWrapper;
22  import com.liferay.portal.kernel.util.LongWrapper;
23  import com.liferay.portal.kernel.util.MethodWrapper;
24  import com.liferay.portal.kernel.util.NullWrapper;
25  import com.liferay.portal.security.auth.HttpPrincipal;
26  import com.liferay.portal.service.http.TunnelUtil;
27  
28  import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
29  
30  /**
31   * <a href="WikiPageServiceHttp.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class provides a HTTP utility for the
40   * {@link com.liferay.portlet.wiki.service.WikiPageServiceUtil} service utility. The
41   * static methods of this class calls the same methods of the service utility.
42   * However, the signatures are different because it requires an additional
43   * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
44   * </p>
45   *
46   * <p>
47   * The benefits of using the HTTP utility is that it is fast and allows for
48   * tunneling without the cost of serializing to text. The drawback is that it
49   * only works with Java.
50   * </p>
51   *
52   * <p>
53   * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
54   * configure security.
55   * </p>
56   *
57   * <p>
58   * The HTTP utility is only generated for remote services.
59   * </p>
60   *
61   * @author    Brian Wing Shun Chan
62   * @see       WikiPageServiceSoap
63   * @see       com.liferay.portal.security.auth.HttpPrincipal
64   * @see       com.liferay.portlet.wiki.service.WikiPageServiceUtil
65   * @generated
66   */
67  public class WikiPageServiceHttp {
68      public static com.liferay.portlet.wiki.model.WikiPage addPage(
69          HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
70          java.lang.String content, java.lang.String summary, boolean minorEdit,
71          com.liferay.portal.service.ServiceContext serviceContext)
72          throws com.liferay.portal.kernel.exception.PortalException,
73              com.liferay.portal.kernel.exception.SystemException {
74          try {
75              Object paramObj0 = new LongWrapper(nodeId);
76  
77              Object paramObj1 = title;
78  
79              if (title == null) {
80                  paramObj1 = new NullWrapper("java.lang.String");
81              }
82  
83              Object paramObj2 = content;
84  
85              if (content == null) {
86                  paramObj2 = new NullWrapper("java.lang.String");
87              }
88  
89              Object paramObj3 = summary;
90  
91              if (summary == null) {
92                  paramObj3 = new NullWrapper("java.lang.String");
93              }
94  
95              Object paramObj4 = new BooleanWrapper(minorEdit);
96  
97              Object paramObj5 = serviceContext;
98  
99              if (serviceContext == null) {
100                 paramObj5 = new NullWrapper(
101                         "com.liferay.portal.service.ServiceContext");
102             }
103 
104             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
105                     "addPage",
106                     new Object[] {
107                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
108                         paramObj5
109                     });
110 
111             Object returnObj = null;
112 
113             try {
114                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
115             }
116             catch (Exception e) {
117                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
118                     throw (com.liferay.portal.kernel.exception.PortalException)e;
119                 }
120 
121                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
122                     throw (com.liferay.portal.kernel.exception.SystemException)e;
123                 }
124 
125                 throw new com.liferay.portal.kernel.exception.SystemException(e);
126             }
127 
128             return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
129         }
130         catch (com.liferay.portal.kernel.exception.SystemException se) {
131             _log.error(se, se);
132 
133             throw se;
134         }
135     }
136 
137     public static com.liferay.portlet.wiki.model.WikiPage addPage(
138         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
139         java.lang.String content, java.lang.String summary, boolean minorEdit,
140         java.lang.String format, java.lang.String parentTitle,
141         java.lang.String redirectTitle,
142         com.liferay.portal.service.ServiceContext serviceContext)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException {
145         try {
146             Object paramObj0 = new LongWrapper(nodeId);
147 
148             Object paramObj1 = title;
149 
150             if (title == null) {
151                 paramObj1 = new NullWrapper("java.lang.String");
152             }
153 
154             Object paramObj2 = content;
155 
156             if (content == null) {
157                 paramObj2 = new NullWrapper("java.lang.String");
158             }
159 
160             Object paramObj3 = summary;
161 
162             if (summary == null) {
163                 paramObj3 = new NullWrapper("java.lang.String");
164             }
165 
166             Object paramObj4 = new BooleanWrapper(minorEdit);
167 
168             Object paramObj5 = format;
169 
170             if (format == null) {
171                 paramObj5 = new NullWrapper("java.lang.String");
172             }
173 
174             Object paramObj6 = parentTitle;
175 
176             if (parentTitle == null) {
177                 paramObj6 = new NullWrapper("java.lang.String");
178             }
179 
180             Object paramObj7 = redirectTitle;
181 
182             if (redirectTitle == null) {
183                 paramObj7 = new NullWrapper("java.lang.String");
184             }
185 
186             Object paramObj8 = serviceContext;
187 
188             if (serviceContext == null) {
189                 paramObj8 = new NullWrapper(
190                         "com.liferay.portal.service.ServiceContext");
191             }
192 
193             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
194                     "addPage",
195                     new Object[] {
196                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
197                         paramObj5, paramObj6, paramObj7, paramObj8
198                     });
199 
200             Object returnObj = null;
201 
202             try {
203                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
204             }
205             catch (Exception e) {
206                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
207                     throw (com.liferay.portal.kernel.exception.PortalException)e;
208                 }
209 
210                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
211                     throw (com.liferay.portal.kernel.exception.SystemException)e;
212                 }
213 
214                 throw new com.liferay.portal.kernel.exception.SystemException(e);
215             }
216 
217             return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
218         }
219         catch (com.liferay.portal.kernel.exception.SystemException se) {
220             _log.error(se, se);
221 
222             throw se;
223         }
224     }
225 
226     public static void addPageAttachments(HttpPrincipal httpPrincipal,
227         long nodeId, java.lang.String title,
228         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
229         throws com.liferay.portal.kernel.exception.PortalException,
230             com.liferay.portal.kernel.exception.SystemException {
231         try {
232             Object paramObj0 = new LongWrapper(nodeId);
233 
234             Object paramObj1 = title;
235 
236             if (title == null) {
237                 paramObj1 = new NullWrapper("java.lang.String");
238             }
239 
240             Object paramObj2 = files;
241 
242             if (files == null) {
243                 paramObj2 = new NullWrapper("java.util.List");
244             }
245 
246             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
247                     "addPageAttachments",
248                     new Object[] { paramObj0, paramObj1, paramObj2 });
249 
250             try {
251                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
252             }
253             catch (Exception e) {
254                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
255                     throw (com.liferay.portal.kernel.exception.PortalException)e;
256                 }
257 
258                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
259                     throw (com.liferay.portal.kernel.exception.SystemException)e;
260                 }
261 
262                 throw new com.liferay.portal.kernel.exception.SystemException(e);
263             }
264         }
265         catch (com.liferay.portal.kernel.exception.SystemException se) {
266             _log.error(se, se);
267 
268             throw se;
269         }
270     }
271 
272     public static void changeParent(HttpPrincipal httpPrincipal, long nodeId,
273         java.lang.String title, java.lang.String newParentTitle,
274         com.liferay.portal.service.ServiceContext serviceContext)
275         throws com.liferay.portal.kernel.exception.PortalException,
276             com.liferay.portal.kernel.exception.SystemException {
277         try {
278             Object paramObj0 = new LongWrapper(nodeId);
279 
280             Object paramObj1 = title;
281 
282             if (title == null) {
283                 paramObj1 = new NullWrapper("java.lang.String");
284             }
285 
286             Object paramObj2 = newParentTitle;
287 
288             if (newParentTitle == null) {
289                 paramObj2 = new NullWrapper("java.lang.String");
290             }
291 
292             Object paramObj3 = serviceContext;
293 
294             if (serviceContext == null) {
295                 paramObj3 = new NullWrapper(
296                         "com.liferay.portal.service.ServiceContext");
297             }
298 
299             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
300                     "changeParent",
301                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
302 
303             try {
304                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
305             }
306             catch (Exception e) {
307                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
308                     throw (com.liferay.portal.kernel.exception.PortalException)e;
309                 }
310 
311                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
312                     throw (com.liferay.portal.kernel.exception.SystemException)e;
313                 }
314 
315                 throw new com.liferay.portal.kernel.exception.SystemException(e);
316             }
317         }
318         catch (com.liferay.portal.kernel.exception.SystemException se) {
319             _log.error(se, se);
320 
321             throw se;
322         }
323     }
324 
325     public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
326         java.lang.String title)
327         throws com.liferay.portal.kernel.exception.PortalException,
328             com.liferay.portal.kernel.exception.SystemException {
329         try {
330             Object paramObj0 = new LongWrapper(nodeId);
331 
332             Object paramObj1 = title;
333 
334             if (title == null) {
335                 paramObj1 = new NullWrapper("java.lang.String");
336             }
337 
338             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
339                     "deletePage", new Object[] { paramObj0, paramObj1 });
340 
341             try {
342                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
343             }
344             catch (Exception e) {
345                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
346                     throw (com.liferay.portal.kernel.exception.PortalException)e;
347                 }
348 
349                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
350                     throw (com.liferay.portal.kernel.exception.SystemException)e;
351                 }
352 
353                 throw new com.liferay.portal.kernel.exception.SystemException(e);
354             }
355         }
356         catch (com.liferay.portal.kernel.exception.SystemException se) {
357             _log.error(se, se);
358 
359             throw se;
360         }
361     }
362 
363     public static void deletePageAttachment(HttpPrincipal httpPrincipal,
364         long nodeId, java.lang.String title, java.lang.String fileName)
365         throws com.liferay.portal.kernel.exception.PortalException,
366             com.liferay.portal.kernel.exception.SystemException {
367         try {
368             Object paramObj0 = new LongWrapper(nodeId);
369 
370             Object paramObj1 = title;
371 
372             if (title == null) {
373                 paramObj1 = new NullWrapper("java.lang.String");
374             }
375 
376             Object paramObj2 = fileName;
377 
378             if (fileName == null) {
379                 paramObj2 = new NullWrapper("java.lang.String");
380             }
381 
382             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
383                     "deletePageAttachment",
384                     new Object[] { paramObj0, paramObj1, paramObj2 });
385 
386             try {
387                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
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 com.liferay.portlet.wiki.model.WikiPage getDraftPage(
409         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
410         throws com.liferay.portal.kernel.exception.PortalException,
411             com.liferay.portal.kernel.exception.SystemException {
412         try {
413             Object paramObj0 = new LongWrapper(nodeId);
414 
415             Object paramObj1 = title;
416 
417             if (title == null) {
418                 paramObj1 = new NullWrapper("java.lang.String");
419             }
420 
421             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
422                     "getDraftPage", new Object[] { paramObj0, paramObj1 });
423 
424             Object returnObj = null;
425 
426             try {
427                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
428             }
429             catch (Exception e) {
430                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
431                     throw (com.liferay.portal.kernel.exception.PortalException)e;
432                 }
433 
434                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
435                     throw (com.liferay.portal.kernel.exception.SystemException)e;
436                 }
437 
438                 throw new com.liferay.portal.kernel.exception.SystemException(e);
439             }
440 
441             return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
442         }
443         catch (com.liferay.portal.kernel.exception.SystemException se) {
444             _log.error(se, se);
445 
446             throw se;
447         }
448     }
449 
450     public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
451         HttpPrincipal httpPrincipal, long nodeId, int max)
452         throws com.liferay.portal.kernel.exception.PortalException,
453             com.liferay.portal.kernel.exception.SystemException {
454         try {
455             Object paramObj0 = new LongWrapper(nodeId);
456 
457             Object paramObj1 = new IntegerWrapper(max);
458 
459             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
460                     "getNodePages", new Object[] { paramObj0, paramObj1 });
461 
462             Object returnObj = null;
463 
464             try {
465                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
466             }
467             catch (Exception e) {
468                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
469                     throw (com.liferay.portal.kernel.exception.PortalException)e;
470                 }
471 
472                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
473                     throw (com.liferay.portal.kernel.exception.SystemException)e;
474                 }
475 
476                 throw new com.liferay.portal.kernel.exception.SystemException(e);
477             }
478 
479             return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
480         }
481         catch (com.liferay.portal.kernel.exception.SystemException se) {
482             _log.error(se, se);
483 
484             throw se;
485         }
486     }
487 
488     public static java.lang.String getNodePagesRSS(
489         HttpPrincipal httpPrincipal, long nodeId, int max,
490         java.lang.String type, double version, java.lang.String displayStyle,
491         java.lang.String feedURL, java.lang.String entryURL)
492         throws com.liferay.portal.kernel.exception.PortalException,
493             com.liferay.portal.kernel.exception.SystemException {
494         try {
495             Object paramObj0 = new LongWrapper(nodeId);
496 
497             Object paramObj1 = new IntegerWrapper(max);
498 
499             Object paramObj2 = type;
500 
501             if (type == null) {
502                 paramObj2 = new NullWrapper("java.lang.String");
503             }
504 
505             Object paramObj3 = new DoubleWrapper(version);
506 
507             Object paramObj4 = displayStyle;
508 
509             if (displayStyle == null) {
510                 paramObj4 = new NullWrapper("java.lang.String");
511             }
512 
513             Object paramObj5 = feedURL;
514 
515             if (feedURL == null) {
516                 paramObj5 = new NullWrapper("java.lang.String");
517             }
518 
519             Object paramObj6 = entryURL;
520 
521             if (entryURL == null) {
522                 paramObj6 = new NullWrapper("java.lang.String");
523             }
524 
525             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
526                     "getNodePagesRSS",
527                     new Object[] {
528                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
529                         paramObj5, paramObj6
530                     });
531 
532             Object returnObj = null;
533 
534             try {
535                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
536             }
537             catch (Exception e) {
538                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
539                     throw (com.liferay.portal.kernel.exception.PortalException)e;
540                 }
541 
542                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
543                     throw (com.liferay.portal.kernel.exception.SystemException)e;
544                 }
545 
546                 throw new com.liferay.portal.kernel.exception.SystemException(e);
547             }
548 
549             return (java.lang.String)returnObj;
550         }
551         catch (com.liferay.portal.kernel.exception.SystemException se) {
552             _log.error(se, se);
553 
554             throw se;
555         }
556     }
557 
558     public static com.liferay.portlet.wiki.model.WikiPage getPage(
559         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
560         throws com.liferay.portal.kernel.exception.PortalException,
561             com.liferay.portal.kernel.exception.SystemException {
562         try {
563             Object paramObj0 = new LongWrapper(nodeId);
564 
565             Object paramObj1 = title;
566 
567             if (title == null) {
568                 paramObj1 = new NullWrapper("java.lang.String");
569             }
570 
571             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
572                     "getPage", new Object[] { paramObj0, paramObj1 });
573 
574             Object returnObj = null;
575 
576             try {
577                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
578             }
579             catch (Exception e) {
580                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
581                     throw (com.liferay.portal.kernel.exception.PortalException)e;
582                 }
583 
584                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
585                     throw (com.liferay.portal.kernel.exception.SystemException)e;
586                 }
587 
588                 throw new com.liferay.portal.kernel.exception.SystemException(e);
589             }
590 
591             return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
592         }
593         catch (com.liferay.portal.kernel.exception.SystemException se) {
594             _log.error(se, se);
595 
596             throw se;
597         }
598     }
599 
600     public static com.liferay.portlet.wiki.model.WikiPage getPage(
601         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
602         boolean head)
603         throws com.liferay.portal.kernel.exception.PortalException,
604             com.liferay.portal.kernel.exception.SystemException {
605         try {
606             Object paramObj0 = new LongWrapper(nodeId);
607 
608             Object paramObj1 = title;
609 
610             if (title == null) {
611                 paramObj1 = new NullWrapper("java.lang.String");
612             }
613 
614             Object paramObj2 = new BooleanWrapper(head);
615 
616             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
617                     "getPage", new Object[] { paramObj0, paramObj1, paramObj2 });
618 
619             Object returnObj = null;
620 
621             try {
622                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
623             }
624             catch (Exception e) {
625                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
626                     throw (com.liferay.portal.kernel.exception.PortalException)e;
627                 }
628 
629                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
630                     throw (com.liferay.portal.kernel.exception.SystemException)e;
631                 }
632 
633                 throw new com.liferay.portal.kernel.exception.SystemException(e);
634             }
635 
636             return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
637         }
638         catch (com.liferay.portal.kernel.exception.SystemException se) {
639             _log.error(se, se);
640 
641             throw se;
642         }
643     }
644 
645     public static com.liferay.portlet.wiki.model.WikiPage getPage(
646         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
647         double version)
648         throws com.liferay.portal.kernel.exception.PortalException,
649             com.liferay.portal.kernel.exception.SystemException {
650         try {
651             Object paramObj0 = new LongWrapper(nodeId);
652 
653             Object paramObj1 = title;
654 
655             if (title == null) {
656                 paramObj1 = new NullWrapper("java.lang.String");
657             }
658 
659             Object paramObj2 = new DoubleWrapper(version);
660 
661             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
662                     "getPage", new Object[] { paramObj0, paramObj1, paramObj2 });
663 
664             Object returnObj = null;
665 
666             try {
667                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
668             }
669             catch (Exception e) {
670                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
671                     throw (com.liferay.portal.kernel.exception.PortalException)e;
672                 }
673 
674                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
675                     throw (com.liferay.portal.kernel.exception.SystemException)e;
676                 }
677 
678                 throw new com.liferay.portal.kernel.exception.SystemException(e);
679             }
680 
681             return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
682         }
683         catch (com.liferay.portal.kernel.exception.SystemException se) {
684             _log.error(se, se);
685 
686             throw se;
687         }
688     }
689 
690     public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
691         long companyId, long nodeId, java.lang.String title, int max,
692         java.lang.String type, double version, java.lang.String displayStyle,
693         java.lang.String feedURL, java.lang.String entryURL,
694         java.util.Locale locale)
695         throws com.liferay.portal.kernel.exception.PortalException,
696             com.liferay.portal.kernel.exception.SystemException {
697         try {
698             Object paramObj0 = new LongWrapper(companyId);
699 
700             Object paramObj1 = new LongWrapper(nodeId);
701 
702             Object paramObj2 = title;
703 
704             if (title == null) {
705                 paramObj2 = new NullWrapper("java.lang.String");
706             }
707 
708             Object paramObj3 = new IntegerWrapper(max);
709 
710             Object paramObj4 = type;
711 
712             if (type == null) {
713                 paramObj4 = new NullWrapper("java.lang.String");
714             }
715 
716             Object paramObj5 = new DoubleWrapper(version);
717 
718             Object paramObj6 = displayStyle;
719 
720             if (displayStyle == null) {
721                 paramObj6 = new NullWrapper("java.lang.String");
722             }
723 
724             Object paramObj7 = feedURL;
725 
726             if (feedURL == null) {
727                 paramObj7 = new NullWrapper("java.lang.String");
728             }
729 
730             Object paramObj8 = entryURL;
731 
732             if (entryURL == null) {
733                 paramObj8 = new NullWrapper("java.lang.String");
734             }
735 
736             Object paramObj9 = locale;
737 
738             if (locale == null) {
739                 paramObj9 = new NullWrapper("java.util.Locale");
740             }
741 
742             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
743                     "getPagesRSS",
744                     new Object[] {
745                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
746                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
747                     });
748 
749             Object returnObj = null;
750 
751             try {
752                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
753             }
754             catch (Exception e) {
755                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
756                     throw (com.liferay.portal.kernel.exception.PortalException)e;
757                 }
758 
759                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
760                     throw (com.liferay.portal.kernel.exception.SystemException)e;
761                 }
762 
763                 throw new com.liferay.portal.kernel.exception.SystemException(e);
764             }
765 
766             return (java.lang.String)returnObj;
767         }
768         catch (com.liferay.portal.kernel.exception.SystemException se) {
769             _log.error(se, se);
770 
771             throw se;
772         }
773     }
774 
775     public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
776         java.lang.String title, java.lang.String newTitle,
777         com.liferay.portal.service.ServiceContext serviceContext)
778         throws com.liferay.portal.kernel.exception.PortalException,
779             com.liferay.portal.kernel.exception.SystemException {
780         try {
781             Object paramObj0 = new LongWrapper(nodeId);
782 
783             Object paramObj1 = title;
784 
785             if (title == null) {
786                 paramObj1 = new NullWrapper("java.lang.String");
787             }
788 
789             Object paramObj2 = newTitle;
790 
791             if (newTitle == null) {
792                 paramObj2 = new NullWrapper("java.lang.String");
793             }
794 
795             Object paramObj3 = serviceContext;
796 
797             if (serviceContext == null) {
798                 paramObj3 = new NullWrapper(
799                         "com.liferay.portal.service.ServiceContext");
800             }
801 
802             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
803                     "movePage",
804                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
805 
806             try {
807                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
808             }
809             catch (Exception e) {
810                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
811                     throw (com.liferay.portal.kernel.exception.PortalException)e;
812                 }
813 
814                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
815                     throw (com.liferay.portal.kernel.exception.SystemException)e;
816                 }
817 
818                 throw new com.liferay.portal.kernel.exception.SystemException(e);
819             }
820         }
821         catch (com.liferay.portal.kernel.exception.SystemException se) {
822             _log.error(se, se);
823 
824             throw se;
825         }
826     }
827 
828     public static com.liferay.portlet.wiki.model.WikiPage revertPage(
829         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
830         double version, com.liferay.portal.service.ServiceContext serviceContext)
831         throws com.liferay.portal.kernel.exception.PortalException,
832             com.liferay.portal.kernel.exception.SystemException {
833         try {
834             Object paramObj0 = new LongWrapper(nodeId);
835 
836             Object paramObj1 = title;
837 
838             if (title == null) {
839                 paramObj1 = new NullWrapper("java.lang.String");
840             }
841 
842             Object paramObj2 = new DoubleWrapper(version);
843 
844             Object paramObj3 = serviceContext;
845 
846             if (serviceContext == null) {
847                 paramObj3 = new NullWrapper(
848                         "com.liferay.portal.service.ServiceContext");
849             }
850 
851             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
852                     "revertPage",
853                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
854 
855             Object returnObj = null;
856 
857             try {
858                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
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 void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
882         java.lang.String title)
883         throws com.liferay.portal.kernel.exception.PortalException,
884             com.liferay.portal.kernel.exception.SystemException {
885         try {
886             Object paramObj0 = new LongWrapper(nodeId);
887 
888             Object paramObj1 = title;
889 
890             if (title == null) {
891                 paramObj1 = new NullWrapper("java.lang.String");
892             }
893 
894             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
895                     "subscribePage", new Object[] { paramObj0, paramObj1 });
896 
897             try {
898                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
899             }
900             catch (Exception e) {
901                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
902                     throw (com.liferay.portal.kernel.exception.PortalException)e;
903                 }
904 
905                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
906                     throw (com.liferay.portal.kernel.exception.SystemException)e;
907                 }
908 
909                 throw new com.liferay.portal.kernel.exception.SystemException(e);
910             }
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 void unsubscribePage(HttpPrincipal httpPrincipal,
920         long nodeId, java.lang.String title)
921         throws com.liferay.portal.kernel.exception.PortalException,
922             com.liferay.portal.kernel.exception.SystemException {
923         try {
924             Object paramObj0 = new LongWrapper(nodeId);
925 
926             Object paramObj1 = title;
927 
928             if (title == null) {
929                 paramObj1 = new NullWrapper("java.lang.String");
930             }
931 
932             MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
933                     "unsubscribePage", new Object[] { paramObj0, paramObj1 });
934 
935             try {
936                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
937             }
938             catch (Exception e) {
939                 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
940                     throw (com.liferay.portal.kernel.exception.PortalException)e;
941                 }
942 
943                 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
944                     throw (com.liferay.portal.kernel.exception.SystemException)e;
945                 }
946 
947                 throw new com.liferay.portal.kernel.exception.SystemException(e);
948             }
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 com.liferay.portlet.wiki.model.WikiPage updatePage(
958         HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
959         double version, java.lang.String content, java.lang.String summary,
960         boolean minorEdit, java.lang.String format,
961         java.lang.String parentTitle, java.lang.String redirectTitle,
962         com.liferay.portal.service.ServiceContext serviceContext)
963         throws com.liferay.portal.kernel.exception.PortalException,
964             com.liferay.portal.kernel.exception.SystemException {
965         try {
966             Object paramObj0 = new LongWrapper(nodeId);
967 
968             Object paramObj1 = title;
969 
970             if (title == null) {
971                 paramObj1 = new NullWrapper("java.lang.String");
972             }
973 
974             Object paramObj2 = new DoubleWrapper(version);
975 
976             Object paramObj3 = content;
977 
978             if (content == null) {
979                 paramObj3 = new NullWrapper("java.lang.String");
980             }
981 
982             Object paramObj4 = summary;
983 
984             if (summary == null) {
985                 paramObj4 = new NullWrapper("java.lang.String");
986             }
987 
988             Object paramObj5 = new BooleanWrapper(minorEdit);
989 
990             Object paramObj6 = format;
991 
992             if (format == null) {
993                 paramObj6 = new NullWrapper("java.lang.String");
994             }
995 
996             Object paramObj7 = parentTitle;
997 
998             if (parentTitle == null) {
999                 paramObj7 = new NullWrapper("java.lang.String");
1000            }
1001
1002            Object paramObj8 = redirectTitle;
1003
1004            if (redirectTitle == null) {
1005                paramObj8 = new NullWrapper("java.lang.String");
1006            }
1007
1008            Object paramObj9 = serviceContext;
1009
1010            if (serviceContext == null) {
1011                paramObj9 = new NullWrapper(
1012                        "com.liferay.portal.service.ServiceContext");
1013            }
1014
1015            MethodWrapper methodWrapper = new MethodWrapper(WikiPageServiceUtil.class.getName(),
1016                    "updatePage",
1017                    new Object[] {
1018                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1019                        paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
1020                    });
1021
1022            Object returnObj = null;
1023
1024            try {
1025                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1026            }
1027            catch (Exception e) {
1028                if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1029                    throw (com.liferay.portal.kernel.exception.PortalException)e;
1030                }
1031
1032                if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1033                    throw (com.liferay.portal.kernel.exception.SystemException)e;
1034                }
1035
1036                throw new com.liferay.portal.kernel.exception.SystemException(e);
1037            }
1038
1039            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1040        }
1041        catch (com.liferay.portal.kernel.exception.SystemException se) {
1042            _log.error(se, se);
1043
1044            throw se;
1045        }
1046    }
1047
1048    private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1049}