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