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