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