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