001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.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.documentlibrary.service.DLAppServiceUtil;
025    
026    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.documentlibrary.service.DLAppServiceUtil} 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       DLAppServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.documentlibrary.service.DLAppServiceUtil
054     * @generated
055     */
056    public class DLAppServiceHttp {
057            public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
058                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
059                    java.lang.String sourceFileName, java.lang.String mimeType,
060                    java.lang.String title, java.lang.String description,
061                    java.lang.String changeLog, byte[] bytes,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    try {
066                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
067                                            "addFileEntry", _addFileEntryParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey,
070                                            repositoryId, folderId, sourceFileName, mimeType, title,
071                                            description, changeLog, bytes, serviceContext);
072    
073                            Object returnObj = null;
074    
075                            try {
076                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
077                            }
078                            catch (Exception e) {
079                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
080                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
081                                    }
082    
083                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
084                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
085                                    }
086    
087                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
088                            }
089    
090                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
091                    }
092                    catch (com.liferay.portal.kernel.exception.SystemException se) {
093                            _log.error(se, se);
094    
095                            throw se;
096                    }
097            }
098    
099            public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
100                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
101                    java.lang.String sourceFileName, java.lang.String mimeType,
102                    java.lang.String title, java.lang.String description,
103                    java.lang.String changeLog, java.io.File file,
104                    com.liferay.portal.service.ServiceContext serviceContext)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException {
107                    try {
108                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
109                                            "addFileEntry", _addFileEntryParameterTypes1);
110    
111                            MethodHandler methodHandler = new MethodHandler(methodKey,
112                                            repositoryId, folderId, sourceFileName, mimeType, title,
113                                            description, changeLog, file, serviceContext);
114    
115                            Object returnObj = null;
116    
117                            try {
118                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
119                            }
120                            catch (Exception e) {
121                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
122                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
123                                    }
124    
125                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
126                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
127                                    }
128    
129                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
130                            }
131    
132                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
133                    }
134                    catch (com.liferay.portal.kernel.exception.SystemException se) {
135                            _log.error(se, se);
136    
137                            throw se;
138                    }
139            }
140    
141            public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(
142                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
143                    java.lang.String sourceFileName, java.lang.String mimeType,
144                    java.lang.String title, java.lang.String description,
145                    java.lang.String changeLog, java.io.InputStream is, long size,
146                    com.liferay.portal.service.ServiceContext serviceContext)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    try {
150                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
151                                            "addFileEntry", _addFileEntryParameterTypes2);
152    
153                            MethodHandler methodHandler = new MethodHandler(methodKey,
154                                            repositoryId, folderId, sourceFileName, mimeType, title,
155                                            description, changeLog, is, size, serviceContext);
156    
157                            Object returnObj = null;
158    
159                            try {
160                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
161                            }
162                            catch (Exception e) {
163                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
164                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
165                                    }
166    
167                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
168                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
169                                    }
170    
171                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
172                            }
173    
174                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
175                    }
176                    catch (com.liferay.portal.kernel.exception.SystemException se) {
177                            _log.error(se, se);
178    
179                            throw se;
180                    }
181            }
182    
183            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
184                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
185                    long toFileEntryId,
186                    com.liferay.portal.service.ServiceContext serviceContext)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    try {
190                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
191                                            "addFileShortcut", _addFileShortcutParameterTypes3);
192    
193                            MethodHandler methodHandler = new MethodHandler(methodKey,
194                                            repositoryId, folderId, toFileEntryId, serviceContext);
195    
196                            Object returnObj = null;
197    
198                            try {
199                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
200                            }
201                            catch (Exception e) {
202                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
203                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
204                                    }
205    
206                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
207                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
208                                    }
209    
210                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
211                            }
212    
213                            return (com.liferay.portlet.documentlibrary.model.DLFileShortcut)returnObj;
214                    }
215                    catch (com.liferay.portal.kernel.exception.SystemException se) {
216                            _log.error(se, se);
217    
218                            throw se;
219                    }
220            }
221    
222            public static com.liferay.portal.kernel.repository.model.Folder addFolder(
223                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
224                    java.lang.String name, java.lang.String description,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    try {
229                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
230                                            "addFolder", _addFolderParameterTypes4);
231    
232                            MethodHandler methodHandler = new MethodHandler(methodKey,
233                                            repositoryId, parentFolderId, name, description,
234                                            serviceContext);
235    
236                            Object returnObj = null;
237    
238                            try {
239                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
240                            }
241                            catch (Exception e) {
242                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
243                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
244                                    }
245    
246                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
247                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
248                                    }
249    
250                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
251                            }
252    
253                            return (com.liferay.portal.kernel.repository.model.Folder)returnObj;
254                    }
255                    catch (com.liferay.portal.kernel.exception.SystemException se) {
256                            _log.error(se, se);
257    
258                            throw se;
259                    }
260            }
261    
262            public static java.lang.String addTempFileEntry(
263                    HttpPrincipal httpPrincipal, long groupId, long folderId,
264                    java.lang.String fileName, java.lang.String tempFolderName,
265                    java.io.File file)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException,
268                            java.io.IOException {
269                    try {
270                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
271                                            "addTempFileEntry", _addTempFileEntryParameterTypes5);
272    
273                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
274                                            folderId, fileName, tempFolderName, file);
275    
276                            Object returnObj = null;
277    
278                            try {
279                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
280                            }
281                            catch (Exception e) {
282                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
283                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
284                                    }
285    
286                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
287                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
288                                    }
289    
290                                    if (e instanceof java.io.IOException) {
291                                            throw (java.io.IOException)e;
292                                    }
293    
294                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
295                            }
296    
297                            return (java.lang.String)returnObj;
298                    }
299                    catch (com.liferay.portal.kernel.exception.SystemException se) {
300                            _log.error(se, se);
301    
302                            throw se;
303                    }
304            }
305    
306            public static java.lang.String addTempFileEntry(
307                    HttpPrincipal httpPrincipal, long groupId, long folderId,
308                    java.lang.String fileName, java.lang.String tempFolderName,
309                    java.io.InputStream inputStream)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    try {
313                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
314                                            "addTempFileEntry", _addTempFileEntryParameterTypes6);
315    
316                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
317                                            folderId, fileName, tempFolderName, inputStream);
318    
319                            Object returnObj = null;
320    
321                            try {
322                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
323                            }
324                            catch (Exception e) {
325                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
326                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
327                                    }
328    
329                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
330                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
331                                    }
332    
333                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
334                            }
335    
336                            return (java.lang.String)returnObj;
337                    }
338                    catch (com.liferay.portal.kernel.exception.SystemException se) {
339                            _log.error(se, se);
340    
341                            throw se;
342                    }
343            }
344    
345            public static void cancelCheckOut(HttpPrincipal httpPrincipal,
346                    long fileEntryId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    try {
350                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
351                                            "cancelCheckOut", _cancelCheckOutParameterTypes7);
352    
353                            MethodHandler methodHandler = new MethodHandler(methodKey,
354                                            fileEntryId);
355    
356                            try {
357                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
358                            }
359                            catch (Exception e) {
360                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
361                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
362                                    }
363    
364                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
365                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
366                                    }
367    
368                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
369                            }
370                    }
371                    catch (com.liferay.portal.kernel.exception.SystemException se) {
372                            _log.error(se, se);
373    
374                            throw se;
375                    }
376            }
377    
378            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
379                    long fileEntryId, boolean majorVersion, java.lang.String changeLog,
380                    com.liferay.portal.service.ServiceContext serviceContext)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    try {
384                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
385                                            "checkInFileEntry", _checkInFileEntryParameterTypes8);
386    
387                            MethodHandler methodHandler = new MethodHandler(methodKey,
388                                            fileEntryId, majorVersion, changeLog, serviceContext);
389    
390                            try {
391                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
392                            }
393                            catch (Exception e) {
394                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
395                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
396                                    }
397    
398                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
399                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
400                                    }
401    
402                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
403                            }
404                    }
405                    catch (com.liferay.portal.kernel.exception.SystemException se) {
406                            _log.error(se, se);
407    
408                            throw se;
409                    }
410            }
411    
412            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
413                    long fileEntryId, java.lang.String lockUuid)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    try {
417                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
418                                            "checkInFileEntry", _checkInFileEntryParameterTypes9);
419    
420                            MethodHandler methodHandler = new MethodHandler(methodKey,
421                                            fileEntryId, lockUuid);
422    
423                            try {
424                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
425                            }
426                            catch (Exception e) {
427                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
428                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
429                                    }
430    
431                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
432                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
433                                    }
434    
435                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
436                            }
437                    }
438                    catch (com.liferay.portal.kernel.exception.SystemException se) {
439                            _log.error(se, se);
440    
441                            throw se;
442                    }
443            }
444    
445            public static void checkOutFileEntry(HttpPrincipal httpPrincipal,
446                    long fileEntryId,
447                    com.liferay.portal.service.ServiceContext serviceContext)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException {
450                    try {
451                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
452                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes10);
453    
454                            MethodHandler methodHandler = new MethodHandler(methodKey,
455                                            fileEntryId, serviceContext);
456    
457                            try {
458                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
459                            }
460                            catch (Exception e) {
461                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
462                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
463                                    }
464    
465                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
466                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
467                                    }
468    
469                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
470                            }
471                    }
472                    catch (com.liferay.portal.kernel.exception.SystemException se) {
473                            _log.error(se, se);
474    
475                            throw se;
476                    }
477            }
478    
479            public static com.liferay.portal.kernel.repository.model.FileEntry checkOutFileEntry(
480                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
481                    long expirationTime,
482                    com.liferay.portal.service.ServiceContext serviceContext)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    try {
486                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
487                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes11);
488    
489                            MethodHandler methodHandler = new MethodHandler(methodKey,
490                                            fileEntryId, owner, expirationTime, serviceContext);
491    
492                            Object returnObj = null;
493    
494                            try {
495                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
496                            }
497                            catch (Exception e) {
498                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
499                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
500                                    }
501    
502                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
503                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
504                                    }
505    
506                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
507                            }
508    
509                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
510                    }
511                    catch (com.liferay.portal.kernel.exception.SystemException se) {
512                            _log.error(se, se);
513    
514                            throw se;
515                    }
516            }
517    
518            public static com.liferay.portal.kernel.repository.model.Folder copyFolder(
519                    HttpPrincipal httpPrincipal, long repositoryId, long sourceFolderId,
520                    long parentFolderId, java.lang.String name,
521                    java.lang.String description,
522                    com.liferay.portal.service.ServiceContext serviceContext)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    try {
526                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
527                                            "copyFolder", _copyFolderParameterTypes12);
528    
529                            MethodHandler methodHandler = new MethodHandler(methodKey,
530                                            repositoryId, sourceFolderId, parentFolderId, name,
531                                            description, serviceContext);
532    
533                            Object returnObj = null;
534    
535                            try {
536                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
537                            }
538                            catch (Exception e) {
539                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
540                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
541                                    }
542    
543                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
544                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
545                                    }
546    
547                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
548                            }
549    
550                            return (com.liferay.portal.kernel.repository.model.Folder)returnObj;
551                    }
552                    catch (com.liferay.portal.kernel.exception.SystemException se) {
553                            _log.error(se, se);
554    
555                            throw se;
556                    }
557            }
558    
559            public static void deleteFileEntry(HttpPrincipal httpPrincipal,
560                    long fileEntryId)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException {
563                    try {
564                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
565                                            "deleteFileEntry", _deleteFileEntryParameterTypes13);
566    
567                            MethodHandler methodHandler = new MethodHandler(methodKey,
568                                            fileEntryId);
569    
570                            try {
571                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
572                            }
573                            catch (Exception e) {
574                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
575                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
576                                    }
577    
578                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
579                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
580                                    }
581    
582                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
583                            }
584                    }
585                    catch (com.liferay.portal.kernel.exception.SystemException se) {
586                            _log.error(se, se);
587    
588                            throw se;
589                    }
590            }
591    
592            public static void deleteFileEntryByTitle(HttpPrincipal httpPrincipal,
593                    long repositoryId, long folderId, java.lang.String title)
594                    throws com.liferay.portal.kernel.exception.PortalException,
595                            com.liferay.portal.kernel.exception.SystemException {
596                    try {
597                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
598                                            "deleteFileEntryByTitle",
599                                            _deleteFileEntryByTitleParameterTypes14);
600    
601                            MethodHandler methodHandler = new MethodHandler(methodKey,
602                                            repositoryId, folderId, title);
603    
604                            try {
605                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
606                            }
607                            catch (Exception e) {
608                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
609                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
610                                    }
611    
612                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
613                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
614                                    }
615    
616                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
617                            }
618                    }
619                    catch (com.liferay.portal.kernel.exception.SystemException se) {
620                            _log.error(se, se);
621    
622                            throw se;
623                    }
624            }
625    
626            public static void deleteFileShortcut(HttpPrincipal httpPrincipal,
627                    long fileShortcutId)
628                    throws com.liferay.portal.kernel.exception.PortalException,
629                            com.liferay.portal.kernel.exception.SystemException {
630                    try {
631                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
632                                            "deleteFileShortcut", _deleteFileShortcutParameterTypes15);
633    
634                            MethodHandler methodHandler = new MethodHandler(methodKey,
635                                            fileShortcutId);
636    
637                            try {
638                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
639                            }
640                            catch (Exception e) {
641                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
642                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
643                                    }
644    
645                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
646                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
647                                    }
648    
649                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
650                            }
651                    }
652                    catch (com.liferay.portal.kernel.exception.SystemException se) {
653                            _log.error(se, se);
654    
655                            throw se;
656                    }
657            }
658    
659            public static void deleteFileVersion(HttpPrincipal httpPrincipal,
660                    long fileEntryId, java.lang.String version)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException {
663                    try {
664                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
665                                            "deleteFileVersion", _deleteFileVersionParameterTypes16);
666    
667                            MethodHandler methodHandler = new MethodHandler(methodKey,
668                                            fileEntryId, version);
669    
670                            try {
671                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
672                            }
673                            catch (Exception e) {
674                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
675                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
676                                    }
677    
678                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
679                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
680                                    }
681    
682                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
683                            }
684                    }
685                    catch (com.liferay.portal.kernel.exception.SystemException se) {
686                            _log.error(se, se);
687    
688                            throw se;
689                    }
690            }
691    
692            public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
693                    throws com.liferay.portal.kernel.exception.PortalException,
694                            com.liferay.portal.kernel.exception.SystemException {
695                    try {
696                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
697                                            "deleteFolder", _deleteFolderParameterTypes17);
698    
699                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
700    
701                            try {
702                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
703                            }
704                            catch (Exception e) {
705                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
706                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
707                                    }
708    
709                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
710                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
711                                    }
712    
713                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
714                            }
715                    }
716                    catch (com.liferay.portal.kernel.exception.SystemException se) {
717                            _log.error(se, se);
718    
719                            throw se;
720                    }
721            }
722    
723            public static void deleteFolder(HttpPrincipal httpPrincipal,
724                    long repositoryId, long parentFolderId, java.lang.String name)
725                    throws com.liferay.portal.kernel.exception.PortalException,
726                            com.liferay.portal.kernel.exception.SystemException {
727                    try {
728                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
729                                            "deleteFolder", _deleteFolderParameterTypes18);
730    
731                            MethodHandler methodHandler = new MethodHandler(methodKey,
732                                            repositoryId, parentFolderId, name);
733    
734                            try {
735                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
736                            }
737                            catch (Exception e) {
738                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
739                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
740                                    }
741    
742                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
743                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
744                                    }
745    
746                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
747                            }
748                    }
749                    catch (com.liferay.portal.kernel.exception.SystemException se) {
750                            _log.error(se, se);
751    
752                            throw se;
753                    }
754            }
755    
756            public static void deleteTempFileEntry(HttpPrincipal httpPrincipal,
757                    long groupId, long folderId, java.lang.String fileName,
758                    java.lang.String tempFolderName)
759                    throws com.liferay.portal.kernel.exception.PortalException,
760                            com.liferay.portal.kernel.exception.SystemException {
761                    try {
762                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
763                                            "deleteTempFileEntry", _deleteTempFileEntryParameterTypes19);
764    
765                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
766                                            folderId, fileName, tempFolderName);
767    
768                            try {
769                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
770                            }
771                            catch (Exception e) {
772                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
773                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
774                                    }
775    
776                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
777                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
778                                    }
779    
780                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
781                            }
782                    }
783                    catch (com.liferay.portal.kernel.exception.SystemException se) {
784                            _log.error(se, se);
785    
786                            throw se;
787                    }
788            }
789    
790            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
791                    HttpPrincipal httpPrincipal, long repositoryId, long folderId)
792                    throws com.liferay.portal.kernel.exception.PortalException,
793                            com.liferay.portal.kernel.exception.SystemException {
794                    try {
795                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
796                                            "getFileEntries", _getFileEntriesParameterTypes20);
797    
798                            MethodHandler methodHandler = new MethodHandler(methodKey,
799                                            repositoryId, folderId);
800    
801                            Object returnObj = null;
802    
803                            try {
804                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
805                            }
806                            catch (Exception e) {
807                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
808                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
809                                    }
810    
811                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
812                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
813                                    }
814    
815                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
816                            }
817    
818                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
819                    }
820                    catch (com.liferay.portal.kernel.exception.SystemException se) {
821                            _log.error(se, se);
822    
823                            throw se;
824                    }
825            }
826    
827            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
828                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
829                    int start, int end)
830                    throws com.liferay.portal.kernel.exception.PortalException,
831                            com.liferay.portal.kernel.exception.SystemException {
832                    try {
833                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
834                                            "getFileEntries", _getFileEntriesParameterTypes21);
835    
836                            MethodHandler methodHandler = new MethodHandler(methodKey,
837                                            repositoryId, folderId, start, end);
838    
839                            Object returnObj = null;
840    
841                            try {
842                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
843                            }
844                            catch (Exception e) {
845                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
846                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
847                                    }
848    
849                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
850                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
851                                    }
852    
853                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
854                            }
855    
856                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
857                    }
858                    catch (com.liferay.portal.kernel.exception.SystemException se) {
859                            _log.error(se, se);
860    
861                            throw se;
862                    }
863            }
864    
865            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
866                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
867                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
868                    throws com.liferay.portal.kernel.exception.PortalException,
869                            com.liferay.portal.kernel.exception.SystemException {
870                    try {
871                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
872                                            "getFileEntries", _getFileEntriesParameterTypes22);
873    
874                            MethodHandler methodHandler = new MethodHandler(methodKey,
875                                            repositoryId, folderId, start, end, obc);
876    
877                            Object returnObj = null;
878    
879                            try {
880                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
881                            }
882                            catch (Exception e) {
883                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
884                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
885                                    }
886    
887                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
888                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
889                                    }
890    
891                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
892                            }
893    
894                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
895                    }
896                    catch (com.liferay.portal.kernel.exception.SystemException se) {
897                            _log.error(se, se);
898    
899                            throw se;
900                    }
901            }
902    
903            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
904                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
905                    long fileEntryTypeId)
906                    throws com.liferay.portal.kernel.exception.PortalException,
907                            com.liferay.portal.kernel.exception.SystemException {
908                    try {
909                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
910                                            "getFileEntries", _getFileEntriesParameterTypes23);
911    
912                            MethodHandler methodHandler = new MethodHandler(methodKey,
913                                            repositoryId, folderId, fileEntryTypeId);
914    
915                            Object returnObj = null;
916    
917                            try {
918                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
919                            }
920                            catch (Exception e) {
921                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
922                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
923                                    }
924    
925                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
926                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
927                                    }
928    
929                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
930                            }
931    
932                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
933                    }
934                    catch (com.liferay.portal.kernel.exception.SystemException se) {
935                            _log.error(se, se);
936    
937                            throw se;
938                    }
939            }
940    
941            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
942                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
943                    long fileEntryTypeId, int start, int end)
944                    throws com.liferay.portal.kernel.exception.PortalException,
945                            com.liferay.portal.kernel.exception.SystemException {
946                    try {
947                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
948                                            "getFileEntries", _getFileEntriesParameterTypes24);
949    
950                            MethodHandler methodHandler = new MethodHandler(methodKey,
951                                            repositoryId, folderId, fileEntryTypeId, start, end);
952    
953                            Object returnObj = null;
954    
955                            try {
956                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
957                            }
958                            catch (Exception e) {
959                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
960                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
961                                    }
962    
963                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
964                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
965                                    }
966    
967                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
968                            }
969    
970                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
971                    }
972                    catch (com.liferay.portal.kernel.exception.SystemException se) {
973                            _log.error(se, se);
974    
975                            throw se;
976                    }
977            }
978    
979            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getFileEntries(
980                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
981                    long fileEntryTypeId, int start, int end,
982                    com.liferay.portal.kernel.util.OrderByComparator obc)
983                    throws com.liferay.portal.kernel.exception.PortalException,
984                            com.liferay.portal.kernel.exception.SystemException {
985                    try {
986                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
987                                            "getFileEntries", _getFileEntriesParameterTypes25);
988    
989                            MethodHandler methodHandler = new MethodHandler(methodKey,
990                                            repositoryId, folderId, fileEntryTypeId, start, end, obc);
991    
992                            Object returnObj = null;
993    
994                            try {
995                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
996                            }
997                            catch (Exception e) {
998                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
999                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1000                                    }
1001    
1002                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1003                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1004                                    }
1005    
1006                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1007                            }
1008    
1009                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
1010                    }
1011                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1012                            _log.error(se, se);
1013    
1014                            throw se;
1015                    }
1016            }
1017    
1018            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
1019                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1020                    int status, int start, int end)
1021                    throws com.liferay.portal.kernel.exception.PortalException,
1022                            com.liferay.portal.kernel.exception.SystemException {
1023                    try {
1024                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1025                                            "getFileEntriesAndFileShortcuts",
1026                                            _getFileEntriesAndFileShortcutsParameterTypes26);
1027    
1028                            MethodHandler methodHandler = new MethodHandler(methodKey,
1029                                            repositoryId, folderId, status, start, end);
1030    
1031                            Object returnObj = null;
1032    
1033                            try {
1034                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1035                            }
1036                            catch (Exception e) {
1037                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1038                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1039                                    }
1040    
1041                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1042                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1043                                    }
1044    
1045                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1046                            }
1047    
1048                            return (java.util.List<java.lang.Object>)returnObj;
1049                    }
1050                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1051                            _log.error(se, se);
1052    
1053                            throw se;
1054                    }
1055            }
1056    
1057            public static int getFileEntriesAndFileShortcutsCount(
1058                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1059                    int status)
1060                    throws com.liferay.portal.kernel.exception.PortalException,
1061                            com.liferay.portal.kernel.exception.SystemException {
1062                    try {
1063                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1064                                            "getFileEntriesAndFileShortcutsCount",
1065                                            _getFileEntriesAndFileShortcutsCountParameterTypes27);
1066    
1067                            MethodHandler methodHandler = new MethodHandler(methodKey,
1068                                            repositoryId, folderId, status);
1069    
1070                            Object returnObj = null;
1071    
1072                            try {
1073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1074                            }
1075                            catch (Exception e) {
1076                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1077                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1078                                    }
1079    
1080                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1081                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1082                                    }
1083    
1084                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1085                            }
1086    
1087                            return ((Integer)returnObj).intValue();
1088                    }
1089                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1090                            _log.error(se, se);
1091    
1092                            throw se;
1093                    }
1094            }
1095    
1096            public static int getFileEntriesAndFileShortcutsCount(
1097                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1098                    int status, java.lang.String[] mimeTypes)
1099                    throws com.liferay.portal.kernel.exception.PortalException,
1100                            com.liferay.portal.kernel.exception.SystemException {
1101                    try {
1102                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1103                                            "getFileEntriesAndFileShortcutsCount",
1104                                            _getFileEntriesAndFileShortcutsCountParameterTypes28);
1105    
1106                            MethodHandler methodHandler = new MethodHandler(methodKey,
1107                                            repositoryId, folderId, status, mimeTypes);
1108    
1109                            Object returnObj = null;
1110    
1111                            try {
1112                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1113                            }
1114                            catch (Exception e) {
1115                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1116                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1117                                    }
1118    
1119                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1120                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1121                                    }
1122    
1123                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1124                            }
1125    
1126                            return ((Integer)returnObj).intValue();
1127                    }
1128                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1129                            _log.error(se, se);
1130    
1131                            throw se;
1132                    }
1133            }
1134    
1135            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
1136                    long repositoryId, long folderId)
1137                    throws com.liferay.portal.kernel.exception.PortalException,
1138                            com.liferay.portal.kernel.exception.SystemException {
1139                    try {
1140                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1141                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes29);
1142    
1143                            MethodHandler methodHandler = new MethodHandler(methodKey,
1144                                            repositoryId, folderId);
1145    
1146                            Object returnObj = null;
1147    
1148                            try {
1149                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1150                            }
1151                            catch (Exception e) {
1152                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1153                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1154                                    }
1155    
1156                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1157                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1158                                    }
1159    
1160                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1161                            }
1162    
1163                            return ((Integer)returnObj).intValue();
1164                    }
1165                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1166                            _log.error(se, se);
1167    
1168                            throw se;
1169                    }
1170            }
1171    
1172            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
1173                    long repositoryId, long folderId, long fileEntryTypeId)
1174                    throws com.liferay.portal.kernel.exception.PortalException,
1175                            com.liferay.portal.kernel.exception.SystemException {
1176                    try {
1177                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1178                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes30);
1179    
1180                            MethodHandler methodHandler = new MethodHandler(methodKey,
1181                                            repositoryId, folderId, fileEntryTypeId);
1182    
1183                            Object returnObj = null;
1184    
1185                            try {
1186                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1187                            }
1188                            catch (Exception e) {
1189                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1190                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1191                                    }
1192    
1193                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1194                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1195                                    }
1196    
1197                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1198                            }
1199    
1200                            return ((Integer)returnObj).intValue();
1201                    }
1202                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1203                            _log.error(se, se);
1204    
1205                            throw se;
1206                    }
1207            }
1208    
1209            public static com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(
1210                    HttpPrincipal httpPrincipal, long fileEntryId)
1211                    throws com.liferay.portal.kernel.exception.PortalException,
1212                            com.liferay.portal.kernel.exception.SystemException {
1213                    try {
1214                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1215                                            "getFileEntry", _getFileEntryParameterTypes31);
1216    
1217                            MethodHandler methodHandler = new MethodHandler(methodKey,
1218                                            fileEntryId);
1219    
1220                            Object returnObj = null;
1221    
1222                            try {
1223                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1224                            }
1225                            catch (Exception e) {
1226                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1227                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1228                                    }
1229    
1230                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1231                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1232                                    }
1233    
1234                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1235                            }
1236    
1237                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
1238                    }
1239                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1240                            _log.error(se, se);
1241    
1242                            throw se;
1243                    }
1244            }
1245    
1246            public static com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(
1247                    HttpPrincipal httpPrincipal, long groupId, long folderId,
1248                    java.lang.String title)
1249                    throws com.liferay.portal.kernel.exception.PortalException,
1250                            com.liferay.portal.kernel.exception.SystemException {
1251                    try {
1252                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1253                                            "getFileEntry", _getFileEntryParameterTypes32);
1254    
1255                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1256                                            folderId, title);
1257    
1258                            Object returnObj = null;
1259    
1260                            try {
1261                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1262                            }
1263                            catch (Exception e) {
1264                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1265                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1266                                    }
1267    
1268                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1269                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1270                                    }
1271    
1272                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1273                            }
1274    
1275                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
1276                    }
1277                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1278                            _log.error(se, se);
1279    
1280                            throw se;
1281                    }
1282            }
1283    
1284            public static com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuidAndGroupId(
1285                    HttpPrincipal httpPrincipal, java.lang.String uuid, long groupId)
1286                    throws com.liferay.portal.kernel.exception.PortalException,
1287                            com.liferay.portal.kernel.exception.SystemException {
1288                    try {
1289                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1290                                            "getFileEntryByUuidAndGroupId",
1291                                            _getFileEntryByUuidAndGroupIdParameterTypes33);
1292    
1293                            MethodHandler methodHandler = new MethodHandler(methodKey, uuid,
1294                                            groupId);
1295    
1296                            Object returnObj = null;
1297    
1298                            try {
1299                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1300                            }
1301                            catch (Exception e) {
1302                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1303                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1304                                    }
1305    
1306                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1307                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1308                                    }
1309    
1310                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1311                            }
1312    
1313                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
1314                    }
1315                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1316                            _log.error(se, se);
1317    
1318                            throw se;
1319                    }
1320            }
1321    
1322            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
1323                    HttpPrincipal httpPrincipal, long fileShortcutId)
1324                    throws com.liferay.portal.kernel.exception.PortalException,
1325                            com.liferay.portal.kernel.exception.SystemException {
1326                    try {
1327                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1328                                            "getFileShortcut", _getFileShortcutParameterTypes34);
1329    
1330                            MethodHandler methodHandler = new MethodHandler(methodKey,
1331                                            fileShortcutId);
1332    
1333                            Object returnObj = null;
1334    
1335                            try {
1336                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1337                            }
1338                            catch (Exception e) {
1339                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1340                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1341                                    }
1342    
1343                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1344                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1345                                    }
1346    
1347                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1348                            }
1349    
1350                            return (com.liferay.portlet.documentlibrary.model.DLFileShortcut)returnObj;
1351                    }
1352                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1353                            _log.error(se, se);
1354    
1355                            throw se;
1356                    }
1357            }
1358    
1359            public static com.liferay.portal.kernel.repository.model.Folder getFolder(
1360                    HttpPrincipal httpPrincipal, long folderId)
1361                    throws com.liferay.portal.kernel.exception.PortalException,
1362                            com.liferay.portal.kernel.exception.SystemException {
1363                    try {
1364                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1365                                            "getFolder", _getFolderParameterTypes35);
1366    
1367                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
1368    
1369                            Object returnObj = null;
1370    
1371                            try {
1372                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1373                            }
1374                            catch (Exception e) {
1375                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1376                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1377                                    }
1378    
1379                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1380                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1381                                    }
1382    
1383                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1384                            }
1385    
1386                            return (com.liferay.portal.kernel.repository.model.Folder)returnObj;
1387                    }
1388                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1389                            _log.error(se, se);
1390    
1391                            throw se;
1392                    }
1393            }
1394    
1395            public static com.liferay.portal.kernel.repository.model.Folder getFolder(
1396                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
1397                    java.lang.String name)
1398                    throws com.liferay.portal.kernel.exception.PortalException,
1399                            com.liferay.portal.kernel.exception.SystemException {
1400                    try {
1401                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1402                                            "getFolder", _getFolderParameterTypes36);
1403    
1404                            MethodHandler methodHandler = new MethodHandler(methodKey,
1405                                            repositoryId, parentFolderId, name);
1406    
1407                            Object returnObj = null;
1408    
1409                            try {
1410                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1411                            }
1412                            catch (Exception e) {
1413                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1414                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1415                                    }
1416    
1417                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1418                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1419                                    }
1420    
1421                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1422                            }
1423    
1424                            return (com.liferay.portal.kernel.repository.model.Folder)returnObj;
1425                    }
1426                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1427                            _log.error(se, se);
1428    
1429                            throw se;
1430                    }
1431            }
1432    
1433            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(
1434                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId)
1435                    throws com.liferay.portal.kernel.exception.PortalException,
1436                            com.liferay.portal.kernel.exception.SystemException {
1437                    try {
1438                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1439                                            "getFolders", _getFoldersParameterTypes37);
1440    
1441                            MethodHandler methodHandler = new MethodHandler(methodKey,
1442                                            repositoryId, parentFolderId);
1443    
1444                            Object returnObj = null;
1445    
1446                            try {
1447                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1448                            }
1449                            catch (Exception e) {
1450                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1451                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1452                                    }
1453    
1454                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1455                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1456                                    }
1457    
1458                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1459                            }
1460    
1461                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
1462                    }
1463                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1464                            _log.error(se, se);
1465    
1466                            throw se;
1467                    }
1468            }
1469    
1470            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(
1471                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
1472                    boolean includeMountFolders)
1473                    throws com.liferay.portal.kernel.exception.PortalException,
1474                            com.liferay.portal.kernel.exception.SystemException {
1475                    try {
1476                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1477                                            "getFolders", _getFoldersParameterTypes38);
1478    
1479                            MethodHandler methodHandler = new MethodHandler(methodKey,
1480                                            repositoryId, parentFolderId, includeMountFolders);
1481    
1482                            Object returnObj = null;
1483    
1484                            try {
1485                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1486                            }
1487                            catch (Exception e) {
1488                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1489                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1490                                    }
1491    
1492                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1493                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1494                                    }
1495    
1496                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1497                            }
1498    
1499                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
1500                    }
1501                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1502                            _log.error(se, se);
1503    
1504                            throw se;
1505                    }
1506            }
1507    
1508            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(
1509                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
1510                    boolean includeMountFolders, int start, int end)
1511                    throws com.liferay.portal.kernel.exception.PortalException,
1512                            com.liferay.portal.kernel.exception.SystemException {
1513                    try {
1514                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1515                                            "getFolders", _getFoldersParameterTypes39);
1516    
1517                            MethodHandler methodHandler = new MethodHandler(methodKey,
1518                                            repositoryId, parentFolderId, includeMountFolders, start,
1519                                            end);
1520    
1521                            Object returnObj = null;
1522    
1523                            try {
1524                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1525                            }
1526                            catch (Exception e) {
1527                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1528                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1529                                    }
1530    
1531                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1532                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1533                                    }
1534    
1535                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1536                            }
1537    
1538                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
1539                    }
1540                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1541                            _log.error(se, se);
1542    
1543                            throw se;
1544                    }
1545            }
1546    
1547            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(
1548                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
1549                    boolean includeMountFolders, int start, int end,
1550                    com.liferay.portal.kernel.util.OrderByComparator obc)
1551                    throws com.liferay.portal.kernel.exception.PortalException,
1552                            com.liferay.portal.kernel.exception.SystemException {
1553                    try {
1554                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1555                                            "getFolders", _getFoldersParameterTypes40);
1556    
1557                            MethodHandler methodHandler = new MethodHandler(methodKey,
1558                                            repositoryId, parentFolderId, includeMountFolders, start,
1559                                            end, obc);
1560    
1561                            Object returnObj = null;
1562    
1563                            try {
1564                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1565                            }
1566                            catch (Exception e) {
1567                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1568                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1569                                    }
1570    
1571                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1572                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1573                                    }
1574    
1575                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1576                            }
1577    
1578                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
1579                    }
1580                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1581                            _log.error(se, se);
1582    
1583                            throw se;
1584                    }
1585            }
1586    
1587            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(
1588                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
1589                    int start, int end)
1590                    throws com.liferay.portal.kernel.exception.PortalException,
1591                            com.liferay.portal.kernel.exception.SystemException {
1592                    try {
1593                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1594                                            "getFolders", _getFoldersParameterTypes41);
1595    
1596                            MethodHandler methodHandler = new MethodHandler(methodKey,
1597                                            repositoryId, parentFolderId, start, end);
1598    
1599                            Object returnObj = null;
1600    
1601                            try {
1602                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1603                            }
1604                            catch (Exception e) {
1605                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1606                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1607                                    }
1608    
1609                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1610                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1611                                    }
1612    
1613                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1614                            }
1615    
1616                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
1617                    }
1618                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1619                            _log.error(se, se);
1620    
1621                            throw se;
1622                    }
1623            }
1624    
1625            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getFolders(
1626                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
1627                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1628                    throws com.liferay.portal.kernel.exception.PortalException,
1629                            com.liferay.portal.kernel.exception.SystemException {
1630                    try {
1631                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1632                                            "getFolders", _getFoldersParameterTypes42);
1633    
1634                            MethodHandler methodHandler = new MethodHandler(methodKey,
1635                                            repositoryId, parentFolderId, start, end, obc);
1636    
1637                            Object returnObj = null;
1638    
1639                            try {
1640                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1641                            }
1642                            catch (Exception e) {
1643                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1644                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1645                                    }
1646    
1647                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1648                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1649                                    }
1650    
1651                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1652                            }
1653    
1654                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
1655                    }
1656                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1657                            _log.error(se, se);
1658    
1659                            throw se;
1660                    }
1661            }
1662    
1663            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
1664                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1665                    int status, boolean includeMountFolders, int start, int end)
1666                    throws com.liferay.portal.kernel.exception.PortalException,
1667                            com.liferay.portal.kernel.exception.SystemException {
1668                    try {
1669                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1670                                            "getFoldersAndFileEntriesAndFileShortcuts",
1671                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes43);
1672    
1673                            MethodHandler methodHandler = new MethodHandler(methodKey,
1674                                            repositoryId, folderId, status, includeMountFolders, start,
1675                                            end);
1676    
1677                            Object returnObj = null;
1678    
1679                            try {
1680                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1681                            }
1682                            catch (Exception e) {
1683                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1684                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1685                                    }
1686    
1687                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1688                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1689                                    }
1690    
1691                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1692                            }
1693    
1694                            return (java.util.List<java.lang.Object>)returnObj;
1695                    }
1696                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1697                            _log.error(se, se);
1698    
1699                            throw se;
1700                    }
1701            }
1702    
1703            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
1704                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1705                    int status, boolean includeMountFolders, int start, int end,
1706                    com.liferay.portal.kernel.util.OrderByComparator obc)
1707                    throws com.liferay.portal.kernel.exception.PortalException,
1708                            com.liferay.portal.kernel.exception.SystemException {
1709                    try {
1710                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1711                                            "getFoldersAndFileEntriesAndFileShortcuts",
1712                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes44);
1713    
1714                            MethodHandler methodHandler = new MethodHandler(methodKey,
1715                                            repositoryId, folderId, status, includeMountFolders, start,
1716                                            end, obc);
1717    
1718                            Object returnObj = null;
1719    
1720                            try {
1721                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1722                            }
1723                            catch (Exception e) {
1724                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1725                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1726                                    }
1727    
1728                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1729                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1730                                    }
1731    
1732                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1733                            }
1734    
1735                            return (java.util.List<java.lang.Object>)returnObj;
1736                    }
1737                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1738                            _log.error(se, se);
1739    
1740                            throw se;
1741                    }
1742            }
1743    
1744            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
1745                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1746                    int status, java.lang.String[] mimeTypes, boolean includeMountFolders,
1747                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1748                    throws com.liferay.portal.kernel.exception.PortalException,
1749                            com.liferay.portal.kernel.exception.SystemException {
1750                    try {
1751                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1752                                            "getFoldersAndFileEntriesAndFileShortcuts",
1753                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes45);
1754    
1755                            MethodHandler methodHandler = new MethodHandler(methodKey,
1756                                            repositoryId, folderId, status, mimeTypes,
1757                                            includeMountFolders, start, end, obc);
1758    
1759                            Object returnObj = null;
1760    
1761                            try {
1762                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1763                            }
1764                            catch (Exception e) {
1765                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1766                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1767                                    }
1768    
1769                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1770                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1771                                    }
1772    
1773                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1774                            }
1775    
1776                            return (java.util.List<java.lang.Object>)returnObj;
1777                    }
1778                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1779                            _log.error(se, se);
1780    
1781                            throw se;
1782                    }
1783            }
1784    
1785            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
1786                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1787                    int status, boolean includeMountFolders)
1788                    throws com.liferay.portal.kernel.exception.PortalException,
1789                            com.liferay.portal.kernel.exception.SystemException {
1790                    try {
1791                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1792                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
1793                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes46);
1794    
1795                            MethodHandler methodHandler = new MethodHandler(methodKey,
1796                                            repositoryId, folderId, status, includeMountFolders);
1797    
1798                            Object returnObj = null;
1799    
1800                            try {
1801                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1802                            }
1803                            catch (Exception e) {
1804                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1805                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1806                                    }
1807    
1808                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1809                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1810                                    }
1811    
1812                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1813                            }
1814    
1815                            return ((Integer)returnObj).intValue();
1816                    }
1817                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1818                            _log.error(se, se);
1819    
1820                            throw se;
1821                    }
1822            }
1823    
1824            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
1825                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
1826                    int status, java.lang.String[] mimeTypes, boolean includeMountFolders)
1827                    throws com.liferay.portal.kernel.exception.PortalException,
1828                            com.liferay.portal.kernel.exception.SystemException {
1829                    try {
1830                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1831                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
1832                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes47);
1833    
1834                            MethodHandler methodHandler = new MethodHandler(methodKey,
1835                                            repositoryId, folderId, status, mimeTypes,
1836                                            includeMountFolders);
1837    
1838                            Object returnObj = null;
1839    
1840                            try {
1841                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1842                            }
1843                            catch (Exception e) {
1844                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1845                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1846                                    }
1847    
1848                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1849                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1850                                    }
1851    
1852                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1853                            }
1854    
1855                            return ((Integer)returnObj).intValue();
1856                    }
1857                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1858                            _log.error(se, se);
1859    
1860                            throw se;
1861                    }
1862            }
1863    
1864            public static int getFoldersCount(HttpPrincipal httpPrincipal,
1865                    long repositoryId, long parentFolderId)
1866                    throws com.liferay.portal.kernel.exception.PortalException,
1867                            com.liferay.portal.kernel.exception.SystemException {
1868                    try {
1869                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1870                                            "getFoldersCount", _getFoldersCountParameterTypes48);
1871    
1872                            MethodHandler methodHandler = new MethodHandler(methodKey,
1873                                            repositoryId, parentFolderId);
1874    
1875                            Object returnObj = null;
1876    
1877                            try {
1878                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1879                            }
1880                            catch (Exception e) {
1881                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1882                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1883                                    }
1884    
1885                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1886                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1887                                    }
1888    
1889                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1890                            }
1891    
1892                            return ((Integer)returnObj).intValue();
1893                    }
1894                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1895                            _log.error(se, se);
1896    
1897                            throw se;
1898                    }
1899            }
1900    
1901            public static int getFoldersCount(HttpPrincipal httpPrincipal,
1902                    long repositoryId, long parentFolderId, boolean includeMountFolders)
1903                    throws com.liferay.portal.kernel.exception.PortalException,
1904                            com.liferay.portal.kernel.exception.SystemException {
1905                    try {
1906                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1907                                            "getFoldersCount", _getFoldersCountParameterTypes49);
1908    
1909                            MethodHandler methodHandler = new MethodHandler(methodKey,
1910                                            repositoryId, parentFolderId, includeMountFolders);
1911    
1912                            Object returnObj = null;
1913    
1914                            try {
1915                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1916                            }
1917                            catch (Exception e) {
1918                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1919                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1920                                    }
1921    
1922                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1923                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1924                                    }
1925    
1926                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1927                            }
1928    
1929                            return ((Integer)returnObj).intValue();
1930                    }
1931                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1932                            _log.error(se, se);
1933    
1934                            throw se;
1935                    }
1936            }
1937    
1938            public static int getFoldersFileEntriesCount(HttpPrincipal httpPrincipal,
1939                    long repositoryId, java.util.List<java.lang.Long> folderIds, int status)
1940                    throws com.liferay.portal.kernel.exception.PortalException,
1941                            com.liferay.portal.kernel.exception.SystemException {
1942                    try {
1943                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1944                                            "getFoldersFileEntriesCount",
1945                                            _getFoldersFileEntriesCountParameterTypes50);
1946    
1947                            MethodHandler methodHandler = new MethodHandler(methodKey,
1948                                            repositoryId, folderIds, status);
1949    
1950                            Object returnObj = null;
1951    
1952                            try {
1953                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1954                            }
1955                            catch (Exception e) {
1956                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1957                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1958                                    }
1959    
1960                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1961                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1962                                    }
1963    
1964                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1965                            }
1966    
1967                            return ((Integer)returnObj).intValue();
1968                    }
1969                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1970                            _log.error(se, se);
1971    
1972                            throw se;
1973                    }
1974            }
1975    
1976            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries(
1977                    HttpPrincipal httpPrincipal, long groupId, long userId, int start,
1978                    int end)
1979                    throws com.liferay.portal.kernel.exception.PortalException,
1980                            com.liferay.portal.kernel.exception.SystemException {
1981                    try {
1982                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
1983                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes51);
1984    
1985                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1986                                            userId, start, end);
1987    
1988                            Object returnObj = null;
1989    
1990                            try {
1991                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1992                            }
1993                            catch (Exception e) {
1994                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1995                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1996                                    }
1997    
1998                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1999                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2000                                    }
2001    
2002                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2003                            }
2004    
2005                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
2006                    }
2007                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2008                            _log.error(se, se);
2009    
2010                            throw se;
2011                    }
2012            }
2013    
2014            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries(
2015                    HttpPrincipal httpPrincipal, long groupId, long userId, int start,
2016                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2017                    throws com.liferay.portal.kernel.exception.PortalException,
2018                            com.liferay.portal.kernel.exception.SystemException {
2019                    try {
2020                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2021                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes52);
2022    
2023                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2024                                            userId, start, end, obc);
2025    
2026                            Object returnObj = null;
2027    
2028                            try {
2029                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2030                            }
2031                            catch (Exception e) {
2032                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2033                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2034                                    }
2035    
2036                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2037                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2038                                    }
2039    
2040                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2041                            }
2042    
2043                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
2044                    }
2045                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2046                            _log.error(se, se);
2047    
2048                            throw se;
2049                    }
2050            }
2051    
2052            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries(
2053                    HttpPrincipal httpPrincipal, long groupId, long userId,
2054                    long rootFolderId, int start, int end)
2055                    throws com.liferay.portal.kernel.exception.PortalException,
2056                            com.liferay.portal.kernel.exception.SystemException {
2057                    try {
2058                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2059                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes53);
2060    
2061                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2062                                            userId, rootFolderId, start, end);
2063    
2064                            Object returnObj = null;
2065    
2066                            try {
2067                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2068                            }
2069                            catch (Exception e) {
2070                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2071                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2072                                    }
2073    
2074                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2075                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2076                                    }
2077    
2078                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2079                            }
2080    
2081                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
2082                    }
2083                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2084                            _log.error(se, se);
2085    
2086                            throw se;
2087                    }
2088            }
2089    
2090            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries(
2091                    HttpPrincipal httpPrincipal, long groupId, long userId,
2092                    long rootFolderId, int start, int end,
2093                    com.liferay.portal.kernel.util.OrderByComparator obc)
2094                    throws com.liferay.portal.kernel.exception.PortalException,
2095                            com.liferay.portal.kernel.exception.SystemException {
2096                    try {
2097                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2098                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes54);
2099    
2100                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2101                                            userId, rootFolderId, start, end, obc);
2102    
2103                            Object returnObj = null;
2104    
2105                            try {
2106                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2107                            }
2108                            catch (Exception e) {
2109                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2110                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2111                                    }
2112    
2113                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2114                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2115                                    }
2116    
2117                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2118                            }
2119    
2120                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
2121                    }
2122                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2123                            _log.error(se, se);
2124    
2125                            throw se;
2126                    }
2127            }
2128    
2129            public static java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getGroupFileEntries(
2130                    HttpPrincipal httpPrincipal, long groupId, long userId,
2131                    long rootFolderId, java.lang.String[] mimeTypes, int status, int start,
2132                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2133                    throws com.liferay.portal.kernel.exception.PortalException,
2134                            com.liferay.portal.kernel.exception.SystemException {
2135                    try {
2136                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2137                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes55);
2138    
2139                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2140                                            userId, rootFolderId, mimeTypes, status, start, end, obc);
2141    
2142                            Object returnObj = null;
2143    
2144                            try {
2145                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2146                            }
2147                            catch (Exception e) {
2148                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2149                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2150                                    }
2151    
2152                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2153                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2154                                    }
2155    
2156                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2157                            }
2158    
2159                            return (java.util.List<com.liferay.portal.kernel.repository.model.FileEntry>)returnObj;
2160                    }
2161                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2162                            _log.error(se, se);
2163    
2164                            throw se;
2165                    }
2166            }
2167    
2168            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
2169                    long groupId, long userId)
2170                    throws com.liferay.portal.kernel.exception.PortalException,
2171                            com.liferay.portal.kernel.exception.SystemException {
2172                    try {
2173                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2174                                            "getGroupFileEntriesCount",
2175                                            _getGroupFileEntriesCountParameterTypes56);
2176    
2177                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2178                                            userId);
2179    
2180                            Object returnObj = null;
2181    
2182                            try {
2183                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2184                            }
2185                            catch (Exception e) {
2186                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2187                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2188                                    }
2189    
2190                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2191                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2192                                    }
2193    
2194                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2195                            }
2196    
2197                            return ((Integer)returnObj).intValue();
2198                    }
2199                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2200                            _log.error(se, se);
2201    
2202                            throw se;
2203                    }
2204            }
2205    
2206            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
2207                    long groupId, long userId, long rootFolderId)
2208                    throws com.liferay.portal.kernel.exception.PortalException,
2209                            com.liferay.portal.kernel.exception.SystemException {
2210                    try {
2211                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2212                                            "getGroupFileEntriesCount",
2213                                            _getGroupFileEntriesCountParameterTypes57);
2214    
2215                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2216                                            userId, rootFolderId);
2217    
2218                            Object returnObj = null;
2219    
2220                            try {
2221                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2222                            }
2223                            catch (Exception e) {
2224                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2225                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2226                                    }
2227    
2228                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2229                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2230                                    }
2231    
2232                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2233                            }
2234    
2235                            return ((Integer)returnObj).intValue();
2236                    }
2237                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2238                            _log.error(se, se);
2239    
2240                            throw se;
2241                    }
2242            }
2243    
2244            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
2245                    long groupId, long userId, long rootFolderId,
2246                    java.lang.String[] mimeTypes, int status)
2247                    throws com.liferay.portal.kernel.exception.PortalException,
2248                            com.liferay.portal.kernel.exception.SystemException {
2249                    try {
2250                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2251                                            "getGroupFileEntriesCount",
2252                                            _getGroupFileEntriesCountParameterTypes58);
2253    
2254                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2255                                            userId, rootFolderId, mimeTypes, status);
2256    
2257                            Object returnObj = null;
2258    
2259                            try {
2260                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2261                            }
2262                            catch (Exception e) {
2263                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2264                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2265                                    }
2266    
2267                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2268                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2269                                    }
2270    
2271                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2272                            }
2273    
2274                            return ((Integer)returnObj).intValue();
2275                    }
2276                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2277                            _log.error(se, se);
2278    
2279                            throw se;
2280                    }
2281            }
2282    
2283            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders(
2284                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId)
2285                    throws com.liferay.portal.kernel.exception.PortalException,
2286                            com.liferay.portal.kernel.exception.SystemException {
2287                    try {
2288                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2289                                            "getMountFolders", _getMountFoldersParameterTypes59);
2290    
2291                            MethodHandler methodHandler = new MethodHandler(methodKey,
2292                                            repositoryId, parentFolderId);
2293    
2294                            Object returnObj = null;
2295    
2296                            try {
2297                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2298                            }
2299                            catch (Exception e) {
2300                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2301                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2302                                    }
2303    
2304                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2305                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2306                                    }
2307    
2308                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2309                            }
2310    
2311                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
2312                    }
2313                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2314                            _log.error(se, se);
2315    
2316                            throw se;
2317                    }
2318            }
2319    
2320            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders(
2321                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
2322                    int start, int end)
2323                    throws com.liferay.portal.kernel.exception.PortalException,
2324                            com.liferay.portal.kernel.exception.SystemException {
2325                    try {
2326                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2327                                            "getMountFolders", _getMountFoldersParameterTypes60);
2328    
2329                            MethodHandler methodHandler = new MethodHandler(methodKey,
2330                                            repositoryId, parentFolderId, start, end);
2331    
2332                            Object returnObj = null;
2333    
2334                            try {
2335                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2336                            }
2337                            catch (Exception e) {
2338                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2339                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2340                                    }
2341    
2342                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2343                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2344                                    }
2345    
2346                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2347                            }
2348    
2349                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
2350                    }
2351                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2352                            _log.error(se, se);
2353    
2354                            throw se;
2355                    }
2356            }
2357    
2358            public static java.util.List<com.liferay.portal.kernel.repository.model.Folder> getMountFolders(
2359                    HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId,
2360                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
2361                    throws com.liferay.portal.kernel.exception.PortalException,
2362                            com.liferay.portal.kernel.exception.SystemException {
2363                    try {
2364                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2365                                            "getMountFolders", _getMountFoldersParameterTypes61);
2366    
2367                            MethodHandler methodHandler = new MethodHandler(methodKey,
2368                                            repositoryId, parentFolderId, start, end, obc);
2369    
2370                            Object returnObj = null;
2371    
2372                            try {
2373                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2374                            }
2375                            catch (Exception e) {
2376                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2377                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2378                                    }
2379    
2380                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2381                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2382                                    }
2383    
2384                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2385                            }
2386    
2387                            return (java.util.List<com.liferay.portal.kernel.repository.model.Folder>)returnObj;
2388                    }
2389                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2390                            _log.error(se, se);
2391    
2392                            throw se;
2393                    }
2394            }
2395    
2396            public static int getMountFoldersCount(HttpPrincipal httpPrincipal,
2397                    long repositoryId, long parentFolderId)
2398                    throws com.liferay.portal.kernel.exception.PortalException,
2399                            com.liferay.portal.kernel.exception.SystemException {
2400                    try {
2401                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2402                                            "getMountFoldersCount",
2403                                            _getMountFoldersCountParameterTypes62);
2404    
2405                            MethodHandler methodHandler = new MethodHandler(methodKey,
2406                                            repositoryId, parentFolderId);
2407    
2408                            Object returnObj = null;
2409    
2410                            try {
2411                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2412                            }
2413                            catch (Exception e) {
2414                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2415                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2416                                    }
2417    
2418                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2419                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2420                                    }
2421    
2422                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2423                            }
2424    
2425                            return ((Integer)returnObj).intValue();
2426                    }
2427                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2428                            _log.error(se, se);
2429    
2430                            throw se;
2431                    }
2432            }
2433    
2434            public static void getSubfolderIds(HttpPrincipal httpPrincipal,
2435                    long repositoryId, java.util.List<java.lang.Long> folderIds,
2436                    long folderId)
2437                    throws com.liferay.portal.kernel.exception.PortalException,
2438                            com.liferay.portal.kernel.exception.SystemException {
2439                    try {
2440                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2441                                            "getSubfolderIds", _getSubfolderIdsParameterTypes63);
2442    
2443                            MethodHandler methodHandler = new MethodHandler(methodKey,
2444                                            repositoryId, folderIds, folderId);
2445    
2446                            try {
2447                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
2448                            }
2449                            catch (Exception e) {
2450                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2451                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2452                                    }
2453    
2454                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2455                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2456                                    }
2457    
2458                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2459                            }
2460                    }
2461                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2462                            _log.error(se, se);
2463    
2464                            throw se;
2465                    }
2466            }
2467    
2468            public static java.util.List<java.lang.Long> getSubfolderIds(
2469                    HttpPrincipal httpPrincipal, long repositoryId, long folderId)
2470                    throws com.liferay.portal.kernel.exception.PortalException,
2471                            com.liferay.portal.kernel.exception.SystemException {
2472                    try {
2473                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2474                                            "getSubfolderIds", _getSubfolderIdsParameterTypes64);
2475    
2476                            MethodHandler methodHandler = new MethodHandler(methodKey,
2477                                            repositoryId, folderId);
2478    
2479                            Object returnObj = null;
2480    
2481                            try {
2482                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2483                            }
2484                            catch (Exception e) {
2485                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2486                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2487                                    }
2488    
2489                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2490                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2491                                    }
2492    
2493                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2494                            }
2495    
2496                            return (java.util.List<java.lang.Long>)returnObj;
2497                    }
2498                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2499                            _log.error(se, se);
2500    
2501                            throw se;
2502                    }
2503            }
2504    
2505            public static java.util.List<java.lang.Long> getSubfolderIds(
2506                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
2507                    boolean recurse)
2508                    throws com.liferay.portal.kernel.exception.PortalException,
2509                            com.liferay.portal.kernel.exception.SystemException {
2510                    try {
2511                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2512                                            "getSubfolderIds", _getSubfolderIdsParameterTypes65);
2513    
2514                            MethodHandler methodHandler = new MethodHandler(methodKey,
2515                                            repositoryId, folderId, recurse);
2516    
2517                            Object returnObj = null;
2518    
2519                            try {
2520                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2521                            }
2522                            catch (Exception e) {
2523                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2524                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2525                                    }
2526    
2527                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2528                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2529                                    }
2530    
2531                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2532                            }
2533    
2534                            return (java.util.List<java.lang.Long>)returnObj;
2535                    }
2536                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2537                            _log.error(se, se);
2538    
2539                            throw se;
2540                    }
2541            }
2542    
2543            public static java.lang.String[] getTempFileEntryNames(
2544                    HttpPrincipal httpPrincipal, long groupId, long folderId,
2545                    java.lang.String tempFolderName)
2546                    throws com.liferay.portal.kernel.exception.PortalException,
2547                            com.liferay.portal.kernel.exception.SystemException {
2548                    try {
2549                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2550                                            "getTempFileEntryNames",
2551                                            _getTempFileEntryNamesParameterTypes66);
2552    
2553                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2554                                            folderId, tempFolderName);
2555    
2556                            Object returnObj = null;
2557    
2558                            try {
2559                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2560                            }
2561                            catch (Exception e) {
2562                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2563                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2564                                    }
2565    
2566                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2567                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2568                                    }
2569    
2570                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2571                            }
2572    
2573                            return (java.lang.String[])returnObj;
2574                    }
2575                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2576                            _log.error(se, se);
2577    
2578                            throw se;
2579                    }
2580            }
2581    
2582            public static com.liferay.portal.model.Lock lockFileEntry(
2583                    HttpPrincipal httpPrincipal, long fileEntryId)
2584                    throws com.liferay.portal.kernel.exception.PortalException,
2585                            com.liferay.portal.kernel.exception.SystemException {
2586                    try {
2587                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2588                                            "lockFileEntry", _lockFileEntryParameterTypes67);
2589    
2590                            MethodHandler methodHandler = new MethodHandler(methodKey,
2591                                            fileEntryId);
2592    
2593                            Object returnObj = null;
2594    
2595                            try {
2596                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2597                            }
2598                            catch (Exception e) {
2599                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2600                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2601                                    }
2602    
2603                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2604                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2605                                    }
2606    
2607                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2608                            }
2609    
2610                            return (com.liferay.portal.model.Lock)returnObj;
2611                    }
2612                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2613                            _log.error(se, se);
2614    
2615                            throw se;
2616                    }
2617            }
2618    
2619            public static com.liferay.portal.model.Lock lockFileEntry(
2620                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
2621                    long expirationTime)
2622                    throws com.liferay.portal.kernel.exception.PortalException,
2623                            com.liferay.portal.kernel.exception.SystemException {
2624                    try {
2625                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2626                                            "lockFileEntry", _lockFileEntryParameterTypes68);
2627    
2628                            MethodHandler methodHandler = new MethodHandler(methodKey,
2629                                            fileEntryId, owner, expirationTime);
2630    
2631                            Object returnObj = null;
2632    
2633                            try {
2634                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2635                            }
2636                            catch (Exception e) {
2637                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2638                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2639                                    }
2640    
2641                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2642                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2643                                    }
2644    
2645                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2646                            }
2647    
2648                            return (com.liferay.portal.model.Lock)returnObj;
2649                    }
2650                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2651                            _log.error(se, se);
2652    
2653                            throw se;
2654                    }
2655            }
2656    
2657            public static com.liferay.portal.model.Lock lockFolder(
2658                    HttpPrincipal httpPrincipal, long repositoryId, long folderId)
2659                    throws com.liferay.portal.kernel.exception.PortalException,
2660                            com.liferay.portal.kernel.exception.SystemException {
2661                    try {
2662                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2663                                            "lockFolder", _lockFolderParameterTypes69);
2664    
2665                            MethodHandler methodHandler = new MethodHandler(methodKey,
2666                                            repositoryId, folderId);
2667    
2668                            Object returnObj = null;
2669    
2670                            try {
2671                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2672                            }
2673                            catch (Exception e) {
2674                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2675                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2676                                    }
2677    
2678                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2679                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2680                                    }
2681    
2682                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2683                            }
2684    
2685                            return (com.liferay.portal.model.Lock)returnObj;
2686                    }
2687                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2688                            _log.error(se, se);
2689    
2690                            throw se;
2691                    }
2692            }
2693    
2694            public static com.liferay.portal.model.Lock lockFolder(
2695                    HttpPrincipal httpPrincipal, long repositoryId, long folderId,
2696                    java.lang.String owner, boolean inheritable, long expirationTime)
2697                    throws com.liferay.portal.kernel.exception.PortalException,
2698                            com.liferay.portal.kernel.exception.SystemException {
2699                    try {
2700                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2701                                            "lockFolder", _lockFolderParameterTypes70);
2702    
2703                            MethodHandler methodHandler = new MethodHandler(methodKey,
2704                                            repositoryId, folderId, owner, inheritable, expirationTime);
2705    
2706                            Object returnObj = null;
2707    
2708                            try {
2709                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2710                            }
2711                            catch (Exception e) {
2712                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2713                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2714                                    }
2715    
2716                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2717                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2718                                    }
2719    
2720                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2721                            }
2722    
2723                            return (com.liferay.portal.model.Lock)returnObj;
2724                    }
2725                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2726                            _log.error(se, se);
2727    
2728                            throw se;
2729                    }
2730            }
2731    
2732            public static com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry(
2733                    HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId,
2734                    com.liferay.portal.service.ServiceContext serviceContext)
2735                    throws com.liferay.portal.kernel.exception.PortalException,
2736                            com.liferay.portal.kernel.exception.SystemException {
2737                    try {
2738                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2739                                            "moveFileEntry", _moveFileEntryParameterTypes71);
2740    
2741                            MethodHandler methodHandler = new MethodHandler(methodKey,
2742                                            fileEntryId, newFolderId, serviceContext);
2743    
2744                            Object returnObj = null;
2745    
2746                            try {
2747                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2748                            }
2749                            catch (Exception e) {
2750                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2751                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2752                                    }
2753    
2754                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2755                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2756                                    }
2757    
2758                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2759                            }
2760    
2761                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
2762                    }
2763                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2764                            _log.error(se, se);
2765    
2766                            throw se;
2767                    }
2768            }
2769    
2770            public static com.liferay.portal.kernel.repository.model.Folder moveFolder(
2771                    HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
2772                    com.liferay.portal.service.ServiceContext serviceContext)
2773                    throws com.liferay.portal.kernel.exception.PortalException,
2774                            com.liferay.portal.kernel.exception.SystemException {
2775                    try {
2776                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2777                                            "moveFolder", _moveFolderParameterTypes72);
2778    
2779                            MethodHandler methodHandler = new MethodHandler(methodKey,
2780                                            folderId, parentFolderId, serviceContext);
2781    
2782                            Object returnObj = null;
2783    
2784                            try {
2785                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2786                            }
2787                            catch (Exception e) {
2788                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2789                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2790                                    }
2791    
2792                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2793                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2794                                    }
2795    
2796                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2797                            }
2798    
2799                            return (com.liferay.portal.kernel.repository.model.Folder)returnObj;
2800                    }
2801                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2802                            _log.error(se, se);
2803    
2804                            throw se;
2805                    }
2806            }
2807    
2808            public static com.liferay.portal.model.Lock refreshFileEntryLock(
2809                    HttpPrincipal httpPrincipal, java.lang.String lockUuid,
2810                    long expirationTime)
2811                    throws com.liferay.portal.kernel.exception.PortalException,
2812                            com.liferay.portal.kernel.exception.SystemException {
2813                    try {
2814                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2815                                            "refreshFileEntryLock",
2816                                            _refreshFileEntryLockParameterTypes73);
2817    
2818                            MethodHandler methodHandler = new MethodHandler(methodKey,
2819                                            lockUuid, expirationTime);
2820    
2821                            Object returnObj = null;
2822    
2823                            try {
2824                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2825                            }
2826                            catch (Exception e) {
2827                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2828                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2829                                    }
2830    
2831                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2832                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2833                                    }
2834    
2835                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2836                            }
2837    
2838                            return (com.liferay.portal.model.Lock)returnObj;
2839                    }
2840                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2841                            _log.error(se, se);
2842    
2843                            throw se;
2844                    }
2845            }
2846    
2847            public static com.liferay.portal.model.Lock refreshFolderLock(
2848                    HttpPrincipal httpPrincipal, java.lang.String lockUuid,
2849                    long expirationTime)
2850                    throws com.liferay.portal.kernel.exception.PortalException,
2851                            com.liferay.portal.kernel.exception.SystemException {
2852                    try {
2853                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2854                                            "refreshFolderLock", _refreshFolderLockParameterTypes74);
2855    
2856                            MethodHandler methodHandler = new MethodHandler(methodKey,
2857                                            lockUuid, expirationTime);
2858    
2859                            Object returnObj = null;
2860    
2861                            try {
2862                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2863                            }
2864                            catch (Exception e) {
2865                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2866                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2867                                    }
2868    
2869                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2870                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2871                                    }
2872    
2873                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2874                            }
2875    
2876                            return (com.liferay.portal.model.Lock)returnObj;
2877                    }
2878                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2879                            _log.error(se, se);
2880    
2881                            throw se;
2882                    }
2883            }
2884    
2885            public static void revertFileEntry(HttpPrincipal httpPrincipal,
2886                    long fileEntryId, java.lang.String version,
2887                    com.liferay.portal.service.ServiceContext serviceContext)
2888                    throws com.liferay.portal.kernel.exception.PortalException,
2889                            com.liferay.portal.kernel.exception.SystemException {
2890                    try {
2891                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2892                                            "revertFileEntry", _revertFileEntryParameterTypes75);
2893    
2894                            MethodHandler methodHandler = new MethodHandler(methodKey,
2895                                            fileEntryId, version, serviceContext);
2896    
2897                            try {
2898                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
2899                            }
2900                            catch (Exception e) {
2901                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2902                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2903                                    }
2904    
2905                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2906                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2907                                    }
2908    
2909                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2910                            }
2911                    }
2912                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2913                            _log.error(se, se);
2914    
2915                            throw se;
2916                    }
2917            }
2918    
2919            public static com.liferay.portal.kernel.search.Hits search(
2920                    HttpPrincipal httpPrincipal, long repositoryId,
2921                    com.liferay.portal.kernel.search.SearchContext searchContext)
2922                    throws com.liferay.portal.kernel.exception.SystemException,
2923                            com.liferay.portal.kernel.search.SearchException {
2924                    try {
2925                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2926                                            "search", _searchParameterTypes76);
2927    
2928                            MethodHandler methodHandler = new MethodHandler(methodKey,
2929                                            repositoryId, searchContext);
2930    
2931                            Object returnObj = null;
2932    
2933                            try {
2934                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2935                            }
2936                            catch (Exception e) {
2937                                    if (e instanceof com.liferay.portal.kernel.search.SearchException) {
2938                                            throw (com.liferay.portal.kernel.search.SearchException)e;
2939                                    }
2940    
2941                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2942                            }
2943    
2944                            return (com.liferay.portal.kernel.search.Hits)returnObj;
2945                    }
2946                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2947                            _log.error(se, se);
2948    
2949                            throw se;
2950                    }
2951            }
2952    
2953            public static com.liferay.portal.kernel.search.Hits search(
2954                    HttpPrincipal httpPrincipal, long repositoryId,
2955                    com.liferay.portal.kernel.search.SearchContext searchContext,
2956                    com.liferay.portal.kernel.search.Query query)
2957                    throws com.liferay.portal.kernel.exception.SystemException,
2958                            com.liferay.portal.kernel.search.SearchException {
2959                    try {
2960                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2961                                            "search", _searchParameterTypes77);
2962    
2963                            MethodHandler methodHandler = new MethodHandler(methodKey,
2964                                            repositoryId, searchContext, query);
2965    
2966                            Object returnObj = null;
2967    
2968                            try {
2969                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2970                            }
2971                            catch (Exception e) {
2972                                    if (e instanceof com.liferay.portal.kernel.search.SearchException) {
2973                                            throw (com.liferay.portal.kernel.search.SearchException)e;
2974                                    }
2975    
2976                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2977                            }
2978    
2979                            return (com.liferay.portal.kernel.search.Hits)returnObj;
2980                    }
2981                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2982                            _log.error(se, se);
2983    
2984                            throw se;
2985                    }
2986            }
2987    
2988            public static void unlockFileEntry(HttpPrincipal httpPrincipal,
2989                    long fileEntryId)
2990                    throws com.liferay.portal.kernel.exception.PortalException,
2991                            com.liferay.portal.kernel.exception.SystemException {
2992                    try {
2993                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
2994                                            "unlockFileEntry", _unlockFileEntryParameterTypes78);
2995    
2996                            MethodHandler methodHandler = new MethodHandler(methodKey,
2997                                            fileEntryId);
2998    
2999                            try {
3000                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
3001                            }
3002                            catch (Exception e) {
3003                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3004                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3005                                    }
3006    
3007                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3008                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3009                                    }
3010    
3011                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3012                            }
3013                    }
3014                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3015                            _log.error(se, se);
3016    
3017                            throw se;
3018                    }
3019            }
3020    
3021            public static void unlockFileEntry(HttpPrincipal httpPrincipal,
3022                    long fileEntryId, java.lang.String lockUuid)
3023                    throws com.liferay.portal.kernel.exception.PortalException,
3024                            com.liferay.portal.kernel.exception.SystemException {
3025                    try {
3026                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3027                                            "unlockFileEntry", _unlockFileEntryParameterTypes79);
3028    
3029                            MethodHandler methodHandler = new MethodHandler(methodKey,
3030                                            fileEntryId, lockUuid);
3031    
3032                            try {
3033                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
3034                            }
3035                            catch (Exception e) {
3036                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3037                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3038                                    }
3039    
3040                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3041                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3042                                    }
3043    
3044                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3045                            }
3046                    }
3047                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3048                            _log.error(se, se);
3049    
3050                            throw se;
3051                    }
3052            }
3053    
3054            public static void unlockFolder(HttpPrincipal httpPrincipal,
3055                    long repositoryId, long folderId, java.lang.String lockUuid)
3056                    throws com.liferay.portal.kernel.exception.PortalException,
3057                            com.liferay.portal.kernel.exception.SystemException {
3058                    try {
3059                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3060                                            "unlockFolder", _unlockFolderParameterTypes80);
3061    
3062                            MethodHandler methodHandler = new MethodHandler(methodKey,
3063                                            repositoryId, folderId, lockUuid);
3064    
3065                            try {
3066                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
3067                            }
3068                            catch (Exception e) {
3069                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3070                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3071                                    }
3072    
3073                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3074                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3075                                    }
3076    
3077                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3078                            }
3079                    }
3080                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3081                            _log.error(se, se);
3082    
3083                            throw se;
3084                    }
3085            }
3086    
3087            public static void unlockFolder(HttpPrincipal httpPrincipal,
3088                    long repositoryId, long parentFolderId, java.lang.String name,
3089                    java.lang.String lockUuid)
3090                    throws com.liferay.portal.kernel.exception.PortalException,
3091                            com.liferay.portal.kernel.exception.SystemException {
3092                    try {
3093                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3094                                            "unlockFolder", _unlockFolderParameterTypes81);
3095    
3096                            MethodHandler methodHandler = new MethodHandler(methodKey,
3097                                            repositoryId, parentFolderId, name, lockUuid);
3098    
3099                            try {
3100                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
3101                            }
3102                            catch (Exception e) {
3103                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3104                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3105                                    }
3106    
3107                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3108                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3109                                    }
3110    
3111                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3112                            }
3113                    }
3114                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3115                            _log.error(se, se);
3116    
3117                            throw se;
3118                    }
3119            }
3120    
3121            public static com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
3122                    HttpPrincipal httpPrincipal, long fileEntryId,
3123                    java.lang.String sourceFileName, java.lang.String mimeType,
3124                    java.lang.String title, java.lang.String description,
3125                    java.lang.String changeLog, boolean majorVersion, byte[] bytes,
3126                    com.liferay.portal.service.ServiceContext serviceContext)
3127                    throws com.liferay.portal.kernel.exception.PortalException,
3128                            com.liferay.portal.kernel.exception.SystemException {
3129                    try {
3130                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3131                                            "updateFileEntry", _updateFileEntryParameterTypes82);
3132    
3133                            MethodHandler methodHandler = new MethodHandler(methodKey,
3134                                            fileEntryId, sourceFileName, mimeType, title, description,
3135                                            changeLog, majorVersion, bytes, serviceContext);
3136    
3137                            Object returnObj = null;
3138    
3139                            try {
3140                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3141                            }
3142                            catch (Exception e) {
3143                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3144                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3145                                    }
3146    
3147                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3148                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3149                                    }
3150    
3151                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3152                            }
3153    
3154                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
3155                    }
3156                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3157                            _log.error(se, se);
3158    
3159                            throw se;
3160                    }
3161            }
3162    
3163            public static com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
3164                    HttpPrincipal httpPrincipal, long fileEntryId,
3165                    java.lang.String sourceFileName, java.lang.String mimeType,
3166                    java.lang.String title, java.lang.String description,
3167                    java.lang.String changeLog, boolean majorVersion, java.io.File file,
3168                    com.liferay.portal.service.ServiceContext serviceContext)
3169                    throws com.liferay.portal.kernel.exception.PortalException,
3170                            com.liferay.portal.kernel.exception.SystemException {
3171                    try {
3172                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3173                                            "updateFileEntry", _updateFileEntryParameterTypes83);
3174    
3175                            MethodHandler methodHandler = new MethodHandler(methodKey,
3176                                            fileEntryId, sourceFileName, mimeType, title, description,
3177                                            changeLog, majorVersion, file, serviceContext);
3178    
3179                            Object returnObj = null;
3180    
3181                            try {
3182                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3183                            }
3184                            catch (Exception e) {
3185                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3186                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3187                                    }
3188    
3189                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3190                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3191                                    }
3192    
3193                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3194                            }
3195    
3196                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
3197                    }
3198                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3199                            _log.error(se, se);
3200    
3201                            throw se;
3202                    }
3203            }
3204    
3205            public static com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(
3206                    HttpPrincipal httpPrincipal, long fileEntryId,
3207                    java.lang.String sourceFileName, java.lang.String mimeType,
3208                    java.lang.String title, java.lang.String description,
3209                    java.lang.String changeLog, boolean majorVersion,
3210                    java.io.InputStream is, long size,
3211                    com.liferay.portal.service.ServiceContext serviceContext)
3212                    throws com.liferay.portal.kernel.exception.PortalException,
3213                            com.liferay.portal.kernel.exception.SystemException {
3214                    try {
3215                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3216                                            "updateFileEntry", _updateFileEntryParameterTypes84);
3217    
3218                            MethodHandler methodHandler = new MethodHandler(methodKey,
3219                                            fileEntryId, sourceFileName, mimeType, title, description,
3220                                            changeLog, majorVersion, is, size, serviceContext);
3221    
3222                            Object returnObj = null;
3223    
3224                            try {
3225                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3226                            }
3227                            catch (Exception e) {
3228                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3229                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3230                                    }
3231    
3232                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3233                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3234                                    }
3235    
3236                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3237                            }
3238    
3239                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
3240                    }
3241                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3242                            _log.error(se, se);
3243    
3244                            throw se;
3245                    }
3246            }
3247    
3248            public static com.liferay.portal.kernel.repository.model.FileEntry updateFileEntryAndCheckIn(
3249                    HttpPrincipal httpPrincipal, long fileEntryId,
3250                    java.lang.String sourceFileName, java.lang.String mimeType,
3251                    java.lang.String title, java.lang.String description,
3252                    java.lang.String changeLog, boolean majorVersion, java.io.File file,
3253                    com.liferay.portal.service.ServiceContext serviceContext)
3254                    throws com.liferay.portal.kernel.exception.PortalException,
3255                            com.liferay.portal.kernel.exception.SystemException {
3256                    try {
3257                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3258                                            "updateFileEntryAndCheckIn",
3259                                            _updateFileEntryAndCheckInParameterTypes85);
3260    
3261                            MethodHandler methodHandler = new MethodHandler(methodKey,
3262                                            fileEntryId, sourceFileName, mimeType, title, description,
3263                                            changeLog, majorVersion, file, serviceContext);
3264    
3265                            Object returnObj = null;
3266    
3267                            try {
3268                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3269                            }
3270                            catch (Exception e) {
3271                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3272                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3273                                    }
3274    
3275                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3276                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3277                                    }
3278    
3279                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3280                            }
3281    
3282                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
3283                    }
3284                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3285                            _log.error(se, se);
3286    
3287                            throw se;
3288                    }
3289            }
3290    
3291            public static com.liferay.portal.kernel.repository.model.FileEntry updateFileEntryAndCheckIn(
3292                    HttpPrincipal httpPrincipal, long fileEntryId,
3293                    java.lang.String sourceFileName, java.lang.String mimeType,
3294                    java.lang.String title, java.lang.String description,
3295                    java.lang.String changeLog, boolean majorVersion,
3296                    java.io.InputStream is, long size,
3297                    com.liferay.portal.service.ServiceContext serviceContext)
3298                    throws com.liferay.portal.kernel.exception.PortalException,
3299                            com.liferay.portal.kernel.exception.SystemException {
3300                    try {
3301                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3302                                            "updateFileEntryAndCheckIn",
3303                                            _updateFileEntryAndCheckInParameterTypes86);
3304    
3305                            MethodHandler methodHandler = new MethodHandler(methodKey,
3306                                            fileEntryId, sourceFileName, mimeType, title, description,
3307                                            changeLog, majorVersion, is, size, serviceContext);
3308    
3309                            Object returnObj = null;
3310    
3311                            try {
3312                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3313                            }
3314                            catch (Exception e) {
3315                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3316                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3317                                    }
3318    
3319                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3320                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3321                                    }
3322    
3323                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3324                            }
3325    
3326                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
3327                    }
3328                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3329                            _log.error(se, se);
3330    
3331                            throw se;
3332                    }
3333            }
3334    
3335            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
3336                    HttpPrincipal httpPrincipal, long fileShortcutId, long folderId,
3337                    long toFileEntryId,
3338                    com.liferay.portal.service.ServiceContext serviceContext)
3339                    throws com.liferay.portal.kernel.exception.PortalException,
3340                            com.liferay.portal.kernel.exception.SystemException {
3341                    try {
3342                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3343                                            "updateFileShortcut", _updateFileShortcutParameterTypes87);
3344    
3345                            MethodHandler methodHandler = new MethodHandler(methodKey,
3346                                            fileShortcutId, folderId, toFileEntryId, serviceContext);
3347    
3348                            Object returnObj = null;
3349    
3350                            try {
3351                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3352                            }
3353                            catch (Exception e) {
3354                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3355                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3356                                    }
3357    
3358                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3359                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3360                                    }
3361    
3362                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3363                            }
3364    
3365                            return (com.liferay.portlet.documentlibrary.model.DLFileShortcut)returnObj;
3366                    }
3367                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3368                            _log.error(se, se);
3369    
3370                            throw se;
3371                    }
3372            }
3373    
3374            public static com.liferay.portal.kernel.repository.model.Folder updateFolder(
3375                    HttpPrincipal httpPrincipal, long folderId, java.lang.String name,
3376                    java.lang.String description,
3377                    com.liferay.portal.service.ServiceContext serviceContext)
3378                    throws com.liferay.portal.kernel.exception.PortalException,
3379                            com.liferay.portal.kernel.exception.SystemException {
3380                    try {
3381                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3382                                            "updateFolder", _updateFolderParameterTypes88);
3383    
3384                            MethodHandler methodHandler = new MethodHandler(methodKey,
3385                                            folderId, name, description, serviceContext);
3386    
3387                            Object returnObj = null;
3388    
3389                            try {
3390                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3391                            }
3392                            catch (Exception e) {
3393                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3394                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3395                                    }
3396    
3397                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3398                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3399                                    }
3400    
3401                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3402                            }
3403    
3404                            return (com.liferay.portal.kernel.repository.model.Folder)returnObj;
3405                    }
3406                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3407                            _log.error(se, se);
3408    
3409                            throw se;
3410                    }
3411            }
3412    
3413            public static boolean verifyFileEntryCheckOut(HttpPrincipal httpPrincipal,
3414                    long repositoryId, long fileEntryId, java.lang.String lockUuid)
3415                    throws com.liferay.portal.kernel.exception.PortalException,
3416                            com.liferay.portal.kernel.exception.SystemException {
3417                    try {
3418                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3419                                            "verifyFileEntryCheckOut",
3420                                            _verifyFileEntryCheckOutParameterTypes89);
3421    
3422                            MethodHandler methodHandler = new MethodHandler(methodKey,
3423                                            repositoryId, fileEntryId, lockUuid);
3424    
3425                            Object returnObj = null;
3426    
3427                            try {
3428                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3429                            }
3430                            catch (Exception e) {
3431                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3432                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3433                                    }
3434    
3435                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3436                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3437                                    }
3438    
3439                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3440                            }
3441    
3442                            return ((Boolean)returnObj).booleanValue();
3443                    }
3444                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3445                            _log.error(se, se);
3446    
3447                            throw se;
3448                    }
3449            }
3450    
3451            public static boolean verifyFileEntryLock(HttpPrincipal httpPrincipal,
3452                    long repositoryId, long fileEntryId, java.lang.String lockUuid)
3453                    throws com.liferay.portal.kernel.exception.PortalException,
3454                            com.liferay.portal.kernel.exception.SystemException {
3455                    try {
3456                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3457                                            "verifyFileEntryLock", _verifyFileEntryLockParameterTypes90);
3458    
3459                            MethodHandler methodHandler = new MethodHandler(methodKey,
3460                                            repositoryId, fileEntryId, lockUuid);
3461    
3462                            Object returnObj = null;
3463    
3464                            try {
3465                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3466                            }
3467                            catch (Exception e) {
3468                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3469                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3470                                    }
3471    
3472                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3473                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3474                                    }
3475    
3476                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3477                            }
3478    
3479                            return ((Boolean)returnObj).booleanValue();
3480                    }
3481                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3482                            _log.error(se, se);
3483    
3484                            throw se;
3485                    }
3486            }
3487    
3488            public static boolean verifyInheritableLock(HttpPrincipal httpPrincipal,
3489                    long repositoryId, long folderId, java.lang.String lockUuid)
3490                    throws com.liferay.portal.kernel.exception.PortalException,
3491                            com.liferay.portal.kernel.exception.SystemException {
3492                    try {
3493                            MethodKey methodKey = new MethodKey(DLAppServiceUtil.class.getName(),
3494                                            "verifyInheritableLock",
3495                                            _verifyInheritableLockParameterTypes91);
3496    
3497                            MethodHandler methodHandler = new MethodHandler(methodKey,
3498                                            repositoryId, folderId, lockUuid);
3499    
3500                            Object returnObj = null;
3501    
3502                            try {
3503                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
3504                            }
3505                            catch (Exception e) {
3506                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
3507                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
3508                                    }
3509    
3510                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
3511                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
3512                                    }
3513    
3514                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
3515                            }
3516    
3517                            return ((Boolean)returnObj).booleanValue();
3518                    }
3519                    catch (com.liferay.portal.kernel.exception.SystemException se) {
3520                            _log.error(se, se);
3521    
3522                            throw se;
3523                    }
3524            }
3525    
3526            private static Log _log = LogFactoryUtil.getLog(DLAppServiceHttp.class);
3527            private static final Class<?>[] _addFileEntryParameterTypes0 = new Class[] {
3528                            long.class, long.class, java.lang.String.class,
3529                            java.lang.String.class, java.lang.String.class,
3530                            java.lang.String.class, java.lang.String.class, byte[].class,
3531                            com.liferay.portal.service.ServiceContext.class
3532                    };
3533            private static final Class<?>[] _addFileEntryParameterTypes1 = new Class[] {
3534                            long.class, long.class, java.lang.String.class,
3535                            java.lang.String.class, java.lang.String.class,
3536                            java.lang.String.class, java.lang.String.class, java.io.File.class,
3537                            com.liferay.portal.service.ServiceContext.class
3538                    };
3539            private static final Class<?>[] _addFileEntryParameterTypes2 = new Class[] {
3540                            long.class, long.class, java.lang.String.class,
3541                            java.lang.String.class, java.lang.String.class,
3542                            java.lang.String.class, java.lang.String.class,
3543                            java.io.InputStream.class, long.class,
3544                            com.liferay.portal.service.ServiceContext.class
3545                    };
3546            private static final Class<?>[] _addFileShortcutParameterTypes3 = new Class[] {
3547                            long.class, long.class, long.class,
3548                            com.liferay.portal.service.ServiceContext.class
3549                    };
3550            private static final Class<?>[] _addFolderParameterTypes4 = new Class[] {
3551                            long.class, long.class, java.lang.String.class,
3552                            java.lang.String.class,
3553                            com.liferay.portal.service.ServiceContext.class
3554                    };
3555            private static final Class<?>[] _addTempFileEntryParameterTypes5 = new Class[] {
3556                            long.class, long.class, java.lang.String.class,
3557                            java.lang.String.class, java.io.File.class
3558                    };
3559            private static final Class<?>[] _addTempFileEntryParameterTypes6 = new Class[] {
3560                            long.class, long.class, java.lang.String.class,
3561                            java.lang.String.class, java.io.InputStream.class
3562                    };
3563            private static final Class<?>[] _cancelCheckOutParameterTypes7 = new Class[] {
3564                            long.class
3565                    };
3566            private static final Class<?>[] _checkInFileEntryParameterTypes8 = new Class[] {
3567                            long.class, boolean.class, java.lang.String.class,
3568                            com.liferay.portal.service.ServiceContext.class
3569                    };
3570            private static final Class<?>[] _checkInFileEntryParameterTypes9 = new Class[] {
3571                            long.class, java.lang.String.class
3572                    };
3573            private static final Class<?>[] _checkOutFileEntryParameterTypes10 = new Class[] {
3574                            long.class, com.liferay.portal.service.ServiceContext.class
3575                    };
3576            private static final Class<?>[] _checkOutFileEntryParameterTypes11 = new Class[] {
3577                            long.class, java.lang.String.class, long.class,
3578                            com.liferay.portal.service.ServiceContext.class
3579                    };
3580            private static final Class<?>[] _copyFolderParameterTypes12 = new Class[] {
3581                            long.class, long.class, long.class, java.lang.String.class,
3582                            java.lang.String.class,
3583                            com.liferay.portal.service.ServiceContext.class
3584                    };
3585            private static final Class<?>[] _deleteFileEntryParameterTypes13 = new Class[] {
3586                            long.class
3587                    };
3588            private static final Class<?>[] _deleteFileEntryByTitleParameterTypes14 = new Class[] {
3589                            long.class, long.class, java.lang.String.class
3590                    };
3591            private static final Class<?>[] _deleteFileShortcutParameterTypes15 = new Class[] {
3592                            long.class
3593                    };
3594            private static final Class<?>[] _deleteFileVersionParameterTypes16 = new Class[] {
3595                            long.class, java.lang.String.class
3596                    };
3597            private static final Class<?>[] _deleteFolderParameterTypes17 = new Class[] {
3598                            long.class
3599                    };
3600            private static final Class<?>[] _deleteFolderParameterTypes18 = new Class[] {
3601                            long.class, long.class, java.lang.String.class
3602                    };
3603            private static final Class<?>[] _deleteTempFileEntryParameterTypes19 = new Class[] {
3604                            long.class, long.class, java.lang.String.class,
3605                            java.lang.String.class
3606                    };
3607            private static final Class<?>[] _getFileEntriesParameterTypes20 = new Class[] {
3608                            long.class, long.class
3609                    };
3610            private static final Class<?>[] _getFileEntriesParameterTypes21 = new Class[] {
3611                            long.class, long.class, int.class, int.class
3612                    };
3613            private static final Class<?>[] _getFileEntriesParameterTypes22 = new Class[] {
3614                            long.class, long.class, int.class, int.class,
3615                            com.liferay.portal.kernel.util.OrderByComparator.class
3616                    };
3617            private static final Class<?>[] _getFileEntriesParameterTypes23 = new Class[] {
3618                            long.class, long.class, long.class
3619                    };
3620            private static final Class<?>[] _getFileEntriesParameterTypes24 = new Class[] {
3621                            long.class, long.class, long.class, int.class, int.class
3622                    };
3623            private static final Class<?>[] _getFileEntriesParameterTypes25 = new Class[] {
3624                            long.class, long.class, long.class, int.class, int.class,
3625                            com.liferay.portal.kernel.util.OrderByComparator.class
3626                    };
3627            private static final Class<?>[] _getFileEntriesAndFileShortcutsParameterTypes26 =
3628                    new Class[] { long.class, long.class, int.class, int.class, int.class };
3629            private static final Class<?>[] _getFileEntriesAndFileShortcutsCountParameterTypes27 =
3630                    new Class[] { long.class, long.class, int.class };
3631            private static final Class<?>[] _getFileEntriesAndFileShortcutsCountParameterTypes28 =
3632                    new Class[] { long.class, long.class, int.class, java.lang.String[].class };
3633            private static final Class<?>[] _getFileEntriesCountParameterTypes29 = new Class[] {
3634                            long.class, long.class
3635                    };
3636            private static final Class<?>[] _getFileEntriesCountParameterTypes30 = new Class[] {
3637                            long.class, long.class, long.class
3638                    };
3639            private static final Class<?>[] _getFileEntryParameterTypes31 = new Class[] {
3640                            long.class
3641                    };
3642            private static final Class<?>[] _getFileEntryParameterTypes32 = new Class[] {
3643                            long.class, long.class, java.lang.String.class
3644                    };
3645            private static final Class<?>[] _getFileEntryByUuidAndGroupIdParameterTypes33 =
3646                    new Class[] { java.lang.String.class, long.class };
3647            private static final Class<?>[] _getFileShortcutParameterTypes34 = new Class[] {
3648                            long.class
3649                    };
3650            private static final Class<?>[] _getFolderParameterTypes35 = new Class[] {
3651                            long.class
3652                    };
3653            private static final Class<?>[] _getFolderParameterTypes36 = new Class[] {
3654                            long.class, long.class, java.lang.String.class
3655                    };
3656            private static final Class<?>[] _getFoldersParameterTypes37 = new Class[] {
3657                            long.class, long.class
3658                    };
3659            private static final Class<?>[] _getFoldersParameterTypes38 = new Class[] {
3660                            long.class, long.class, boolean.class
3661                    };
3662            private static final Class<?>[] _getFoldersParameterTypes39 = new Class[] {
3663                            long.class, long.class, boolean.class, int.class, int.class
3664                    };
3665            private static final Class<?>[] _getFoldersParameterTypes40 = new Class[] {
3666                            long.class, long.class, boolean.class, int.class, int.class,
3667                            com.liferay.portal.kernel.util.OrderByComparator.class
3668                    };
3669            private static final Class<?>[] _getFoldersParameterTypes41 = new Class[] {
3670                            long.class, long.class, int.class, int.class
3671                    };
3672            private static final Class<?>[] _getFoldersParameterTypes42 = new Class[] {
3673                            long.class, long.class, int.class, int.class,
3674                            com.liferay.portal.kernel.util.OrderByComparator.class
3675                    };
3676            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes43 =
3677                    new Class[] {
3678                            long.class, long.class, int.class, boolean.class, int.class,
3679                            int.class
3680                    };
3681            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes44 =
3682                    new Class[] {
3683                            long.class, long.class, int.class, boolean.class, int.class,
3684                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
3685                    };
3686            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes45 =
3687                    new Class[] {
3688                            long.class, long.class, int.class, java.lang.String[].class,
3689                            boolean.class, int.class, int.class,
3690                            com.liferay.portal.kernel.util.OrderByComparator.class
3691                    };
3692            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes46 =
3693                    new Class[] { long.class, long.class, int.class, boolean.class };
3694            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes47 =
3695                    new Class[] {
3696                            long.class, long.class, int.class, java.lang.String[].class,
3697                            boolean.class
3698                    };
3699            private static final Class<?>[] _getFoldersCountParameterTypes48 = new Class[] {
3700                            long.class, long.class
3701                    };
3702            private static final Class<?>[] _getFoldersCountParameterTypes49 = new Class[] {
3703                            long.class, long.class, boolean.class
3704                    };
3705            private static final Class<?>[] _getFoldersFileEntriesCountParameterTypes50 = new Class[] {
3706                            long.class, java.util.List.class, int.class
3707                    };
3708            private static final Class<?>[] _getGroupFileEntriesParameterTypes51 = new Class[] {
3709                            long.class, long.class, int.class, int.class
3710                    };
3711            private static final Class<?>[] _getGroupFileEntriesParameterTypes52 = new Class[] {
3712                            long.class, long.class, int.class, int.class,
3713                            com.liferay.portal.kernel.util.OrderByComparator.class
3714                    };
3715            private static final Class<?>[] _getGroupFileEntriesParameterTypes53 = new Class[] {
3716                            long.class, long.class, long.class, int.class, int.class
3717                    };
3718            private static final Class<?>[] _getGroupFileEntriesParameterTypes54 = new Class[] {
3719                            long.class, long.class, long.class, int.class, int.class,
3720                            com.liferay.portal.kernel.util.OrderByComparator.class
3721                    };
3722            private static final Class<?>[] _getGroupFileEntriesParameterTypes55 = new Class[] {
3723                            long.class, long.class, long.class, java.lang.String[].class,
3724                            int.class, int.class, int.class,
3725                            com.liferay.portal.kernel.util.OrderByComparator.class
3726                    };
3727            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes56 = new Class[] {
3728                            long.class, long.class
3729                    };
3730            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes57 = new Class[] {
3731                            long.class, long.class, long.class
3732                    };
3733            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes58 = new Class[] {
3734                            long.class, long.class, long.class, java.lang.String[].class,
3735                            int.class
3736                    };
3737            private static final Class<?>[] _getMountFoldersParameterTypes59 = new Class[] {
3738                            long.class, long.class
3739                    };
3740            private static final Class<?>[] _getMountFoldersParameterTypes60 = new Class[] {
3741                            long.class, long.class, int.class, int.class
3742                    };
3743            private static final Class<?>[] _getMountFoldersParameterTypes61 = new Class[] {
3744                            long.class, long.class, int.class, int.class,
3745                            com.liferay.portal.kernel.util.OrderByComparator.class
3746                    };
3747            private static final Class<?>[] _getMountFoldersCountParameterTypes62 = new Class[] {
3748                            long.class, long.class
3749                    };
3750            private static final Class<?>[] _getSubfolderIdsParameterTypes63 = new Class[] {
3751                            long.class, java.util.List.class, long.class
3752                    };
3753            private static final Class<?>[] _getSubfolderIdsParameterTypes64 = new Class[] {
3754                            long.class, long.class
3755                    };
3756            private static final Class<?>[] _getSubfolderIdsParameterTypes65 = new Class[] {
3757                            long.class, long.class, boolean.class
3758                    };
3759            private static final Class<?>[] _getTempFileEntryNamesParameterTypes66 = new Class[] {
3760                            long.class, long.class, java.lang.String.class
3761                    };
3762            private static final Class<?>[] _lockFileEntryParameterTypes67 = new Class[] {
3763                            long.class
3764                    };
3765            private static final Class<?>[] _lockFileEntryParameterTypes68 = new Class[] {
3766                            long.class, java.lang.String.class, long.class
3767                    };
3768            private static final Class<?>[] _lockFolderParameterTypes69 = new Class[] {
3769                            long.class, long.class
3770                    };
3771            private static final Class<?>[] _lockFolderParameterTypes70 = new Class[] {
3772                            long.class, long.class, java.lang.String.class, boolean.class,
3773                            long.class
3774                    };
3775            private static final Class<?>[] _moveFileEntryParameterTypes71 = new Class[] {
3776                            long.class, long.class,
3777                            com.liferay.portal.service.ServiceContext.class
3778                    };
3779            private static final Class<?>[] _moveFolderParameterTypes72 = new Class[] {
3780                            long.class, long.class,
3781                            com.liferay.portal.service.ServiceContext.class
3782                    };
3783            private static final Class<?>[] _refreshFileEntryLockParameterTypes73 = new Class[] {
3784                            java.lang.String.class, long.class
3785                    };
3786            private static final Class<?>[] _refreshFolderLockParameterTypes74 = new Class[] {
3787                            java.lang.String.class, long.class
3788                    };
3789            private static final Class<?>[] _revertFileEntryParameterTypes75 = new Class[] {
3790                            long.class, java.lang.String.class,
3791                            com.liferay.portal.service.ServiceContext.class
3792                    };
3793            private static final Class<?>[] _searchParameterTypes76 = new Class[] {
3794                            long.class, com.liferay.portal.kernel.search.SearchContext.class
3795                    };
3796            private static final Class<?>[] _searchParameterTypes77 = new Class[] {
3797                            long.class, com.liferay.portal.kernel.search.SearchContext.class,
3798                            com.liferay.portal.kernel.search.Query.class
3799                    };
3800            private static final Class<?>[] _unlockFileEntryParameterTypes78 = new Class[] {
3801                            long.class
3802                    };
3803            private static final Class<?>[] _unlockFileEntryParameterTypes79 = new Class[] {
3804                            long.class, java.lang.String.class
3805                    };
3806            private static final Class<?>[] _unlockFolderParameterTypes80 = new Class[] {
3807                            long.class, long.class, java.lang.String.class
3808                    };
3809            private static final Class<?>[] _unlockFolderParameterTypes81 = new Class[] {
3810                            long.class, long.class, java.lang.String.class,
3811                            java.lang.String.class
3812                    };
3813            private static final Class<?>[] _updateFileEntryParameterTypes82 = new Class[] {
3814                            long.class, java.lang.String.class, java.lang.String.class,
3815                            java.lang.String.class, java.lang.String.class,
3816                            java.lang.String.class, boolean.class, byte[].class,
3817                            com.liferay.portal.service.ServiceContext.class
3818                    };
3819            private static final Class<?>[] _updateFileEntryParameterTypes83 = new Class[] {
3820                            long.class, java.lang.String.class, java.lang.String.class,
3821                            java.lang.String.class, java.lang.String.class,
3822                            java.lang.String.class, boolean.class, java.io.File.class,
3823                            com.liferay.portal.service.ServiceContext.class
3824                    };
3825            private static final Class<?>[] _updateFileEntryParameterTypes84 = new Class[] {
3826                            long.class, java.lang.String.class, java.lang.String.class,
3827                            java.lang.String.class, java.lang.String.class,
3828                            java.lang.String.class, boolean.class, java.io.InputStream.class,
3829                            long.class, com.liferay.portal.service.ServiceContext.class
3830                    };
3831            private static final Class<?>[] _updateFileEntryAndCheckInParameterTypes85 = new Class[] {
3832                            long.class, java.lang.String.class, java.lang.String.class,
3833                            java.lang.String.class, java.lang.String.class,
3834                            java.lang.String.class, boolean.class, java.io.File.class,
3835                            com.liferay.portal.service.ServiceContext.class
3836                    };
3837            private static final Class<?>[] _updateFileEntryAndCheckInParameterTypes86 = new Class[] {
3838                            long.class, java.lang.String.class, java.lang.String.class,
3839                            java.lang.String.class, java.lang.String.class,
3840                            java.lang.String.class, boolean.class, java.io.InputStream.class,
3841                            long.class, com.liferay.portal.service.ServiceContext.class
3842                    };
3843            private static final Class<?>[] _updateFileShortcutParameterTypes87 = new Class[] {
3844                            long.class, long.class, long.class,
3845                            com.liferay.portal.service.ServiceContext.class
3846                    };
3847            private static final Class<?>[] _updateFolderParameterTypes88 = new Class[] {
3848                            long.class, java.lang.String.class, java.lang.String.class,
3849                            com.liferay.portal.service.ServiceContext.class
3850                    };
3851            private static final Class<?>[] _verifyFileEntryCheckOutParameterTypes89 = new Class[] {
3852                            long.class, long.class, java.lang.String.class
3853                    };
3854            private static final Class<?>[] _verifyFileEntryLockParameterTypes90 = new Class[] {
3855                            long.class, long.class, java.lang.String.class
3856                    };
3857            private static final Class<?>[] _verifyInheritableLockParameterTypes91 = new Class[] {
3858                            long.class, long.class, java.lang.String.class
3859                    };
3860    }