001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.security.auth.HttpPrincipal;
022    import com.liferay.portal.kernel.util.MethodHandler;
023    import com.liferay.portal.kernel.util.MethodKey;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link DLFolderServiceUtil} service utility. The
031     * static methods of this class calls the same methods of the service utility.
032     * However, the signatures are different because it requires an additional
033     * {@link HttpPrincipal} parameter.
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 DLFolderServiceSoap
052     * @see HttpPrincipal
053     * @see DLFolderServiceUtil
054     * @generated
055     */
056    @ProviderType
057    public class DLFolderServiceHttp {
058            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
059                    HttpPrincipal httpPrincipal, long groupId, long repositoryId,
060                    boolean mountPoint, long parentFolderId, java.lang.String name,
061                    java.lang.String description,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    try {
065                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
066                                            "addFolder", _addFolderParameterTypes0);
067    
068                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
069                                            repositoryId, mountPoint, parentFolderId, name,
070                                            description, serviceContext);
071    
072                            Object returnObj = null;
073    
074                            try {
075                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
076                            }
077                            catch (Exception e) {
078                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
079                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
080                                    }
081    
082                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
083                            }
084    
085                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
086                    }
087                    catch (com.liferay.portal.kernel.exception.SystemException se) {
088                            _log.error(se, se);
089    
090                            throw se;
091                    }
092            }
093    
094            public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    try {
097                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
098                                            "deleteFolder", _deleteFolderParameterTypes1);
099    
100                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
101    
102                            try {
103                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
104                            }
105                            catch (Exception e) {
106                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
107                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
108                                    }
109    
110                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
111                            }
112                    }
113                    catch (com.liferay.portal.kernel.exception.SystemException se) {
114                            _log.error(se, se);
115    
116                            throw se;
117                    }
118            }
119    
120            public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId,
121                    boolean includeTrashedEntries)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    try {
124                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
125                                            "deleteFolder", _deleteFolderParameterTypes2);
126    
127                            MethodHandler methodHandler = new MethodHandler(methodKey,
128                                            folderId, includeTrashedEntries);
129    
130                            try {
131                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
132                            }
133                            catch (Exception e) {
134                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
135                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
136                                    }
137    
138                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
139                            }
140                    }
141                    catch (com.liferay.portal.kernel.exception.SystemException se) {
142                            _log.error(se, se);
143    
144                            throw se;
145                    }
146            }
147    
148            public static void deleteFolder(HttpPrincipal httpPrincipal, long groupId,
149                    long parentFolderId, java.lang.String name)
150                    throws com.liferay.portal.kernel.exception.PortalException {
151                    try {
152                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
153                                            "deleteFolder", _deleteFolderParameterTypes3);
154    
155                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
156                                            parentFolderId, name);
157    
158                            try {
159                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
160                            }
161                            catch (Exception e) {
162                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
163                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
164                                    }
165    
166                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
167                            }
168                    }
169                    catch (com.liferay.portal.kernel.exception.SystemException se) {
170                            _log.error(se, se);
171    
172                            throw se;
173                    }
174            }
175    
176            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
177                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
178                    int start, int end)
179                    throws com.liferay.portal.kernel.exception.PortalException {
180                    try {
181                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
182                                            "getFileEntriesAndFileShortcuts",
183                                            _getFileEntriesAndFileShortcutsParameterTypes4);
184    
185                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
186                                            folderId, status, start, end);
187    
188                            Object returnObj = null;
189    
190                            try {
191                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
192                            }
193                            catch (Exception e) {
194                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
195                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
196                                    }
197    
198                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
199                            }
200    
201                            return (java.util.List<java.lang.Object>)returnObj;
202                    }
203                    catch (com.liferay.portal.kernel.exception.SystemException se) {
204                            _log.error(se, se);
205    
206                            throw se;
207                    }
208            }
209    
210            public static int getFileEntriesAndFileShortcutsCount(
211                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status)
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    try {
214                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
215                                            "getFileEntriesAndFileShortcutsCount",
216                                            _getFileEntriesAndFileShortcutsCountParameterTypes5);
217    
218                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
219                                            folderId, status);
220    
221                            Object returnObj = null;
222    
223                            try {
224                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
225                            }
226                            catch (Exception e) {
227                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
228                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
229                                    }
230    
231                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
232                            }
233    
234                            return ((Integer)returnObj).intValue();
235                    }
236                    catch (com.liferay.portal.kernel.exception.SystemException se) {
237                            _log.error(se, se);
238    
239                            throw se;
240                    }
241            }
242    
243            public static int getFileEntriesAndFileShortcutsCount(
244                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
245                    java.lang.String[] mimeTypes)
246                    throws com.liferay.portal.kernel.exception.PortalException {
247                    try {
248                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
249                                            "getFileEntriesAndFileShortcutsCount",
250                                            _getFileEntriesAndFileShortcutsCountParameterTypes6);
251    
252                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
253                                            folderId, status, mimeTypes);
254    
255                            Object returnObj = null;
256    
257                            try {
258                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
259                            }
260                            catch (Exception e) {
261                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
262                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
263                                    }
264    
265                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
266                            }
267    
268                            return ((Integer)returnObj).intValue();
269                    }
270                    catch (com.liferay.portal.kernel.exception.SystemException se) {
271                            _log.error(se, se);
272    
273                            throw se;
274                    }
275            }
276    
277            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
278                    HttpPrincipal httpPrincipal, long folderId)
279                    throws com.liferay.portal.kernel.exception.PortalException {
280                    try {
281                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
282                                            "getFolder", _getFolderParameterTypes7);
283    
284                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
285    
286                            Object returnObj = null;
287    
288                            try {
289                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
290                            }
291                            catch (Exception e) {
292                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
293                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
294                                    }
295    
296                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
297                            }
298    
299                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
300                    }
301                    catch (com.liferay.portal.kernel.exception.SystemException se) {
302                            _log.error(se, se);
303    
304                            throw se;
305                    }
306            }
307    
308            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
309                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
310                    java.lang.String name)
311                    throws com.liferay.portal.kernel.exception.PortalException {
312                    try {
313                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
314                                            "getFolder", _getFolderParameterTypes8);
315    
316                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
317                                            parentFolderId, name);
318    
319                            Object returnObj = null;
320    
321                            try {
322                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
323                            }
324                            catch (Exception e) {
325                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
326                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
327                                    }
328    
329                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
330                            }
331    
332                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
333                    }
334                    catch (com.liferay.portal.kernel.exception.SystemException se) {
335                            _log.error(se, se);
336    
337                            throw se;
338                    }
339            }
340    
341            public static java.util.List<java.lang.Long> getFolderIds(
342                    HttpPrincipal httpPrincipal, long groupId, long folderId)
343                    throws com.liferay.portal.kernel.exception.PortalException {
344                    try {
345                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
346                                            "getFolderIds", _getFolderIdsParameterTypes9);
347    
348                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
349                                            folderId);
350    
351                            Object returnObj = null;
352    
353                            try {
354                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
355                            }
356                            catch (Exception e) {
357                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
358                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
359                                    }
360    
361                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
362                            }
363    
364                            return (java.util.List<java.lang.Long>)returnObj;
365                    }
366                    catch (com.liferay.portal.kernel.exception.SystemException se) {
367                            _log.error(se, se);
368    
369                            throw se;
370                    }
371            }
372    
373            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
374                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
375                    int status, boolean includeMountfolders, int start, int end,
376                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    try {
379                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
380                                            "getFolders", _getFoldersParameterTypes10);
381    
382                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
383                                            parentFolderId, status, includeMountfolders, start, end, obc);
384    
385                            Object returnObj = null;
386    
387                            try {
388                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
389                            }
390                            catch (Exception e) {
391                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
392                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
393                                    }
394    
395                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
396                            }
397    
398                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder>)returnObj;
399                    }
400                    catch (com.liferay.portal.kernel.exception.SystemException se) {
401                            _log.error(se, se);
402    
403                            throw se;
404                    }
405            }
406    
407            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
408                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
409                    int start, int end,
410                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
411                    throws com.liferay.portal.kernel.exception.PortalException {
412                    try {
413                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
414                                            "getFolders", _getFoldersParameterTypes11);
415    
416                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
417                                            parentFolderId, start, end, obc);
418    
419                            Object returnObj = null;
420    
421                            try {
422                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
423                            }
424                            catch (Exception e) {
425                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
426                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
427                                    }
428    
429                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
430                            }
431    
432                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder>)returnObj;
433                    }
434                    catch (com.liferay.portal.kernel.exception.SystemException se) {
435                            _log.error(se, se);
436    
437                            throw se;
438                    }
439            }
440    
441            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
442                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
443                    boolean includeMountFolders, int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator<?> obc)
445                    throws com.liferay.portal.kernel.exception.PortalException {
446                    try {
447                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
448                                            "getFoldersAndFileEntriesAndFileShortcuts",
449                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes12);
450    
451                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
452                                            folderId, status, includeMountFolders, start, end, obc);
453    
454                            Object returnObj = null;
455    
456                            try {
457                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
458                            }
459                            catch (Exception e) {
460                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
461                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
462                                    }
463    
464                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
465                            }
466    
467                            return (java.util.List<java.lang.Object>)returnObj;
468                    }
469                    catch (com.liferay.portal.kernel.exception.SystemException se) {
470                            _log.error(se, se);
471    
472                            throw se;
473                    }
474            }
475    
476            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
477                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
478                    java.lang.String[] mimeTypes, boolean includeMountFolders, int start,
479                    int end, com.liferay.portal.kernel.util.OrderByComparator<?> obc)
480                    throws com.liferay.portal.kernel.exception.PortalException {
481                    try {
482                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
483                                            "getFoldersAndFileEntriesAndFileShortcuts",
484                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes13);
485    
486                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
487                                            folderId, status, mimeTypes, includeMountFolders, start,
488                                            end, obc);
489    
490                            Object returnObj = null;
491    
492                            try {
493                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
494                            }
495                            catch (Exception e) {
496                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
497                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
498                                    }
499    
500                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
501                            }
502    
503                            return (java.util.List<java.lang.Object>)returnObj;
504                    }
505                    catch (com.liferay.portal.kernel.exception.SystemException se) {
506                            _log.error(se, se);
507    
508                            throw se;
509                    }
510            }
511    
512            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
513                    HttpPrincipal httpPrincipal, long groupId, long folderId,
514                    java.lang.String[] mimeTypes, boolean includeMountFolders,
515                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
516                    throws com.liferay.portal.kernel.exception.PortalException {
517                    try {
518                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
519                                            "getFoldersAndFileEntriesAndFileShortcuts",
520                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes14);
521    
522                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
523                                            folderId, mimeTypes, includeMountFolders, queryDefinition);
524    
525                            Object returnObj = null;
526    
527                            try {
528                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
529                            }
530                            catch (Exception e) {
531                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
532                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
533                                    }
534    
535                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
536                            }
537    
538                            return (java.util.List<java.lang.Object>)returnObj;
539                    }
540                    catch (com.liferay.portal.kernel.exception.SystemException se) {
541                            _log.error(se, se);
542    
543                            throw se;
544                    }
545            }
546    
547            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
548                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
549                    boolean includeMountFolders)
550                    throws com.liferay.portal.kernel.exception.PortalException {
551                    try {
552                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
553                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
554                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes15);
555    
556                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
557                                            folderId, status, includeMountFolders);
558    
559                            Object returnObj = null;
560    
561                            try {
562                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
563                            }
564                            catch (Exception e) {
565                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
566                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
567                                    }
568    
569                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
570                            }
571    
572                            return ((Integer)returnObj).intValue();
573                    }
574                    catch (com.liferay.portal.kernel.exception.SystemException se) {
575                            _log.error(se, se);
576    
577                            throw se;
578                    }
579            }
580    
581            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
582                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
583                    java.lang.String[] mimeTypes, boolean includeMountFolders)
584                    throws com.liferay.portal.kernel.exception.PortalException {
585                    try {
586                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
587                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
588                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes16);
589    
590                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
591                                            folderId, status, mimeTypes, includeMountFolders);
592    
593                            Object returnObj = null;
594    
595                            try {
596                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
597                            }
598                            catch (Exception e) {
599                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
600                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
601                                    }
602    
603                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
604                            }
605    
606                            return ((Integer)returnObj).intValue();
607                    }
608                    catch (com.liferay.portal.kernel.exception.SystemException se) {
609                            _log.error(se, se);
610    
611                            throw se;
612                    }
613            }
614    
615            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
616                    HttpPrincipal httpPrincipal, long groupId, long folderId,
617                    java.lang.String[] mimeTypes, boolean includeMountFolders,
618                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
619                    throws com.liferay.portal.kernel.exception.PortalException {
620                    try {
621                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
622                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
623                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes17);
624    
625                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
626                                            folderId, mimeTypes, includeMountFolders, queryDefinition);
627    
628                            Object returnObj = null;
629    
630                            try {
631                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
632                            }
633                            catch (Exception e) {
634                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
635                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
636                                    }
637    
638                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
639                            }
640    
641                            return ((Integer)returnObj).intValue();
642                    }
643                    catch (com.liferay.portal.kernel.exception.SystemException se) {
644                            _log.error(se, se);
645    
646                            throw se;
647                    }
648            }
649    
650            public static int getFoldersCount(HttpPrincipal httpPrincipal,
651                    long groupId, long parentFolderId)
652                    throws com.liferay.portal.kernel.exception.PortalException {
653                    try {
654                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
655                                            "getFoldersCount", _getFoldersCountParameterTypes18);
656    
657                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
658                                            parentFolderId);
659    
660                            Object returnObj = null;
661    
662                            try {
663                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
664                            }
665                            catch (Exception e) {
666                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
667                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
668                                    }
669    
670                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
671                            }
672    
673                            return ((Integer)returnObj).intValue();
674                    }
675                    catch (com.liferay.portal.kernel.exception.SystemException se) {
676                            _log.error(se, se);
677    
678                            throw se;
679                    }
680            }
681    
682            public static int getFoldersCount(HttpPrincipal httpPrincipal,
683                    long groupId, long parentFolderId, int status,
684                    boolean includeMountfolders)
685                    throws com.liferay.portal.kernel.exception.PortalException {
686                    try {
687                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
688                                            "getFoldersCount", _getFoldersCountParameterTypes19);
689    
690                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
691                                            parentFolderId, status, includeMountfolders);
692    
693                            Object returnObj = null;
694    
695                            try {
696                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
697                            }
698                            catch (Exception e) {
699                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
700                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
701                                    }
702    
703                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
704                            }
705    
706                            return ((Integer)returnObj).intValue();
707                    }
708                    catch (com.liferay.portal.kernel.exception.SystemException se) {
709                            _log.error(se, se);
710    
711                            throw se;
712                    }
713            }
714    
715            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
716                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
717                    int start, int end,
718                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
719                    throws com.liferay.portal.kernel.exception.PortalException {
720                    try {
721                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
722                                            "getMountFolders", _getMountFoldersParameterTypes20);
723    
724                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
725                                            parentFolderId, start, end, obc);
726    
727                            Object returnObj = null;
728    
729                            try {
730                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
731                            }
732                            catch (Exception e) {
733                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
734                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
735                                    }
736    
737                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
738                            }
739    
740                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder>)returnObj;
741                    }
742                    catch (com.liferay.portal.kernel.exception.SystemException se) {
743                            _log.error(se, se);
744    
745                            throw se;
746                    }
747            }
748    
749            public static int getMountFoldersCount(HttpPrincipal httpPrincipal,
750                    long groupId, long parentFolderId)
751                    throws com.liferay.portal.kernel.exception.PortalException {
752                    try {
753                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
754                                            "getMountFoldersCount",
755                                            _getMountFoldersCountParameterTypes21);
756    
757                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
758                                            parentFolderId);
759    
760                            Object returnObj = null;
761    
762                            try {
763                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
764                            }
765                            catch (Exception e) {
766                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
767                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
768                                    }
769    
770                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
771                            }
772    
773                            return ((Integer)returnObj).intValue();
774                    }
775                    catch (com.liferay.portal.kernel.exception.SystemException se) {
776                            _log.error(se, se);
777    
778                            throw se;
779                    }
780            }
781    
782            public static void getSubfolderIds(HttpPrincipal httpPrincipal,
783                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
784                    throws com.liferay.portal.kernel.exception.PortalException {
785                    try {
786                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
787                                            "getSubfolderIds", _getSubfolderIdsParameterTypes22);
788    
789                            MethodHandler methodHandler = new MethodHandler(methodKey,
790                                            folderIds, groupId, folderId);
791    
792                            try {
793                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
794                            }
795                            catch (Exception e) {
796                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
797                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
798                                    }
799    
800                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
801                            }
802                    }
803                    catch (com.liferay.portal.kernel.exception.SystemException se) {
804                            _log.error(se, se);
805    
806                            throw se;
807                    }
808            }
809    
810            public static void getSubfolderIds(HttpPrincipal httpPrincipal,
811                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
812                    boolean recurse)
813                    throws com.liferay.portal.kernel.exception.PortalException {
814                    try {
815                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
816                                            "getSubfolderIds", _getSubfolderIdsParameterTypes23);
817    
818                            MethodHandler methodHandler = new MethodHandler(methodKey,
819                                            folderIds, groupId, folderId, recurse);
820    
821                            try {
822                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
823                            }
824                            catch (Exception e) {
825                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
826                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
827                                    }
828    
829                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
830                            }
831                    }
832                    catch (com.liferay.portal.kernel.exception.SystemException se) {
833                            _log.error(se, se);
834    
835                            throw se;
836                    }
837            }
838    
839            public static java.util.List<java.lang.Long> getSubfolderIds(
840                    HttpPrincipal httpPrincipal, long groupId, long folderId,
841                    boolean recurse)
842                    throws com.liferay.portal.kernel.exception.PortalException {
843                    try {
844                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
845                                            "getSubfolderIds", _getSubfolderIdsParameterTypes24);
846    
847                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
848                                            folderId, recurse);
849    
850                            Object returnObj = null;
851    
852                            try {
853                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
854                            }
855                            catch (Exception e) {
856                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
857                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
858                                    }
859    
860                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
861                            }
862    
863                            return (java.util.List<java.lang.Long>)returnObj;
864                    }
865                    catch (com.liferay.portal.kernel.exception.SystemException se) {
866                            _log.error(se, se);
867    
868                            throw se;
869                    }
870            }
871    
872            public static boolean hasFolderLock(HttpPrincipal httpPrincipal,
873                    long folderId)
874                    throws com.liferay.portal.kernel.exception.PortalException {
875                    try {
876                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
877                                            "hasFolderLock", _hasFolderLockParameterTypes25);
878    
879                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
880    
881                            Object returnObj = null;
882    
883                            try {
884                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
885                            }
886                            catch (Exception e) {
887                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
888                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
889                                    }
890    
891                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
892                            }
893    
894                            return ((Boolean)returnObj).booleanValue();
895                    }
896                    catch (com.liferay.portal.kernel.exception.SystemException se) {
897                            _log.error(se, se);
898    
899                            throw se;
900                    }
901            }
902    
903            public static boolean hasInheritableLock(HttpPrincipal httpPrincipal,
904                    long folderId)
905                    throws com.liferay.portal.kernel.exception.PortalException {
906                    try {
907                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
908                                            "hasInheritableLock", _hasInheritableLockParameterTypes26);
909    
910                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
911    
912                            Object returnObj = null;
913    
914                            try {
915                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
916                            }
917                            catch (Exception e) {
918                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
919                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
920                                    }
921    
922                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
923                            }
924    
925                            return ((Boolean)returnObj).booleanValue();
926                    }
927                    catch (com.liferay.portal.kernel.exception.SystemException se) {
928                            _log.error(se, se);
929    
930                            throw se;
931                    }
932            }
933    
934            public static boolean isFolderLocked(HttpPrincipal httpPrincipal,
935                    long folderId) {
936                    try {
937                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
938                                            "isFolderLocked", _isFolderLockedParameterTypes27);
939    
940                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
941    
942                            Object returnObj = null;
943    
944                            try {
945                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
946                            }
947                            catch (Exception e) {
948                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
949                            }
950    
951                            return ((Boolean)returnObj).booleanValue();
952                    }
953                    catch (com.liferay.portal.kernel.exception.SystemException se) {
954                            _log.error(se, se);
955    
956                            throw se;
957                    }
958            }
959    
960            public static com.liferay.portal.kernel.lock.Lock lockFolder(
961                    HttpPrincipal httpPrincipal, long folderId)
962                    throws com.liferay.portal.kernel.exception.PortalException {
963                    try {
964                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
965                                            "lockFolder", _lockFolderParameterTypes28);
966    
967                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
968    
969                            Object returnObj = null;
970    
971                            try {
972                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
973                            }
974                            catch (Exception e) {
975                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
976                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
977                                    }
978    
979                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
980                            }
981    
982                            return (com.liferay.portal.kernel.lock.Lock)returnObj;
983                    }
984                    catch (com.liferay.portal.kernel.exception.SystemException se) {
985                            _log.error(se, se);
986    
987                            throw se;
988                    }
989            }
990    
991            public static com.liferay.portal.kernel.lock.Lock lockFolder(
992                    HttpPrincipal httpPrincipal, long folderId, java.lang.String owner,
993                    boolean inheritable, long expirationTime)
994                    throws com.liferay.portal.kernel.exception.PortalException {
995                    try {
996                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
997                                            "lockFolder", _lockFolderParameterTypes29);
998    
999                            MethodHandler methodHandler = new MethodHandler(methodKey,
1000                                            folderId, owner, inheritable, expirationTime);
1001    
1002                            Object returnObj = null;
1003    
1004                            try {
1005                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1006                            }
1007                            catch (Exception e) {
1008                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1009                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1010                                    }
1011    
1012                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1013                            }
1014    
1015                            return (com.liferay.portal.kernel.lock.Lock)returnObj;
1016                    }
1017                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1018                            _log.error(se, se);
1019    
1020                            throw se;
1021                    }
1022            }
1023    
1024            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
1025                    HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
1026                    com.liferay.portal.service.ServiceContext serviceContext)
1027                    throws com.liferay.portal.kernel.exception.PortalException {
1028                    try {
1029                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1030                                            "moveFolder", _moveFolderParameterTypes30);
1031    
1032                            MethodHandler methodHandler = new MethodHandler(methodKey,
1033                                            folderId, parentFolderId, serviceContext);
1034    
1035                            Object returnObj = null;
1036    
1037                            try {
1038                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1039                            }
1040                            catch (Exception e) {
1041                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1042                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1043                                    }
1044    
1045                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1046                            }
1047    
1048                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
1049                    }
1050                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1051                            _log.error(se, se);
1052    
1053                            throw se;
1054                    }
1055            }
1056    
1057            public static com.liferay.portal.kernel.lock.Lock refreshFolderLock(
1058                    HttpPrincipal httpPrincipal, java.lang.String lockUuid, long companyId,
1059                    long expirationTime)
1060                    throws com.liferay.portal.kernel.exception.PortalException {
1061                    try {
1062                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1063                                            "refreshFolderLock", _refreshFolderLockParameterTypes31);
1064    
1065                            MethodHandler methodHandler = new MethodHandler(methodKey,
1066                                            lockUuid, companyId, expirationTime);
1067    
1068                            Object returnObj = null;
1069    
1070                            try {
1071                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1072                            }
1073                            catch (Exception e) {
1074                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1075                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1076                                    }
1077    
1078                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1079                            }
1080    
1081                            return (com.liferay.portal.kernel.lock.Lock)returnObj;
1082                    }
1083                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1084                            _log.error(se, se);
1085    
1086                            throw se;
1087                    }
1088            }
1089    
1090            public static void unlockFolder(HttpPrincipal httpPrincipal, long groupId,
1091                    long parentFolderId, java.lang.String name, java.lang.String lockUuid)
1092                    throws com.liferay.portal.kernel.exception.PortalException {
1093                    try {
1094                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1095                                            "unlockFolder", _unlockFolderParameterTypes32);
1096    
1097                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1098                                            parentFolderId, name, lockUuid);
1099    
1100                            try {
1101                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1102                            }
1103                            catch (Exception e) {
1104                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1105                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1106                                    }
1107    
1108                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1109                            }
1110                    }
1111                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1112                            _log.error(se, se);
1113    
1114                            throw se;
1115                    }
1116            }
1117    
1118            public static void unlockFolder(HttpPrincipal httpPrincipal, long folderId,
1119                    java.lang.String lockUuid)
1120                    throws com.liferay.portal.kernel.exception.PortalException {
1121                    try {
1122                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1123                                            "unlockFolder", _unlockFolderParameterTypes33);
1124    
1125                            MethodHandler methodHandler = new MethodHandler(methodKey,
1126                                            folderId, lockUuid);
1127    
1128                            try {
1129                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1130                            }
1131                            catch (Exception e) {
1132                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1133                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1134                                    }
1135    
1136                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1137                            }
1138                    }
1139                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1140                            _log.error(se, se);
1141    
1142                            throw se;
1143                    }
1144            }
1145    
1146            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
1147                    HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
1148                    java.lang.String name, java.lang.String description,
1149                    long defaultFileEntryTypeId,
1150                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
1151                    com.liferay.portal.service.ServiceContext serviceContext)
1152                    throws com.liferay.portal.kernel.exception.PortalException {
1153                    try {
1154                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1155                                            "updateFolder", _updateFolderParameterTypes34);
1156    
1157                            MethodHandler methodHandler = new MethodHandler(methodKey,
1158                                            folderId, parentFolderId, name, description,
1159                                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
1160                                            serviceContext);
1161    
1162                            Object returnObj = null;
1163    
1164                            try {
1165                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1166                            }
1167                            catch (Exception e) {
1168                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1169                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1170                                    }
1171    
1172                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1173                            }
1174    
1175                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
1176                    }
1177                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1178                            _log.error(se, se);
1179    
1180                            throw se;
1181                    }
1182            }
1183    
1184            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
1185                    HttpPrincipal httpPrincipal, long folderId, java.lang.String name,
1186                    java.lang.String description, long defaultFileEntryTypeId,
1187                    java.util.List<java.lang.Long> fileEntryTypeIds,
1188                    boolean overrideFileEntryTypes,
1189                    com.liferay.portal.service.ServiceContext serviceContext)
1190                    throws com.liferay.portal.kernel.exception.PortalException {
1191                    try {
1192                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1193                                            "updateFolder", _updateFolderParameterTypes35);
1194    
1195                            MethodHandler methodHandler = new MethodHandler(methodKey,
1196                                            folderId, name, description, defaultFileEntryTypeId,
1197                                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
1198    
1199                            Object returnObj = null;
1200    
1201                            try {
1202                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1203                            }
1204                            catch (Exception e) {
1205                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1206                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1207                                    }
1208    
1209                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1210                            }
1211    
1212                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
1213                    }
1214                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1215                            _log.error(se, se);
1216    
1217                            throw se;
1218                    }
1219            }
1220    
1221            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
1222                    HttpPrincipal httpPrincipal, long folderId, java.lang.String name,
1223                    java.lang.String description, long defaultFileEntryTypeId,
1224                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
1225                    com.liferay.portal.service.ServiceContext serviceContext)
1226                    throws com.liferay.portal.kernel.exception.PortalException {
1227                    try {
1228                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1229                                            "updateFolder", _updateFolderParameterTypes36);
1230    
1231                            MethodHandler methodHandler = new MethodHandler(methodKey,
1232                                            folderId, name, description, defaultFileEntryTypeId,
1233                                            fileEntryTypeIds, restrictionType, serviceContext);
1234    
1235                            Object returnObj = null;
1236    
1237                            try {
1238                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1239                            }
1240                            catch (Exception e) {
1241                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1242                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1243                                    }
1244    
1245                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1246                            }
1247    
1248                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
1249                    }
1250                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1251                            _log.error(se, se);
1252    
1253                            throw se;
1254                    }
1255            }
1256    
1257            public static boolean verifyInheritableLock(HttpPrincipal httpPrincipal,
1258                    long folderId, java.lang.String lockUuid)
1259                    throws com.liferay.portal.kernel.exception.PortalException {
1260                    try {
1261                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class,
1262                                            "verifyInheritableLock",
1263                                            _verifyInheritableLockParameterTypes37);
1264    
1265                            MethodHandler methodHandler = new MethodHandler(methodKey,
1266                                            folderId, lockUuid);
1267    
1268                            Object returnObj = null;
1269    
1270                            try {
1271                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1272                            }
1273                            catch (Exception e) {
1274                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1275                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1276                                    }
1277    
1278                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1279                            }
1280    
1281                            return ((Boolean)returnObj).booleanValue();
1282                    }
1283                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1284                            _log.error(se, se);
1285    
1286                            throw se;
1287                    }
1288            }
1289    
1290            private static Log _log = LogFactoryUtil.getLog(DLFolderServiceHttp.class);
1291            private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
1292                            long.class, long.class, boolean.class, long.class,
1293                            java.lang.String.class, java.lang.String.class,
1294                            com.liferay.portal.service.ServiceContext.class
1295                    };
1296            private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
1297                            long.class
1298                    };
1299            private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
1300                            long.class, boolean.class
1301                    };
1302            private static final Class<?>[] _deleteFolderParameterTypes3 = new Class[] {
1303                            long.class, long.class, java.lang.String.class
1304                    };
1305            private static final Class<?>[] _getFileEntriesAndFileShortcutsParameterTypes4 =
1306                    new Class[] { long.class, long.class, int.class, int.class, int.class };
1307            private static final Class<?>[] _getFileEntriesAndFileShortcutsCountParameterTypes5 =
1308                    new Class[] { long.class, long.class, int.class };
1309            private static final Class<?>[] _getFileEntriesAndFileShortcutsCountParameterTypes6 =
1310                    new Class[] { long.class, long.class, int.class, java.lang.String[].class };
1311            private static final Class<?>[] _getFolderParameterTypes7 = new Class[] {
1312                            long.class
1313                    };
1314            private static final Class<?>[] _getFolderParameterTypes8 = new Class[] {
1315                            long.class, long.class, java.lang.String.class
1316                    };
1317            private static final Class<?>[] _getFolderIdsParameterTypes9 = new Class[] {
1318                            long.class, long.class
1319                    };
1320            private static final Class<?>[] _getFoldersParameterTypes10 = new Class[] {
1321                            long.class, long.class, int.class, boolean.class, int.class,
1322                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1323                    };
1324            private static final Class<?>[] _getFoldersParameterTypes11 = new Class[] {
1325                            long.class, long.class, int.class, int.class,
1326                            com.liferay.portal.kernel.util.OrderByComparator.class
1327                    };
1328            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes12 =
1329                    new Class[] {
1330                            long.class, long.class, int.class, boolean.class, int.class,
1331                            int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1332                    };
1333            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes13 =
1334                    new Class[] {
1335                            long.class, long.class, int.class, java.lang.String[].class,
1336                            boolean.class, int.class, int.class,
1337                            com.liferay.portal.kernel.util.OrderByComparator.class
1338                    };
1339            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes14 =
1340                    new Class[] {
1341                            long.class, long.class, java.lang.String[].class, boolean.class,
1342                            com.liferay.portal.kernel.dao.orm.QueryDefinition.class
1343                    };
1344            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes15 =
1345                    new Class[] { long.class, long.class, int.class, boolean.class };
1346            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes16 =
1347                    new Class[] {
1348                            long.class, long.class, int.class, java.lang.String[].class,
1349                            boolean.class
1350                    };
1351            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes17 =
1352                    new Class[] {
1353                            long.class, long.class, java.lang.String[].class, boolean.class,
1354                            com.liferay.portal.kernel.dao.orm.QueryDefinition.class
1355                    };
1356            private static final Class<?>[] _getFoldersCountParameterTypes18 = new Class[] {
1357                            long.class, long.class
1358                    };
1359            private static final Class<?>[] _getFoldersCountParameterTypes19 = new Class[] {
1360                            long.class, long.class, int.class, boolean.class
1361                    };
1362            private static final Class<?>[] _getMountFoldersParameterTypes20 = new Class[] {
1363                            long.class, long.class, int.class, int.class,
1364                            com.liferay.portal.kernel.util.OrderByComparator.class
1365                    };
1366            private static final Class<?>[] _getMountFoldersCountParameterTypes21 = new Class[] {
1367                            long.class, long.class
1368                    };
1369            private static final Class<?>[] _getSubfolderIdsParameterTypes22 = new Class[] {
1370                            java.util.List.class, long.class, long.class
1371                    };
1372            private static final Class<?>[] _getSubfolderIdsParameterTypes23 = new Class[] {
1373                            java.util.List.class, long.class, long.class, boolean.class
1374                    };
1375            private static final Class<?>[] _getSubfolderIdsParameterTypes24 = new Class[] {
1376                            long.class, long.class, boolean.class
1377                    };
1378            private static final Class<?>[] _hasFolderLockParameterTypes25 = new Class[] {
1379                            long.class
1380                    };
1381            private static final Class<?>[] _hasInheritableLockParameterTypes26 = new Class[] {
1382                            long.class
1383                    };
1384            private static final Class<?>[] _isFolderLockedParameterTypes27 = new Class[] {
1385                            long.class
1386                    };
1387            private static final Class<?>[] _lockFolderParameterTypes28 = new Class[] {
1388                            long.class
1389                    };
1390            private static final Class<?>[] _lockFolderParameterTypes29 = new Class[] {
1391                            long.class, java.lang.String.class, boolean.class, long.class
1392                    };
1393            private static final Class<?>[] _moveFolderParameterTypes30 = new Class[] {
1394                            long.class, long.class,
1395                            com.liferay.portal.service.ServiceContext.class
1396                    };
1397            private static final Class<?>[] _refreshFolderLockParameterTypes31 = new Class[] {
1398                            java.lang.String.class, long.class, long.class
1399                    };
1400            private static final Class<?>[] _unlockFolderParameterTypes32 = new Class[] {
1401                            long.class, long.class, java.lang.String.class,
1402                            java.lang.String.class
1403                    };
1404            private static final Class<?>[] _unlockFolderParameterTypes33 = new Class[] {
1405                            long.class, java.lang.String.class
1406                    };
1407            private static final Class<?>[] _updateFolderParameterTypes34 = new Class[] {
1408                            long.class, long.class, java.lang.String.class,
1409                            java.lang.String.class, long.class, java.util.List.class, int.class,
1410                            com.liferay.portal.service.ServiceContext.class
1411                    };
1412            private static final Class<?>[] _updateFolderParameterTypes35 = new Class[] {
1413                            long.class, java.lang.String.class, java.lang.String.class,
1414                            long.class, java.util.List.class, boolean.class,
1415                            com.liferay.portal.service.ServiceContext.class
1416                    };
1417            private static final Class<?>[] _updateFolderParameterTypes36 = new Class[] {
1418                            long.class, java.lang.String.class, java.lang.String.class,
1419                            long.class, java.util.List.class, int.class,
1420                            com.liferay.portal.service.ServiceContext.class
1421                    };
1422            private static final Class<?>[] _verifyInheritableLockParameterTypes37 = new Class[] {
1423                            long.class, java.lang.String.class
1424                    };
1425    }