001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
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.MethodHandler;
020    import com.liferay.portal.kernel.util.MethodKey;
021    import com.liferay.portal.security.auth.HttpPrincipal;
022    import com.liferay.portal.service.http.TunnelUtil;
023    
024    import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
025    
026    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.wiki.service.WikiPageServiceUtil} service utility. The
030     * static methods of this class calls the same methods of the service utility.
031     * However, the signatures are different because it requires an additional
032     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
033     * </p>
034     *
035     * <p>
036     * The benefits of using the HTTP utility is that it is fast and allows for
037     * tunneling without the cost of serializing to text. The drawback is that it
038     * only works with Java.
039     * </p>
040     *
041     * <p>
042     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
043     * configure security.
044     * </p>
045     *
046     * <p>
047     * The HTTP utility is only generated for remote services.
048     * </p>
049     *
050     * @author    Brian Wing Shun Chan
051     * @see       WikiPageServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.wiki.service.WikiPageServiceUtil
054     * @generated
055     */
056    public class WikiPageServiceHttp {
057            public static com.liferay.portlet.wiki.model.WikiPage addPage(
058                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
059                    java.lang.String content, java.lang.String summary, boolean minorEdit,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    try {
064                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
065                                            "addPage", _addPageParameterTypes0);
066    
067                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
068                                            title, content, summary, minorEdit, serviceContext);
069    
070                            Object returnObj = null;
071    
072                            try {
073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074                            }
075                            catch (Exception e) {
076                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
078                                    }
079    
080                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
081                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
082                                    }
083    
084                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
085                            }
086    
087                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
088                    }
089                    catch (com.liferay.portal.kernel.exception.SystemException se) {
090                            _log.error(se, se);
091    
092                            throw se;
093                    }
094            }
095    
096            public static com.liferay.portlet.wiki.model.WikiPage addPage(
097                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
098                    java.lang.String content, java.lang.String summary, boolean minorEdit,
099                    java.lang.String format, java.lang.String parentTitle,
100                    java.lang.String redirectTitle,
101                    com.liferay.portal.service.ServiceContext serviceContext)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    try {
105                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
106                                            "addPage", _addPageParameterTypes1);
107    
108                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
109                                            title, content, summary, minorEdit, format, parentTitle,
110                                            redirectTitle, serviceContext);
111    
112                            Object returnObj = null;
113    
114                            try {
115                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
116                            }
117                            catch (Exception e) {
118                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
119                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
120                                    }
121    
122                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
123                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
124                                    }
125    
126                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
127                            }
128    
129                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
130                    }
131                    catch (com.liferay.portal.kernel.exception.SystemException se) {
132                            _log.error(se, se);
133    
134                            throw se;
135                    }
136            }
137    
138            public static void addPageAttachment(HttpPrincipal httpPrincipal,
139                    long nodeId, java.lang.String title, java.lang.String fileName,
140                    java.io.File file)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    try {
144                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
145                                            "addPageAttachment", _addPageAttachmentParameterTypes2);
146    
147                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
148                                            title, fileName, file);
149    
150                            try {
151                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
152                            }
153                            catch (Exception e) {
154                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
155                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
156                                    }
157    
158                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
159                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
160                                    }
161    
162                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
163                            }
164                    }
165                    catch (com.liferay.portal.kernel.exception.SystemException se) {
166                            _log.error(se, se);
167    
168                            throw se;
169                    }
170            }
171    
172            public static void addPageAttachment(HttpPrincipal httpPrincipal,
173                    long nodeId, java.lang.String title, java.lang.String fileName,
174                    java.io.InputStream inputStream)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    try {
178                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
179                                            "addPageAttachment", _addPageAttachmentParameterTypes3);
180    
181                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
182                                            title, fileName, inputStream);
183    
184                            try {
185                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
186                            }
187                            catch (Exception e) {
188                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
189                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
190                                    }
191    
192                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
193                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
194                                    }
195    
196                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
197                            }
198                    }
199                    catch (com.liferay.portal.kernel.exception.SystemException se) {
200                            _log.error(se, se);
201    
202                            throw se;
203                    }
204            }
205    
206            public static void addPageAttachments(HttpPrincipal httpPrincipal,
207                    long nodeId, java.lang.String title,
208                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStream)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    try {
212                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
213                                            "addPageAttachments", _addPageAttachmentsParameterTypes4);
214    
215                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
216                                            title, inputStream);
217    
218                            try {
219                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
220                            }
221                            catch (Exception e) {
222                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
223                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
224                                    }
225    
226                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
227                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
228                                    }
229    
230                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
231                            }
232                    }
233                    catch (com.liferay.portal.kernel.exception.SystemException se) {
234                            _log.error(se, se);
235    
236                            throw se;
237                    }
238            }
239    
240            public static java.lang.String addTempPageAttachment(
241                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String fileName,
242                    java.lang.String tempFolderName, java.io.InputStream inputStream)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    try {
246                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
247                                            "addTempPageAttachment",
248                                            _addTempPageAttachmentParameterTypes5);
249    
250                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
251                                            fileName, tempFolderName, inputStream);
252    
253                            Object returnObj = null;
254    
255                            try {
256                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
257                            }
258                            catch (Exception e) {
259                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
260                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
261                                    }
262    
263                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
264                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
265                                    }
266    
267                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
268                            }
269    
270                            return (java.lang.String)returnObj;
271                    }
272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
273                            _log.error(se, se);
274    
275                            throw se;
276                    }
277            }
278    
279            public static void changeParent(HttpPrincipal httpPrincipal, long nodeId,
280                    java.lang.String title, java.lang.String newParentTitle,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    try {
285                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
286                                            "changeParent", _changeParentParameterTypes6);
287    
288                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
289                                            title, newParentTitle, serviceContext);
290    
291                            try {
292                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
293                            }
294                            catch (Exception e) {
295                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
296                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
297                                    }
298    
299                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
300                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
301                                    }
302    
303                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
304                            }
305                    }
306                    catch (com.liferay.portal.kernel.exception.SystemException se) {
307                            _log.error(se, se);
308    
309                            throw se;
310                    }
311            }
312    
313            public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
314                    java.lang.String title)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    try {
318                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
319                                            "deletePage", _deletePageParameterTypes7);
320    
321                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
322                                            title);
323    
324                            try {
325                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
326                            }
327                            catch (Exception e) {
328                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
329                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
330                                    }
331    
332                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
333                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
334                                    }
335    
336                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
337                            }
338                    }
339                    catch (com.liferay.portal.kernel.exception.SystemException se) {
340                            _log.error(se, se);
341    
342                            throw se;
343                    }
344            }
345    
346            public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
347                    java.lang.String title, double version)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    try {
351                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
352                                            "deletePage", _deletePageParameterTypes8);
353    
354                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
355                                            title, version);
356    
357                            try {
358                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
359                            }
360                            catch (Exception e) {
361                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
362                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
363                                    }
364    
365                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
366                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
367                                    }
368    
369                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
370                            }
371                    }
372                    catch (com.liferay.portal.kernel.exception.SystemException se) {
373                            _log.error(se, se);
374    
375                            throw se;
376                    }
377            }
378    
379            public static void deletePageAttachment(HttpPrincipal httpPrincipal,
380                    long nodeId, java.lang.String title, java.lang.String fileName)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    try {
384                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
385                                            "deletePageAttachment", _deletePageAttachmentParameterTypes9);
386    
387                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
388                                            title, fileName);
389    
390                            try {
391                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
392                            }
393                            catch (Exception e) {
394                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
395                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
396                                    }
397    
398                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
399                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
400                                    }
401    
402                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
403                            }
404                    }
405                    catch (com.liferay.portal.kernel.exception.SystemException se) {
406                            _log.error(se, se);
407    
408                            throw se;
409                    }
410            }
411    
412            public static void deleteTempPageAttachment(HttpPrincipal httpPrincipal,
413                    long nodeId, java.lang.String fileName, java.lang.String tempFolderName)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    try {
417                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
418                                            "deleteTempPageAttachment",
419                                            _deleteTempPageAttachmentParameterTypes10);
420    
421                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
422                                            fileName, tempFolderName);
423    
424                            try {
425                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
426                            }
427                            catch (Exception e) {
428                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
429                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
430                                    }
431    
432                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
433                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
434                                    }
435    
436                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
437                            }
438                    }
439                    catch (com.liferay.portal.kernel.exception.SystemException se) {
440                            _log.error(se, se);
441    
442                            throw se;
443                    }
444            }
445    
446            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
447                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException {
450                    try {
451                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
452                                            "getDraftPage", _getDraftPageParameterTypes11);
453    
454                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
455                                            title);
456    
457                            Object returnObj = null;
458    
459                            try {
460                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
461                            }
462                            catch (Exception e) {
463                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
464                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
465                                    }
466    
467                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
468                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
469                                    }
470    
471                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
472                            }
473    
474                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
475                    }
476                    catch (com.liferay.portal.kernel.exception.SystemException se) {
477                            _log.error(se, se);
478    
479                            throw se;
480                    }
481            }
482    
483            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
484                    HttpPrincipal httpPrincipal, long nodeId, int max)
485                    throws com.liferay.portal.kernel.exception.PortalException,
486                            com.liferay.portal.kernel.exception.SystemException {
487                    try {
488                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
489                                            "getNodePages", _getNodePagesParameterTypes12);
490    
491                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
492                                            max);
493    
494                            Object returnObj = null;
495    
496                            try {
497                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
498                            }
499                            catch (Exception e) {
500                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
501                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
502                                    }
503    
504                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
505                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
506                                    }
507    
508                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
509                            }
510    
511                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
512                    }
513                    catch (com.liferay.portal.kernel.exception.SystemException se) {
514                            _log.error(se, se);
515    
516                            throw se;
517                    }
518            }
519    
520            public static java.lang.String getNodePagesRSS(
521                    HttpPrincipal httpPrincipal, long nodeId, int max,
522                    java.lang.String type, double version, java.lang.String displayStyle,
523                    java.lang.String feedURL, java.lang.String entryURL)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    try {
527                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
528                                            "getNodePagesRSS", _getNodePagesRSSParameterTypes13);
529    
530                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
531                                            max, type, version, displayStyle, feedURL, entryURL);
532    
533                            Object returnObj = null;
534    
535                            try {
536                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
537                            }
538                            catch (Exception e) {
539                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
540                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
541                                    }
542    
543                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
544                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
545                                    }
546    
547                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
548                            }
549    
550                            return (java.lang.String)returnObj;
551                    }
552                    catch (com.liferay.portal.kernel.exception.SystemException se) {
553                            _log.error(se, se);
554    
555                            throw se;
556                    }
557            }
558    
559            public static com.liferay.portlet.wiki.model.WikiPage getPage(
560                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException {
563                    try {
564                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
565                                            "getPage", _getPageParameterTypes14);
566    
567                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
568                                            title);
569    
570                            Object returnObj = null;
571    
572                            try {
573                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
574                            }
575                            catch (Exception e) {
576                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
577                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
578                                    }
579    
580                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
581                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
582                                    }
583    
584                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
585                            }
586    
587                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
588                    }
589                    catch (com.liferay.portal.kernel.exception.SystemException se) {
590                            _log.error(se, se);
591    
592                            throw se;
593                    }
594            }
595    
596            public static com.liferay.portlet.wiki.model.WikiPage getPage(
597                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
598                    java.lang.Boolean head)
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            com.liferay.portal.kernel.exception.SystemException {
601                    try {
602                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
603                                            "getPage", _getPageParameterTypes15);
604    
605                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
606                                            title, head);
607    
608                            Object returnObj = null;
609    
610                            try {
611                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
612                            }
613                            catch (Exception e) {
614                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
615                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
616                                    }
617    
618                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
619                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
620                                    }
621    
622                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
623                            }
624    
625                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
626                    }
627                    catch (com.liferay.portal.kernel.exception.SystemException se) {
628                            _log.error(se, se);
629    
630                            throw se;
631                    }
632            }
633    
634            public static com.liferay.portlet.wiki.model.WikiPage getPage(
635                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
636                    double version)
637                    throws com.liferay.portal.kernel.exception.PortalException,
638                            com.liferay.portal.kernel.exception.SystemException {
639                    try {
640                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
641                                            "getPage", _getPageParameterTypes16);
642    
643                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
644                                            title, version);
645    
646                            Object returnObj = null;
647    
648                            try {
649                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
650                            }
651                            catch (Exception e) {
652                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
653                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
654                                    }
655    
656                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
657                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
658                                    }
659    
660                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
661                            }
662    
663                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
664                    }
665                    catch (com.liferay.portal.kernel.exception.SystemException se) {
666                            _log.error(se, se);
667    
668                            throw se;
669                    }
670            }
671    
672            public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
673                    long companyId, long nodeId, java.lang.String title, int max,
674                    java.lang.String type, double version, java.lang.String displayStyle,
675                    java.lang.String feedURL, java.lang.String entryURL,
676                    java.util.Locale locale)
677                    throws com.liferay.portal.kernel.exception.PortalException,
678                            com.liferay.portal.kernel.exception.SystemException {
679                    try {
680                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
681                                            "getPagesRSS", _getPagesRSSParameterTypes17);
682    
683                            MethodHandler methodHandler = new MethodHandler(methodKey,
684                                            companyId, nodeId, title, max, type, version, displayStyle,
685                                            feedURL, entryURL, locale);
686    
687                            Object returnObj = null;
688    
689                            try {
690                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
691                            }
692                            catch (Exception e) {
693                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
694                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
695                                    }
696    
697                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
698                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
699                                    }
700    
701                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
702                            }
703    
704                            return (java.lang.String)returnObj;
705                    }
706                    catch (com.liferay.portal.kernel.exception.SystemException se) {
707                            _log.error(se, se);
708    
709                            throw se;
710                    }
711            }
712    
713            public static java.lang.String[] getTempPageAttachmentNames(
714                    HttpPrincipal httpPrincipal, long nodeId,
715                    java.lang.String tempFolderName)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    try {
719                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
720                                            "getTempPageAttachmentNames",
721                                            _getTempPageAttachmentNamesParameterTypes18);
722    
723                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
724                                            tempFolderName);
725    
726                            Object returnObj = null;
727    
728                            try {
729                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
730                            }
731                            catch (Exception e) {
732                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
733                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
734                                    }
735    
736                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
737                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
738                                    }
739    
740                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
741                            }
742    
743                            return (java.lang.String[])returnObj;
744                    }
745                    catch (com.liferay.portal.kernel.exception.SystemException se) {
746                            _log.error(se, se);
747    
748                            throw se;
749                    }
750            }
751    
752            public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
753                    java.lang.String title, java.lang.String newTitle,
754                    com.liferay.portal.service.ServiceContext serviceContext)
755                    throws com.liferay.portal.kernel.exception.PortalException,
756                            com.liferay.portal.kernel.exception.SystemException {
757                    try {
758                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
759                                            "movePage", _movePageParameterTypes19);
760    
761                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
762                                            title, newTitle, serviceContext);
763    
764                            try {
765                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
766                            }
767                            catch (Exception e) {
768                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
769                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
770                                    }
771    
772                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
773                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
774                                    }
775    
776                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
777                            }
778                    }
779                    catch (com.liferay.portal.kernel.exception.SystemException se) {
780                            _log.error(se, se);
781    
782                            throw se;
783                    }
784            }
785    
786            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
787                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
788                    double version, com.liferay.portal.service.ServiceContext serviceContext)
789                    throws com.liferay.portal.kernel.exception.PortalException,
790                            com.liferay.portal.kernel.exception.SystemException {
791                    try {
792                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
793                                            "revertPage", _revertPageParameterTypes20);
794    
795                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
796                                            title, version, serviceContext);
797    
798                            Object returnObj = null;
799    
800                            try {
801                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
802                            }
803                            catch (Exception e) {
804                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
805                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
806                                    }
807    
808                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
809                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
810                                    }
811    
812                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
813                            }
814    
815                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
816                    }
817                    catch (com.liferay.portal.kernel.exception.SystemException se) {
818                            _log.error(se, se);
819    
820                            throw se;
821                    }
822            }
823    
824            public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
825                    java.lang.String title)
826                    throws com.liferay.portal.kernel.exception.PortalException,
827                            com.liferay.portal.kernel.exception.SystemException {
828                    try {
829                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
830                                            "subscribePage", _subscribePageParameterTypes21);
831    
832                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
833                                            title);
834    
835                            try {
836                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
837                            }
838                            catch (Exception e) {
839                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
840                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
841                                    }
842    
843                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
844                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
845                                    }
846    
847                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
848                            }
849                    }
850                    catch (com.liferay.portal.kernel.exception.SystemException se) {
851                            _log.error(se, se);
852    
853                            throw se;
854                    }
855            }
856    
857            public static void unsubscribePage(HttpPrincipal httpPrincipal,
858                    long nodeId, java.lang.String title)
859                    throws com.liferay.portal.kernel.exception.PortalException,
860                            com.liferay.portal.kernel.exception.SystemException {
861                    try {
862                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
863                                            "unsubscribePage", _unsubscribePageParameterTypes22);
864    
865                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
866                                            title);
867    
868                            try {
869                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
870                            }
871                            catch (Exception e) {
872                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
873                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
874                                    }
875    
876                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
877                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
878                                    }
879    
880                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
881                            }
882                    }
883                    catch (com.liferay.portal.kernel.exception.SystemException se) {
884                            _log.error(se, se);
885    
886                            throw se;
887                    }
888            }
889    
890            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
891                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
892                    double version, java.lang.String content, java.lang.String summary,
893                    boolean minorEdit, java.lang.String format,
894                    java.lang.String parentTitle, java.lang.String redirectTitle,
895                    com.liferay.portal.service.ServiceContext serviceContext)
896                    throws com.liferay.portal.kernel.exception.PortalException,
897                            com.liferay.portal.kernel.exception.SystemException {
898                    try {
899                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
900                                            "updatePage", _updatePageParameterTypes23);
901    
902                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
903                                            title, version, content, summary, minorEdit, format,
904                                            parentTitle, redirectTitle, serviceContext);
905    
906                            Object returnObj = null;
907    
908                            try {
909                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
910                            }
911                            catch (Exception e) {
912                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
913                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
914                                    }
915    
916                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
917                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
918                                    }
919    
920                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
921                            }
922    
923                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
924                    }
925                    catch (com.liferay.portal.kernel.exception.SystemException se) {
926                            _log.error(se, se);
927    
928                            throw se;
929                    }
930            }
931    
932            private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
933            private static final Class<?>[] _addPageParameterTypes0 = new Class[] {
934                            long.class, java.lang.String.class, java.lang.String.class,
935                            java.lang.String.class, boolean.class,
936                            com.liferay.portal.service.ServiceContext.class
937                    };
938            private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
939                            long.class, java.lang.String.class, java.lang.String.class,
940                            java.lang.String.class, boolean.class, java.lang.String.class,
941                            java.lang.String.class, java.lang.String.class,
942                            com.liferay.portal.service.ServiceContext.class
943                    };
944            private static final Class<?>[] _addPageAttachmentParameterTypes2 = new Class[] {
945                            long.class, java.lang.String.class, java.lang.String.class,
946                            java.io.File.class
947                    };
948            private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
949                            long.class, java.lang.String.class, java.lang.String.class,
950                            java.io.InputStream.class
951                    };
952            private static final Class<?>[] _addPageAttachmentsParameterTypes4 = new Class[] {
953                            long.class, java.lang.String.class, java.util.List.class
954                    };
955            private static final Class<?>[] _addTempPageAttachmentParameterTypes5 = new Class[] {
956                            long.class, java.lang.String.class, java.lang.String.class,
957                            java.io.InputStream.class
958                    };
959            private static final Class<?>[] _changeParentParameterTypes6 = new Class[] {
960                            long.class, java.lang.String.class, java.lang.String.class,
961                            com.liferay.portal.service.ServiceContext.class
962                    };
963            private static final Class<?>[] _deletePageParameterTypes7 = new Class[] {
964                            long.class, java.lang.String.class
965                    };
966            private static final Class<?>[] _deletePageParameterTypes8 = new Class[] {
967                            long.class, java.lang.String.class, double.class
968                    };
969            private static final Class<?>[] _deletePageAttachmentParameterTypes9 = new Class[] {
970                            long.class, java.lang.String.class, java.lang.String.class
971                    };
972            private static final Class<?>[] _deleteTempPageAttachmentParameterTypes10 = new Class[] {
973                            long.class, java.lang.String.class, java.lang.String.class
974                    };
975            private static final Class<?>[] _getDraftPageParameterTypes11 = new Class[] {
976                            long.class, java.lang.String.class
977                    };
978            private static final Class<?>[] _getNodePagesParameterTypes12 = new Class[] {
979                            long.class, int.class
980                    };
981            private static final Class<?>[] _getNodePagesRSSParameterTypes13 = new Class[] {
982                            long.class, int.class, java.lang.String.class, double.class,
983                            java.lang.String.class, java.lang.String.class,
984                            java.lang.String.class
985                    };
986            private static final Class<?>[] _getPageParameterTypes14 = new Class[] {
987                            long.class, java.lang.String.class
988                    };
989            private static final Class<?>[] _getPageParameterTypes15 = new Class[] {
990                            long.class, java.lang.String.class, java.lang.Boolean.class
991                    };
992            private static final Class<?>[] _getPageParameterTypes16 = new Class[] {
993                            long.class, java.lang.String.class, double.class
994                    };
995            private static final Class<?>[] _getPagesRSSParameterTypes17 = new Class[] {
996                            long.class, long.class, java.lang.String.class, int.class,
997                            java.lang.String.class, double.class, java.lang.String.class,
998                            java.lang.String.class, java.lang.String.class,
999                            java.util.Locale.class
1000                    };
1001            private static final Class<?>[] _getTempPageAttachmentNamesParameterTypes18 = new Class[] {
1002                            long.class, java.lang.String.class
1003                    };
1004            private static final Class<?>[] _movePageParameterTypes19 = new Class[] {
1005                            long.class, java.lang.String.class, java.lang.String.class,
1006                            com.liferay.portal.service.ServiceContext.class
1007                    };
1008            private static final Class<?>[] _revertPageParameterTypes20 = new Class[] {
1009                            long.class, java.lang.String.class, double.class,
1010                            com.liferay.portal.service.ServiceContext.class
1011                    };
1012            private static final Class<?>[] _subscribePageParameterTypes21 = new Class[] {
1013                            long.class, java.lang.String.class
1014                    };
1015            private static final Class<?>[] _unsubscribePageParameterTypes22 = new Class[] {
1016                            long.class, java.lang.String.class
1017                    };
1018            private static final Class<?>[] _updatePageParameterTypes23 = new Class[] {
1019                            long.class, java.lang.String.class, double.class,
1020                            java.lang.String.class, java.lang.String.class, boolean.class,
1021                            java.lang.String.class, java.lang.String.class,
1022                            java.lang.String.class,
1023                            com.liferay.portal.service.ServiceContext.class
1024                    };
1025    }