001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.util.MethodHandler;
022    import com.liferay.portal.kernel.util.MethodKey;
023    import com.liferay.portal.security.auth.HttpPrincipal;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link com.liferay.portlet.wiki.service.WikiPageServiceUtil} service utility. The
031     * static methods of this class calls the same methods of the service utility.
032     * However, the signatures are different because it requires an additional
033     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
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    @ProviderType
057    public class WikiPageServiceHttp {
058            public static com.liferay.portlet.wiki.model.WikiPage addPage(
059                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
060                    java.lang.String content, java.lang.String summary, boolean minorEdit,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    try {
064                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
081                            }
082    
083                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
084                    }
085                    catch (com.liferay.portal.kernel.exception.SystemException se) {
086                            _log.error(se, se);
087    
088                            throw se;
089                    }
090            }
091    
092            public static com.liferay.portlet.wiki.model.WikiPage addPage(
093                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
094                    java.lang.String content, java.lang.String summary, boolean minorEdit,
095                    java.lang.String format, java.lang.String parentTitle,
096                    java.lang.String redirectTitle,
097                    com.liferay.portal.service.ServiceContext serviceContext)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    try {
100                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
101                                            "addPage", _addPageParameterTypes1);
102    
103                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
104                                            title, content, summary, minorEdit, format, parentTitle,
105                                            redirectTitle, serviceContext);
106    
107                            Object returnObj = null;
108    
109                            try {
110                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
111                            }
112                            catch (Exception e) {
113                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
114                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
115                                    }
116    
117                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
118                            }
119    
120                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
121                    }
122                    catch (com.liferay.portal.kernel.exception.SystemException se) {
123                            _log.error(se, se);
124    
125                            throw se;
126                    }
127            }
128    
129            public static void addPageAttachment(HttpPrincipal httpPrincipal,
130                    long nodeId, java.lang.String title, java.lang.String fileName,
131                    java.io.File file, java.lang.String mimeType)
132                    throws com.liferay.portal.kernel.exception.PortalException {
133                    try {
134                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
135                                            "addPageAttachment", _addPageAttachmentParameterTypes2);
136    
137                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
138                                            title, fileName, file, mimeType);
139    
140                            try {
141                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
142                            }
143                            catch (Exception e) {
144                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
145                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
146                                    }
147    
148                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
149                            }
150                    }
151                    catch (com.liferay.portal.kernel.exception.SystemException se) {
152                            _log.error(se, se);
153    
154                            throw se;
155                    }
156            }
157    
158            public static void addPageAttachment(HttpPrincipal httpPrincipal,
159                    long nodeId, java.lang.String title, java.lang.String fileName,
160                    java.io.InputStream inputStream, java.lang.String mimeType)
161                    throws com.liferay.portal.kernel.exception.PortalException {
162                    try {
163                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
164                                            "addPageAttachment", _addPageAttachmentParameterTypes3);
165    
166                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
167                                            title, fileName, inputStream, mimeType);
168    
169                            try {
170                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
171                            }
172                            catch (Exception e) {
173                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
174                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
175                                    }
176    
177                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
178                            }
179                    }
180                    catch (com.liferay.portal.kernel.exception.SystemException se) {
181                            _log.error(se, se);
182    
183                            throw se;
184                    }
185            }
186    
187            public static void addPageAttachments(HttpPrincipal httpPrincipal,
188                    long nodeId, java.lang.String title,
189                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
190                    throws com.liferay.portal.kernel.exception.PortalException {
191                    try {
192                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
193                                            "addPageAttachments", _addPageAttachmentsParameterTypes4);
194    
195                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
196                                            title, inputStreamOVPs);
197    
198                            try {
199                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
200                            }
201                            catch (Exception e) {
202                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
203                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
204                                    }
205    
206                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
207                            }
208                    }
209                    catch (com.liferay.portal.kernel.exception.SystemException se) {
210                            _log.error(se, se);
211    
212                            throw se;
213                    }
214            }
215    
216            public static void addTempFileEntry(HttpPrincipal httpPrincipal,
217                    long nodeId, java.lang.String folderName, java.lang.String fileName,
218                    java.io.InputStream inputStream, java.lang.String mimeType)
219                    throws com.liferay.portal.kernel.exception.PortalException {
220                    try {
221                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
222                                            "addTempFileEntry", _addTempFileEntryParameterTypes5);
223    
224                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
225                                            folderName, fileName, inputStream, mimeType);
226    
227                            try {
228                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
229                            }
230                            catch (Exception e) {
231                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
232                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
233                                    }
234    
235                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
236                            }
237                    }
238                    catch (com.liferay.portal.kernel.exception.SystemException se) {
239                            _log.error(se, se);
240    
241                            throw se;
242                    }
243            }
244    
245            public static void addTempPageAttachment(HttpPrincipal httpPrincipal,
246                    long nodeId, java.lang.String fileName,
247                    java.lang.String tempFolderName, java.io.InputStream inputStream,
248                    java.lang.String mimeType)
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    try {
251                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
252                                            "addTempPageAttachment",
253                                            _addTempPageAttachmentParameterTypes6);
254    
255                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
256                                            fileName, tempFolderName, inputStream, mimeType);
257    
258                            try {
259                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
260                            }
261                            catch (Exception e) {
262                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
263                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
264                                    }
265    
266                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
267                            }
268                    }
269                    catch (com.liferay.portal.kernel.exception.SystemException se) {
270                            _log.error(se, se);
271    
272                            throw se;
273                    }
274            }
275    
276            public static void changeNode(HttpPrincipal httpPrincipal, long nodeId,
277                    java.lang.String title, long newNodeId,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException {
280                    try {
281                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
282                                            "changeNode", _changeNodeParameterTypes7);
283    
284                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
285                                            title, newNodeId, serviceContext);
286    
287                            try {
288                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
289                            }
290                            catch (Exception e) {
291                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
292                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
293                                    }
294    
295                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
296                            }
297                    }
298                    catch (com.liferay.portal.kernel.exception.SystemException se) {
299                            _log.error(se, se);
300    
301                            throw se;
302                    }
303            }
304    
305            public static void changeParent(HttpPrincipal httpPrincipal, long nodeId,
306                    java.lang.String title, java.lang.String newParentTitle,
307                    com.liferay.portal.service.ServiceContext serviceContext)
308                    throws com.liferay.portal.kernel.exception.PortalException {
309                    try {
310                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
311                                            "changeParent", _changeParentParameterTypes8);
312    
313                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
314                                            title, newParentTitle, serviceContext);
315    
316                            try {
317                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
318                            }
319                            catch (Exception e) {
320                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
321                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
322                                    }
323    
324                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
325                            }
326                    }
327                    catch (com.liferay.portal.kernel.exception.SystemException se) {
328                            _log.error(se, se);
329    
330                            throw se;
331                    }
332            }
333    
334            public static void copyPageAttachments(HttpPrincipal httpPrincipal,
335                    long templateNodeId, java.lang.String templateTitle, long nodeId,
336                    java.lang.String title)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    try {
339                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
340                                            "copyPageAttachments", _copyPageAttachmentsParameterTypes9);
341    
342                            MethodHandler methodHandler = new MethodHandler(methodKey,
343                                            templateNodeId, templateTitle, nodeId, title);
344    
345                            try {
346                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
347                            }
348                            catch (Exception e) {
349                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
350                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
351                                    }
352    
353                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
354                            }
355                    }
356                    catch (com.liferay.portal.kernel.exception.SystemException se) {
357                            _log.error(se, se);
358    
359                            throw se;
360                    }
361            }
362    
363            public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
364                    java.lang.String title)
365                    throws com.liferay.portal.kernel.exception.PortalException {
366                    try {
367                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
368                                            "deletePage", _deletePageParameterTypes10);
369    
370                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
371                                            title);
372    
373                            try {
374                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
375                            }
376                            catch (Exception e) {
377                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
378                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
379                                    }
380    
381                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
382                            }
383                    }
384                    catch (com.liferay.portal.kernel.exception.SystemException se) {
385                            _log.error(se, se);
386    
387                            throw se;
388                    }
389            }
390    
391            public static void deletePage(HttpPrincipal httpPrincipal, long nodeId,
392                    java.lang.String title, double version)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    try {
395                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
396                                            "deletePage", _deletePageParameterTypes11);
397    
398                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
399                                            title, version);
400    
401                            try {
402                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
403                            }
404                            catch (Exception e) {
405                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
406                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
407                                    }
408    
409                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
410                            }
411                    }
412                    catch (com.liferay.portal.kernel.exception.SystemException se) {
413                            _log.error(se, se);
414    
415                            throw se;
416                    }
417            }
418    
419            public static void deletePageAttachment(HttpPrincipal httpPrincipal,
420                    long nodeId, java.lang.String title, java.lang.String fileName)
421                    throws com.liferay.portal.kernel.exception.PortalException {
422                    try {
423                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
424                                            "deletePageAttachment",
425                                            _deletePageAttachmentParameterTypes12);
426    
427                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
428                                            title, fileName);
429    
430                            try {
431                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
432                            }
433                            catch (Exception e) {
434                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
435                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
436                                    }
437    
438                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
439                            }
440                    }
441                    catch (com.liferay.portal.kernel.exception.SystemException se) {
442                            _log.error(se, se);
443    
444                            throw se;
445                    }
446            }
447    
448            public static void deletePageAttachments(HttpPrincipal httpPrincipal,
449                    long nodeId, java.lang.String title)
450                    throws com.liferay.portal.kernel.exception.PortalException {
451                    try {
452                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
453                                            "deletePageAttachments",
454                                            _deletePageAttachmentsParameterTypes13);
455    
456                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
457                                            title);
458    
459                            try {
460                                    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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
468                            }
469                    }
470                    catch (com.liferay.portal.kernel.exception.SystemException se) {
471                            _log.error(se, se);
472    
473                            throw se;
474                    }
475            }
476    
477            public static void deleteTempFileEntry(HttpPrincipal httpPrincipal,
478                    long nodeId, java.lang.String folderName, java.lang.String fileName)
479                    throws com.liferay.portal.kernel.exception.PortalException {
480                    try {
481                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
482                                            "deleteTempFileEntry", _deleteTempFileEntryParameterTypes14);
483    
484                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
485                                            folderName, fileName);
486    
487                            try {
488                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
489                            }
490                            catch (Exception e) {
491                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
492                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
493                                    }
494    
495                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
496                            }
497                    }
498                    catch (com.liferay.portal.kernel.exception.SystemException se) {
499                            _log.error(se, se);
500    
501                            throw se;
502                    }
503            }
504    
505            public static void deleteTrashPageAttachments(HttpPrincipal httpPrincipal,
506                    long nodeId, java.lang.String title)
507                    throws com.liferay.portal.kernel.exception.PortalException {
508                    try {
509                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
510                                            "deleteTrashPageAttachments",
511                                            _deleteTrashPageAttachmentsParameterTypes15);
512    
513                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
514                                            title);
515    
516                            try {
517                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
518                            }
519                            catch (Exception e) {
520                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
521                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
522                                    }
523    
524                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
525                            }
526                    }
527                    catch (com.liferay.portal.kernel.exception.SystemException se) {
528                            _log.error(se, se);
529    
530                            throw se;
531                    }
532            }
533    
534            public static void discardDraft(HttpPrincipal httpPrincipal, long nodeId,
535                    java.lang.String title, double version)
536                    throws com.liferay.portal.kernel.exception.PortalException {
537                    try {
538                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
539                                            "discardDraft", _discardDraftParameterTypes16);
540    
541                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
542                                            title, version);
543    
544                            try {
545                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
546                            }
547                            catch (Exception e) {
548                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
549                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
550                                    }
551    
552                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
553                            }
554                    }
555                    catch (com.liferay.portal.kernel.exception.SystemException se) {
556                            _log.error(se, se);
557    
558                            throw se;
559                    }
560            }
561    
562            public static com.liferay.portlet.wiki.model.WikiPage fetchPage(
563                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
564                    double version)
565                    throws com.liferay.portal.kernel.exception.PortalException {
566                    try {
567                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
568                                            "fetchPage", _fetchPageParameterTypes17);
569    
570                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
571                                            title, version);
572    
573                            Object returnObj = null;
574    
575                            try {
576                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
577                            }
578                            catch (Exception e) {
579                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
580                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
581                                    }
582    
583                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
584                            }
585    
586                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
587                    }
588                    catch (com.liferay.portal.kernel.exception.SystemException se) {
589                            _log.error(se, se);
590    
591                            throw se;
592                    }
593            }
594    
595            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
596                    HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
597                    java.lang.String parentTitle)
598                    throws com.liferay.portal.kernel.exception.PortalException {
599                    try {
600                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
601                                            "getChildren", _getChildrenParameterTypes18);
602    
603                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
604                                            nodeId, head, parentTitle);
605    
606                            Object returnObj = null;
607    
608                            try {
609                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
610                            }
611                            catch (Exception e) {
612                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
613                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
614                                    }
615    
616                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
617                            }
618    
619                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
620                    }
621                    catch (com.liferay.portal.kernel.exception.SystemException se) {
622                            _log.error(se, se);
623    
624                            throw se;
625                    }
626            }
627    
628            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
629                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
630                    throws com.liferay.portal.kernel.exception.PortalException {
631                    try {
632                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
633                                            "getDraftPage", _getDraftPageParameterTypes19);
634    
635                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
636                                            title);
637    
638                            Object returnObj = null;
639    
640                            try {
641                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
642                            }
643                            catch (Exception e) {
644                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
645                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
646                                    }
647    
648                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
649                            }
650    
651                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
652                    }
653                    catch (com.liferay.portal.kernel.exception.SystemException se) {
654                            _log.error(se, se);
655    
656                            throw se;
657                    }
658            }
659    
660            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
661                    HttpPrincipal httpPrincipal, long nodeId, int max)
662                    throws com.liferay.portal.kernel.exception.PortalException {
663                    try {
664                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
665                                            "getNodePages", _getNodePagesParameterTypes20);
666    
667                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
668                                            max);
669    
670                            Object returnObj = null;
671    
672                            try {
673                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
674                            }
675                            catch (Exception e) {
676                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
677                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
678                                    }
679    
680                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
681                            }
682    
683                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
684                    }
685                    catch (com.liferay.portal.kernel.exception.SystemException se) {
686                            _log.error(se, se);
687    
688                            throw se;
689                    }
690            }
691    
692            public static java.lang.String getNodePagesRSS(
693                    HttpPrincipal httpPrincipal, long nodeId, int max,
694                    java.lang.String type, double version, java.lang.String displayStyle,
695                    java.lang.String feedURL, java.lang.String entryURL)
696                    throws com.liferay.portal.kernel.exception.PortalException {
697                    try {
698                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
699                                            "getNodePagesRSS", _getNodePagesRSSParameterTypes21);
700    
701                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
702                                            max, type, version, displayStyle, feedURL, entryURL);
703    
704                            Object returnObj = null;
705    
706                            try {
707                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
708                            }
709                            catch (Exception e) {
710                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
711                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
712                                    }
713    
714                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
715                            }
716    
717                            return (java.lang.String)returnObj;
718                    }
719                    catch (com.liferay.portal.kernel.exception.SystemException se) {
720                            _log.error(se, se);
721    
722                            throw se;
723                    }
724            }
725    
726            public static java.lang.String getNodePagesRSS(
727                    HttpPrincipal httpPrincipal, long nodeId, int max,
728                    java.lang.String type, double version, java.lang.String displayStyle,
729                    java.lang.String feedURL, java.lang.String entryURL,
730                    java.lang.String attachmentURLPrefix)
731                    throws com.liferay.portal.kernel.exception.PortalException {
732                    try {
733                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
734                                            "getNodePagesRSS", _getNodePagesRSSParameterTypes22);
735    
736                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
737                                            max, type, version, displayStyle, feedURL, entryURL,
738                                            attachmentURLPrefix);
739    
740                            Object returnObj = null;
741    
742                            try {
743                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
744                            }
745                            catch (Exception e) {
746                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
747                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
748                                    }
749    
750                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
751                            }
752    
753                            return (java.lang.String)returnObj;
754                    }
755                    catch (com.liferay.portal.kernel.exception.SystemException se) {
756                            _log.error(se, se);
757    
758                            throw se;
759                    }
760            }
761    
762            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
763                    HttpPrincipal httpPrincipal, long groupId, long nodeId)
764                    throws com.liferay.portal.kernel.exception.PortalException {
765                    try {
766                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
767                                            "getOrphans", _getOrphansParameterTypes23);
768    
769                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
770                                            nodeId);
771    
772                            Object returnObj = null;
773    
774                            try {
775                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
776                            }
777                            catch (Exception e) {
778                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
779                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
780                                    }
781    
782                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
783                            }
784    
785                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
786                    }
787                    catch (com.liferay.portal.kernel.exception.SystemException se) {
788                            _log.error(se, se);
789    
790                            throw se;
791                    }
792            }
793    
794            public static com.liferay.portlet.wiki.model.WikiPage getPage(
795                    HttpPrincipal httpPrincipal, long groupId, long nodeId,
796                    java.lang.String title)
797                    throws com.liferay.portal.kernel.exception.PortalException {
798                    try {
799                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
800                                            "getPage", _getPageParameterTypes24);
801    
802                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
803                                            nodeId, title);
804    
805                            Object returnObj = null;
806    
807                            try {
808                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
809                            }
810                            catch (Exception e) {
811                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
812                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
813                                    }
814    
815                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
816                            }
817    
818                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
819                    }
820                    catch (com.liferay.portal.kernel.exception.SystemException se) {
821                            _log.error(se, se);
822    
823                            throw se;
824                    }
825            }
826    
827            public static com.liferay.portlet.wiki.model.WikiPage getPage(
828                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
829                    throws com.liferay.portal.kernel.exception.PortalException {
830                    try {
831                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
832                                            "getPage", _getPageParameterTypes25);
833    
834                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
835                                            title);
836    
837                            Object returnObj = null;
838    
839                            try {
840                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
841                            }
842                            catch (Exception e) {
843                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
844                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
845                                    }
846    
847                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
848                            }
849    
850                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
851                    }
852                    catch (com.liferay.portal.kernel.exception.SystemException se) {
853                            _log.error(se, se);
854    
855                            throw se;
856                    }
857            }
858    
859            public static com.liferay.portlet.wiki.model.WikiPage getPage(
860                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
861                    java.lang.Boolean head)
862                    throws com.liferay.portal.kernel.exception.PortalException {
863                    try {
864                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
865                                            "getPage", _getPageParameterTypes26);
866    
867                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
868                                            title, head);
869    
870                            Object returnObj = null;
871    
872                            try {
873                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
874                            }
875                            catch (Exception e) {
876                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
877                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
878                                    }
879    
880                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
881                            }
882    
883                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
884                    }
885                    catch (com.liferay.portal.kernel.exception.SystemException se) {
886                            _log.error(se, se);
887    
888                            throw se;
889                    }
890            }
891    
892            public static com.liferay.portlet.wiki.model.WikiPage getPage(
893                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
894                    double version)
895                    throws com.liferay.portal.kernel.exception.PortalException {
896                    try {
897                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
898                                            "getPage", _getPageParameterTypes27);
899    
900                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
901                                            title, version);
902    
903                            Object returnObj = null;
904    
905                            try {
906                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
907                            }
908                            catch (Exception e) {
909                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
910                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
911                                    }
912    
913                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
914                            }
915    
916                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
917                    }
918                    catch (com.liferay.portal.kernel.exception.SystemException se) {
919                            _log.error(se, se);
920    
921                            throw se;
922                    }
923            }
924    
925            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
926                    HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
927                    int status, int start, int end,
928                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.wiki.model.WikiPage> obc)
929                    throws com.liferay.portal.kernel.exception.PortalException {
930                    try {
931                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
932                                            "getPages", _getPagesParameterTypes28);
933    
934                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
935                                            nodeId, head, status, start, end, obc);
936    
937                            Object returnObj = null;
938    
939                            try {
940                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
941                            }
942                            catch (Exception e) {
943                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
944                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
945                                    }
946    
947                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
948                            }
949    
950                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
951                    }
952                    catch (com.liferay.portal.kernel.exception.SystemException se) {
953                            _log.error(se, se);
954    
955                            throw se;
956                    }
957            }
958    
959            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
960                    HttpPrincipal httpPrincipal, long groupId, long userId, long nodeId,
961                    int status, int start, int end)
962                    throws com.liferay.portal.kernel.exception.PortalException {
963                    try {
964                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
965                                            "getPages", _getPagesParameterTypes29);
966    
967                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
968                                            userId, nodeId, status, start, end);
969    
970                            Object returnObj = null;
971    
972                            try {
973                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
974                            }
975                            catch (Exception e) {
976                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
977                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
978                                    }
979    
980                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
981                            }
982    
983                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
984                    }
985                    catch (com.liferay.portal.kernel.exception.SystemException se) {
986                            _log.error(se, se);
987    
988                            throw se;
989                    }
990            }
991    
992            public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
993                    long nodeId, boolean head)
994                    throws com.liferay.portal.kernel.exception.PortalException {
995                    try {
996                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
997                                            "getPagesCount", _getPagesCountParameterTypes30);
998    
999                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1000                                            nodeId, head);
1001    
1002                            Object returnObj = null;
1003    
1004                            try {
1005                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1006                            }
1007                            catch (Exception e) {
1008                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1009                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1010                                    }
1011    
1012                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1013                            }
1014    
1015                            return ((Integer)returnObj).intValue();
1016                    }
1017                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1018                            _log.error(se, se);
1019    
1020                            throw se;
1021                    }
1022            }
1023    
1024            public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
1025                    long userId, long nodeId, int status)
1026                    throws com.liferay.portal.kernel.exception.PortalException {
1027                    try {
1028                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1029                                            "getPagesCount", _getPagesCountParameterTypes31);
1030    
1031                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1032                                            userId, nodeId, status);
1033    
1034                            Object returnObj = null;
1035    
1036                            try {
1037                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1038                            }
1039                            catch (Exception e) {
1040                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1041                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1042                                    }
1043    
1044                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1045                            }
1046    
1047                            return ((Integer)returnObj).intValue();
1048                    }
1049                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1050                            _log.error(se, se);
1051    
1052                            throw se;
1053                    }
1054            }
1055    
1056            public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1057                    long companyId, long nodeId, java.lang.String title, int max,
1058                    java.lang.String type, double version, java.lang.String displayStyle,
1059                    java.lang.String feedURL, java.lang.String entryURL,
1060                    java.util.Locale locale)
1061                    throws com.liferay.portal.kernel.exception.PortalException {
1062                    try {
1063                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1064                                            "getPagesRSS", _getPagesRSSParameterTypes32);
1065    
1066                            MethodHandler methodHandler = new MethodHandler(methodKey,
1067                                            companyId, nodeId, title, max, type, version, displayStyle,
1068                                            feedURL, entryURL, locale);
1069    
1070                            Object returnObj = null;
1071    
1072                            try {
1073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1074                            }
1075                            catch (Exception e) {
1076                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1077                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1078                                    }
1079    
1080                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1081                            }
1082    
1083                            return (java.lang.String)returnObj;
1084                    }
1085                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1086                            _log.error(se, se);
1087    
1088                            throw se;
1089                    }
1090            }
1091    
1092            public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1093                    long companyId, long nodeId, java.lang.String title, int max,
1094                    java.lang.String type, double version, java.lang.String displayStyle,
1095                    java.lang.String feedURL, java.lang.String entryURL,
1096                    java.lang.String attachmentURLPrefix, java.util.Locale locale)
1097                    throws com.liferay.portal.kernel.exception.PortalException {
1098                    try {
1099                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1100                                            "getPagesRSS", _getPagesRSSParameterTypes33);
1101    
1102                            MethodHandler methodHandler = new MethodHandler(methodKey,
1103                                            companyId, nodeId, title, max, type, version, displayStyle,
1104                                            feedURL, entryURL, attachmentURLPrefix, locale);
1105    
1106                            Object returnObj = null;
1107    
1108                            try {
1109                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1110                            }
1111                            catch (Exception e) {
1112                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1113                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1114                                    }
1115    
1116                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1117                            }
1118    
1119                            return (java.lang.String)returnObj;
1120                    }
1121                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1122                            _log.error(se, se);
1123    
1124                            throw se;
1125                    }
1126            }
1127    
1128            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
1129                    HttpPrincipal httpPrincipal, long groupId, long nodeId, int start,
1130                    int end) throws com.liferay.portal.kernel.exception.PortalException {
1131                    try {
1132                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1133                                            "getRecentChanges", _getRecentChangesParameterTypes34);
1134    
1135                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1136                                            nodeId, start, end);
1137    
1138                            Object returnObj = null;
1139    
1140                            try {
1141                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1142                            }
1143                            catch (Exception e) {
1144                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1145                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1146                                    }
1147    
1148                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1149                            }
1150    
1151                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1152                    }
1153                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1154                            _log.error(se, se);
1155    
1156                            throw se;
1157                    }
1158            }
1159    
1160            public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
1161                    long groupId, long nodeId)
1162                    throws com.liferay.portal.kernel.exception.PortalException {
1163                    try {
1164                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1165                                            "getRecentChangesCount",
1166                                            _getRecentChangesCountParameterTypes35);
1167    
1168                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1169                                            nodeId);
1170    
1171                            Object returnObj = null;
1172    
1173                            try {
1174                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1175                            }
1176                            catch (Exception e) {
1177                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1178                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1179                                    }
1180    
1181                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1182                            }
1183    
1184                            return ((Integer)returnObj).intValue();
1185                    }
1186                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1187                            _log.error(se, se);
1188    
1189                            throw se;
1190                    }
1191            }
1192    
1193            public static java.lang.String[] getTempFileNames(
1194                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String folderName)
1195                    throws com.liferay.portal.kernel.exception.PortalException {
1196                    try {
1197                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1198                                            "getTempFileNames", _getTempFileNamesParameterTypes36);
1199    
1200                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1201                                            folderName);
1202    
1203                            Object returnObj = null;
1204    
1205                            try {
1206                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1207                            }
1208                            catch (Exception e) {
1209                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1210                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1211                                    }
1212    
1213                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1214                            }
1215    
1216                            return (java.lang.String[])returnObj;
1217                    }
1218                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1219                            _log.error(se, se);
1220    
1221                            throw se;
1222                    }
1223            }
1224    
1225            public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
1226                    java.lang.String title, java.lang.String newTitle,
1227                    com.liferay.portal.service.ServiceContext serviceContext)
1228                    throws com.liferay.portal.kernel.exception.PortalException {
1229                    try {
1230                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1231                                            "movePage", _movePageParameterTypes37);
1232    
1233                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1234                                            title, newTitle, serviceContext);
1235    
1236                            try {
1237                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1238                            }
1239                            catch (Exception e) {
1240                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1241                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1242                                    }
1243    
1244                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1245                            }
1246                    }
1247                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1248                            _log.error(se, se);
1249    
1250                            throw se;
1251                    }
1252            }
1253    
1254            public static com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(
1255                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1256                    java.lang.String fileName)
1257                    throws com.liferay.portal.kernel.exception.PortalException {
1258                    try {
1259                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1260                                            "movePageAttachmentToTrash",
1261                                            _movePageAttachmentToTrashParameterTypes38);
1262    
1263                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1264                                            title, fileName);
1265    
1266                            Object returnObj = null;
1267    
1268                            try {
1269                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1270                            }
1271                            catch (Exception e) {
1272                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1273                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1274                                    }
1275    
1276                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1277                            }
1278    
1279                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
1280                    }
1281                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1282                            _log.error(se, se);
1283    
1284                            throw se;
1285                    }
1286            }
1287    
1288            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1289                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
1290                    throws com.liferay.portal.kernel.exception.PortalException {
1291                    try {
1292                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1293                                            "movePageToTrash", _movePageToTrashParameterTypes39);
1294    
1295                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1296                                            title);
1297    
1298                            Object returnObj = null;
1299    
1300                            try {
1301                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1302                            }
1303                            catch (Exception e) {
1304                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1305                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1306                                    }
1307    
1308                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1309                            }
1310    
1311                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1312                    }
1313                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1314                            _log.error(se, se);
1315    
1316                            throw se;
1317                    }
1318            }
1319    
1320            public static com.liferay.portlet.wiki.model.WikiPage movePageToTrash(
1321                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1322                    double version)
1323                    throws com.liferay.portal.kernel.exception.PortalException {
1324                    try {
1325                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1326                                            "movePageToTrash", _movePageToTrashParameterTypes40);
1327    
1328                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1329                                            title, version);
1330    
1331                            Object returnObj = null;
1332    
1333                            try {
1334                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1335                            }
1336                            catch (Exception e) {
1337                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1338                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1339                                    }
1340    
1341                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1342                            }
1343    
1344                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1345                    }
1346                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1347                            _log.error(se, se);
1348    
1349                            throw se;
1350                    }
1351            }
1352    
1353            public static void renamePage(HttpPrincipal httpPrincipal, long nodeId,
1354                    java.lang.String title, java.lang.String newTitle,
1355                    com.liferay.portal.service.ServiceContext serviceContext)
1356                    throws com.liferay.portal.kernel.exception.PortalException {
1357                    try {
1358                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1359                                            "renamePage", _renamePageParameterTypes41);
1360    
1361                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1362                                            title, newTitle, serviceContext);
1363    
1364                            try {
1365                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1366                            }
1367                            catch (Exception e) {
1368                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1369                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1370                                    }
1371    
1372                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1373                            }
1374                    }
1375                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1376                            _log.error(se, se);
1377    
1378                            throw se;
1379                    }
1380            }
1381    
1382            public static void restorePageAttachmentFromTrash(
1383                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1384                    java.lang.String fileName)
1385                    throws com.liferay.portal.kernel.exception.PortalException {
1386                    try {
1387                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1388                                            "restorePageAttachmentFromTrash",
1389                                            _restorePageAttachmentFromTrashParameterTypes42);
1390    
1391                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1392                                            title, fileName);
1393    
1394                            try {
1395                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1396                            }
1397                            catch (Exception e) {
1398                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1399                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1400                                    }
1401    
1402                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1403                            }
1404                    }
1405                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1406                            _log.error(se, se);
1407    
1408                            throw se;
1409                    }
1410            }
1411    
1412            public static void restorePageFromTrash(HttpPrincipal httpPrincipal,
1413                    long resourcePrimKey)
1414                    throws com.liferay.portal.kernel.exception.PortalException {
1415                    try {
1416                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1417                                            "restorePageFromTrash",
1418                                            _restorePageFromTrashParameterTypes43);
1419    
1420                            MethodHandler methodHandler = new MethodHandler(methodKey,
1421                                            resourcePrimKey);
1422    
1423                            try {
1424                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1425                            }
1426                            catch (Exception e) {
1427                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1428                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1429                                    }
1430    
1431                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1432                            }
1433                    }
1434                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1435                            _log.error(se, se);
1436    
1437                            throw se;
1438                    }
1439            }
1440    
1441            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
1442                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1443                    double version, com.liferay.portal.service.ServiceContext serviceContext)
1444                    throws com.liferay.portal.kernel.exception.PortalException {
1445                    try {
1446                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1447                                            "revertPage", _revertPageParameterTypes44);
1448    
1449                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1450                                            title, version, serviceContext);
1451    
1452                            Object returnObj = null;
1453    
1454                            try {
1455                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1456                            }
1457                            catch (Exception e) {
1458                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1459                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1460                                    }
1461    
1462                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1463                            }
1464    
1465                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1466                    }
1467                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1468                            _log.error(se, se);
1469    
1470                            throw se;
1471                    }
1472            }
1473    
1474            public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
1475                    java.lang.String title)
1476                    throws com.liferay.portal.kernel.exception.PortalException {
1477                    try {
1478                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1479                                            "subscribePage", _subscribePageParameterTypes45);
1480    
1481                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1482                                            title);
1483    
1484                            try {
1485                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1486                            }
1487                            catch (Exception e) {
1488                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1489                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1490                                    }
1491    
1492                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1493                            }
1494                    }
1495                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1496                            _log.error(se, se);
1497    
1498                            throw se;
1499                    }
1500            }
1501    
1502            public static void unsubscribePage(HttpPrincipal httpPrincipal,
1503                    long nodeId, java.lang.String title)
1504                    throws com.liferay.portal.kernel.exception.PortalException {
1505                    try {
1506                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1507                                            "unsubscribePage", _unsubscribePageParameterTypes46);
1508    
1509                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1510                                            title);
1511    
1512                            try {
1513                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1514                            }
1515                            catch (Exception e) {
1516                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1517                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1518                                    }
1519    
1520                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1521                            }
1522                    }
1523                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1524                            _log.error(se, se);
1525    
1526                            throw se;
1527                    }
1528            }
1529    
1530            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
1531                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1532                    double version, java.lang.String content, java.lang.String summary,
1533                    boolean minorEdit, java.lang.String format,
1534                    java.lang.String parentTitle, java.lang.String redirectTitle,
1535                    com.liferay.portal.service.ServiceContext serviceContext)
1536                    throws com.liferay.portal.kernel.exception.PortalException {
1537                    try {
1538                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1539                                            "updatePage", _updatePageParameterTypes47);
1540    
1541                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1542                                            title, version, content, summary, minorEdit, format,
1543                                            parentTitle, redirectTitle, serviceContext);
1544    
1545                            Object returnObj = null;
1546    
1547                            try {
1548                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1549                            }
1550                            catch (Exception e) {
1551                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1552                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1553                                    }
1554    
1555                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1556                            }
1557    
1558                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1559                    }
1560                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1561                            _log.error(se, se);
1562    
1563                            throw se;
1564                    }
1565            }
1566    
1567            private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1568            private static final Class<?>[] _addPageParameterTypes0 = new Class[] {
1569                            long.class, java.lang.String.class, java.lang.String.class,
1570                            java.lang.String.class, boolean.class,
1571                            com.liferay.portal.service.ServiceContext.class
1572                    };
1573            private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
1574                            long.class, java.lang.String.class, java.lang.String.class,
1575                            java.lang.String.class, boolean.class, java.lang.String.class,
1576                            java.lang.String.class, java.lang.String.class,
1577                            com.liferay.portal.service.ServiceContext.class
1578                    };
1579            private static final Class<?>[] _addPageAttachmentParameterTypes2 = new Class[] {
1580                            long.class, java.lang.String.class, java.lang.String.class,
1581                            java.io.File.class, java.lang.String.class
1582                    };
1583            private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
1584                            long.class, java.lang.String.class, java.lang.String.class,
1585                            java.io.InputStream.class, java.lang.String.class
1586                    };
1587            private static final Class<?>[] _addPageAttachmentsParameterTypes4 = new Class[] {
1588                            long.class, java.lang.String.class, java.util.List.class
1589                    };
1590            private static final Class<?>[] _addTempFileEntryParameterTypes5 = new Class[] {
1591                            long.class, java.lang.String.class, java.lang.String.class,
1592                            java.io.InputStream.class, java.lang.String.class
1593                    };
1594            private static final Class<?>[] _addTempPageAttachmentParameterTypes6 = new Class[] {
1595                            long.class, java.lang.String.class, java.lang.String.class,
1596                            java.io.InputStream.class, java.lang.String.class
1597                    };
1598            private static final Class<?>[] _changeNodeParameterTypes7 = new Class[] {
1599                            long.class, java.lang.String.class, long.class,
1600                            com.liferay.portal.service.ServiceContext.class
1601                    };
1602            private static final Class<?>[] _changeParentParameterTypes8 = new Class[] {
1603                            long.class, java.lang.String.class, java.lang.String.class,
1604                            com.liferay.portal.service.ServiceContext.class
1605                    };
1606            private static final Class<?>[] _copyPageAttachmentsParameterTypes9 = new Class[] {
1607                            long.class, java.lang.String.class, long.class,
1608                            java.lang.String.class
1609                    };
1610            private static final Class<?>[] _deletePageParameterTypes10 = new Class[] {
1611                            long.class, java.lang.String.class
1612                    };
1613            private static final Class<?>[] _deletePageParameterTypes11 = new Class[] {
1614                            long.class, java.lang.String.class, double.class
1615                    };
1616            private static final Class<?>[] _deletePageAttachmentParameterTypes12 = new Class[] {
1617                            long.class, java.lang.String.class, java.lang.String.class
1618                    };
1619            private static final Class<?>[] _deletePageAttachmentsParameterTypes13 = new Class[] {
1620                            long.class, java.lang.String.class
1621                    };
1622            private static final Class<?>[] _deleteTempFileEntryParameterTypes14 = new Class[] {
1623                            long.class, java.lang.String.class, java.lang.String.class
1624                    };
1625            private static final Class<?>[] _deleteTrashPageAttachmentsParameterTypes15 = new Class[] {
1626                            long.class, java.lang.String.class
1627                    };
1628            private static final Class<?>[] _discardDraftParameterTypes16 = new Class[] {
1629                            long.class, java.lang.String.class, double.class
1630                    };
1631            private static final Class<?>[] _fetchPageParameterTypes17 = new Class[] {
1632                            long.class, java.lang.String.class, double.class
1633                    };
1634            private static final Class<?>[] _getChildrenParameterTypes18 = new Class[] {
1635                            long.class, long.class, boolean.class, java.lang.String.class
1636                    };
1637            private static final Class<?>[] _getDraftPageParameterTypes19 = new Class[] {
1638                            long.class, java.lang.String.class
1639                    };
1640            private static final Class<?>[] _getNodePagesParameterTypes20 = new Class[] {
1641                            long.class, int.class
1642                    };
1643            private static final Class<?>[] _getNodePagesRSSParameterTypes21 = new Class[] {
1644                            long.class, int.class, java.lang.String.class, double.class,
1645                            java.lang.String.class, java.lang.String.class,
1646                            java.lang.String.class
1647                    };
1648            private static final Class<?>[] _getNodePagesRSSParameterTypes22 = new Class[] {
1649                            long.class, int.class, java.lang.String.class, double.class,
1650                            java.lang.String.class, java.lang.String.class,
1651                            java.lang.String.class, java.lang.String.class
1652                    };
1653            private static final Class<?>[] _getOrphansParameterTypes23 = new Class[] {
1654                            long.class, long.class
1655                    };
1656            private static final Class<?>[] _getPageParameterTypes24 = new Class[] {
1657                            long.class, long.class, java.lang.String.class
1658                    };
1659            private static final Class<?>[] _getPageParameterTypes25 = new Class[] {
1660                            long.class, java.lang.String.class
1661                    };
1662            private static final Class<?>[] _getPageParameterTypes26 = new Class[] {
1663                            long.class, java.lang.String.class, java.lang.Boolean.class
1664                    };
1665            private static final Class<?>[] _getPageParameterTypes27 = new Class[] {
1666                            long.class, java.lang.String.class, double.class
1667                    };
1668            private static final Class<?>[] _getPagesParameterTypes28 = new Class[] {
1669                            long.class, long.class, boolean.class, int.class, int.class,
1670                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1671                    };
1672            private static final Class<?>[] _getPagesParameterTypes29 = new Class[] {
1673                            long.class, long.class, long.class, int.class, int.class, int.class
1674                    };
1675            private static final Class<?>[] _getPagesCountParameterTypes30 = new Class[] {
1676                            long.class, long.class, boolean.class
1677                    };
1678            private static final Class<?>[] _getPagesCountParameterTypes31 = new Class[] {
1679                            long.class, long.class, long.class, int.class
1680                    };
1681            private static final Class<?>[] _getPagesRSSParameterTypes32 = new Class[] {
1682                            long.class, long.class, java.lang.String.class, int.class,
1683                            java.lang.String.class, double.class, java.lang.String.class,
1684                            java.lang.String.class, java.lang.String.class,
1685                            java.util.Locale.class
1686                    };
1687            private static final Class<?>[] _getPagesRSSParameterTypes33 = new Class[] {
1688                            long.class, long.class, java.lang.String.class, int.class,
1689                            java.lang.String.class, double.class, java.lang.String.class,
1690                            java.lang.String.class, java.lang.String.class,
1691                            java.lang.String.class, java.util.Locale.class
1692                    };
1693            private static final Class<?>[] _getRecentChangesParameterTypes34 = new Class[] {
1694                            long.class, long.class, int.class, int.class
1695                    };
1696            private static final Class<?>[] _getRecentChangesCountParameterTypes35 = new Class[] {
1697                            long.class, long.class
1698                    };
1699            private static final Class<?>[] _getTempFileNamesParameterTypes36 = new Class[] {
1700                            long.class, java.lang.String.class
1701                    };
1702            private static final Class<?>[] _movePageParameterTypes37 = new Class[] {
1703                            long.class, java.lang.String.class, java.lang.String.class,
1704                            com.liferay.portal.service.ServiceContext.class
1705                    };
1706            private static final Class<?>[] _movePageAttachmentToTrashParameterTypes38 = new Class[] {
1707                            long.class, java.lang.String.class, java.lang.String.class
1708                    };
1709            private static final Class<?>[] _movePageToTrashParameterTypes39 = new Class[] {
1710                            long.class, java.lang.String.class
1711                    };
1712            private static final Class<?>[] _movePageToTrashParameterTypes40 = new Class[] {
1713                            long.class, java.lang.String.class, double.class
1714                    };
1715            private static final Class<?>[] _renamePageParameterTypes41 = new Class[] {
1716                            long.class, java.lang.String.class, java.lang.String.class,
1717                            com.liferay.portal.service.ServiceContext.class
1718                    };
1719            private static final Class<?>[] _restorePageAttachmentFromTrashParameterTypes42 =
1720                    new Class[] { long.class, java.lang.String.class, java.lang.String.class };
1721            private static final Class<?>[] _restorePageFromTrashParameterTypes43 = new Class[] {
1722                            long.class
1723                    };
1724            private static final Class<?>[] _revertPageParameterTypes44 = new Class[] {
1725                            long.class, java.lang.String.class, double.class,
1726                            com.liferay.portal.service.ServiceContext.class
1727                    };
1728            private static final Class<?>[] _subscribePageParameterTypes45 = new Class[] {
1729                            long.class, java.lang.String.class
1730                    };
1731            private static final Class<?>[] _unsubscribePageParameterTypes46 = new Class[] {
1732                            long.class, java.lang.String.class
1733                    };
1734            private static final Class<?>[] _updatePageParameterTypes47 = new Class[] {
1735                            long.class, java.lang.String.class, double.class,
1736                            java.lang.String.class, java.lang.String.class, boolean.class,
1737                            java.lang.String.class, java.lang.String.class,
1738                            java.lang.String.class,
1739                            com.liferay.portal.service.ServiceContext.class
1740                    };
1741    }