001    /**
002     * Copyright (c) 2000-2012 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", _addPageParameterTypes1);
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", _addPageParameterTypes2);
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", _addPageAttachmentParameterTypes3);
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", _addPageAttachmentParameterTypes4);
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", _addPageAttachmentsParameterTypes5);
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                                            _addTempPageAttachmentParameterTypes6);
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", _changeParentParameterTypes7);
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", _deletePageParameterTypes8);
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", _deletePageParameterTypes9);
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",
383                                            _deletePageAttachmentParameterTypes10);
384    
385                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
386                                            title, fileName);
387    
388                            try {
389                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
390                            }
391                            catch (Exception e) {
392                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
393                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
394                                    }
395    
396                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
397                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
398                                    }
399    
400                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
401                            }
402                    }
403                    catch (com.liferay.portal.kernel.exception.SystemException se) {
404                            _log.error(se, se);
405    
406                            throw se;
407                    }
408            }
409    
410            public static void deletePageAttachments(HttpPrincipal httpPrincipal,
411                    long nodeId, java.lang.String title)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    try {
415                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
416                                            "deletePageAttachments",
417                                            _deletePageAttachmentsParameterTypes11);
418    
419                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
420                                            title);
421    
422                            try {
423                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
424                            }
425                            catch (Exception e) {
426                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
427                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
428                                    }
429    
430                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
431                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
432                                    }
433    
434                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
435                            }
436                    }
437                    catch (com.liferay.portal.kernel.exception.SystemException se) {
438                            _log.error(se, se);
439    
440                            throw se;
441                    }
442            }
443    
444            public static void deleteTempPageAttachment(HttpPrincipal httpPrincipal,
445                    long nodeId, java.lang.String fileName, java.lang.String tempFolderName)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    try {
449                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
450                                            "deleteTempPageAttachment",
451                                            _deleteTempPageAttachmentParameterTypes12);
452    
453                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
454                                            fileName, tempFolderName);
455    
456                            try {
457                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
458                            }
459                            catch (Exception e) {
460                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
461                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
462                                    }
463    
464                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
465                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
466                                    }
467    
468                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
469                            }
470                    }
471                    catch (com.liferay.portal.kernel.exception.SystemException se) {
472                            _log.error(se, se);
473    
474                            throw se;
475                    }
476            }
477    
478            public static void deleteTrashPageAttachments(HttpPrincipal httpPrincipal,
479                    long nodeId, java.lang.String title)
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException {
482                    try {
483                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
484                                            "deleteTrashPageAttachments",
485                                            _deleteTrashPageAttachmentsParameterTypes13);
486    
487                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
488                                            title);
489    
490                            try {
491                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
492                            }
493                            catch (Exception e) {
494                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
495                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
496                                    }
497    
498                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
499                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
500                                    }
501    
502                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
503                            }
504                    }
505                    catch (com.liferay.portal.kernel.exception.SystemException se) {
506                            _log.error(se, se);
507    
508                            throw se;
509                    }
510            }
511    
512            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
513                    HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
514                    java.lang.String parentTitle)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException {
517                    try {
518                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
519                                            "getChildren", _getChildrenParameterTypes14);
520    
521                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
522                                            nodeId, head, parentTitle);
523    
524                            Object returnObj = null;
525    
526                            try {
527                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
528                            }
529                            catch (Exception e) {
530                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
531                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
532                                    }
533    
534                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
535                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
536                                    }
537    
538                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
539                            }
540    
541                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
542                    }
543                    catch (com.liferay.portal.kernel.exception.SystemException se) {
544                            _log.error(se, se);
545    
546                            throw se;
547                    }
548            }
549    
550            public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
551                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
552                    throws com.liferay.portal.kernel.exception.PortalException,
553                            com.liferay.portal.kernel.exception.SystemException {
554                    try {
555                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
556                                            "getDraftPage", _getDraftPageParameterTypes15);
557    
558                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
559                                            title);
560    
561                            Object returnObj = null;
562    
563                            try {
564                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
565                            }
566                            catch (Exception e) {
567                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
568                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
569                                    }
570    
571                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
572                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
573                                    }
574    
575                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
576                            }
577    
578                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
579                    }
580                    catch (com.liferay.portal.kernel.exception.SystemException se) {
581                            _log.error(se, se);
582    
583                            throw se;
584                    }
585            }
586    
587            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
588                    HttpPrincipal httpPrincipal, long nodeId, int max)
589                    throws com.liferay.portal.kernel.exception.PortalException,
590                            com.liferay.portal.kernel.exception.SystemException {
591                    try {
592                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
593                                            "getNodePages", _getNodePagesParameterTypes16);
594    
595                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
596                                            max);
597    
598                            Object returnObj = null;
599    
600                            try {
601                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
602                            }
603                            catch (Exception e) {
604                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
605                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
606                                    }
607    
608                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
609                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
610                                    }
611    
612                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
613                            }
614    
615                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
616                    }
617                    catch (com.liferay.portal.kernel.exception.SystemException se) {
618                            _log.error(se, se);
619    
620                            throw se;
621                    }
622            }
623    
624            public static java.lang.String getNodePagesRSS(
625                    HttpPrincipal httpPrincipal, long nodeId, int max,
626                    java.lang.String type, double version, java.lang.String displayStyle,
627                    java.lang.String feedURL, java.lang.String entryURL)
628                    throws com.liferay.portal.kernel.exception.PortalException,
629                            com.liferay.portal.kernel.exception.SystemException {
630                    try {
631                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
632                                            "getNodePagesRSS", _getNodePagesRSSParameterTypes17);
633    
634                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
635                                            max, type, version, displayStyle, feedURL, entryURL);
636    
637                            Object returnObj = null;
638    
639                            try {
640                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
641                            }
642                            catch (Exception e) {
643                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
644                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
645                                    }
646    
647                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
648                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
649                                    }
650    
651                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
652                            }
653    
654                            return (java.lang.String)returnObj;
655                    }
656                    catch (com.liferay.portal.kernel.exception.SystemException se) {
657                            _log.error(se, se);
658    
659                            throw se;
660                    }
661            }
662    
663            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
664                    HttpPrincipal httpPrincipal, long groupId, long nodeId)
665                    throws com.liferay.portal.kernel.exception.PortalException,
666                            com.liferay.portal.kernel.exception.SystemException {
667                    try {
668                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
669                                            "getOrphans", _getOrphansParameterTypes18);
670    
671                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
672                                            nodeId);
673    
674                            Object returnObj = null;
675    
676                            try {
677                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
678                            }
679                            catch (Exception e) {
680                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
681                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
682                                    }
683    
684                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
685                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
686                                    }
687    
688                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
689                            }
690    
691                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
692                    }
693                    catch (com.liferay.portal.kernel.exception.SystemException se) {
694                            _log.error(se, se);
695    
696                            throw se;
697                    }
698            }
699    
700            public static com.liferay.portlet.wiki.model.WikiPage getPage(
701                    HttpPrincipal httpPrincipal, long groupId, long nodeId,
702                    java.lang.String title)
703                    throws com.liferay.portal.kernel.exception.PortalException,
704                            com.liferay.portal.kernel.exception.SystemException {
705                    try {
706                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
707                                            "getPage", _getPageParameterTypes19);
708    
709                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
710                                            nodeId, title);
711    
712                            Object returnObj = null;
713    
714                            try {
715                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
716                            }
717                            catch (Exception e) {
718                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
719                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
720                                    }
721    
722                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
723                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
724                                    }
725    
726                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
727                            }
728    
729                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
730                    }
731                    catch (com.liferay.portal.kernel.exception.SystemException se) {
732                            _log.error(se, se);
733    
734                            throw se;
735                    }
736            }
737    
738            public static com.liferay.portlet.wiki.model.WikiPage getPage(
739                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title)
740                    throws com.liferay.portal.kernel.exception.PortalException,
741                            com.liferay.portal.kernel.exception.SystemException {
742                    try {
743                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
744                                            "getPage", _getPageParameterTypes20);
745    
746                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
747                                            title);
748    
749                            Object returnObj = null;
750    
751                            try {
752                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
753                            }
754                            catch (Exception e) {
755                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
756                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
757                                    }
758    
759                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
760                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
761                                    }
762    
763                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
764                            }
765    
766                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
767                    }
768                    catch (com.liferay.portal.kernel.exception.SystemException se) {
769                            _log.error(se, se);
770    
771                            throw se;
772                    }
773            }
774    
775            public static com.liferay.portlet.wiki.model.WikiPage getPage(
776                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
777                    java.lang.Boolean head)
778                    throws com.liferay.portal.kernel.exception.PortalException,
779                            com.liferay.portal.kernel.exception.SystemException {
780                    try {
781                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
782                                            "getPage", _getPageParameterTypes21);
783    
784                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
785                                            title, head);
786    
787                            Object returnObj = null;
788    
789                            try {
790                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
791                            }
792                            catch (Exception e) {
793                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
794                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
795                                    }
796    
797                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
798                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
799                                    }
800    
801                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
802                            }
803    
804                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
805                    }
806                    catch (com.liferay.portal.kernel.exception.SystemException se) {
807                            _log.error(se, se);
808    
809                            throw se;
810                    }
811            }
812    
813            public static com.liferay.portlet.wiki.model.WikiPage getPage(
814                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
815                    double version)
816                    throws com.liferay.portal.kernel.exception.PortalException,
817                            com.liferay.portal.kernel.exception.SystemException {
818                    try {
819                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
820                                            "getPage", _getPageParameterTypes22);
821    
822                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
823                                            title, version);
824    
825                            Object returnObj = null;
826    
827                            try {
828                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
829                            }
830                            catch (Exception e) {
831                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
832                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
833                                    }
834    
835                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
836                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
837                                    }
838    
839                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
840                            }
841    
842                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
843                    }
844                    catch (com.liferay.portal.kernel.exception.SystemException se) {
845                            _log.error(se, se);
846    
847                            throw se;
848                    }
849            }
850    
851            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
852                    HttpPrincipal httpPrincipal, long groupId, long nodeId, boolean head,
853                    int status, int start, int end,
854                    com.liferay.portal.kernel.util.OrderByComparator obc)
855                    throws com.liferay.portal.kernel.exception.PortalException,
856                            com.liferay.portal.kernel.exception.SystemException {
857                    try {
858                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
859                                            "getPages", _getPagesParameterTypes23);
860    
861                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
862                                            nodeId, head, status, start, end, obc);
863    
864                            Object returnObj = null;
865    
866                            try {
867                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
868                            }
869                            catch (Exception e) {
870                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
871                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
872                                    }
873    
874                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
875                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
876                                    }
877    
878                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
879                            }
880    
881                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
882                    }
883                    catch (com.liferay.portal.kernel.exception.SystemException se) {
884                            _log.error(se, se);
885    
886                            throw se;
887                    }
888            }
889    
890            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
891                    HttpPrincipal httpPrincipal, long groupId, long userId, long nodeId,
892                    int status, int start, int end)
893                    throws com.liferay.portal.kernel.exception.PortalException,
894                            com.liferay.portal.kernel.exception.SystemException {
895                    try {
896                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
897                                            "getPages", _getPagesParameterTypes24);
898    
899                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
900                                            userId, nodeId, status, start, end);
901    
902                            Object returnObj = null;
903    
904                            try {
905                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
906                            }
907                            catch (Exception e) {
908                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
909                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
910                                    }
911    
912                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
913                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
914                                    }
915    
916                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
917                            }
918    
919                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
920                    }
921                    catch (com.liferay.portal.kernel.exception.SystemException se) {
922                            _log.error(se, se);
923    
924                            throw se;
925                    }
926            }
927    
928            public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
929                    long nodeId, boolean head)
930                    throws com.liferay.portal.kernel.exception.PortalException,
931                            com.liferay.portal.kernel.exception.SystemException {
932                    try {
933                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
934                                            "getPagesCount", _getPagesCountParameterTypes25);
935    
936                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
937                                            nodeId, head);
938    
939                            Object returnObj = null;
940    
941                            try {
942                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
943                            }
944                            catch (Exception e) {
945                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
946                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
947                                    }
948    
949                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
950                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
951                                    }
952    
953                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
954                            }
955    
956                            return ((Integer)returnObj).intValue();
957                    }
958                    catch (com.liferay.portal.kernel.exception.SystemException se) {
959                            _log.error(se, se);
960    
961                            throw se;
962                    }
963            }
964    
965            public static int getPagesCount(HttpPrincipal httpPrincipal, long groupId,
966                    long userId, long nodeId, int status)
967                    throws com.liferay.portal.kernel.exception.PortalException,
968                            com.liferay.portal.kernel.exception.SystemException {
969                    try {
970                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
971                                            "getPagesCount", _getPagesCountParameterTypes26);
972    
973                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
974                                            userId, nodeId, status);
975    
976                            Object returnObj = null;
977    
978                            try {
979                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
980                            }
981                            catch (Exception e) {
982                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
983                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
984                                    }
985    
986                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
987                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
988                                    }
989    
990                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
991                            }
992    
993                            return ((Integer)returnObj).intValue();
994                    }
995                    catch (com.liferay.portal.kernel.exception.SystemException se) {
996                            _log.error(se, se);
997    
998                            throw se;
999                    }
1000            }
1001    
1002            public static java.lang.String getPagesRSS(HttpPrincipal httpPrincipal,
1003                    long companyId, long nodeId, java.lang.String title, int max,
1004                    java.lang.String type, double version, java.lang.String displayStyle,
1005                    java.lang.String feedURL, java.lang.String entryURL,
1006                    java.util.Locale locale)
1007                    throws com.liferay.portal.kernel.exception.PortalException,
1008                            com.liferay.portal.kernel.exception.SystemException {
1009                    try {
1010                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1011                                            "getPagesRSS", _getPagesRSSParameterTypes27);
1012    
1013                            MethodHandler methodHandler = new MethodHandler(methodKey,
1014                                            companyId, nodeId, title, max, type, version, displayStyle,
1015                                            feedURL, entryURL, locale);
1016    
1017                            Object returnObj = null;
1018    
1019                            try {
1020                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1021                            }
1022                            catch (Exception e) {
1023                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1024                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1025                                    }
1026    
1027                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1028                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1029                                    }
1030    
1031                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1032                            }
1033    
1034                            return (java.lang.String)returnObj;
1035                    }
1036                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1037                            _log.error(se, se);
1038    
1039                            throw se;
1040                    }
1041            }
1042    
1043            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
1044                    HttpPrincipal httpPrincipal, long groupId, long nodeId, int start,
1045                    int end)
1046                    throws com.liferay.portal.kernel.exception.PortalException,
1047                            com.liferay.portal.kernel.exception.SystemException {
1048                    try {
1049                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1050                                            "getRecentChanges", _getRecentChangesParameterTypes28);
1051    
1052                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1053                                            nodeId, start, end);
1054    
1055                            Object returnObj = null;
1056    
1057                            try {
1058                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1059                            }
1060                            catch (Exception e) {
1061                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1062                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1063                                    }
1064    
1065                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1066                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1067                                    }
1068    
1069                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1070                            }
1071    
1072                            return (java.util.List<com.liferay.portlet.wiki.model.WikiPage>)returnObj;
1073                    }
1074                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1075                            _log.error(se, se);
1076    
1077                            throw se;
1078                    }
1079            }
1080    
1081            public static int getRecentChangesCount(HttpPrincipal httpPrincipal,
1082                    long groupId, long nodeId)
1083                    throws com.liferay.portal.kernel.exception.PortalException,
1084                            com.liferay.portal.kernel.exception.SystemException {
1085                    try {
1086                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1087                                            "getRecentChangesCount",
1088                                            _getRecentChangesCountParameterTypes29);
1089    
1090                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1091                                            nodeId);
1092    
1093                            Object returnObj = null;
1094    
1095                            try {
1096                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1097                            }
1098                            catch (Exception e) {
1099                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1100                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1101                                    }
1102    
1103                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1104                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1105                                    }
1106    
1107                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1108                            }
1109    
1110                            return ((Integer)returnObj).intValue();
1111                    }
1112                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1113                            _log.error(se, se);
1114    
1115                            throw se;
1116                    }
1117            }
1118    
1119            public static java.lang.String[] getTempPageAttachmentNames(
1120                    HttpPrincipal httpPrincipal, long nodeId,
1121                    java.lang.String tempFolderName)
1122                    throws com.liferay.portal.kernel.exception.PortalException,
1123                            com.liferay.portal.kernel.exception.SystemException {
1124                    try {
1125                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1126                                            "getTempPageAttachmentNames",
1127                                            _getTempPageAttachmentNamesParameterTypes30);
1128    
1129                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1130                                            tempFolderName);
1131    
1132                            Object returnObj = null;
1133    
1134                            try {
1135                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1136                            }
1137                            catch (Exception e) {
1138                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1139                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1140                                    }
1141    
1142                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1143                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1144                                    }
1145    
1146                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1147                            }
1148    
1149                            return (java.lang.String[])returnObj;
1150                    }
1151                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1152                            _log.error(se, se);
1153    
1154                            throw se;
1155                    }
1156            }
1157    
1158            public static void movePage(HttpPrincipal httpPrincipal, long nodeId,
1159                    java.lang.String title, java.lang.String newTitle,
1160                    com.liferay.portal.service.ServiceContext serviceContext)
1161                    throws com.liferay.portal.kernel.exception.PortalException,
1162                            com.liferay.portal.kernel.exception.SystemException {
1163                    try {
1164                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1165                                            "movePage", _movePageParameterTypes31);
1166    
1167                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1168                                            title, newTitle, serviceContext);
1169    
1170                            try {
1171                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1172                            }
1173                            catch (Exception e) {
1174                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1175                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1176                                    }
1177    
1178                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1179                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1180                                    }
1181    
1182                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1183                            }
1184                    }
1185                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1186                            _log.error(se, se);
1187    
1188                            throw se;
1189                    }
1190            }
1191    
1192            public static long movePageAttachmentToTrash(HttpPrincipal httpPrincipal,
1193                    long nodeId, java.lang.String title, java.lang.String fileName)
1194                    throws com.liferay.portal.kernel.exception.PortalException,
1195                            com.liferay.portal.kernel.exception.SystemException {
1196                    try {
1197                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1198                                            "movePageAttachmentToTrash",
1199                                            _movePageAttachmentToTrashParameterTypes32);
1200    
1201                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1202                                            title, fileName);
1203    
1204                            Object returnObj = null;
1205    
1206                            try {
1207                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1208                            }
1209                            catch (Exception e) {
1210                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1211                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1212                                    }
1213    
1214                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1215                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1216                                    }
1217    
1218                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1219                            }
1220    
1221                            return ((Long)returnObj).longValue();
1222                    }
1223                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1224                            _log.error(se, se);
1225    
1226                            throw se;
1227                    }
1228            }
1229    
1230            public static void movePageToTrash(HttpPrincipal httpPrincipal,
1231                    long nodeId, java.lang.String title)
1232                    throws com.liferay.portal.kernel.exception.PortalException,
1233                            com.liferay.portal.kernel.exception.SystemException {
1234                    try {
1235                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1236                                            "movePageToTrash", _movePageToTrashParameterTypes33);
1237    
1238                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1239                                            title);
1240    
1241                            try {
1242                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1243                            }
1244                            catch (Exception e) {
1245                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1246                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1247                                    }
1248    
1249                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1250                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1251                                    }
1252    
1253                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1254                            }
1255                    }
1256                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1257                            _log.error(se, se);
1258    
1259                            throw se;
1260                    }
1261            }
1262    
1263            public static void movePageToTrash(HttpPrincipal httpPrincipal,
1264                    long nodeId, java.lang.String title, double version)
1265                    throws com.liferay.portal.kernel.exception.PortalException,
1266                            com.liferay.portal.kernel.exception.SystemException {
1267                    try {
1268                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1269                                            "movePageToTrash", _movePageToTrashParameterTypes34);
1270    
1271                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1272                                            title, version);
1273    
1274                            try {
1275                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1276                            }
1277                            catch (Exception e) {
1278                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1279                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1280                                    }
1281    
1282                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1283                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1284                                    }
1285    
1286                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1287                            }
1288                    }
1289                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1290                            _log.error(se, se);
1291    
1292                            throw se;
1293                    }
1294            }
1295    
1296            public static void restorePageAttachmentFromTrash(
1297                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1298                    java.lang.String fileName)
1299                    throws com.liferay.portal.kernel.exception.PortalException,
1300                            com.liferay.portal.kernel.exception.SystemException {
1301                    try {
1302                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1303                                            "restorePageAttachmentFromTrash",
1304                                            _restorePageAttachmentFromTrashParameterTypes35);
1305    
1306                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1307                                            title, fileName);
1308    
1309                            try {
1310                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1311                            }
1312                            catch (Exception e) {
1313                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1314                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1315                                    }
1316    
1317                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1318                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1319                                    }
1320    
1321                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1322                            }
1323                    }
1324                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1325                            _log.error(se, se);
1326    
1327                            throw se;
1328                    }
1329            }
1330    
1331            public static void restorePageFromTrash(HttpPrincipal httpPrincipal,
1332                    long resourcePrimKey)
1333                    throws com.liferay.portal.kernel.exception.PortalException,
1334                            com.liferay.portal.kernel.exception.SystemException {
1335                    try {
1336                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1337                                            "restorePageFromTrash",
1338                                            _restorePageFromTrashParameterTypes36);
1339    
1340                            MethodHandler methodHandler = new MethodHandler(methodKey,
1341                                            resourcePrimKey);
1342    
1343                            try {
1344                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1345                            }
1346                            catch (Exception e) {
1347                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1348                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1349                                    }
1350    
1351                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1352                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1353                                    }
1354    
1355                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1356                            }
1357                    }
1358                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1359                            _log.error(se, se);
1360    
1361                            throw se;
1362                    }
1363            }
1364    
1365            public static com.liferay.portlet.wiki.model.WikiPage revertPage(
1366                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1367                    double version, com.liferay.portal.service.ServiceContext serviceContext)
1368                    throws com.liferay.portal.kernel.exception.PortalException,
1369                            com.liferay.portal.kernel.exception.SystemException {
1370                    try {
1371                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1372                                            "revertPage", _revertPageParameterTypes37);
1373    
1374                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1375                                            title, version, serviceContext);
1376    
1377                            Object returnObj = null;
1378    
1379                            try {
1380                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1381                            }
1382                            catch (Exception e) {
1383                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1384                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1385                                    }
1386    
1387                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1388                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1389                                    }
1390    
1391                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1392                            }
1393    
1394                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1395                    }
1396                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1397                            _log.error(se, se);
1398    
1399                            throw se;
1400                    }
1401            }
1402    
1403            public static void subscribePage(HttpPrincipal httpPrincipal, long nodeId,
1404                    java.lang.String title)
1405                    throws com.liferay.portal.kernel.exception.PortalException,
1406                            com.liferay.portal.kernel.exception.SystemException {
1407                    try {
1408                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1409                                            "subscribePage", _subscribePageParameterTypes38);
1410    
1411                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1412                                            title);
1413    
1414                            try {
1415                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1416                            }
1417                            catch (Exception e) {
1418                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1419                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1420                                    }
1421    
1422                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1423                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1424                                    }
1425    
1426                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1427                            }
1428                    }
1429                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1430                            _log.error(se, se);
1431    
1432                            throw se;
1433                    }
1434            }
1435    
1436            public static void unsubscribePage(HttpPrincipal httpPrincipal,
1437                    long nodeId, java.lang.String title)
1438                    throws com.liferay.portal.kernel.exception.PortalException,
1439                            com.liferay.portal.kernel.exception.SystemException {
1440                    try {
1441                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1442                                            "unsubscribePage", _unsubscribePageParameterTypes39);
1443    
1444                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1445                                            title);
1446    
1447                            try {
1448                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1449                            }
1450                            catch (Exception e) {
1451                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1452                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1453                                    }
1454    
1455                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1456                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1457                                    }
1458    
1459                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1460                            }
1461                    }
1462                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1463                            _log.error(se, se);
1464    
1465                            throw se;
1466                    }
1467            }
1468    
1469            public static com.liferay.portlet.wiki.model.WikiPage updatePage(
1470                    HttpPrincipal httpPrincipal, long nodeId, java.lang.String title,
1471                    double version, java.lang.String content, java.lang.String summary,
1472                    boolean minorEdit, java.lang.String format,
1473                    java.lang.String parentTitle, java.lang.String redirectTitle,
1474                    com.liferay.portal.service.ServiceContext serviceContext)
1475                    throws com.liferay.portal.kernel.exception.PortalException,
1476                            com.liferay.portal.kernel.exception.SystemException {
1477                    try {
1478                            MethodKey methodKey = new MethodKey(WikiPageServiceUtil.class,
1479                                            "updatePage", _updatePageParameterTypes40);
1480    
1481                            MethodHandler methodHandler = new MethodHandler(methodKey, nodeId,
1482                                            title, version, content, summary, minorEdit, format,
1483                                            parentTitle, redirectTitle, serviceContext);
1484    
1485                            Object returnObj = null;
1486    
1487                            try {
1488                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1489                            }
1490                            catch (Exception e) {
1491                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1492                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1493                                    }
1494    
1495                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1496                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1497                                    }
1498    
1499                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1500                            }
1501    
1502                            return (com.liferay.portlet.wiki.model.WikiPage)returnObj;
1503                    }
1504                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1505                            _log.error(se, se);
1506    
1507                            throw se;
1508                    }
1509            }
1510    
1511            private static Log _log = LogFactoryUtil.getLog(WikiPageServiceHttp.class);
1512            private static final Class<?>[] _addPageParameterTypes1 = new Class[] {
1513                            long.class, java.lang.String.class, java.lang.String.class,
1514                            java.lang.String.class, boolean.class,
1515                            com.liferay.portal.service.ServiceContext.class
1516                    };
1517            private static final Class<?>[] _addPageParameterTypes2 = new Class[] {
1518                            long.class, java.lang.String.class, java.lang.String.class,
1519                            java.lang.String.class, boolean.class, java.lang.String.class,
1520                            java.lang.String.class, java.lang.String.class,
1521                            com.liferay.portal.service.ServiceContext.class
1522                    };
1523            private static final Class<?>[] _addPageAttachmentParameterTypes3 = new Class[] {
1524                            long.class, java.lang.String.class, java.lang.String.class,
1525                            java.io.File.class, java.lang.String.class
1526                    };
1527            private static final Class<?>[] _addPageAttachmentParameterTypes4 = new Class[] {
1528                            long.class, java.lang.String.class, java.lang.String.class,
1529                            java.io.InputStream.class, java.lang.String.class
1530                    };
1531            private static final Class<?>[] _addPageAttachmentsParameterTypes5 = new Class[] {
1532                            long.class, java.lang.String.class, java.util.List.class
1533                    };
1534            private static final Class<?>[] _addTempPageAttachmentParameterTypes6 = new Class[] {
1535                            long.class, java.lang.String.class, java.lang.String.class,
1536                            java.io.InputStream.class, java.lang.String.class
1537                    };
1538            private static final Class<?>[] _changeParentParameterTypes7 = new Class[] {
1539                            long.class, java.lang.String.class, java.lang.String.class,
1540                            com.liferay.portal.service.ServiceContext.class
1541                    };
1542            private static final Class<?>[] _deletePageParameterTypes8 = new Class[] {
1543                            long.class, java.lang.String.class
1544                    };
1545            private static final Class<?>[] _deletePageParameterTypes9 = new Class[] {
1546                            long.class, java.lang.String.class, double.class
1547                    };
1548            private static final Class<?>[] _deletePageAttachmentParameterTypes10 = new Class[] {
1549                            long.class, java.lang.String.class, java.lang.String.class
1550                    };
1551            private static final Class<?>[] _deletePageAttachmentsParameterTypes11 = new Class[] {
1552                            long.class, java.lang.String.class
1553                    };
1554            private static final Class<?>[] _deleteTempPageAttachmentParameterTypes12 = new Class[] {
1555                            long.class, java.lang.String.class, java.lang.String.class
1556                    };
1557            private static final Class<?>[] _deleteTrashPageAttachmentsParameterTypes13 = new Class[] {
1558                            long.class, java.lang.String.class
1559                    };
1560            private static final Class<?>[] _getChildrenParameterTypes14 = new Class[] {
1561                            long.class, long.class, boolean.class, java.lang.String.class
1562                    };
1563            private static final Class<?>[] _getDraftPageParameterTypes15 = new Class[] {
1564                            long.class, java.lang.String.class
1565                    };
1566            private static final Class<?>[] _getNodePagesParameterTypes16 = new Class[] {
1567                            long.class, int.class
1568                    };
1569            private static final Class<?>[] _getNodePagesRSSParameterTypes17 = new Class[] {
1570                            long.class, int.class, java.lang.String.class, double.class,
1571                            java.lang.String.class, java.lang.String.class,
1572                            java.lang.String.class
1573                    };
1574            private static final Class<?>[] _getOrphansParameterTypes18 = new Class[] {
1575                            long.class, long.class
1576                    };
1577            private static final Class<?>[] _getPageParameterTypes19 = new Class[] {
1578                            long.class, long.class, java.lang.String.class
1579                    };
1580            private static final Class<?>[] _getPageParameterTypes20 = new Class[] {
1581                            long.class, java.lang.String.class
1582                    };
1583            private static final Class<?>[] _getPageParameterTypes21 = new Class[] {
1584                            long.class, java.lang.String.class, java.lang.Boolean.class
1585                    };
1586            private static final Class<?>[] _getPageParameterTypes22 = new Class[] {
1587                            long.class, java.lang.String.class, double.class
1588                    };
1589            private static final Class<?>[] _getPagesParameterTypes23 = new Class[] {
1590                            long.class, long.class, boolean.class, int.class, int.class,
1591                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1592                    };
1593            private static final Class<?>[] _getPagesParameterTypes24 = new Class[] {
1594                            long.class, long.class, long.class, int.class, int.class, int.class
1595                    };
1596            private static final Class<?>[] _getPagesCountParameterTypes25 = new Class[] {
1597                            long.class, long.class, boolean.class
1598                    };
1599            private static final Class<?>[] _getPagesCountParameterTypes26 = new Class[] {
1600                            long.class, long.class, long.class, int.class
1601                    };
1602            private static final Class<?>[] _getPagesRSSParameterTypes27 = new Class[] {
1603                            long.class, long.class, java.lang.String.class, int.class,
1604                            java.lang.String.class, double.class, java.lang.String.class,
1605                            java.lang.String.class, java.lang.String.class,
1606                            java.util.Locale.class
1607                    };
1608            private static final Class<?>[] _getRecentChangesParameterTypes28 = new Class[] {
1609                            long.class, long.class, int.class, int.class
1610                    };
1611            private static final Class<?>[] _getRecentChangesCountParameterTypes29 = new Class[] {
1612                            long.class, long.class
1613                    };
1614            private static final Class<?>[] _getTempPageAttachmentNamesParameterTypes30 = new Class[] {
1615                            long.class, java.lang.String.class
1616                    };
1617            private static final Class<?>[] _movePageParameterTypes31 = new Class[] {
1618                            long.class, java.lang.String.class, java.lang.String.class,
1619                            com.liferay.portal.service.ServiceContext.class
1620                    };
1621            private static final Class<?>[] _movePageAttachmentToTrashParameterTypes32 = new Class[] {
1622                            long.class, java.lang.String.class, java.lang.String.class
1623                    };
1624            private static final Class<?>[] _movePageToTrashParameterTypes33 = new Class[] {
1625                            long.class, java.lang.String.class
1626                    };
1627            private static final Class<?>[] _movePageToTrashParameterTypes34 = new Class[] {
1628                            long.class, java.lang.String.class, double.class
1629                    };
1630            private static final Class<?>[] _restorePageAttachmentFromTrashParameterTypes35 =
1631                    new Class[] { long.class, java.lang.String.class, java.lang.String.class };
1632            private static final Class<?>[] _restorePageFromTrashParameterTypes36 = new Class[] {
1633                            long.class
1634                    };
1635            private static final Class<?>[] _revertPageParameterTypes37 = new Class[] {
1636                            long.class, java.lang.String.class, double.class,
1637                            com.liferay.portal.service.ServiceContext.class
1638                    };
1639            private static final Class<?>[] _subscribePageParameterTypes38 = new Class[] {
1640                            long.class, java.lang.String.class
1641                    };
1642            private static final Class<?>[] _unsubscribePageParameterTypes39 = new Class[] {
1643                            long.class, java.lang.String.class
1644                    };
1645            private static final Class<?>[] _updatePageParameterTypes40 = new Class[] {
1646                            long.class, java.lang.String.class, double.class,
1647                            java.lang.String.class, java.lang.String.class, boolean.class,
1648                            java.lang.String.class, java.lang.String.class,
1649                            java.lang.String.class,
1650                            com.liferay.portal.service.ServiceContext.class
1651                    };
1652    }