001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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 java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
447                    HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
448                    java.lang.String parentTitle)
449                    throws com.liferay.portal.kernel.exception.PortalException,
450                            com.liferay.portal.kernel.exception.SystemException {
451                    try {
452                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
453                                            "getChildren", _getChildrenParameterTypes11);
454    
455                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
456                                            nodeId, head, parentTitle);
457    
458                            Object returnObj = null;
459    
460                            try {
461                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
462                            }
463                            catch (Exception e) {
464                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
465                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
466                                    }
467    
468                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
469                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
470                                    }
471    
472                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
473                            }
474    
475                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
476                    }
477                    catch (com.liferay.portal.kernel.exception.SystemException se) {
478                            _log.error(se, se);
479    
480                            throw se;
481                    }
482            }
483    
484            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
485                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException {
488                    try {
489                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
490                                            "getDraftPage", _getDraftPageParameterTypes12);
491    
492                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
493                                            title);
494    
495                            Object returnObj = null;
496    
497                            try {
498                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
499                            }
500                            catch (Exception e) {
501                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
502                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
503                                    }
504    
505                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
506                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
507                                    }
508    
509                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
510                            }
511    
512                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
513                    }
514                    catch (com.liferay.portal.kernel.exception.SystemException se) {
515                            _log.error(se, se);
516    
517                            throw se;
518                    }
519            }
520    
521            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
522                    HttpPrincipal httpPrincipal, long nodeId, int max)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    try {
526                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
527                                            "getNodePages", _getNodePagesParameterTypes13);
528    
529                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
530                                            max);
531    
532                            Object returnObj = null;
533    
534                            try {
535                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
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.util.List<com.liferay.portlet.wiki.model.WikiPage>)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 java.lang.String getNodePagesRSS(
559                    HttpPrincipal httpPrincipal, long nodeId, int max,
560                    java.lang.String type, double version, java.lang.String displayStyle,
561                    java.lang.String feedURL, java.lang.String entryURL)
562                    throws com.liferay.portal.kernel.exception.PortalException,
563                            com.liferay.portal.kernel.exception.SystemException {
564                    try {
565                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
566                                            "getNodePagesRSS", _getNodePagesRSSParameterTypes14);
567    
568                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
569                                            max, type, version, displayStyle, feedURL, entryURL);
570    
571                            Object returnObj = null;
572    
573                            try {
574                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
575                            }
576                            catch (Exception e) {
577                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
578                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
579                                    }
580    
581                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
582                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
583                                    }
584    
585                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
586                            }
587    
588                            return (java.lang.String)returnObj;
589                    }
590                    catch (com.liferay.portal.kernel.exception.SystemException se) {
591                            _log.error(se, se);
592    
593                            throw se;
594                    }
595            }
596    
597            public static java.lang.String getNodePagesRSS(
598                    HttpPrincipal httpPrincipal, long nodeId, int max,
599                    java.lang.String type, double version, java.lang.String displayStyle,
600                    java.lang.String feedURL, java.lang.String entryURL,
601                    java.lang.String attachmentURLPrefix)
602                    throws com.liferay.portal.kernel.exception.PortalException,
603                            com.liferay.portal.kernel.exception.SystemException {
604                    try {
605                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
606                                            "getNodePagesRSS", _getNodePagesRSSParameterTypes15);
607    
608                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
609                                            max, type, version, displayStyle, feedURL, entryURL,
610                                            attachmentURLPrefix);
611    
612                            Object returnObj = null;
613    
614                            try {
615                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
616                            }
617                            catch (Exception e) {
618                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
619                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
620                                    }
621    
622                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
623                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
624                                    }
625    
626                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
627                            }
628    
629                            return (java.lang.String)returnObj;
630                    }
631                    catch (com.liferay.portal.kernel.exception.SystemException se) {
632                            _log.error(se, se);
633    
634                            throw se;
635                    }
636            }
637    
638            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
639                    HttpPrincipal httpPrincipal, long groupId, long nodeId)
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    try {
643                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
644                                            "getOrphans", _getOrphansParameterTypes16);
645    
646                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
647                                            nodeId);
648    
649                            Object returnObj = null;
650    
651                            try {
652                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
653                            }
654                            catch (Exception e) {
655                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
656                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
657                                    }
658    
659                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
660                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
661                                    }
662    
663                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
664                            }
665    
666                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
667                    }
668                    catch (com.liferay.portal.kernel.exception.SystemException se) {
669                            _log.error(se, se);
670    
671                            throw se;
672                    }
673            }
674    
675            public static com.liferay.portlet.wiki.model.WikiPage getPage(
676                    HttpPrincipal httpPrincipal, long groupId, long nodeId,
677                    java.lang.String title)
678                    throws com.liferay.portal.kernel.exception.PortalException,
679                            com.liferay.portal.kernel.exception.SystemException {
680                    try {
681                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
682                                            "getPage", _getPageParameterTypes17);
683    
684                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
685                                            nodeId, title);
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 (com.liferay.portlet.wiki.model.WikiPage)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 com.liferay.portlet.wiki.model.WikiPage getPage(
714                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
715                    throws com.liferay.portal.kernel.exception.PortalException,
716                            com.liferay.portal.kernel.exception.SystemException {
717                    try {
718                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
719                                            "getPage", _getPageParameterTypes18);
720    
721                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
722                                            title);
723    
724                            Object returnObj = null;
725    
726                            try {
727                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
728                            }
729                            catch (Exception e) {
730                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
731                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
732                                    }
733    
734                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
735                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
736                                    }
737    
738                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
739                            }
740    
741                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
742                    }
743                    catch (com.liferay.portal.kernel.exception.SystemException se) {
744                            _log.error(se, se);
745    
746                            throw se;
747                    }
748            }
749    
750            public static com.liferay.portlet.wiki.model.WikiPage getPage(
751                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
752                    java.lang.Boolean head)
753                    throws com.liferay.portal.kernel.exception.PortalException,
754                            com.liferay.portal.kernel.exception.SystemException {
755                    try {
756                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
757                                            "getPage", _getPageParameterTypes19);
758    
759                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
760                                            title, head);
761    
762                            Object returnObj = null;
763    
764                            try {
765                                    returnObj = 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                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
780                    }
781                    catch (com.liferay.portal.kernel.exception.SystemException se) {
782                            _log.error(se, se);
783    
784                            throw se;
785                    }
786            }
787    
788            public static com.liferay.portlet.wiki.model.WikiPage getPage(
789                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
790                    double version)
791                    throws com.liferay.portal.kernel.exception.PortalException,
792                            com.liferay.portal.kernel.exception.SystemException {
793                    try {
794                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
795                                            "getPage", _getPageParameterTypes20);
796    
797                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
798                                            title, version);
799    
800                            Object returnObj = null;
801    
802                            try {
803                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
804                            }
805                            catch (Exception e) {
806                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
807                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
808                                    }
809    
810                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
811                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
812                                    }
813    
814                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
815                            }
816    
817                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
818                    }
819                    catch (com.liferay.portal.kernel.exception.SystemException se) {
820                            _log.error(se, se);
821    
822                            throw se;
823                    }
824            }
825    
826            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
827                    HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
828                    int status, int start, int end,
829                    com.liferay.portal.kernel.util.OrderByComparator obc)
830                    throws com.liferay.portal.kernel.exception.PortalException,
831                            com.liferay.portal.kernel.exception.SystemException {
832                    try {
833                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
834                                            "getPages", _getPagesParameterTypes21);
835    
836                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
837                                            nodeId, head, status, start, end, obc);
838    
839                            Object returnObj = null;
840    
841                            try {
842                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
843                            }
844                            catch (Exception e) {
845                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
846                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
847                                    }
848    
849                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
850                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
851                                    }
852    
853                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
854                            }
855    
856                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
857                    }
858                    catch (com.liferay.portal.kernel.exception.SystemException se) {
859                            _log.error(se, se);
860    
861                            throw se;
862                    }
863            }
864    
865            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
866                    HttpPrincipal httpPrincipal, long groupId, long userId, long nodeId,
867                    int status, int start, int end)
868                    throws com.liferay.portal.kernel.exception.PortalException,
869                            com.liferay.portal.kernel.exception.SystemException {
870                    try {
871                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
872                                            "getPages", _getPagesParameterTypes22);
873    
874                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
875                                            userId, nodeId, status, start, end);
876    
877                            Object returnObj = null;
878    
879                            try {
880                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
881                            }
882                            catch (Exception e) {
883                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
884                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
885                                    }
886    
887                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
888                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
889                                    }
890    
891                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
892                            }
893    
894                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
895                    }
896                    catch (com.liferay.portal.kernel.exception.SystemException se) {
897                            _log.error(se, se);
898    
899                            throw se;
900                    }
901            }
902    
903            public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
904                    long nodeId, boolean head)
905                    throws com.liferay.portal.kernel.exception.PortalException,
906                            com.liferay.portal.kernel.exception.SystemException {
907                    try {
908                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
909                                            "getPagesCount", _getPagesCountParameterTypes23);
910    
911                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
912                                            nodeId, head);
913    
914                            Object returnObj = null;
915    
916                            try {
917                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
918                            }
919                            catch (Exception e) {
920                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
921                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
922                                    }
923    
924                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
925                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
926                                    }
927    
928                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
929                            }
930    
931                            return ((Integer)returnObj).intValue();
932                    }
933                    catch (com.liferay.portal.kernel.exception.SystemException se) {
934                            _log.error(se, se);
935    
936                            throw se;
937                    }
938            }
939    
940            public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
941                    long userId, long nodeId, int status)
942                    throws com.liferay.portal.kernel.exception.PortalException,
943                            com.liferay.portal.kernel.exception.SystemException {
944                    try {
945                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
946                                            "getPagesCount", _getPagesCountParameterTypes24);
947    
948                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
949                                            userId, nodeId, status);
950    
951                            Object returnObj = null;
952    
953                            try {
954                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
955                            }
956                            catch (Exception e) {
957                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
958                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
959                                    }
960    
961                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
962                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
963                                    }
964    
965                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
966                            }
967    
968                            return ((Integer)returnObj).intValue();
969                    }
970                    catch (com.liferay.portal.kernel.exception.SystemException se) {
971                            _log.error(se, se);
972    
973                            throw se;
974                    }
975            }
976    
977            public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
978                    long companyId, long nodeId, java.lang.String title, int max,
979                    java.lang.String type, double version, java.lang.String displayStyle,
980                    java.lang.String feedURL, java.lang.String entryURL,
981                    java.util.Locale locale)
982                    throws com.liferay.portal.kernel.exception.PortalException,
983                            com.liferay.portal.kernel.exception.SystemException {
984                    try {
985                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
986                                            "getPagesRSS", _getPagesRSSParameterTypes25);
987    
988                            MethodHandler methodHandler = new MethodHandler(methodKey,
989                                            companyId, nodeId, title, max, type, version, displayStyle,
990                                            feedURL, entryURL, locale);
991    
992                            Object returnObj = null;
993    
994                            try {
995                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
996                            }
997                            catch (Exception e) {
998                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
999                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1000                                    }
1001    
1002                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1003                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1004                                    }
1005    
1006                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1007                            }
1008    
1009                            return (java.lang.String)returnObj;
1010                    }
1011                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1012                            _log.error(se, se);
1013    
1014                            throw se;
1015                    }
1016            }
1017    
1018            public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1019                    long companyId, long nodeId, java.lang.String title, int max,
1020                    java.lang.String type, double version, java.lang.String displayStyle,
1021                    java.lang.String feedURL, java.lang.String entryURL,
1022                    java.lang.String attachmentURLPrefix, java.util.Locale locale)
1023                    throws com.liferay.portal.kernel.exception.PortalException,
1024                            com.liferay.portal.kernel.exception.SystemException {
1025                    try {
1026                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1027                                            "getPagesRSS", _getPagesRSSParameterTypes26);
1028    
1029                            MethodHandler methodHandler = new MethodHandler(methodKey,
1030                                            companyId, nodeId, title, max, type, version, displayStyle,
1031                                            feedURL, entryURL, attachmentURLPrefix, locale);
1032    
1033                            Object returnObj = null;
1034    
1035                            try {
1036                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1037                            }
1038                            catch (Exception e) {
1039                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1040                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1041                                    }
1042    
1043                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1044                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1045                                    }
1046    
1047                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1048                            }
1049    
1050                            return (java.lang.String)returnObj;
1051                    }
1052                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1053                            _log.error(se, se);
1054    
1055                            throw se;
1056                    }
1057            }
1058    
1059            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
1060                    HttpPrincipal httpPrincipal, long groupId, long nodeId, int start,
1061                    int end)
1062                    throws com.liferay.portal.kernel.exception.PortalException,
1063                            com.liferay.portal.kernel.exception.SystemException {
1064                    try {
1065                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1066                                            "getRecentChanges", _getRecentChangesParameterTypes27);
1067    
1068                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1069                                            nodeId, start, end);
1070    
1071                            Object returnObj = null;
1072    
1073                            try {
1074                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1075                            }
1076                            catch (Exception e) {
1077                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1078                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1079                                    }
1080    
1081                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1082                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1083                                    }
1084    
1085                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1086                            }
1087    
1088                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1089                    }
1090                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1091                            _log.error(se, se);
1092    
1093                            throw se;
1094                    }
1095            }
1096    
1097            public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
1098                    long groupId, long nodeId)
1099                    throws com.liferay.portal.kernel.exception.PortalException,
1100                            com.liferay.portal.kernel.exception.SystemException {
1101                    try {
1102                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1103                                            "getRecentChangesCount",
1104                                            _getRecentChangesCountParameterTypes28);
1105    
1106                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1107                                            nodeId);
1108    
1109                            Object returnObj = null;
1110    
1111                            try {
1112                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1113                            }
1114                            catch (Exception e) {
1115                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1116                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1117                                    }
1118    
1119                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1120                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1121                                    }
1122    
1123                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1124                            }
1125    
1126                            return ((Integer)returnObj).intValue();
1127                    }
1128                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1129                            _log.error(se, se);
1130    
1131                            throw se;
1132                    }
1133            }
1134    
1135            public static java.lang.String[] getTempPageAttachmentNames(
1136                    HttpPrincipal httpPrincipal, long nodeId,
1137                    java.lang.String tempFolderName)
1138                    throws com.liferay.portal.kernel.exception.PortalException,
1139                            com.liferay.portal.kernel.exception.SystemException {
1140                    try {
1141                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1142                                            "getTempPageAttachmentNames",
1143                                            _getTempPageAttachmentNamesParameterTypes29);
1144    
1145                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1146                                            tempFolderName);
1147    
1148                            Object returnObj = null;
1149    
1150                            try {
1151                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1152                            }
1153                            catch (Exception e) {
1154                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1155                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1156                                    }
1157    
1158                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1159                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1160                                    }
1161    
1162                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1163                            }
1164    
1165                            return (java.lang.String[])returnObj;
1166                    }
1167                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1168                            _log.error(se, se);
1169    
1170                            throw se;
1171                    }
1172            }
1173    
1174            public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
1175                    java.lang.String title, java.lang.String newTitle,
1176                    com.liferay.portal.service.ServiceContext serviceContext)
1177                    throws com.liferay.portal.kernel.exception.PortalException,
1178                            com.liferay.portal.kernel.exception.SystemException {
1179                    try {
1180                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1181                                            "movePage", _movePageParameterTypes30);
1182    
1183                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1184                                            title, newTitle, serviceContext);
1185    
1186                            try {
1187                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1188                            }
1189                            catch (Exception e) {
1190                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1191                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1192                                    }
1193    
1194                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1195                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1196                                    }
1197    
1198                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1199                            }
1200                    }
1201                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1202                            _log.error(se, se);
1203    
1204                            throw se;
1205                    }
1206            }
1207    
1208            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
1209                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1210                    double version, com.liferay.portal.service.ServiceContext serviceContext)
1211                    throws com.liferay.portal.kernel.exception.PortalException,
1212                            com.liferay.portal.kernel.exception.SystemException {
1213                    try {
1214                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1215                                            "revertPage", _revertPageParameterTypes31);
1216    
1217                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1218                                            title, version, serviceContext);
1219    
1220                            Object returnObj = null;
1221    
1222                            try {
1223                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1224                            }
1225                            catch (Exception e) {
1226                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1227                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1228                                    }
1229    
1230                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1231                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1232                                    }
1233    
1234                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1235                            }
1236    
1237                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1238                    }
1239                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1240                            _log.error(se, se);
1241    
1242                            throw se;
1243                    }
1244            }
1245    
1246            public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
1247                    java.lang.String title)
1248                    throws com.liferay.portal.kernel.exception.PortalException,
1249                            com.liferay.portal.kernel.exception.SystemException {
1250                    try {
1251                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1252                                            "subscribePage", _subscribePageParameterTypes32);
1253    
1254                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1255                                            title);
1256    
1257                            try {
1258                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1259                            }
1260                            catch (Exception e) {
1261                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1262                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1263                                    }
1264    
1265                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1266                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1267                                    }
1268    
1269                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1270                            }
1271                    }
1272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1273                            _log.error(se, se);
1274    
1275                            throw se;
1276                    }
1277            }
1278    
1279            public static void unsubscribePage(HttpPrincipal httpPrincipal,
1280                    long nodeId, java.lang.String title)
1281                    throws com.liferay.portal.kernel.exception.PortalException,
1282                            com.liferay.portal.kernel.exception.SystemException {
1283                    try {
1284                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1285                                            "unsubscribePage", _unsubscribePageParameterTypes33);
1286    
1287                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1288                                            title);
1289    
1290                            try {
1291                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1292                            }
1293                            catch (Exception e) {
1294                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1295                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1296                                    }
1297    
1298                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1299                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1300                                    }
1301    
1302                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1303                            }
1304                    }
1305                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1306                            _log.error(se, se);
1307    
1308                            throw se;
1309                    }
1310            }
1311    
1312            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
1313                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1314                    double version, java.lang.String content, java.lang.String summary,
1315                    boolean minorEdit, java.lang.String format,
1316                    java.lang.String parentTitle, java.lang.String redirectTitle,
1317                    com.liferay.portal.service.ServiceContext serviceContext)
1318                    throws com.liferay.portal.kernel.exception.PortalException,
1319                            com.liferay.portal.kernel.exception.SystemException {
1320                    try {
1321                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class.getName(),
1322                                            "updatePage", _updatePageParameterTypes34);
1323    
1324                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1325                                            title, version, content, summary, minorEdit, format,
1326                                            parentTitle, redirectTitle, serviceContext);
1327    
1328                            Object returnObj = null;
1329    
1330                            try {
1331                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1332                            }
1333                            catch (Exception e) {
1334                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1335                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1336                                    }
1337    
1338                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1339                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1340                                    }
1341    
1342                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1343                            }
1344    
1345                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1346                    }
1347                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1348                            _log.error(se, se);
1349    
1350                            throw se;
1351                    }
1352            }
1353    
1354            private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1355            private static final Class<?>[] _addPageParameterTypes0 = new Class[] {
1356                            long.class, java.lang.String.class, java.lang.String.class,
1357                            java.lang.String.class, boolean.class,
1358                            com.liferay.portal.service.ServiceContext.class
1359                    };
1360            private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
1361                            long.class, java.lang.String.class, java.lang.String.class,
1362                            java.lang.String.class, boolean.class, java.lang.String.class,
1363                            java.lang.String.class, java.lang.String.class,
1364                            com.liferay.portal.service.ServiceContext.class
1365                    };
1366            private static final Class<?>[] _addPageAttachmentParameterTypes2 = new Class[] {
1367                            long.class, java.lang.String.class, java.lang.String.class,
1368                            java.io.File.class
1369                    };
1370            private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
1371                            long.class, java.lang.String.class, java.lang.String.class,
1372                            java.io.InputStream.class
1373                    };
1374            private static final Class<?>[] _addPageAttachmentsParameterTypes4 = new Class[] {
1375                            long.class, java.lang.String.class, java.util.List.class
1376                    };
1377            private static final Class<?>[] _addTempPageAttachmentParameterTypes5 = new Class[] {
1378                            long.class, java.lang.String.class, java.lang.String.class,
1379                            java.io.InputStream.class
1380                    };
1381            private static final Class<?>[] _changeParentParameterTypes6 = new Class[] {
1382                            long.class, java.lang.String.class, java.lang.String.class,
1383                            com.liferay.portal.service.ServiceContext.class
1384                    };
1385            private static final Class<?>[] _deletePageParameterTypes7 = new Class[] {
1386                            long.class, java.lang.String.class
1387                    };
1388            private static final Class<?>[] _deletePageParameterTypes8 = new Class[] {
1389                            long.class, java.lang.String.class, double.class
1390                    };
1391            private static final Class<?>[] _deletePageAttachmentParameterTypes9 = new Class[] {
1392                            long.class, java.lang.String.class, java.lang.String.class
1393                    };
1394            private static final Class<?>[] _deleteTempPageAttachmentParameterTypes10 = new Class[] {
1395                            long.class, java.lang.String.class, java.lang.String.class
1396                    };
1397            private static final Class<?>[] _getChildrenParameterTypes11 = new Class[] {
1398                            long.class, long.class, boolean.class, java.lang.String.class
1399                    };
1400            private static final Class<?>[] _getDraftPageParameterTypes12 = new Class[] {
1401                            long.class, java.lang.String.class
1402                    };
1403            private static final Class<?>[] _getNodePagesParameterTypes13 = new Class[] {
1404                            long.class, int.class
1405                    };
1406            private static final Class<?>[] _getNodePagesRSSParameterTypes14 = new Class[] {
1407                            long.class, int.class, java.lang.String.class, double.class,
1408                            java.lang.String.class, java.lang.String.class,
1409                            java.lang.String.class
1410                    };
1411            private static final Class<?>[] _getNodePagesRSSParameterTypes15 = new Class[] {
1412                            long.class, int.class, java.lang.String.class, double.class,
1413                            java.lang.String.class, java.lang.String.class,
1414                            java.lang.String.class, java.lang.String.class
1415                    };
1416            private static final Class<?>[] _getOrphansParameterTypes16 = new Class[] {
1417                            long.class, long.class
1418                    };
1419            private static final Class<?>[] _getPageParameterTypes17 = new Class[] {
1420                            long.class, long.class, java.lang.String.class
1421                    };
1422            private static final Class<?>[] _getPageParameterTypes18 = new Class[] {
1423                            long.class, java.lang.String.class
1424                    };
1425            private static final Class<?>[] _getPageParameterTypes19 = new Class[] {
1426                            long.class, java.lang.String.class, java.lang.Boolean.class
1427                    };
1428            private static final Class<?>[] _getPageParameterTypes20 = new Class[] {
1429                            long.class, java.lang.String.class, double.class
1430                    };
1431            private static final Class<?>[] _getPagesParameterTypes21 = new Class[] {
1432                            long.class, long.class, boolean.class, int.class, int.class,
1433                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1434                    };
1435            private static final Class<?>[] _getPagesParameterTypes22 = new Class[] {
1436                            long.class, long.class, long.class, int.class, int.class, int.class
1437                    };
1438            private static final Class<?>[] _getPagesCountParameterTypes23 = new Class[] {
1439                            long.class, long.class, boolean.class
1440                    };
1441            private static final Class<?>[] _getPagesCountParameterTypes24 = new Class[] {
1442                            long.class, long.class, long.class, int.class
1443                    };
1444            private static final Class<?>[] _getPagesRSSParameterTypes25 = new Class[] {
1445                            long.class, long.class, java.lang.String.class, int.class,
1446                            java.lang.String.class, double.class, java.lang.String.class,
1447                            java.lang.String.class, java.lang.String.class,
1448                            java.util.Locale.class
1449                    };
1450            private static final Class<?>[] _getPagesRSSParameterTypes26 = new Class[] {
1451                            long.class, long.class, java.lang.String.class, int.class,
1452                            java.lang.String.class, double.class, java.lang.String.class,
1453                            java.lang.String.class, java.lang.String.class,
1454                            java.lang.String.class, java.util.Locale.class
1455                    };
1456            private static final Class<?>[] _getRecentChangesParameterTypes27 = new Class[] {
1457                            long.class, long.class, int.class, int.class
1458                    };
1459            private static final Class<?>[] _getRecentChangesCountParameterTypes28 = new Class[] {
1460                            long.class, long.class
1461                    };
1462            private static final Class<?>[] _getTempPageAttachmentNamesParameterTypes29 = new Class[] {
1463                            long.class, java.lang.String.class
1464                    };
1465            private static final Class<?>[] _movePageParameterTypes30 = new Class[] {
1466                            long.class, java.lang.String.class, java.lang.String.class,
1467                            com.liferay.portal.service.ServiceContext.class
1468                    };
1469            private static final Class<?>[] _revertPageParameterTypes31 = new Class[] {
1470                            long.class, java.lang.String.class, double.class,
1471                            com.liferay.portal.service.ServiceContext.class
1472                    };
1473            private static final Class<?>[] _subscribePageParameterTypes32 = new Class[] {
1474                            long.class, java.lang.String.class
1475                    };
1476            private static final Class<?>[] _unsubscribePageParameterTypes33 = new Class[] {
1477                            long.class, java.lang.String.class
1478                    };
1479            private static final Class<?>[] _updatePageParameterTypes34 = new Class[] {
1480                            long.class, java.lang.String.class, double.class,
1481                            java.lang.String.class, java.lang.String.class, boolean.class,
1482                            java.lang.String.class, java.lang.String.class,
1483                            java.lang.String.class,
1484                            com.liferay.portal.service.ServiceContext.class
1485                    };
1486    }