001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.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 void cancelCheckOut(HttpPrincipal httpPrincipal,
104                    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                            try {
115                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
130                            _log.error(se, se);
131    
132                            throw se;
133                    }
134            }
135    
136            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
137                    long fileEntryId, boolean major, java.lang.String changeLog,
138                    com.liferay.portal.service.ServiceContext serviceContext)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    try {
142                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
143                                            "checkInFileEntry", _checkInFileEntryParameterTypes2);
144    
145                            MethodHandler methodHandler = new MethodHandler(methodKey,
146                                            fileEntryId, major, changeLog, serviceContext);
147    
148                            try {
149                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
150                            }
151                            catch (Exception e) {
152                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
153                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
154                                    }
155    
156                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
157                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
158                                    }
159    
160                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
161                            }
162                    }
163                    catch (com.liferay.portal.kernel.exception.SystemException se) {
164                            _log.error(se, se);
165    
166                            throw se;
167                    }
168            }
169    
170            public static void checkInFileEntry(HttpPrincipal httpPrincipal,
171                    long fileEntryId, java.lang.String lockUuid)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    try {
175                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
176                                            "checkInFileEntry", _checkInFileEntryParameterTypes3);
177    
178                            MethodHandler methodHandler = new MethodHandler(methodKey,
179                                            fileEntryId, lockUuid);
180    
181                            try {
182                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
183                            }
184                            catch (Exception e) {
185                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
186                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
187                                    }
188    
189                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
190                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
191                                    }
192    
193                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
194                            }
195                    }
196                    catch (com.liferay.portal.kernel.exception.SystemException se) {
197                            _log.error(se, se);
198    
199                            throw se;
200                    }
201            }
202    
203            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
204                    HttpPrincipal httpPrincipal, long fileEntryId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    try {
208                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
209                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes4);
210    
211                            MethodHandler methodHandler = new MethodHandler(methodKey,
212                                            fileEntryId);
213    
214                            Object returnObj = null;
215    
216                            try {
217                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
218                            }
219                            catch (Exception e) {
220                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
221                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
222                                    }
223    
224                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
225                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
226                                    }
227    
228                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
229                            }
230    
231                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
232                    }
233                    catch (com.liferay.portal.kernel.exception.SystemException se) {
234                            _log.error(se, se);
235    
236                            throw se;
237                    }
238            }
239    
240            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
241                    HttpPrincipal httpPrincipal, long fileEntryId,
242                    com.liferay.portal.service.ServiceContext serviceContext)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    try {
246                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
247                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes5);
248    
249                            MethodHandler methodHandler = new MethodHandler(methodKey,
250                                            fileEntryId, serviceContext);
251    
252                            Object returnObj = null;
253    
254                            try {
255                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
256                            }
257                            catch (Exception e) {
258                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
259                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
260                                    }
261    
262                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
263                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
264                                    }
265    
266                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
267                            }
268    
269                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
270                    }
271                    catch (com.liferay.portal.kernel.exception.SystemException se) {
272                            _log.error(se, se);
273    
274                            throw se;
275                    }
276            }
277    
278            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
279                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
280                    long expirationTime)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    try {
284                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
285                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes6);
286    
287                            MethodHandler methodHandler = new MethodHandler(methodKey,
288                                            fileEntryId, owner, expirationTime);
289    
290                            Object returnObj = null;
291    
292                            try {
293                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
294                            }
295                            catch (Exception e) {
296                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
297                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
298                                    }
299    
300                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
301                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
302                                    }
303    
304                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
305                            }
306    
307                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
308                    }
309                    catch (com.liferay.portal.kernel.exception.SystemException se) {
310                            _log.error(se, se);
311    
312                            throw se;
313                    }
314            }
315    
316            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
317                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
318                    long expirationTime,
319                    com.liferay.portal.service.ServiceContext serviceContext)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    try {
323                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
324                                            "checkOutFileEntry", _checkOutFileEntryParameterTypes7);
325    
326                            MethodHandler methodHandler = new MethodHandler(methodKey,
327                                            fileEntryId, owner, expirationTime, serviceContext);
328    
329                            Object returnObj = null;
330    
331                            try {
332                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
333                            }
334                            catch (Exception e) {
335                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
336                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
337                                    }
338    
339                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
340                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
341                                    }
342    
343                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
344                            }
345    
346                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
347                    }
348                    catch (com.liferay.portal.kernel.exception.SystemException se) {
349                            _log.error(se, se);
350    
351                            throw se;
352                    }
353            }
354    
355            public static com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
356                    HttpPrincipal httpPrincipal, long groupId, long repositoryId,
357                    long fileEntryId, long destFolderId,
358                    com.liferay.portal.service.ServiceContext serviceContext)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    try {
362                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
363                                            "copyFileEntry", _copyFileEntryParameterTypes8);
364    
365                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
366                                            repositoryId, fileEntryId, destFolderId, serviceContext);
367    
368                            Object returnObj = null;
369    
370                            try {
371                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
372                            }
373                            catch (Exception e) {
374                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
375                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
376                                    }
377    
378                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
379                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
380                                    }
381    
382                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
383                            }
384    
385                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
386                    }
387                    catch (com.liferay.portal.kernel.exception.SystemException se) {
388                            _log.error(se, se);
389    
390                            throw se;
391                    }
392            }
393    
394            public static void deleteFileEntry(HttpPrincipal httpPrincipal,
395                    long fileEntryId)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    try {
399                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
400                                            "deleteFileEntry", _deleteFileEntryParameterTypes9);
401    
402                            MethodHandler methodHandler = new MethodHandler(methodKey,
403                                            fileEntryId);
404    
405                            try {
406                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
407                            }
408                            catch (Exception e) {
409                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
410                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
411                                    }
412    
413                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
414                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
415                                    }
416    
417                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
418                            }
419                    }
420                    catch (com.liferay.portal.kernel.exception.SystemException se) {
421                            _log.error(se, se);
422    
423                            throw se;
424                    }
425            }
426    
427            public static void deleteFileEntry(HttpPrincipal httpPrincipal,
428                    long groupId, long folderId, java.lang.String title)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    try {
432                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
433                                            "deleteFileEntry", _deleteFileEntryParameterTypes10);
434    
435                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
436                                            folderId, title);
437    
438                            try {
439                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
440                            }
441                            catch (Exception e) {
442                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
443                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
444                                    }
445    
446                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
447                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
448                                    }
449    
450                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
451                            }
452                    }
453                    catch (com.liferay.portal.kernel.exception.SystemException se) {
454                            _log.error(se, se);
455    
456                            throw se;
457                    }
458            }
459    
460            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
461                    HttpPrincipal httpPrincipal, long imageId)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    try {
465                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
466                                            "fetchFileEntryByImageId",
467                                            _fetchFileEntryByImageIdParameterTypes11);
468    
469                            MethodHandler methodHandler = new MethodHandler(methodKey, imageId);
470    
471                            Object returnObj = null;
472    
473                            try {
474                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
475                            }
476                            catch (Exception e) {
477                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
478                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
479                                    }
480    
481                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
482                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
483                                    }
484    
485                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
486                            }
487    
488                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
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 java.io.InputStream getFileAsStream(
498                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String version)
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                                            "getFileAsStream", _getFileAsStreamParameterTypes12);
504    
505                            MethodHandler methodHandler = new MethodHandler(methodKey,
506                                            fileEntryId, version);
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 (java.io.InputStream)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,
536                    java.lang.String version, boolean incrementCounter)
537                    throws com.liferay.portal.kernel.exception.PortalException,
538                            com.liferay.portal.kernel.exception.SystemException {
539                    try {
540                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
541                                            "getFileAsStream", _getFileAsStreamParameterTypes13);
542    
543                            MethodHandler methodHandler = new MethodHandler(methodKey,
544                                            fileEntryId, version, incrementCounter);
545    
546                            Object returnObj = null;
547    
548                            try {
549                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
550                            }
551                            catch (Exception e) {
552                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
553                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
554                                    }
555    
556                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
557                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
558                                    }
559    
560                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
561                            }
562    
563                            return (java.io.InputStream)returnObj;
564                    }
565                    catch (com.liferay.portal.kernel.exception.SystemException se) {
566                            _log.error(se, se);
567    
568                            throw se;
569                    }
570            }
571    
572            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
573                    HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
574                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
575                    throws com.liferay.portal.kernel.exception.SystemException {
576                    try {
577                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
578                                            "getFileEntries", _getFileEntriesParameterTypes14);
579    
580                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
581                                            folderId, start, end, obc);
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.SystemException) {
590                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
591                                    }
592    
593                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
594                            }
595    
596                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
597                    }
598                    catch (com.liferay.portal.kernel.exception.SystemException se) {
599                            _log.error(se, se);
600    
601                            throw se;
602                    }
603            }
604    
605            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
606                    HttpPrincipal httpPrincipal, long groupId, long folderId,
607                    long fileEntryTypeId, int start, int end,
608                    com.liferay.portal.kernel.util.OrderByComparator obc)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    try {
611                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
612                                            "getFileEntries", _getFileEntriesParameterTypes15);
613    
614                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
615                                            folderId, fileEntryTypeId, start, end, obc);
616    
617                            Object returnObj = null;
618    
619                            try {
620                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
621                            }
622                            catch (Exception e) {
623                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
624                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
625                                    }
626    
627                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
628                            }
629    
630                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
631                    }
632                    catch (com.liferay.portal.kernel.exception.SystemException se) {
633                            _log.error(se, se);
634    
635                            throw se;
636                    }
637            }
638    
639            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
640                    HttpPrincipal httpPrincipal, long groupId, long folderId,
641                    java.lang.String[] mimeTypes, int start, int end,
642                    com.liferay.portal.kernel.util.OrderByComparator obc)
643                    throws com.liferay.portal.kernel.exception.SystemException {
644                    try {
645                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
646                                            "getFileEntries", _getFileEntriesParameterTypes16);
647    
648                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
649                                            folderId, mimeTypes, start, end, obc);
650    
651                            Object returnObj = null;
652    
653                            try {
654                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
655                            }
656                            catch (Exception e) {
657                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
658                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
659                                    }
660    
661                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
662                            }
663    
664                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
665                    }
666                    catch (com.liferay.portal.kernel.exception.SystemException se) {
667                            _log.error(se, se);
668    
669                            throw se;
670                    }
671            }
672    
673            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
674                    long groupId, long folderId)
675                    throws com.liferay.portal.kernel.exception.SystemException {
676                    try {
677                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
678                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes17);
679    
680                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
681                                            folderId);
682    
683                            Object returnObj = null;
684    
685                            try {
686                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
687                            }
688                            catch (Exception e) {
689                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
690                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
691                                    }
692    
693                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
694                            }
695    
696                            return ((Integer)returnObj).intValue();
697                    }
698                    catch (com.liferay.portal.kernel.exception.SystemException se) {
699                            _log.error(se, se);
700    
701                            throw se;
702                    }
703            }
704    
705            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
706                    long groupId, long folderId, long fileEntryTypeId)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    try {
709                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
710                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes18);
711    
712                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
713                                            folderId, fileEntryTypeId);
714    
715                            Object returnObj = null;
716    
717                            try {
718                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
719                            }
720                            catch (Exception e) {
721                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
722                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
723                                    }
724    
725                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
726                            }
727    
728                            return ((Integer)returnObj).intValue();
729                    }
730                    catch (com.liferay.portal.kernel.exception.SystemException se) {
731                            _log.error(se, se);
732    
733                            throw se;
734                    }
735            }
736    
737            public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
738                    long groupId, long folderId, java.lang.String[] mimeTypes)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    try {
741                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
742                                            "getFileEntriesCount", _getFileEntriesCountParameterTypes19);
743    
744                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
745                                            folderId, mimeTypes);
746    
747                            Object returnObj = null;
748    
749                            try {
750                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
751                            }
752                            catch (Exception e) {
753                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
754                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
755                                    }
756    
757                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
758                            }
759    
760                            return ((Integer)returnObj).intValue();
761                    }
762                    catch (com.liferay.portal.kernel.exception.SystemException se) {
763                            _log.error(se, se);
764    
765                            throw se;
766                    }
767            }
768    
769            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
770                    HttpPrincipal httpPrincipal, long fileEntryId)
771                    throws com.liferay.portal.kernel.exception.PortalException,
772                            com.liferay.portal.kernel.exception.SystemException {
773                    try {
774                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
775                                            "getFileEntry", _getFileEntryParameterTypes20);
776    
777                            MethodHandler methodHandler = new MethodHandler(methodKey,
778                                            fileEntryId);
779    
780                            Object returnObj = null;
781    
782                            try {
783                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
784                            }
785                            catch (Exception e) {
786                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
787                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
788                                    }
789    
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 (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
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 groupId, long folderId,
808                    java.lang.String title)
809                    throws com.liferay.portal.kernel.exception.PortalException,
810                            com.liferay.portal.kernel.exception.SystemException {
811                    try {
812                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
813                                            "getFileEntry", _getFileEntryParameterTypes21);
814    
815                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
816                                            folderId, title);
817    
818                            Object returnObj = null;
819    
820                            try {
821                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
822                            }
823                            catch (Exception e) {
824                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
825                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
826                                    }
827    
828                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
829                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
830                                    }
831    
832                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
833                            }
834    
835                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
836                    }
837                    catch (com.liferay.portal.kernel.exception.SystemException se) {
838                            _log.error(se, se);
839    
840                            throw se;
841                    }
842            }
843    
844            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
845                    HttpPrincipal httpPrincipal, java.lang.String uuid, long groupId)
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                                            "getFileEntryByUuidAndGroupId",
851                                            _getFileEntryByUuidAndGroupIdParameterTypes22);
852    
853                            MethodHandler methodHandler = new MethodHandler(methodKey, uuid,
854                                            groupId);
855    
856                            Object returnObj = null;
857    
858                            try {
859                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
860                            }
861                            catch (Exception e) {
862                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
863                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
864                                    }
865    
866                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
867                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
868                                    }
869    
870                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
871                            }
872    
873                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
874                    }
875                    catch (com.liferay.portal.kernel.exception.SystemException se) {
876                            _log.error(se, se);
877    
878                            throw se;
879                    }
880            }
881    
882            public static com.liferay.portal.model.Lock getFileEntryLock(
883                    HttpPrincipal httpPrincipal, long fileEntryId)
884                    throws com.liferay.portal.kernel.exception.SystemException {
885                    try {
886                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
887                                            "getFileEntryLock", _getFileEntryLockParameterTypes23);
888    
889                            MethodHandler methodHandler = new MethodHandler(methodKey,
890                                            fileEntryId);
891    
892                            Object returnObj = null;
893    
894                            try {
895                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
896                            }
897                            catch (Exception e) {
898                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
899                            }
900    
901                            return (com.liferay.portal.model.Lock)returnObj;
902                    }
903                    catch (com.liferay.portal.kernel.exception.SystemException se) {
904                            _log.error(se, se);
905    
906                            throw se;
907                    }
908            }
909    
910            public static int getFoldersFileEntriesCount(HttpPrincipal httpPrincipal,
911                    long groupId, java.util.List<java.lang.Long> folderIds, int status)
912                    throws com.liferay.portal.kernel.exception.SystemException {
913                    try {
914                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
915                                            "getFoldersFileEntriesCount",
916                                            _getFoldersFileEntriesCountParameterTypes24);
917    
918                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
919                                            folderIds, status);
920    
921                            Object returnObj = null;
922    
923                            try {
924                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
925                            }
926                            catch (Exception e) {
927                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
928                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
929                                    }
930    
931                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
932                            }
933    
934                            return ((Integer)returnObj).intValue();
935                    }
936                    catch (com.liferay.portal.kernel.exception.SystemException se) {
937                            _log.error(se, se);
938    
939                            throw se;
940                    }
941            }
942    
943            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
944                    HttpPrincipal httpPrincipal, long groupId, long userId,
945                    long rootFolderId, int start, int end,
946                    com.liferay.portal.kernel.util.OrderByComparator obc)
947                    throws com.liferay.portal.kernel.exception.SystemException {
948                    try {
949                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
950                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes25);
951    
952                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
953                                            userId, rootFolderId, start, end, obc);
954    
955                            Object returnObj = null;
956    
957                            try {
958                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
959                            }
960                            catch (Exception e) {
961                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
962                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
963                                    }
964    
965                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
966                            }
967    
968                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
969                    }
970                    catch (com.liferay.portal.kernel.exception.SystemException se) {
971                            _log.error(se, se);
972    
973                            throw se;
974                    }
975            }
976    
977            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
978                    HttpPrincipal httpPrincipal, long groupId, long userId,
979                    long rootFolderId, java.lang.String[] mimeTypes, int status, int start,
980                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
981                    throws com.liferay.portal.kernel.exception.SystemException {
982                    try {
983                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
984                                            "getGroupFileEntries", _getGroupFileEntriesParameterTypes26);
985    
986                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
987                                            userId, rootFolderId, mimeTypes, status, start, end, obc);
988    
989                            Object returnObj = null;
990    
991                            try {
992                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
993                            }
994                            catch (Exception e) {
995                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
996                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
997                                    }
998    
999                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1000                            }
1001    
1002                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry>)returnObj;
1003                    }
1004                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1005                            _log.error(se, se);
1006    
1007                            throw se;
1008                    }
1009            }
1010    
1011            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
1012                    long groupId, long userId, long rootFolderId)
1013                    throws com.liferay.portal.kernel.exception.SystemException {
1014                    try {
1015                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1016                                            "getGroupFileEntriesCount",
1017                                            _getGroupFileEntriesCountParameterTypes27);
1018    
1019                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1020                                            userId, rootFolderId);
1021    
1022                            Object returnObj = null;
1023    
1024                            try {
1025                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1026                            }
1027                            catch (Exception e) {
1028                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1029                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1030                                    }
1031    
1032                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1033                            }
1034    
1035                            return ((Integer)returnObj).intValue();
1036                    }
1037                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1038                            _log.error(se, se);
1039    
1040                            throw se;
1041                    }
1042            }
1043    
1044            public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
1045                    long groupId, long userId, long rootFolderId,
1046                    java.lang.String[] mimeTypes, int status)
1047                    throws com.liferay.portal.kernel.exception.SystemException {
1048                    try {
1049                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1050                                            "getGroupFileEntriesCount",
1051                                            _getGroupFileEntriesCountParameterTypes28);
1052    
1053                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1054                                            userId, rootFolderId, mimeTypes, status);
1055    
1056                            Object returnObj = null;
1057    
1058                            try {
1059                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1060                            }
1061                            catch (Exception e) {
1062                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1063                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1064                                    }
1065    
1066                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1067                            }
1068    
1069                            return ((Integer)returnObj).intValue();
1070                    }
1071                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1072                            _log.error(se, se);
1073    
1074                            throw se;
1075                    }
1076            }
1077    
1078            public static boolean hasFileEntryLock(HttpPrincipal httpPrincipal,
1079                    long fileEntryId)
1080                    throws com.liferay.portal.kernel.exception.PortalException,
1081                            com.liferay.portal.kernel.exception.SystemException {
1082                    try {
1083                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1084                                            "hasFileEntryLock", _hasFileEntryLockParameterTypes29);
1085    
1086                            MethodHandler methodHandler = new MethodHandler(methodKey,
1087                                            fileEntryId);
1088    
1089                            Object returnObj = null;
1090    
1091                            try {
1092                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1093                            }
1094                            catch (Exception e) {
1095                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1096                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1097                                    }
1098    
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 ((Boolean)returnObj).booleanValue();
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 isFileEntryCheckedOut(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                                            "isFileEntryCheckedOut",
1122                                            _isFileEntryCheckedOutParameterTypes30);
1123    
1124                            MethodHandler methodHandler = new MethodHandler(methodKey,
1125                                            fileEntryId);
1126    
1127                            Object returnObj = null;
1128    
1129                            try {
1130                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1131                            }
1132                            catch (Exception e) {
1133                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1134                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1135                                    }
1136    
1137                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1138                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1139                                    }
1140    
1141                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1142                            }
1143    
1144                            return ((Boolean)returnObj).booleanValue();
1145                    }
1146                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1147                            _log.error(se, se);
1148    
1149                            throw se;
1150                    }
1151            }
1152    
1153            public static com.liferay.portal.model.Lock lockFileEntry(
1154                    HttpPrincipal httpPrincipal, long fileEntryId)
1155                    throws com.liferay.portal.kernel.exception.PortalException,
1156                            com.liferay.portal.kernel.exception.SystemException {
1157                    try {
1158                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1159                                            "lockFileEntry", _lockFileEntryParameterTypes31);
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 (com.liferay.portal.model.Lock)returnObj;
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.portal.model.Lock lockFileEntry(
1191                    HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner,
1192                    long expirationTime)
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                                            "lockFileEntry", _lockFileEntryParameterTypes32);
1198    
1199                            MethodHandler methodHandler = new MethodHandler(methodKey,
1200                                            fileEntryId, owner, expirationTime);
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.portal.model.Lock)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.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
1229                    HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId,
1230                    com.liferay.portal.service.ServiceContext serviceContext)
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                                            "moveFileEntry", _moveFileEntryParameterTypes33);
1236    
1237                            MethodHandler methodHandler = new MethodHandler(methodKey,
1238                                            fileEntryId, newFolderId, serviceContext);
1239    
1240                            Object returnObj = null;
1241    
1242                            try {
1243                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1244                            }
1245                            catch (Exception e) {
1246                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1247                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1248                                    }
1249    
1250                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1251                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1252                                    }
1253    
1254                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1255                            }
1256    
1257                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
1258                    }
1259                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1260                            _log.error(se, se);
1261    
1262                            throw se;
1263                    }
1264            }
1265    
1266            public static com.liferay.portal.model.Lock refreshFileEntryLock(
1267                    HttpPrincipal httpPrincipal, java.lang.String lockUuid,
1268                    long expirationTime)
1269                    throws com.liferay.portal.kernel.exception.PortalException,
1270                            com.liferay.portal.kernel.exception.SystemException {
1271                    try {
1272                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1273                                            "refreshFileEntryLock",
1274                                            _refreshFileEntryLockParameterTypes34);
1275    
1276                            MethodHandler methodHandler = new MethodHandler(methodKey,
1277                                            lockUuid, expirationTime);
1278    
1279                            Object returnObj = null;
1280    
1281                            try {
1282                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1283                            }
1284                            catch (Exception e) {
1285                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1286                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1287                                    }
1288    
1289                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1290                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1291                                    }
1292    
1293                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1294                            }
1295    
1296                            return (com.liferay.portal.model.Lock)returnObj;
1297                    }
1298                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1299                            _log.error(se, se);
1300    
1301                            throw se;
1302                    }
1303            }
1304    
1305            public static void revertFileEntry(HttpPrincipal httpPrincipal,
1306                    long fileEntryId, java.lang.String version,
1307                    com.liferay.portal.service.ServiceContext serviceContext)
1308                    throws com.liferay.portal.kernel.exception.PortalException,
1309                            com.liferay.portal.kernel.exception.SystemException {
1310                    try {
1311                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1312                                            "revertFileEntry", _revertFileEntryParameterTypes35);
1313    
1314                            MethodHandler methodHandler = new MethodHandler(methodKey,
1315                                            fileEntryId, version, serviceContext);
1316    
1317                            try {
1318                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1319                            }
1320                            catch (Exception e) {
1321                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1322                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1323                                    }
1324    
1325                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1326                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1327                                    }
1328    
1329                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1330                            }
1331                    }
1332                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1333                            _log.error(se, se);
1334    
1335                            throw se;
1336                    }
1337            }
1338    
1339            public static void unlockFileEntry(HttpPrincipal httpPrincipal,
1340                    long fileEntryId)
1341                    throws com.liferay.portal.kernel.exception.PortalException,
1342                            com.liferay.portal.kernel.exception.SystemException {
1343                    try {
1344                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1345                                            "unlockFileEntry", _unlockFileEntryParameterTypes36);
1346    
1347                            MethodHandler methodHandler = new MethodHandler(methodKey,
1348                                            fileEntryId);
1349    
1350                            try {
1351                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1352                            }
1353                            catch (Exception e) {
1354                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1355                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1356                                    }
1357    
1358                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1359                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1360                                    }
1361    
1362                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1363                            }
1364                    }
1365                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1366                            _log.error(se, se);
1367    
1368                            throw se;
1369                    }
1370            }
1371    
1372            public static void unlockFileEntry(HttpPrincipal httpPrincipal,
1373                    long fileEntryId, java.lang.String lockUuid)
1374                    throws com.liferay.portal.kernel.exception.PortalException,
1375                            com.liferay.portal.kernel.exception.SystemException {
1376                    try {
1377                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1378                                            "unlockFileEntry", _unlockFileEntryParameterTypes37);
1379    
1380                            MethodHandler methodHandler = new MethodHandler(methodKey,
1381                                            fileEntryId, lockUuid);
1382    
1383                            try {
1384                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1399                            _log.error(se, se);
1400    
1401                            throw se;
1402                    }
1403            }
1404    
1405            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
1406                    HttpPrincipal httpPrincipal, long fileEntryId,
1407                    java.lang.String sourceFileName, java.lang.String mimeType,
1408                    java.lang.String title, java.lang.String description,
1409                    java.lang.String changeLog, boolean majorVersion, long fileEntryTypeId,
1410                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
1411                    java.io.File file, java.io.InputStream is, long size,
1412                    com.liferay.portal.service.ServiceContext serviceContext)
1413                    throws com.liferay.portal.kernel.exception.PortalException,
1414                            com.liferay.portal.kernel.exception.SystemException {
1415                    try {
1416                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1417                                            "updateFileEntry", _updateFileEntryParameterTypes38);
1418    
1419                            MethodHandler methodHandler = new MethodHandler(methodKey,
1420                                            fileEntryId, sourceFileName, mimeType, title, description,
1421                                            changeLog, majorVersion, fileEntryTypeId, fieldsMap, file,
1422                                            is, size, serviceContext);
1423    
1424                            Object returnObj = null;
1425    
1426                            try {
1427                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1428                            }
1429                            catch (Exception e) {
1430                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1431                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1432                                    }
1433    
1434                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1435                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1436                                    }
1437    
1438                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1439                            }
1440    
1441                            return (com.liferay.portlet.documentlibrary.model.DLFileEntry)returnObj;
1442                    }
1443                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1444                            _log.error(se, se);
1445    
1446                            throw se;
1447                    }
1448            }
1449    
1450            public static boolean verifyFileEntryCheckOut(HttpPrincipal httpPrincipal,
1451                    long fileEntryId, java.lang.String lockUuid)
1452                    throws com.liferay.portal.kernel.exception.PortalException,
1453                            com.liferay.portal.kernel.exception.SystemException {
1454                    try {
1455                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1456                                            "verifyFileEntryCheckOut",
1457                                            _verifyFileEntryCheckOutParameterTypes39);
1458    
1459                            MethodHandler methodHandler = new MethodHandler(methodKey,
1460                                            fileEntryId, lockUuid);
1461    
1462                            Object returnObj = null;
1463    
1464                            try {
1465                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1466                            }
1467                            catch (Exception e) {
1468                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1469                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1470                                    }
1471    
1472                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1473                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1474                                    }
1475    
1476                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1477                            }
1478    
1479                            return ((Boolean)returnObj).booleanValue();
1480                    }
1481                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1482                            _log.error(se, se);
1483    
1484                            throw se;
1485                    }
1486            }
1487    
1488            public static boolean verifyFileEntryLock(HttpPrincipal httpPrincipal,
1489                    long fileEntryId, java.lang.String lockUuid)
1490                    throws com.liferay.portal.kernel.exception.PortalException,
1491                            com.liferay.portal.kernel.exception.SystemException {
1492                    try {
1493                            MethodKey methodKey = new MethodKey(DLFileEntryServiceUtil.class.getName(),
1494                                            "verifyFileEntryLock", _verifyFileEntryLockParameterTypes40);
1495    
1496                            MethodHandler methodHandler = new MethodHandler(methodKey,
1497                                            fileEntryId, lockUuid);
1498    
1499                            Object returnObj = null;
1500    
1501                            try {
1502                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1503                            }
1504                            catch (Exception e) {
1505                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1506                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1507                                    }
1508    
1509                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1510                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1511                                    }
1512    
1513                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1514                            }
1515    
1516                            return ((Boolean)returnObj).booleanValue();
1517                    }
1518                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1519                            _log.error(se, se);
1520    
1521                            throw se;
1522                    }
1523            }
1524    
1525            private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceHttp.class);
1526            private static final Class<?>[] _addFileEntryParameterTypes0 = new Class[] {
1527                            long.class, long.class, long.class, java.lang.String.class,
1528                            java.lang.String.class, java.lang.String.class,
1529                            java.lang.String.class, java.lang.String.class, long.class,
1530                            java.util.Map.class, java.io.File.class, java.io.InputStream.class,
1531                            long.class, com.liferay.portal.service.ServiceContext.class
1532                    };
1533            private static final Class<?>[] _cancelCheckOutParameterTypes1 = new Class[] {
1534                            long.class
1535                    };
1536            private static final Class<?>[] _checkInFileEntryParameterTypes2 = new Class[] {
1537                            long.class, boolean.class, java.lang.String.class,
1538                            com.liferay.portal.service.ServiceContext.class
1539                    };
1540            private static final Class<?>[] _checkInFileEntryParameterTypes3 = new Class[] {
1541                            long.class, java.lang.String.class
1542                    };
1543            private static final Class<?>[] _checkOutFileEntryParameterTypes4 = new Class[] {
1544                            long.class
1545                    };
1546            private static final Class<?>[] _checkOutFileEntryParameterTypes5 = new Class[] {
1547                            long.class, com.liferay.portal.service.ServiceContext.class
1548                    };
1549            private static final Class<?>[] _checkOutFileEntryParameterTypes6 = new Class[] {
1550                            long.class, java.lang.String.class, long.class
1551                    };
1552            private static final Class<?>[] _checkOutFileEntryParameterTypes7 = new Class[] {
1553                            long.class, java.lang.String.class, long.class,
1554                            com.liferay.portal.service.ServiceContext.class
1555                    };
1556            private static final Class<?>[] _copyFileEntryParameterTypes8 = new Class[] {
1557                            long.class, long.class, long.class, long.class,
1558                            com.liferay.portal.service.ServiceContext.class
1559                    };
1560            private static final Class<?>[] _deleteFileEntryParameterTypes9 = new Class[] {
1561                            long.class
1562                    };
1563            private static final Class<?>[] _deleteFileEntryParameterTypes10 = new Class[] {
1564                            long.class, long.class, java.lang.String.class
1565                    };
1566            private static final Class<?>[] _fetchFileEntryByImageIdParameterTypes11 = new Class[] {
1567                            long.class
1568                    };
1569            private static final Class<?>[] _getFileAsStreamParameterTypes12 = new Class[] {
1570                            long.class, java.lang.String.class
1571                    };
1572            private static final Class<?>[] _getFileAsStreamParameterTypes13 = new Class[] {
1573                            long.class, java.lang.String.class, boolean.class
1574                    };
1575            private static final Class<?>[] _getFileEntriesParameterTypes14 = new Class[] {
1576                            long.class, long.class, int.class, int.class,
1577                            com.liferay.portal.kernel.util.OrderByComparator.class
1578                    };
1579            private static final Class<?>[] _getFileEntriesParameterTypes15 = new Class[] {
1580                            long.class, long.class, long.class, int.class, int.class,
1581                            com.liferay.portal.kernel.util.OrderByComparator.class
1582                    };
1583            private static final Class<?>[] _getFileEntriesParameterTypes16 = new Class[] {
1584                            long.class, long.class, java.lang.String[].class, int.class,
1585                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1586                    };
1587            private static final Class<?>[] _getFileEntriesCountParameterTypes17 = new Class[] {
1588                            long.class, long.class
1589                    };
1590            private static final Class<?>[] _getFileEntriesCountParameterTypes18 = new Class[] {
1591                            long.class, long.class, long.class
1592                    };
1593            private static final Class<?>[] _getFileEntriesCountParameterTypes19 = new Class[] {
1594                            long.class, long.class, java.lang.String[].class
1595                    };
1596            private static final Class<?>[] _getFileEntryParameterTypes20 = new Class[] {
1597                            long.class
1598                    };
1599            private static final Class<?>[] _getFileEntryParameterTypes21 = new Class[] {
1600                            long.class, long.class, java.lang.String.class
1601                    };
1602            private static final Class<?>[] _getFileEntryByUuidAndGroupIdParameterTypes22 =
1603                    new Class[] { java.lang.String.class, long.class };
1604            private static final Class<?>[] _getFileEntryLockParameterTypes23 = new Class[] {
1605                            long.class
1606                    };
1607            private static final Class<?>[] _getFoldersFileEntriesCountParameterTypes24 = new Class[] {
1608                            long.class, java.util.List.class, int.class
1609                    };
1610            private static final Class<?>[] _getGroupFileEntriesParameterTypes25 = new Class[] {
1611                            long.class, long.class, long.class, int.class, int.class,
1612                            com.liferay.portal.kernel.util.OrderByComparator.class
1613                    };
1614            private static final Class<?>[] _getGroupFileEntriesParameterTypes26 = new Class[] {
1615                            long.class, long.class, long.class, java.lang.String[].class,
1616                            int.class, int.class, int.class,
1617                            com.liferay.portal.kernel.util.OrderByComparator.class
1618                    };
1619            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes27 = new Class[] {
1620                            long.class, long.class, long.class
1621                    };
1622            private static final Class<?>[] _getGroupFileEntriesCountParameterTypes28 = new Class[] {
1623                            long.class, long.class, long.class, java.lang.String[].class,
1624                            int.class
1625                    };
1626            private static final Class<?>[] _hasFileEntryLockParameterTypes29 = new Class[] {
1627                            long.class
1628                    };
1629            private static final Class<?>[] _isFileEntryCheckedOutParameterTypes30 = new Class[] {
1630                            long.class
1631                    };
1632            private static final Class<?>[] _lockFileEntryParameterTypes31 = new Class[] {
1633                            long.class
1634                    };
1635            private static final Class<?>[] _lockFileEntryParameterTypes32 = new Class[] {
1636                            long.class, java.lang.String.class, long.class
1637                    };
1638            private static final Class<?>[] _moveFileEntryParameterTypes33 = new Class[] {
1639                            long.class, long.class,
1640                            com.liferay.portal.service.ServiceContext.class
1641                    };
1642            private static final Class<?>[] _refreshFileEntryLockParameterTypes34 = new Class[] {
1643                            java.lang.String.class, long.class
1644                    };
1645            private static final Class<?>[] _revertFileEntryParameterTypes35 = new Class[] {
1646                            long.class, java.lang.String.class,
1647                            com.liferay.portal.service.ServiceContext.class
1648                    };
1649            private static final Class<?>[] _unlockFileEntryParameterTypes36 = new Class[] {
1650                            long.class
1651                    };
1652            private static final Class<?>[] _unlockFileEntryParameterTypes37 = new Class[] {
1653                            long.class, java.lang.String.class
1654                    };
1655            private static final Class<?>[] _updateFileEntryParameterTypes38 = new Class[] {
1656                            long.class, java.lang.String.class, java.lang.String.class,
1657                            java.lang.String.class, java.lang.String.class,
1658                            java.lang.String.class, boolean.class, long.class,
1659                            java.util.Map.class, java.io.File.class, java.io.InputStream.class,
1660                            long.class, com.liferay.portal.service.ServiceContext.class
1661                    };
1662            private static final Class<?>[] _verifyFileEntryCheckOutParameterTypes39 = new Class[] {
1663                            long.class, java.lang.String.class
1664                    };
1665            private static final Class<?>[] _verifyFileEntryLockParameterTypes40 = new Class[] {
1666                            long.class, java.lang.String.class
1667                    };
1668    }