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.DLFileEntryServiceUtil;
025    
026    /**
027     * Provides the HTTP utility for the
028     * {@link com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see DLFileEntryServiceSoap
050     * @see com.liferay.portal.security.auth.HttpPrincipal
051     * @see com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil
052     * @generated
053     */
054    public class DLFileEntryServiceHttp {
055            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
056                    HttpPrincipal httpPrincipal, long groupId, long repositoryId,
057                    long folderId, java.lang.String sourceFileName,
058                    java.lang.String mimeType, java.lang.String title,
059                    java.lang.String description, java.lang.String changeLog,
060                    long fileEntryTypeId,
061                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
062                    java.io.File file, java.io.InputStream is, long size,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    try {
067                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
068                                            "addFileEntry", _addFileEntryParameterTypes0);
069    
070                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
071                                            repositoryId, folderId, sourceFileName, mimeType, title,
072                                            description, changeLog, fileEntryTypeId, fieldsMap, file,
073                                            is, size, serviceContext);
074    
075                            Object returnObj = null;
076    
077                            try {
078                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
079                            }
080                            catch (Exception e) {
081                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
082                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
083                                    }
084    
085                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
086                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
087                                    }
088    
089                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
090                            }
091    
092                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
093                    }
094                    catch (com.liferay.portal.kernel.exception.SystemException se) {
095                            _log.error(se, se);
096    
097                            throw se;
098                    }
099            }
100    
101            public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
102                    HttpPrincipal httpPrincipal, long fileEntryId)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException {
105                    try {
106                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
107                                            "cancelCheckOut", _cancelCheckOutParameterTypes1);
108    
109                            MethodHandler methodHandler = new MethodHandler(methodKey,
110                                            fileEntryId);
111    
112                            Object returnObj = null;
113    
114                            try {
115                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
116                            }
117                            catch (Exception e) {
118                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
119                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
120                                    }
121    
122                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
123                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
124                                    }
125    
126                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
127                            }
128    
129                            return (com.liferay.portlet.documentlibrary.model.DLFileVersion)returnObj;
130                    }
131                    catch (com.liferay.portal.kernel.exception.SystemException se) {
132                            _log.error(se, se);
133    
134                            throw se;
135                    }
136            }
137    
138            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
139                    long fileEntryId, boolean major, java.lang.String changeLog,
140                    com.liferay.portal.service.ServiceContext serviceContext)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    try {
144                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
145                                            "checkInFileEntry", _checkInFileEntryParameterTypes2);
146    
147                            MethodHandler methodHandler = new MethodHandler(methodKey,
148                                            fileEntryId, major, changeLog, serviceContext);
149    
150                            try {
151                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
152                            }
153                            catch (Exception e) {
154                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
155                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
156                                    }
157    
158                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
159                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
160                                    }
161    
162                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
163                            }
164                    }
165                    catch (com.liferay.portal.kernel.exception.SystemException se) {
166                            _log.error(se, se);
167    
168                            throw se;
169                    }
170            }
171    
172            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
173                    long fileEntryId, java.lang.String lockUuid)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    try {
177                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
178                                            "checkInFileEntry", _checkInFileEntryParameterTypes3);
179    
180                            MethodHandler methodHandler = new MethodHandler(methodKey,
181                                            fileEntryId, lockUuid);
182    
183                            try {
184                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
185                            }
186                            catch (Exception e) {
187                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
188                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
189                                    }
190    
191                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
192                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
193                                    }
194    
195                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
196                            }
197                    }
198                    catch (com.liferay.portal.kernel.exception.SystemException se) {
199                            _log.error(se, se);
200    
201                            throw se;
202                    }
203            }
204    
205            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
206                    long fileEntryId, java.lang.String lockUuid,
207                    com.liferay.portal.service.ServiceContext serviceContext)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    try {
211                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
212                                            "checkInFileEntry", _checkInFileEntryParameterTypes4);
213    
214                            MethodHandler methodHandler = new MethodHandler(methodKey,
215                                            fileEntryId, lockUuid, serviceContext);
216    
217                            try {
218                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
219                            }
220                            catch (Exception e) {
221                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
222                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
223                                    }
224    
225                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
226                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
227                                    }
228    
229                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
230                            }
231                    }
232                    catch (com.liferay.portal.kernel.exception.SystemException se) {
233                            _log.error(se, se);
234    
235                            throw se;
236                    }
237            }
238    
239            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
240                    HttpPrincipal httpPrincipal, long fileEntryId)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    try {
244                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
245                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes5);
246    
247                            MethodHandler methodHandler = new MethodHandler(methodKey,
248                                            fileEntryId);
249    
250                            Object returnObj = null;
251    
252                            try {
253                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
254                            }
255                            catch (Exception e) {
256                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
257                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
258                                    }
259    
260                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
261                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
262                                    }
263    
264                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
265                            }
266    
267                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
268                    }
269                    catch (com.liferay.portal.kernel.exception.SystemException se) {
270                            _log.error(se, se);
271    
272                            throw se;
273                    }
274            }
275    
276            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
277                    HttpPrincipal httpPrincipal, long fileEntryId,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    try {
282                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
283                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes6);
284    
285                            MethodHandler methodHandler = new MethodHandler(methodKey,
286                                            fileEntryId, serviceContext);
287    
288                            Object returnObj = null;
289    
290                            try {
291                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
292                            }
293                            catch (Exception e) {
294                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
295                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
296                                    }
297    
298                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
299                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
300                                    }
301    
302                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
303                            }
304    
305                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
306                    }
307                    catch (com.liferay.portal.kernel.exception.SystemException se) {
308                            _log.error(se, se);
309    
310                            throw se;
311                    }
312            }
313    
314            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
315                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
316                    long expirationTime)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    try {
320                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
321                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes7);
322    
323                            MethodHandler methodHandler = new MethodHandler(methodKey,
324                                            fileEntryId, owner, expirationTime);
325    
326                            Object returnObj = null;
327    
328                            try {
329                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
330                            }
331                            catch (Exception e) {
332                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
333                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
334                                    }
335    
336                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
337                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
338                                    }
339    
340                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
341                            }
342    
343                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
344                    }
345                    catch (com.liferay.portal.kernel.exception.SystemException se) {
346                            _log.error(se, se);
347    
348                            throw se;
349                    }
350            }
351    
352            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
353                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
354                    long expirationTime,
355                    com.liferay.portal.service.ServiceContext serviceContext)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    try {
359                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
360                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes8);
361    
362                            MethodHandler methodHandler = new MethodHandler(methodKey,
363                                            fileEntryId, owner, expirationTime, serviceContext);
364    
365                            Object returnObj = null;
366    
367                            try {
368                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
369                            }
370                            catch (Exception e) {
371                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
372                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
373                                    }
374    
375                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
376                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
377                                    }
378    
379                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
380                            }
381    
382                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
383                    }
384                    catch (com.liferay.portal.kernel.exception.SystemException se) {
385                            _log.error(se, se);
386    
387                            throw se;
388                    }
389            }
390    
391            public static com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
392                    HttpPrincipal httpPrincipal, long groupId, long repositoryId,
393                    long fileEntryId, long destFolderId,
394                    com.liferay.portal.service.ServiceContext serviceContext)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    try {
398                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
399                                            "copyFileEntry", _copyFileEntryParameterTypes9);
400    
401                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
402                                            repositoryId, fileEntryId, destFolderId, serviceContext);
403    
404                            Object returnObj = null;
405    
406                            try {
407                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
408                            }
409                            catch (Exception e) {
410                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
411                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
412                                    }
413    
414                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
415                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
416                                    }
417    
418                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
419                            }
420    
421                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
422                    }
423                    catch (com.liferay.portal.kernel.exception.SystemException se) {
424                            _log.error(se, se);
425    
426                            throw se;
427                    }
428            }
429    
430            public static void deleteFileEntry(HttpPrincipal httpPrincipal,
431                    long fileEntryId)
432                    throws com.liferay.portal.kernel.exception.PortalException,
433                            com.liferay.portal.kernel.exception.SystemException {
434                    try {
435                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
436                                            "deleteFileEntry", _deleteFileEntryParameterTypes10);
437    
438                            MethodHandler methodHandler = new MethodHandler(methodKey,
439                                            fileEntryId);
440    
441                            try {
442                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
443                            }
444                            catch (Exception e) {
445                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
446                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
447                                    }
448    
449                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
450                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
451                                    }
452    
453                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
454                            }
455                    }
456                    catch (com.liferay.portal.kernel.exception.SystemException se) {
457                            _log.error(se, se);
458    
459                            throw se;
460                    }
461            }
462    
463            public static void deleteFileEntry(HttpPrincipal httpPrincipal,
464                    long groupId, long folderId, java.lang.String title)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    try {
468                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
469                                            "deleteFileEntry", _deleteFileEntryParameterTypes11);
470    
471                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
472                                            folderId, title);
473    
474                            try {
475                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
476                            }
477                            catch (Exception e) {
478                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
479                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
480                                    }
481    
482                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
483                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
484                                    }
485    
486                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
487                            }
488                    }
489                    catch (com.liferay.portal.kernel.exception.SystemException se) {
490                            _log.error(se, se);
491    
492                            throw se;
493                    }
494            }
495    
496            public static void deleteFileVersion(HttpPrincipal httpPrincipal,
497                    long fileEntryId, java.lang.String version)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    try {
501                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
502                                            "deleteFileVersion", _deleteFileVersionParameterTypes12);
503    
504                            MethodHandler methodHandler = new MethodHandler(methodKey,
505                                            fileEntryId, version);
506    
507                            try {
508                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
509                            }
510                            catch (Exception e) {
511                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
512                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
513                                    }
514    
515                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
516                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
517                                    }
518    
519                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
520                            }
521                    }
522                    catch (com.liferay.portal.kernel.exception.SystemException se) {
523                            _log.error(se, se);
524    
525                            throw se;
526                    }
527            }
528    
529            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
530                    HttpPrincipal httpPrincipal, long imageId)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    try {
534                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
535                                            "fetchFileEntryByImageId",
536                                            _fetchFileEntryByImageIdParameterTypes13);
537    
538                            MethodHandler methodHandler = new MethodHandler(methodKey, imageId);
539    
540                            Object returnObj = null;
541    
542                            try {
543                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
544                            }
545                            catch (Exception e) {
546                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
547                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
548                                    }
549    
550                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
551                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
552                                    }
553    
554                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
555                            }
556    
557                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
558                    }
559                    catch (com.liferay.portal.kernel.exception.SystemException se) {
560                            _log.error(se, se);
561    
562                            throw se;
563                    }
564            }
565    
566            public static java.io.InputStream getFileAsStream(
567                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String version)
568                    throws com.liferay.portal.kernel.exception.PortalException,
569                            com.liferay.portal.kernel.exception.SystemException {
570                    try {
571                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
572                                            "getFileAsStream", _getFileAsStreamParameterTypes14);
573    
574                            MethodHandler methodHandler = new MethodHandler(methodKey,
575                                            fileEntryId, version);
576    
577                            Object returnObj = null;
578    
579                            try {
580                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
581                            }
582                            catch (Exception e) {
583                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
584                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
585                                    }
586    
587                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
588                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
589                                    }
590    
591                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
592                            }
593    
594                            return (java.io.InputStream)returnObj;
595                    }
596                    catch (com.liferay.portal.kernel.exception.SystemException se) {
597                            _log.error(se, se);
598    
599                            throw se;
600                    }
601            }
602    
603            public static java.io.InputStream getFileAsStream(
604                    HttpPrincipal httpPrincipal, long fileEntryId,
605                    java.lang.String version, boolean incrementCounter)
606                    throws com.liferay.portal.kernel.exception.PortalException,
607                            com.liferay.portal.kernel.exception.SystemException {
608                    try {
609                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
610                                            "getFileAsStream", _getFileAsStreamParameterTypes15);
611    
612                            MethodHandler methodHandler = new MethodHandler(methodKey,
613                                            fileEntryId, version, incrementCounter);
614    
615                            Object returnObj = null;
616    
617                            try {
618                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
619                            }
620                            catch (Exception e) {
621                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
622                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
623                                    }
624    
625                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
626                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
627                                    }
628    
629                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
630                            }
631    
632                            return (java.io.InputStream)returnObj;
633                    }
634                    catch (com.liferay.portal.kernel.exception.SystemException se) {
635                            _log.error(se, se);
636    
637                            throw se;
638                    }
639            }
640    
641            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
642                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
643                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
644                    throws com.liferay.portal.kernel.exception.PortalException,
645                            com.liferay.portal.kernel.exception.SystemException {
646                    try {
647                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
648                                            "getFileEntries", _getFileEntriesParameterTypes16);
649    
650                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
651                                            folderId, status, start, end, obc);
652    
653                            Object returnObj = null;
654    
655                            try {
656                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
657                            }
658                            catch (Exception e) {
659                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
660                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
661                                    }
662    
663                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
664                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
665                                    }
666    
667                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
668                            }
669    
670                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
671                    }
672                    catch (com.liferay.portal.kernel.exception.SystemException se) {
673                            _log.error(se, se);
674    
675                            throw se;
676                    }
677            }
678    
679            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
680                    HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
681                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException {
684                    try {
685                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
686                                            "getFileEntries", _getFileEntriesParameterTypes17);
687    
688                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
689                                            folderId, start, end, obc);
690    
691                            Object returnObj = null;
692    
693                            try {
694                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
695                            }
696                            catch (Exception e) {
697                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
698                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
699                                    }
700    
701                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
702                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
703                                    }
704    
705                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
706                            }
707    
708                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
709                    }
710                    catch (com.liferay.portal.kernel.exception.SystemException se) {
711                            _log.error(se, se);
712    
713                            throw se;
714                    }
715            }
716    
717            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
718                    HttpPrincipal httpPrincipal, long groupId, long folderId,
719                    long fileEntryTypeId, int start, int end,
720                    com.liferay.portal.kernel.util.OrderByComparator obc)
721                    throws com.liferay.portal.kernel.exception.PortalException,
722                            com.liferay.portal.kernel.exception.SystemException {
723                    try {
724                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
725                                            "getFileEntries", _getFileEntriesParameterTypes18);
726    
727                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
728                                            folderId, fileEntryTypeId, start, end, obc);
729    
730                            Object returnObj = null;
731    
732                            try {
733                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
734                            }
735                            catch (Exception e) {
736                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
737                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
738                                    }
739    
740                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
741                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
742                                    }
743    
744                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
745                            }
746    
747                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
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 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
757                    HttpPrincipal httpPrincipal, long groupId, long folderId,
758                    java.lang.String[] mimeTypes, int start, int end,
759                    com.liferay.portal.kernel.util.OrderByComparator obc)
760                    throws com.liferay.portal.kernel.exception.PortalException,
761                            com.liferay.portal.kernel.exception.SystemException {
762                    try {
763                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
764                                            "getFileEntries", _getFileEntriesParameterTypes19);
765    
766                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
767                                            folderId, mimeTypes, start, end, obc);
768    
769                            Object returnObj = null;
770    
771                            try {
772                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
773                            }
774                            catch (Exception e) {
775                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
776                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
777                                    }
778    
779                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
780                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
781                                    }
782    
783                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
784                            }
785    
786                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
787                    }
788                    catch (com.liferay.portal.kernel.exception.SystemException se) {
789                            _log.error(se, se);
790    
791                            throw se;
792                    }
793            }
794    
795            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
796                    long groupId, long folderId)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    try {
799                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
800                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes20);
801    
802                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
803                                            folderId);
804    
805                            Object returnObj = null;
806    
807                            try {
808                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
809                            }
810                            catch (Exception e) {
811                                    if (e instanceof com.liferay.portal.kernel.exception.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 ((Integer)returnObj).intValue();
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 int getFileEntriesCount(HttpPrincipal httpPrincipal,
828                    long groupId, long folderId, int status)
829                    throws com.liferay.portal.kernel.exception.SystemException {
830                    try {
831                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
832                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes21);
833    
834                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
835                                            folderId, status);
836    
837                            Object returnObj = null;
838    
839                            try {
840                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
841                            }
842                            catch (Exception e) {
843                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
844                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
845                                    }
846    
847                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
848                            }
849    
850                            return ((Integer)returnObj).intValue();
851                    }
852                    catch (com.liferay.portal.kernel.exception.SystemException se) {
853                            _log.error(se, se);
854    
855                            throw se;
856                    }
857            }
858    
859            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
860                    long groupId, long folderId, long fileEntryTypeId)
861                    throws com.liferay.portal.kernel.exception.SystemException {
862                    try {
863                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
864                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes22);
865    
866                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
867                                            folderId, fileEntryTypeId);
868    
869                            Object returnObj = null;
870    
871                            try {
872                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
873                            }
874                            catch (Exception e) {
875                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
876                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
877                                    }
878    
879                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
880                            }
881    
882                            return ((Integer)returnObj).intValue();
883                    }
884                    catch (com.liferay.portal.kernel.exception.SystemException se) {
885                            _log.error(se, se);
886    
887                            throw se;
888                    }
889            }
890    
891            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
892                    long groupId, long folderId, java.lang.String[] mimeTypes)
893                    throws com.liferay.portal.kernel.exception.SystemException {
894                    try {
895                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
896                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes23);
897    
898                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
899                                            folderId, mimeTypes);
900    
901                            Object returnObj = null;
902    
903                            try {
904                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
905                            }
906                            catch (Exception e) {
907                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
908                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
909                                    }
910    
911                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
912                            }
913    
914                            return ((Integer)returnObj).intValue();
915                    }
916                    catch (com.liferay.portal.kernel.exception.SystemException se) {
917                            _log.error(se, se);
918    
919                            throw se;
920                    }
921            }
922    
923            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
924                    HttpPrincipal httpPrincipal, long fileEntryId)
925                    throws com.liferay.portal.kernel.exception.PortalException,
926                            com.liferay.portal.kernel.exception.SystemException {
927                    try {
928                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
929                                            "getFileEntry", _getFileEntryParameterTypes24);
930    
931                            MethodHandler methodHandler = new MethodHandler(methodKey,
932                                            fileEntryId);
933    
934                            Object returnObj = null;
935    
936                            try {
937                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
938                            }
939                            catch (Exception e) {
940                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
941                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
942                                    }
943    
944                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
945                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
946                                    }
947    
948                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
949                            }
950    
951                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
952                    }
953                    catch (com.liferay.portal.kernel.exception.SystemException se) {
954                            _log.error(se, se);
955    
956                            throw se;
957                    }
958            }
959    
960            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
961                    HttpPrincipal httpPrincipal, long groupId, long folderId,
962                    java.lang.String title)
963                    throws com.liferay.portal.kernel.exception.PortalException,
964                            com.liferay.portal.kernel.exception.SystemException {
965                    try {
966                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
967                                            "getFileEntry", _getFileEntryParameterTypes25);
968    
969                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
970                                            folderId, title);
971    
972                            Object returnObj = null;
973    
974                            try {
975                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
976                            }
977                            catch (Exception e) {
978                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
979                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
980                                    }
981    
982                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
983                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
984                                    }
985    
986                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
987                            }
988    
989                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
990                    }
991                    catch (com.liferay.portal.kernel.exception.SystemException se) {
992                            _log.error(se, se);
993    
994                            throw se;
995                    }
996            }
997    
998            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
999                    HttpPrincipal httpPrincipal, java.lang.String uuid, long groupId)
1000                    throws com.liferay.portal.kernel.exception.PortalException,
1001                            com.liferay.portal.kernel.exception.SystemException {
1002                    try {
1003                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1004                                            "getFileEntryByUuidAndGroupId",
1005                                            _getFileEntryByUuidAndGroupIdParameterTypes26);
1006    
1007                            MethodHandler methodHandler = new MethodHandler(methodKey, uuid,
1008                                            groupId);
1009    
1010                            Object returnObj = null;
1011    
1012                            try {
1013                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1014                            }
1015                            catch (Exception e) {
1016                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1017                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1018                                    }
1019    
1020                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1021                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1022                                    }
1023    
1024                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1025                            }
1026    
1027                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
1028                    }
1029                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1030                            _log.error(se, se);
1031    
1032                            throw se;
1033                    }
1034            }
1035    
1036            public static com.liferay.portal.model.Lock getFileEntryLock(
1037                    HttpPrincipal httpPrincipal, long fileEntryId)
1038                    throws com.liferay.portal.kernel.exception.SystemException {
1039                    try {
1040                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1041                                            "getFileEntryLock", _getFileEntryLockParameterTypes27);
1042    
1043                            MethodHandler methodHandler = new MethodHandler(methodKey,
1044                                            fileEntryId);
1045    
1046                            Object returnObj = null;
1047    
1048                            try {
1049                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1050                            }
1051                            catch (Exception e) {
1052                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1053                            }
1054    
1055                            return (com.liferay.portal.model.Lock)returnObj;
1056                    }
1057                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1058                            _log.error(se, se);
1059    
1060                            throw se;
1061                    }
1062            }
1063    
1064            public static int getFoldersFileEntriesCount(HttpPrincipal httpPrincipal,
1065                    long groupId, java.util.List<java.lang.Long> folderIds, int status)
1066                    throws com.liferay.portal.kernel.exception.SystemException {
1067                    try {
1068                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1069                                            "getFoldersFileEntriesCount",
1070                                            _getFoldersFileEntriesCountParameterTypes28);
1071    
1072                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1073                                            folderIds, status);
1074    
1075                            Object returnObj = null;
1076    
1077                            try {
1078                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1079                            }
1080                            catch (Exception e) {
1081                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1082                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1083                                    }
1084    
1085                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1086                            }
1087    
1088                            return ((Integer)returnObj).intValue();
1089                    }
1090                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1091                            _log.error(se, se);
1092    
1093                            throw se;
1094                    }
1095            }
1096    
1097            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
1098                    HttpPrincipal httpPrincipal, long groupId, long userId,
1099                    long rootFolderId, int start, int end,
1100                    com.liferay.portal.kernel.util.OrderByComparator obc)
1101                    throws com.liferay.portal.kernel.exception.PortalException,
1102                            com.liferay.portal.kernel.exception.SystemException {
1103                    try {
1104                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1105                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes29);
1106    
1107                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1108                                            userId, rootFolderId, start, end, obc);
1109    
1110                            Object returnObj = null;
1111    
1112                            try {
1113                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1114                            }
1115                            catch (Exception e) {
1116                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1117                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1118                                    }
1119    
1120                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1121                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1122                                    }
1123    
1124                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1125                            }
1126    
1127                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
1128                    }
1129                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1130                            _log.error(se, se);
1131    
1132                            throw se;
1133                    }
1134            }
1135    
1136            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
1137                    HttpPrincipal httpPrincipal, long groupId, long userId,
1138                    long rootFolderId, java.lang.String[] mimeTypes, int status, int start,
1139                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1140                    throws com.liferay.portal.kernel.exception.PortalException,
1141                            com.liferay.portal.kernel.exception.SystemException {
1142                    try {
1143                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1144                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes30);
1145    
1146                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1147                                            userId, rootFolderId, mimeTypes, status, start, end, obc);
1148    
1149                            Object returnObj = null;
1150    
1151                            try {
1152                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1153                            }
1154                            catch (Exception e) {
1155                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1156                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1157                                    }
1158    
1159                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1160                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1161                                    }
1162    
1163                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1164                            }
1165    
1166                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
1167                    }
1168                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1169                            _log.error(se, se);
1170    
1171                            throw se;
1172                    }
1173            }
1174    
1175            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
1176                    HttpPrincipal httpPrincipal, long groupId, long userId,
1177                    long repositoryId, long rootFolderId, java.lang.String[] mimeTypes,
1178                    int status, int start, int end,
1179                    com.liferay.portal.kernel.util.OrderByComparator obc)
1180                    throws com.liferay.portal.kernel.exception.PortalException,
1181                            com.liferay.portal.kernel.exception.SystemException {
1182                    try {
1183                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1184                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes31);
1185    
1186                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1187                                            userId, repositoryId, rootFolderId, mimeTypes, status,
1188                                            start, end, obc);
1189    
1190                            Object returnObj = null;
1191    
1192                            try {
1193                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1194                            }
1195                            catch (Exception e) {
1196                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1197                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1198                                    }
1199    
1200                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1201                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1202                                    }
1203    
1204                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1205                            }
1206    
1207                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
1208                    }
1209                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1210                            _log.error(se, se);
1211    
1212                            throw se;
1213                    }
1214            }
1215    
1216            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
1217                    long groupId, long userId, long rootFolderId)
1218                    throws com.liferay.portal.kernel.exception.PortalException,
1219                            com.liferay.portal.kernel.exception.SystemException {
1220                    try {
1221                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1222                                            "getGroupFileEntriesCount",
1223                                            _getGroupFileEntriesCountParameterTypes32);
1224    
1225                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1226                                            userId, rootFolderId);
1227    
1228                            Object returnObj = null;
1229    
1230                            try {
1231                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1232                            }
1233                            catch (Exception e) {
1234                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1235                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1236                                    }
1237    
1238                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1239                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1240                                    }
1241    
1242                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1243                            }
1244    
1245                            return ((Integer)returnObj).intValue();
1246                    }
1247                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1248                            _log.error(se, se);
1249    
1250                            throw se;
1251                    }
1252            }
1253    
1254            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
1255                    long groupId, long userId, long rootFolderId,
1256                    java.lang.String[] mimeTypes, int status)
1257                    throws com.liferay.portal.kernel.exception.PortalException,
1258                            com.liferay.portal.kernel.exception.SystemException {
1259                    try {
1260                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1261                                            "getGroupFileEntriesCount",
1262                                            _getGroupFileEntriesCountParameterTypes33);
1263    
1264                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1265                                            userId, rootFolderId, mimeTypes, status);
1266    
1267                            Object returnObj = null;
1268    
1269                            try {
1270                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1271                            }
1272                            catch (Exception e) {
1273                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1274                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1275                                    }
1276    
1277                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1278                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1279                                    }
1280    
1281                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1282                            }
1283    
1284                            return ((Integer)returnObj).intValue();
1285                    }
1286                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1287                            _log.error(se, se);
1288    
1289                            throw se;
1290                    }
1291            }
1292    
1293            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
1294                    long groupId, long userId, long repositoryId, long rootFolderId,
1295                    java.lang.String[] mimeTypes, int status)
1296                    throws com.liferay.portal.kernel.exception.PortalException,
1297                            com.liferay.portal.kernel.exception.SystemException {
1298                    try {
1299                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1300                                            "getGroupFileEntriesCount",
1301                                            _getGroupFileEntriesCountParameterTypes34);
1302    
1303                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1304                                            userId, repositoryId, rootFolderId, mimeTypes, status);
1305    
1306                            Object returnObj = null;
1307    
1308                            try {
1309                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1310                            }
1311                            catch (Exception e) {
1312                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1313                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1314                                    }
1315    
1316                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1317                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1318                                    }
1319    
1320                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1321                            }
1322    
1323                            return ((Integer)returnObj).intValue();
1324                    }
1325                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1326                            _log.error(se, se);
1327    
1328                            throw se;
1329                    }
1330            }
1331    
1332            public static boolean hasFileEntryLock(HttpPrincipal httpPrincipal,
1333                    long fileEntryId)
1334                    throws com.liferay.portal.kernel.exception.PortalException,
1335                            com.liferay.portal.kernel.exception.SystemException {
1336                    try {
1337                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1338                                            "hasFileEntryLock", _hasFileEntryLockParameterTypes35);
1339    
1340                            MethodHandler methodHandler = new MethodHandler(methodKey,
1341                                            fileEntryId);
1342    
1343                            Object returnObj = null;
1344    
1345                            try {
1346                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1347                            }
1348                            catch (Exception e) {
1349                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1350                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1351                                    }
1352    
1353                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1354                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1355                                    }
1356    
1357                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1358                            }
1359    
1360                            return ((Boolean)returnObj).booleanValue();
1361                    }
1362                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1363                            _log.error(se, se);
1364    
1365                            throw se;
1366                    }
1367            }
1368    
1369            public static boolean isFileEntryCheckedOut(HttpPrincipal httpPrincipal,
1370                    long fileEntryId)
1371                    throws com.liferay.portal.kernel.exception.PortalException,
1372                            com.liferay.portal.kernel.exception.SystemException {
1373                    try {
1374                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1375                                            "isFileEntryCheckedOut",
1376                                            _isFileEntryCheckedOutParameterTypes36);
1377    
1378                            MethodHandler methodHandler = new MethodHandler(methodKey,
1379                                            fileEntryId);
1380    
1381                            Object returnObj = null;
1382    
1383                            try {
1384                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1385                            }
1386                            catch (Exception e) {
1387                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1388                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1389                                    }
1390    
1391                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1392                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1393                                    }
1394    
1395                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1396                            }
1397    
1398                            return ((Boolean)returnObj).booleanValue();
1399                    }
1400                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1401                            _log.error(se, se);
1402    
1403                            throw se;
1404                    }
1405            }
1406    
1407            public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
1408                    HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId,
1409                    com.liferay.portal.service.ServiceContext serviceContext)
1410                    throws com.liferay.portal.kernel.exception.PortalException,
1411                            com.liferay.portal.kernel.exception.SystemException {
1412                    try {
1413                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1414                                            "moveFileEntry", _moveFileEntryParameterTypes37);
1415    
1416                            MethodHandler methodHandler = new MethodHandler(methodKey,
1417                                            fileEntryId, newFolderId, serviceContext);
1418    
1419                            Object returnObj = null;
1420    
1421                            try {
1422                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1423                            }
1424                            catch (Exception e) {
1425                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1426                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1427                                    }
1428    
1429                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1430                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1431                                    }
1432    
1433                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1434                            }
1435    
1436                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
1437                    }
1438                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1439                            _log.error(se, se);
1440    
1441                            throw se;
1442                    }
1443            }
1444    
1445            public static com.liferay.portal.model.Lock refreshFileEntryLock(
1446                    HttpPrincipal httpPrincipal, java.lang.String lockUuid, long companyId,
1447                    long expirationTime)
1448                    throws com.liferay.portal.kernel.exception.PortalException,
1449                            com.liferay.portal.kernel.exception.SystemException {
1450                    try {
1451                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1452                                            "refreshFileEntryLock",
1453                                            _refreshFileEntryLockParameterTypes38);
1454    
1455                            MethodHandler methodHandler = new MethodHandler(methodKey,
1456                                            lockUuid, companyId, expirationTime);
1457    
1458                            Object returnObj = null;
1459    
1460                            try {
1461                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1462                            }
1463                            catch (Exception e) {
1464                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1465                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1466                                    }
1467    
1468                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1469                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1470                                    }
1471    
1472                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1473                            }
1474    
1475                            return (com.liferay.portal.model.Lock)returnObj;
1476                    }
1477                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1478                            _log.error(se, se);
1479    
1480                            throw se;
1481                    }
1482            }
1483    
1484            public static void revertFileEntry(HttpPrincipal httpPrincipal,
1485                    long fileEntryId, java.lang.String version,
1486                    com.liferay.portal.service.ServiceContext serviceContext)
1487                    throws com.liferay.portal.kernel.exception.PortalException,
1488                            com.liferay.portal.kernel.exception.SystemException {
1489                    try {
1490                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1491                                            "revertFileEntry", _revertFileEntryParameterTypes39);
1492    
1493                            MethodHandler methodHandler = new MethodHandler(methodKey,
1494                                            fileEntryId, version, serviceContext);
1495    
1496                            try {
1497                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1498                            }
1499                            catch (Exception e) {
1500                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1501                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1502                                    }
1503    
1504                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1505                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1506                                    }
1507    
1508                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1509                            }
1510                    }
1511                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1512                            _log.error(se, se);
1513    
1514                            throw se;
1515                    }
1516            }
1517    
1518            public static com.liferay.portal.kernel.search.Hits search(
1519                    HttpPrincipal httpPrincipal, long groupId, long creatorUserId,
1520                    int status, int start, int end)
1521                    throws com.liferay.portal.kernel.exception.PortalException,
1522                            com.liferay.portal.kernel.exception.SystemException {
1523                    try {
1524                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1525                                            "search", _searchParameterTypes40);
1526    
1527                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1528                                            creatorUserId, status, start, end);
1529    
1530                            Object returnObj = null;
1531    
1532                            try {
1533                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1534                            }
1535                            catch (Exception e) {
1536                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1537                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1538                                    }
1539    
1540                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1541                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1542                                    }
1543    
1544                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1545                            }
1546    
1547                            return (com.liferay.portal.kernel.search.Hits)returnObj;
1548                    }
1549                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1550                            _log.error(se, se);
1551    
1552                            throw se;
1553                    }
1554            }
1555    
1556            public static com.liferay.portal.kernel.search.Hits search(
1557                    HttpPrincipal httpPrincipal, long groupId, long creatorUserId,
1558                    long folderId, java.lang.String[] mimeTypes, int status, int start,
1559                    int end)
1560                    throws com.liferay.portal.kernel.exception.PortalException,
1561                            com.liferay.portal.kernel.exception.SystemException {
1562                    try {
1563                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1564                                            "search", _searchParameterTypes41);
1565    
1566                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1567                                            creatorUserId, folderId, mimeTypes, status, start, end);
1568    
1569                            Object returnObj = null;
1570    
1571                            try {
1572                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1573                            }
1574                            catch (Exception e) {
1575                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1576                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1577                                    }
1578    
1579                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1580                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1581                                    }
1582    
1583                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1584                            }
1585    
1586                            return (com.liferay.portal.kernel.search.Hits)returnObj;
1587                    }
1588                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1589                            _log.error(se, se);
1590    
1591                            throw se;
1592                    }
1593            }
1594    
1595            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
1596                    HttpPrincipal httpPrincipal, long fileEntryId,
1597                    java.lang.String sourceFileName, java.lang.String mimeType,
1598                    java.lang.String title, java.lang.String description,
1599                    java.lang.String changeLog, boolean majorVersion, long fileEntryTypeId,
1600                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
1601                    java.io.File file, java.io.InputStream is, long size,
1602                    com.liferay.portal.service.ServiceContext serviceContext)
1603                    throws com.liferay.portal.kernel.exception.PortalException,
1604                            com.liferay.portal.kernel.exception.SystemException {
1605                    try {
1606                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1607                                            "updateFileEntry", _updateFileEntryParameterTypes42);
1608    
1609                            MethodHandler methodHandler = new MethodHandler(methodKey,
1610                                            fileEntryId, sourceFileName, mimeType, title, description,
1611                                            changeLog, majorVersion, fileEntryTypeId, fieldsMap, file,
1612                                            is, size, serviceContext);
1613    
1614                            Object returnObj = null;
1615    
1616                            try {
1617                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1618                            }
1619                            catch (Exception e) {
1620                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1621                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1622                                    }
1623    
1624                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1625                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1626                                    }
1627    
1628                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1629                            }
1630    
1631                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
1632                    }
1633                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1634                            _log.error(se, se);
1635    
1636                            throw se;
1637                    }
1638            }
1639    
1640            public static boolean verifyFileEntryCheckOut(HttpPrincipal httpPrincipal,
1641                    long fileEntryId, java.lang.String lockUuid)
1642                    throws com.liferay.portal.kernel.exception.PortalException,
1643                            com.liferay.portal.kernel.exception.SystemException {
1644                    try {
1645                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1646                                            "verifyFileEntryCheckOut",
1647                                            _verifyFileEntryCheckOutParameterTypes43);
1648    
1649                            MethodHandler methodHandler = new MethodHandler(methodKey,
1650                                            fileEntryId, lockUuid);
1651    
1652                            Object returnObj = null;
1653    
1654                            try {
1655                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1656                            }
1657                            catch (Exception e) {
1658                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1659                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1660                                    }
1661    
1662                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1663                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1664                                    }
1665    
1666                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1667                            }
1668    
1669                            return ((Boolean)returnObj).booleanValue();
1670                    }
1671                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1672                            _log.error(se, se);
1673    
1674                            throw se;
1675                    }
1676            }
1677    
1678            public static boolean verifyFileEntryLock(HttpPrincipal httpPrincipal,
1679                    long fileEntryId, java.lang.String lockUuid)
1680                    throws com.liferay.portal.kernel.exception.PortalException,
1681                            com.liferay.portal.kernel.exception.SystemException {
1682                    try {
1683                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class,
1684                                            "verifyFileEntryLock", _verifyFileEntryLockParameterTypes44);
1685    
1686                            MethodHandler methodHandler = new MethodHandler(methodKey,
1687                                            fileEntryId, lockUuid);
1688    
1689                            Object returnObj = null;
1690    
1691                            try {
1692                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1693                            }
1694                            catch (Exception e) {
1695                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1696                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1697                                    }
1698    
1699                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1700                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1701                                    }
1702    
1703                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1704                            }
1705    
1706                            return ((Boolean)returnObj).booleanValue();
1707                    }
1708                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1709                            _log.error(se, se);
1710    
1711                            throw se;
1712                    }
1713            }
1714    
1715            private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceHttp.class);
1716            private static final Class<?>[] _addFileEntryParameterTypes0 = new Class[] {
1717                            long.class, long.class, long.class, java.lang.String.class,
1718                            java.lang.String.class, java.lang.String.class,
1719                            java.lang.String.class, java.lang.String.class, long.class,
1720                            java.util.Map.class, java.io.File.class, java.io.InputStream.class,
1721                            long.class, com.liferay.portal.service.ServiceContext.class
1722                    };
1723            private static final Class<?>[] _cancelCheckOutParameterTypes1 = new Class[] {
1724                            long.class
1725                    };
1726            private static final Class<?>[] _checkInFileEntryParameterTypes2 = new Class[] {
1727                            long.class, boolean.class, java.lang.String.class,
1728                            com.liferay.portal.service.ServiceContext.class
1729                    };
1730            private static final Class<?>[] _checkInFileEntryParameterTypes3 = new Class[] {
1731                            long.class, java.lang.String.class
1732                    };
1733            private static final Class<?>[] _checkInFileEntryParameterTypes4 = new Class[] {
1734                            long.class, java.lang.String.class,
1735                            com.liferay.portal.service.ServiceContext.class
1736                    };
1737            private static final Class<?>[] _checkOutFileEntryParameterTypes5 = new Class[] {
1738                            long.class
1739                    };
1740            private static final Class<?>[] _checkOutFileEntryParameterTypes6 = new Class[] {
1741                            long.class, com.liferay.portal.service.ServiceContext.class
1742                    };
1743            private static final Class<?>[] _checkOutFileEntryParameterTypes7 = new Class[] {
1744                            long.class, java.lang.String.class, long.class
1745                    };
1746            private static final Class<?>[] _checkOutFileEntryParameterTypes8 = new Class[] {
1747                            long.class, java.lang.String.class, long.class,
1748                            com.liferay.portal.service.ServiceContext.class
1749                    };
1750            private static final Class<?>[] _copyFileEntryParameterTypes9 = new Class[] {
1751                            long.class, long.class, long.class, long.class,
1752                            com.liferay.portal.service.ServiceContext.class
1753                    };
1754            private static final Class<?>[] _deleteFileEntryParameterTypes10 = new Class[] {
1755                            long.class
1756                    };
1757            private static final Class<?>[] _deleteFileEntryParameterTypes11 = new Class[] {
1758                            long.class, long.class, java.lang.String.class
1759                    };
1760            private static final Class<?>[] _deleteFileVersionParameterTypes12 = new Class[] {
1761                            long.class, java.lang.String.class
1762                    };
1763            private static final Class<?>[] _fetchFileEntryByImageIdParameterTypes13 = new Class[] {
1764                            long.class
1765                    };
1766            private static final Class<?>[] _getFileAsStreamParameterTypes14 = new Class[] {
1767                            long.class, java.lang.String.class
1768                    };
1769            private static final Class<?>[] _getFileAsStreamParameterTypes15 = new Class[] {
1770                            long.class, java.lang.String.class, boolean.class
1771                    };
1772            private static final Class<?>[] _getFileEntriesParameterTypes16 = new Class[] {
1773                            long.class, long.class, int.class, int.class, int.class,
1774                            com.liferay.portal.kernel.util.OrderByComparator.class
1775                    };
1776            private static final Class<?>[] _getFileEntriesParameterTypes17 = new Class[] {
1777                            long.class, long.class, int.class, int.class,
1778                            com.liferay.portal.kernel.util.OrderByComparator.class
1779                    };
1780            private static final Class<?>[] _getFileEntriesParameterTypes18 = new Class[] {
1781                            long.class, long.class, long.class, int.class, int.class,
1782                            com.liferay.portal.kernel.util.OrderByComparator.class
1783                    };
1784            private static final Class<?>[] _getFileEntriesParameterTypes19 = new Class[] {
1785                            long.class, long.class, java.lang.String[].class, int.class,
1786                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1787                    };
1788            private static final Class<?>[] _getFileEntriesCountParameterTypes20 = new Class[] {
1789                            long.class, long.class
1790                    };
1791            private static final Class<?>[] _getFileEntriesCountParameterTypes21 = new Class[] {
1792                            long.class, long.class, int.class
1793                    };
1794            private static final Class<?>[] _getFileEntriesCountParameterTypes22 = new Class[] {
1795                            long.class, long.class, long.class
1796                    };
1797            private static final Class<?>[] _getFileEntriesCountParameterTypes23 = new Class[] {
1798                            long.class, long.class, java.lang.String[].class
1799                    };
1800            private static final Class<?>[] _getFileEntryParameterTypes24 = new Class[] {
1801                            long.class
1802                    };
1803            private static final Class<?>[] _getFileEntryParameterTypes25 = new Class[] {
1804                            long.class, long.class, java.lang.String.class
1805                    };
1806            private static final Class<?>[] _getFileEntryByUuidAndGroupIdParameterTypes26 =
1807                    new Class[] { java.lang.String.class, long.class };
1808            private static final Class<?>[] _getFileEntryLockParameterTypes27 = new Class[] {
1809                            long.class
1810                    };
1811            private static final Class<?>[] _getFoldersFileEntriesCountParameterTypes28 = new Class[] {
1812                            long.class, java.util.List.class, int.class
1813                    };
1814            private static final Class<?>[] _getGroupFileEntriesParameterTypes29 = new Class[] {
1815                            long.class, long.class, long.class, int.class, int.class,
1816                            com.liferay.portal.kernel.util.OrderByComparator.class
1817                    };
1818            private static final Class<?>[] _getGroupFileEntriesParameterTypes30 = new Class[] {
1819                            long.class, long.class, long.class, java.lang.String[].class,
1820                            int.class, int.class, int.class,
1821                            com.liferay.portal.kernel.util.OrderByComparator.class
1822                    };
1823            private static final Class<?>[] _getGroupFileEntriesParameterTypes31 = new Class[] {
1824                            long.class, long.class, long.class, long.class,
1825                            java.lang.String[].class, int.class, int.class, int.class,
1826                            com.liferay.portal.kernel.util.OrderByComparator.class
1827                    };
1828            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes32 = new Class[] {
1829                            long.class, long.class, long.class
1830                    };
1831            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes33 = new Class[] {
1832                            long.class, long.class, long.class, java.lang.String[].class,
1833                            int.class
1834                    };
1835            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes34 = new Class[] {
1836                            long.class, long.class, long.class, long.class,
1837                            java.lang.String[].class, int.class
1838                    };
1839            private static final Class<?>[] _hasFileEntryLockParameterTypes35 = new Class[] {
1840                            long.class
1841                    };
1842            private static final Class<?>[] _isFileEntryCheckedOutParameterTypes36 = new Class[] {
1843                            long.class
1844                    };
1845            private static final Class<?>[] _moveFileEntryParameterTypes37 = new Class[] {
1846                            long.class, long.class,
1847                            com.liferay.portal.service.ServiceContext.class
1848                    };
1849            private static final Class<?>[] _refreshFileEntryLockParameterTypes38 = new Class[] {
1850                            java.lang.String.class, long.class, long.class
1851                    };
1852            private static final Class<?>[] _revertFileEntryParameterTypes39 = new Class[] {
1853                            long.class, java.lang.String.class,
1854                            com.liferay.portal.service.ServiceContext.class
1855                    };
1856            private static final Class<?>[] _searchParameterTypes40 = new Class[] {
1857                            long.class, long.class, int.class, int.class, int.class
1858                    };
1859            private static final Class<?>[] _searchParameterTypes41 = new Class[] {
1860                            long.class, long.class, long.class, java.lang.String[].class,
1861                            int.class, int.class, int.class
1862                    };
1863            private static final Class<?>[] _updateFileEntryParameterTypes42 = new Class[] {
1864                            long.class, java.lang.String.class, java.lang.String.class,
1865                            java.lang.String.class, java.lang.String.class,
1866                            java.lang.String.class, boolean.class, long.class,
1867                            java.util.Map.class, java.io.File.class, java.io.InputStream.class,
1868                            long.class, com.liferay.portal.service.ServiceContext.class
1869                    };
1870            private static final Class<?>[] _verifyFileEntryCheckOutParameterTypes43 = new Class[] {
1871                            long.class, java.lang.String.class
1872                    };
1873            private static final Class<?>[] _verifyFileEntryLockParameterTypes44 = new Class[] {
1874                            long.class, java.lang.String.class
1875                    };
1876    }