001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.DLFolderServiceUtil;
025    
026    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil} 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       DLFolderServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil
054     * @generated
055     */
056    public class DLFolderServiceHttp {
057            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
058                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
059                    java.lang.String name, java.lang.String description,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    try {
064                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
065                                            "addFolder", _addFolderParameterTypes0);
066    
067                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
068                                            parentFolderId, name, description, serviceContext);
069    
070                            Object returnObj = null;
071    
072                            try {
073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074                            }
075                            catch (Exception e) {
076                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
078                                    }
079    
080                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
081                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
082                                    }
083    
084                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
085                            }
086    
087                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
088                    }
089                    catch (com.liferay.portal.kernel.exception.SystemException se) {
090                            _log.error(se, se);
091    
092                            throw se;
093                    }
094            }
095    
096            public static com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
097                    HttpPrincipal httpPrincipal, long groupId, long sourceFolderId,
098                    long parentFolderId, java.lang.String name,
099                    java.lang.String description,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException,
103                            java.rmi.RemoteException {
104                    try {
105                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
106                                            "copyFolder", _copyFolderParameterTypes1);
107    
108                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
109                                            sourceFolderId, parentFolderId, name, description,
110                                            serviceContext);
111    
112                            Object returnObj = null;
113    
114                            try {
115                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
116                            }
117                            catch (Exception e) {
118                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
119                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
120                                    }
121    
122                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
123                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
124                                    }
125    
126                                    if (e instanceof java.rmi.RemoteException) {
127                                            throw (java.rmi.RemoteException)e;
128                                    }
129    
130                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
131                            }
132    
133                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
134                    }
135                    catch (com.liferay.portal.kernel.exception.SystemException se) {
136                            _log.error(se, se);
137    
138                            throw se;
139                    }
140            }
141    
142            public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException,
145                            java.rmi.RemoteException {
146                    try {
147                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
148                                            "deleteFolder", _deleteFolderParameterTypes2);
149    
150                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
151    
152                            try {
153                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
154                            }
155                            catch (Exception e) {
156                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
157                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
158                                    }
159    
160                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
161                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
162                                    }
163    
164                                    if (e instanceof java.rmi.RemoteException) {
165                                            throw (java.rmi.RemoteException)e;
166                                    }
167    
168                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
169                            }
170                    }
171                    catch (com.liferay.portal.kernel.exception.SystemException se) {
172                            _log.error(se, se);
173    
174                            throw se;
175                    }
176            }
177    
178            public static void deleteFolder(HttpPrincipal httpPrincipal, long groupId,
179                    long parentFolderId, java.lang.String name)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException,
182                            java.rmi.RemoteException {
183                    try {
184                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
185                                            "deleteFolder", _deleteFolderParameterTypes3);
186    
187                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
188                                            parentFolderId, name);
189    
190                            try {
191                                    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                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
199                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
200                                    }
201    
202                                    if (e instanceof java.rmi.RemoteException) {
203                                            throw (java.rmi.RemoteException)e;
204                                    }
205    
206                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
207                            }
208                    }
209                    catch (com.liferay.portal.kernel.exception.SystemException se) {
210                            _log.error(se, se);
211    
212                            throw se;
213                    }
214            }
215    
216            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
217                    HttpPrincipal httpPrincipal, long groupId,
218                    java.util.List<java.lang.Long> folderIds, int status, int start, int end)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    try {
221                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
222                                            "getFileEntriesAndFileShortcuts",
223                                            _getFileEntriesAndFileShortcutsParameterTypes4);
224    
225                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
226                                            folderIds, status, start, end);
227    
228                            Object returnObj = null;
229    
230                            try {
231                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
232                            }
233                            catch (Exception e) {
234                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
235                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
236                                    }
237    
238                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
239                            }
240    
241                            return (java.util.List<java.lang.Object>)returnObj;
242                    }
243                    catch (com.liferay.portal.kernel.exception.SystemException se) {
244                            _log.error(se, se);
245    
246                            throw se;
247                    }
248            }
249    
250            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
251                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
252                    int start, int end)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    try {
255                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
256                                            "getFileEntriesAndFileShortcuts",
257                                            _getFileEntriesAndFileShortcutsParameterTypes5);
258    
259                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
260                                            folderId, status, start, end);
261    
262                            Object returnObj = null;
263    
264                            try {
265                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
266                            }
267                            catch (Exception e) {
268                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
269                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
270                                    }
271    
272                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
273                            }
274    
275                            return (java.util.List<java.lang.Object>)returnObj;
276                    }
277                    catch (com.liferay.portal.kernel.exception.SystemException se) {
278                            _log.error(se, se);
279    
280                            throw se;
281                    }
282            }
283    
284            public static int getFileEntriesAndFileShortcutsCount(
285                    HttpPrincipal httpPrincipal, long groupId,
286                    java.util.List<java.lang.Long> folderIds, int status)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    try {
289                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
290                                            "getFileEntriesAndFileShortcutsCount",
291                                            _getFileEntriesAndFileShortcutsCountParameterTypes6);
292    
293                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
294                                            folderIds, status);
295    
296                            Object returnObj = null;
297    
298                            try {
299                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
300                            }
301                            catch (Exception e) {
302                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
303                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
304                                    }
305    
306                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
307                            }
308    
309                            return ((Integer)returnObj).intValue();
310                    }
311                    catch (com.liferay.portal.kernel.exception.SystemException se) {
312                            _log.error(se, se);
313    
314                            throw se;
315                    }
316            }
317    
318            public static int getFileEntriesAndFileShortcutsCount(
319                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    try {
322                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
323                                            "getFileEntriesAndFileShortcutsCount",
324                                            _getFileEntriesAndFileShortcutsCountParameterTypes7);
325    
326                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
327                                            folderId, status);
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.SystemException) {
336                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
337                                    }
338    
339                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
340                            }
341    
342                            return ((Integer)returnObj).intValue();
343                    }
344                    catch (com.liferay.portal.kernel.exception.SystemException se) {
345                            _log.error(se, se);
346    
347                            throw se;
348                    }
349            }
350    
351            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
352                    HttpPrincipal httpPrincipal, long folderId)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    try {
356                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
357                                            "getFolder", _getFolderParameterTypes8);
358    
359                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
360    
361                            Object returnObj = null;
362    
363                            try {
364                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
365                            }
366                            catch (Exception e) {
367                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
368                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
369                                    }
370    
371                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
372                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
373                                    }
374    
375                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
376                            }
377    
378                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
379                    }
380                    catch (com.liferay.portal.kernel.exception.SystemException se) {
381                            _log.error(se, se);
382    
383                            throw se;
384                    }
385            }
386    
387            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
388                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
389                    java.lang.String name)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    try {
393                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
394                                            "getFolder", _getFolderParameterTypes9);
395    
396                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
397                                            parentFolderId, name);
398    
399                            Object returnObj = null;
400    
401                            try {
402                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
403                            }
404                            catch (Exception e) {
405                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
406                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
407                                    }
408    
409                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
410                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
411                                    }
412    
413                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
414                            }
415    
416                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
417                    }
418                    catch (com.liferay.portal.kernel.exception.SystemException se) {
419                            _log.error(se, se);
420    
421                            throw se;
422                    }
423            }
424    
425            public static long getFolderId(HttpPrincipal httpPrincipal, long groupId,
426                    long parentFolderId, java.lang.String name)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    try {
430                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
431                                            "getFolderId", _getFolderIdParameterTypes10);
432    
433                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
434                                            parentFolderId, name);
435    
436                            Object returnObj = null;
437    
438                            try {
439                                    returnObj = 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                            return ((Long)returnObj).longValue();
454                    }
455                    catch (com.liferay.portal.kernel.exception.SystemException se) {
456                            _log.error(se, se);
457    
458                            throw se;
459                    }
460            }
461    
462            public static long[] getFolderIds(HttpPrincipal httpPrincipal,
463                    long groupId, long folderId)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    try {
466                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
467                                            "getFolderIds", _getFolderIdsParameterTypes11);
468    
469                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
470                                            folderId);
471    
472                            Object returnObj = null;
473    
474                            try {
475                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
476                            }
477                            catch (Exception e) {
478                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
479                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
480                                    }
481    
482                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
483                            }
484    
485                            return (long[])returnObj;
486                    }
487                    catch (com.liferay.portal.kernel.exception.SystemException se) {
488                            _log.error(se, se);
489    
490                            throw se;
491                    }
492            }
493    
494            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
495                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    try {
498                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
499                                            "getFolders", _getFoldersParameterTypes12);
500    
501                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
502                                            parentFolderId);
503    
504                            Object returnObj = null;
505    
506                            try {
507                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
508                            }
509                            catch (Exception e) {
510                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
511                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
512                                    }
513    
514                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
515                            }
516    
517                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder>)returnObj;
518                    }
519                    catch (com.liferay.portal.kernel.exception.SystemException se) {
520                            _log.error(se, se);
521    
522                            throw se;
523                    }
524            }
525    
526            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
527                    HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
528                    int start, int end)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    try {
531                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
532                                            "getFolders", _getFoldersParameterTypes13);
533    
534                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
535                                            parentFolderId, start, end);
536    
537                            Object returnObj = null;
538    
539                            try {
540                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
541                            }
542                            catch (Exception e) {
543                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
544                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
545                                    }
546    
547                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
548                            }
549    
550                            return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder>)returnObj;
551                    }
552                    catch (com.liferay.portal.kernel.exception.SystemException se) {
553                            _log.error(se, se);
554    
555                            throw se;
556                    }
557            }
558    
559            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
560                    HttpPrincipal httpPrincipal, long groupId,
561                    java.util.List<java.lang.Long> folderIds, int status, int start, int end)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    try {
564                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
565                                            "getFoldersAndFileEntriesAndFileShortcuts",
566                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes14);
567    
568                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
569                                            folderIds, status, start, end);
570    
571                            Object returnObj = null;
572    
573                            try {
574                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
575                            }
576                            catch (Exception e) {
577                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
578                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
579                                    }
580    
581                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
582                            }
583    
584                            return (java.util.List<java.lang.Object>)returnObj;
585                    }
586                    catch (com.liferay.portal.kernel.exception.SystemException se) {
587                            _log.error(se, se);
588    
589                            throw se;
590                    }
591            }
592    
593            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
594                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
595                    int start, int end)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException {
598                    try {
599                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
600                                            "getFoldersAndFileEntriesAndFileShortcuts",
601                                            _getFoldersAndFileEntriesAndFileShortcutsParameterTypes15);
602    
603                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
604                                            folderId, status, start, end);
605    
606                            Object returnObj = null;
607    
608                            try {
609                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
610                            }
611                            catch (Exception e) {
612                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
613                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
614                                    }
615    
616                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
617                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
618                                    }
619    
620                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
621                            }
622    
623                            return (java.util.List<java.lang.Object>)returnObj;
624                    }
625                    catch (com.liferay.portal.kernel.exception.SystemException se) {
626                            _log.error(se, se);
627    
628                            throw se;
629                    }
630            }
631    
632            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
633                    HttpPrincipal httpPrincipal, long groupId,
634                    java.util.List<java.lang.Long> folderIds, int status)
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    try {
637                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
638                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
639                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes16);
640    
641                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
642                                            folderIds, status);
643    
644                            Object returnObj = null;
645    
646                            try {
647                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
648                            }
649                            catch (Exception e) {
650                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
651                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
652                                    }
653    
654                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
655                            }
656    
657                            return ((Integer)returnObj).intValue();
658                    }
659                    catch (com.liferay.portal.kernel.exception.SystemException se) {
660                            _log.error(se, se);
661    
662                            throw se;
663                    }
664            }
665    
666            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
667                    HttpPrincipal httpPrincipal, long groupId, long folderId, int status)
668                    throws com.liferay.portal.kernel.exception.PortalException,
669                            com.liferay.portal.kernel.exception.SystemException {
670                    try {
671                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
672                                            "getFoldersAndFileEntriesAndFileShortcutsCount",
673                                            _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes17);
674    
675                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
676                                            folderId, status);
677    
678                            Object returnObj = null;
679    
680                            try {
681                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
682                            }
683                            catch (Exception e) {
684                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
685                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
686                                    }
687    
688                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
689                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
690                                    }
691    
692                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
693                            }
694    
695                            return ((Integer)returnObj).intValue();
696                    }
697                    catch (com.liferay.portal.kernel.exception.SystemException se) {
698                            _log.error(se, se);
699    
700                            throw se;
701                    }
702            }
703    
704            public static int getFoldersCount(HttpPrincipal httpPrincipal,
705                    long groupId, long parentFolderId)
706                    throws com.liferay.portal.kernel.exception.SystemException {
707                    try {
708                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
709                                            "getFoldersCount", _getFoldersCountParameterTypes18);
710    
711                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
712                                            parentFolderId);
713    
714                            Object returnObj = null;
715    
716                            try {
717                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
718                            }
719                            catch (Exception e) {
720                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
721                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
722                                    }
723    
724                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
725                            }
726    
727                            return ((Integer)returnObj).intValue();
728                    }
729                    catch (com.liferay.portal.kernel.exception.SystemException se) {
730                            _log.error(se, se);
731    
732                            throw se;
733                    }
734            }
735    
736            public static void getSubfolderIds(HttpPrincipal httpPrincipal,
737                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
738                    throws com.liferay.portal.kernel.exception.SystemException {
739                    try {
740                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
741                                            "getSubfolderIds", _getSubfolderIdsParameterTypes19);
742    
743                            MethodHandler methodHandler = new MethodHandler(methodKey,
744                                            folderIds, groupId, folderId);
745    
746                            try {
747                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
748                            }
749                            catch (Exception e) {
750                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
751                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
752                                    }
753    
754                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
755                            }
756                    }
757                    catch (com.liferay.portal.kernel.exception.SystemException se) {
758                            _log.error(se, se);
759    
760                            throw se;
761                    }
762            }
763    
764            public static void getSubfolderIds(HttpPrincipal httpPrincipal,
765                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
766                    boolean recurse)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    try {
769                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
770                                            "getSubfolderIds", _getSubfolderIdsParameterTypes20);
771    
772                            MethodHandler methodHandler = new MethodHandler(methodKey,
773                                            folderIds, groupId, folderId, recurse);
774    
775                            try {
776                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
777                            }
778                            catch (Exception e) {
779                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
780                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
781                                    }
782    
783                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
784                            }
785                    }
786                    catch (com.liferay.portal.kernel.exception.SystemException se) {
787                            _log.error(se, se);
788    
789                            throw se;
790                    }
791            }
792    
793            public static boolean hasInheritableLock(HttpPrincipal httpPrincipal,
794                    long folderId)
795                    throws com.liferay.portal.kernel.exception.PortalException,
796                            com.liferay.portal.kernel.exception.SystemException {
797                    try {
798                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
799                                            "hasInheritableLock", _hasInheritableLockParameterTypes21);
800    
801                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
802    
803                            Object returnObj = null;
804    
805                            try {
806                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
807                            }
808                            catch (Exception e) {
809                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
810                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
811                                    }
812    
813                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
814                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
815                                    }
816    
817                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
818                            }
819    
820                            return ((Boolean)returnObj).booleanValue();
821                    }
822                    catch (com.liferay.portal.kernel.exception.SystemException se) {
823                            _log.error(se, se);
824    
825                            throw se;
826                    }
827            }
828    
829            public static com.liferay.portal.model.Lock lockFolder(
830                    HttpPrincipal httpPrincipal, long folderId)
831                    throws com.liferay.portal.kernel.exception.PortalException,
832                            com.liferay.portal.kernel.exception.SystemException,
833                            java.rmi.RemoteException {
834                    try {
835                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
836                                            "lockFolder", _lockFolderParameterTypes22);
837    
838                            MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
839    
840                            Object returnObj = null;
841    
842                            try {
843                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
844                            }
845                            catch (Exception e) {
846                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
847                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
848                                    }
849    
850                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
851                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
852                                    }
853    
854                                    if (e instanceof java.rmi.RemoteException) {
855                                            throw (java.rmi.RemoteException)e;
856                                    }
857    
858                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
859                            }
860    
861                            return (com.liferay.portal.model.Lock)returnObj;
862                    }
863                    catch (com.liferay.portal.kernel.exception.SystemException se) {
864                            _log.error(se, se);
865    
866                            throw se;
867                    }
868            }
869    
870            public static com.liferay.portal.model.Lock lockFolder(
871                    HttpPrincipal httpPrincipal, long folderId, java.lang.String owner,
872                    boolean inheritable, long expirationTime)
873                    throws com.liferay.portal.kernel.exception.PortalException,
874                            com.liferay.portal.kernel.exception.SystemException,
875                            java.rmi.RemoteException {
876                    try {
877                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
878                                            "lockFolder", _lockFolderParameterTypes23);
879    
880                            MethodHandler methodHandler = new MethodHandler(methodKey,
881                                            folderId, owner, inheritable, expirationTime);
882    
883                            Object returnObj = null;
884    
885                            try {
886                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
887                            }
888                            catch (Exception e) {
889                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
890                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
891                                    }
892    
893                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
894                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
895                                    }
896    
897                                    if (e instanceof java.rmi.RemoteException) {
898                                            throw (java.rmi.RemoteException)e;
899                                    }
900    
901                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
902                            }
903    
904                            return (com.liferay.portal.model.Lock)returnObj;
905                    }
906                    catch (com.liferay.portal.kernel.exception.SystemException se) {
907                            _log.error(se, se);
908    
909                            throw se;
910                    }
911            }
912    
913            public static com.liferay.portal.model.Lock refreshFolderLock(
914                    HttpPrincipal httpPrincipal, java.lang.String lockUuid,
915                    long expirationTime)
916                    throws com.liferay.portal.kernel.exception.PortalException,
917                            com.liferay.portal.kernel.exception.SystemException {
918                    try {
919                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
920                                            "refreshFolderLock", _refreshFolderLockParameterTypes24);
921    
922                            MethodHandler methodHandler = new MethodHandler(methodKey,
923                                            lockUuid, expirationTime);
924    
925                            Object returnObj = null;
926    
927                            try {
928                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
929                            }
930                            catch (Exception e) {
931                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
932                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
933                                    }
934    
935                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
936                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
937                                    }
938    
939                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
940                            }
941    
942                            return (com.liferay.portal.model.Lock)returnObj;
943                    }
944                    catch (com.liferay.portal.kernel.exception.SystemException se) {
945                            _log.error(se, se);
946    
947                            throw se;
948                    }
949            }
950    
951            public static void unlockFolder(HttpPrincipal httpPrincipal, long groupId,
952                    long folderId, java.lang.String lockUuid)
953                    throws com.liferay.portal.kernel.exception.PortalException,
954                            com.liferay.portal.kernel.exception.SystemException {
955                    try {
956                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
957                                            "unlockFolder", _unlockFolderParameterTypes25);
958    
959                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
960                                            folderId, lockUuid);
961    
962                            try {
963                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
964                            }
965                            catch (Exception e) {
966                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
967                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
968                                    }
969    
970                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
971                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
972                                    }
973    
974                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
975                            }
976                    }
977                    catch (com.liferay.portal.kernel.exception.SystemException se) {
978                            _log.error(se, se);
979    
980                            throw se;
981                    }
982            }
983    
984            public static void unlockFolder(HttpPrincipal httpPrincipal, long groupId,
985                    long parentFolderId, java.lang.String name, java.lang.String lockUuid)
986                    throws com.liferay.portal.kernel.exception.PortalException,
987                            com.liferay.portal.kernel.exception.SystemException {
988                    try {
989                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
990                                            "unlockFolder", _unlockFolderParameterTypes26);
991    
992                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
993                                            parentFolderId, name, lockUuid);
994    
995                            try {
996                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
997                            }
998                            catch (Exception e) {
999                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1000                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1001                                    }
1002    
1003                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1004                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1005                                    }
1006    
1007                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1008                            }
1009                    }
1010                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1011                            _log.error(se, se);
1012    
1013                            throw se;
1014                    }
1015            }
1016    
1017            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
1018                    HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
1019                    java.lang.String name, java.lang.String description,
1020                    com.liferay.portal.service.ServiceContext serviceContext)
1021                    throws com.liferay.portal.kernel.exception.PortalException,
1022                            com.liferay.portal.kernel.exception.SystemException,
1023                            java.rmi.RemoteException {
1024                    try {
1025                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
1026                                            "updateFolder", _updateFolderParameterTypes27);
1027    
1028                            MethodHandler methodHandler = new MethodHandler(methodKey,
1029                                            folderId, parentFolderId, name, description, serviceContext);
1030    
1031                            Object returnObj = null;
1032    
1033                            try {
1034                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1035                            }
1036                            catch (Exception e) {
1037                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1038                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1039                                    }
1040    
1041                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1042                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1043                                    }
1044    
1045                                    if (e instanceof java.rmi.RemoteException) {
1046                                            throw (java.rmi.RemoteException)e;
1047                                    }
1048    
1049                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1050                            }
1051    
1052                            return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
1053                    }
1054                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1055                            _log.error(se, se);
1056    
1057                            throw se;
1058                    }
1059            }
1060    
1061            public static boolean verifyInheritableLock(HttpPrincipal httpPrincipal,
1062                    long folderId, java.lang.String lockUuid)
1063                    throws com.liferay.portal.kernel.exception.PortalException,
1064                            com.liferay.portal.kernel.exception.SystemException {
1065                    try {
1066                            MethodKey methodKey = new MethodKey(DLFolderServiceUtil.class.getName(),
1067                                            "verifyInheritableLock",
1068                                            _verifyInheritableLockParameterTypes28);
1069    
1070                            MethodHandler methodHandler = new MethodHandler(methodKey,
1071                                            folderId, lockUuid);
1072    
1073                            Object returnObj = null;
1074    
1075                            try {
1076                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1077                            }
1078                            catch (Exception e) {
1079                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1080                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1081                                    }
1082    
1083                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1084                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1085                                    }
1086    
1087                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1088                            }
1089    
1090                            return ((Boolean)returnObj).booleanValue();
1091                    }
1092                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1093                            _log.error(se, se);
1094    
1095                            throw se;
1096                    }
1097            }
1098    
1099            private static Log _log = LogFactoryUtil.getLog(DLFolderServiceHttp.class);
1100            private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
1101                            long.class, long.class, java.lang.String.class,
1102                            java.lang.String.class,
1103                            com.liferay.portal.service.ServiceContext.class
1104                    };
1105            private static final Class<?>[] _copyFolderParameterTypes1 = new Class[] {
1106                            long.class, long.class, long.class, java.lang.String.class,
1107                            java.lang.String.class,
1108                            com.liferay.portal.service.ServiceContext.class
1109                    };
1110            private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
1111                            long.class
1112                    };
1113            private static final Class<?>[] _deleteFolderParameterTypes3 = new Class[] {
1114                            long.class, long.class, java.lang.String.class
1115                    };
1116            private static final Class<?>[] _getFileEntriesAndFileShortcutsParameterTypes4 =
1117                    new Class[] {
1118                            long.class, java.util.List.class, int.class, int.class, int.class
1119                    };
1120            private static final Class<?>[] _getFileEntriesAndFileShortcutsParameterTypes5 =
1121                    new Class[] { long.class, long.class, int.class, int.class, int.class };
1122            private static final Class<?>[] _getFileEntriesAndFileShortcutsCountParameterTypes6 =
1123                    new Class[] { long.class, java.util.List.class, int.class };
1124            private static final Class<?>[] _getFileEntriesAndFileShortcutsCountParameterTypes7 =
1125                    new Class[] { long.class, long.class, int.class };
1126            private static final Class<?>[] _getFolderParameterTypes8 = new Class[] {
1127                            long.class
1128                    };
1129            private static final Class<?>[] _getFolderParameterTypes9 = new Class[] {
1130                            long.class, long.class, java.lang.String.class
1131                    };
1132            private static final Class<?>[] _getFolderIdParameterTypes10 = new Class[] {
1133                            long.class, long.class, java.lang.String.class
1134                    };
1135            private static final Class<?>[] _getFolderIdsParameterTypes11 = new Class[] {
1136                            long.class, long.class
1137                    };
1138            private static final Class<?>[] _getFoldersParameterTypes12 = new Class[] {
1139                            long.class, long.class
1140                    };
1141            private static final Class<?>[] _getFoldersParameterTypes13 = new Class[] {
1142                            long.class, long.class, int.class, int.class
1143                    };
1144            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes14 =
1145                    new Class[] {
1146                            long.class, java.util.List.class, int.class, int.class, int.class
1147                    };
1148            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsParameterTypes15 =
1149                    new Class[] { long.class, long.class, int.class, int.class, int.class };
1150            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes16 =
1151                    new Class[] { long.class, java.util.List.class, int.class };
1152            private static final Class<?>[] _getFoldersAndFileEntriesAndFileShortcutsCountParameterTypes17 =
1153                    new Class[] { long.class, long.class, int.class };
1154            private static final Class<?>[] _getFoldersCountParameterTypes18 = new Class[] {
1155                            long.class, long.class
1156                    };
1157            private static final Class<?>[] _getSubfolderIdsParameterTypes19 = new Class[] {
1158                            java.util.List.class, long.class, long.class
1159                    };
1160            private static final Class<?>[] _getSubfolderIdsParameterTypes20 = new Class[] {
1161                            java.util.List.class, long.class, long.class, boolean.class
1162                    };
1163            private static final Class<?>[] _hasInheritableLockParameterTypes21 = new Class[] {
1164                            long.class
1165                    };
1166            private static final Class<?>[] _lockFolderParameterTypes22 = new Class[] {
1167                            long.class
1168                    };
1169            private static final Class<?>[] _lockFolderParameterTypes23 = new Class[] {
1170                            long.class, java.lang.String.class, boolean.class, long.class
1171                    };
1172            private static final Class<?>[] _refreshFolderLockParameterTypes24 = new Class[] {
1173                            java.lang.String.class, long.class
1174                    };
1175            private static final Class<?>[] _unlockFolderParameterTypes25 = new Class[] {
1176                            long.class, long.class, java.lang.String.class
1177                    };
1178            private static final Class<?>[] _unlockFolderParameterTypes26 = new Class[] {
1179                            long.class, long.class, java.lang.String.class,
1180                            java.lang.String.class
1181                    };
1182            private static final Class<?>[] _updateFolderParameterTypes27 = new Class[] {
1183                            long.class, long.class, java.lang.String.class,
1184                            java.lang.String.class,
1185                            com.liferay.portal.service.ServiceContext.class
1186                    };
1187            private static final Class<?>[] _verifyInheritableLockParameterTypes28 = new Class[] {
1188                            long.class, java.lang.String.class
1189                    };
1190    }