1
22
23 package com.liferay.portlet.documentlibrary.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.kernel.util.BooleanWrapper;
28 import com.liferay.portal.kernel.util.LongWrapper;
29 import com.liferay.portal.kernel.util.MethodWrapper;
30 import com.liferay.portal.kernel.util.NullWrapper;
31 import com.liferay.portal.security.auth.HttpPrincipal;
32 import com.liferay.portal.service.http.TunnelUtil;
33
34 import com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil;
35
36
75 public class DLFolderServiceHttp {
76 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
77 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
78 java.lang.String name, java.lang.String description,
79 boolean addCommunityPermissions, boolean addGuestPermissions)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 try {
83 Object paramObj0 = new LongWrapper(groupId);
84
85 Object paramObj1 = new LongWrapper(parentFolderId);
86
87 Object paramObj2 = name;
88
89 if (name == null) {
90 paramObj2 = new NullWrapper("java.lang.String");
91 }
92
93 Object paramObj3 = description;
94
95 if (description == null) {
96 paramObj3 = new NullWrapper("java.lang.String");
97 }
98
99 Object paramObj4 = new BooleanWrapper(addCommunityPermissions);
100
101 Object paramObj5 = new BooleanWrapper(addGuestPermissions);
102
103 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
104 "addFolder",
105 new Object[] {
106 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
107 paramObj5
108 });
109
110 Object returnObj = null;
111
112 try {
113 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
114 }
115 catch (Exception e) {
116 if (e instanceof com.liferay.portal.PortalException) {
117 throw (com.liferay.portal.PortalException)e;
118 }
119
120 if (e instanceof com.liferay.portal.SystemException) {
121 throw (com.liferay.portal.SystemException)e;
122 }
123
124 throw new com.liferay.portal.SystemException(e);
125 }
126
127 return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
128 }
129 catch (com.liferay.portal.SystemException se) {
130 _log.error(se, se);
131
132 throw se;
133 }
134 }
135
136 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
137 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
138 java.lang.String name, java.lang.String description,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 try {
144 Object paramObj0 = new LongWrapper(groupId);
145
146 Object paramObj1 = new LongWrapper(parentFolderId);
147
148 Object paramObj2 = name;
149
150 if (name == null) {
151 paramObj2 = new NullWrapper("java.lang.String");
152 }
153
154 Object paramObj3 = description;
155
156 if (description == null) {
157 paramObj3 = new NullWrapper("java.lang.String");
158 }
159
160 Object paramObj4 = communityPermissions;
161
162 if (communityPermissions == null) {
163 paramObj4 = new NullWrapper("[Ljava.lang.String;");
164 }
165
166 Object paramObj5 = guestPermissions;
167
168 if (guestPermissions == null) {
169 paramObj5 = new NullWrapper("[Ljava.lang.String;");
170 }
171
172 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
173 "addFolder",
174 new Object[] {
175 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
176 paramObj5
177 });
178
179 Object returnObj = null;
180
181 try {
182 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
183 }
184 catch (Exception e) {
185 if (e instanceof com.liferay.portal.PortalException) {
186 throw (com.liferay.portal.PortalException)e;
187 }
188
189 if (e instanceof com.liferay.portal.SystemException) {
190 throw (com.liferay.portal.SystemException)e;
191 }
192
193 throw new com.liferay.portal.SystemException(e);
194 }
195
196 return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
197 }
198 catch (com.liferay.portal.SystemException se) {
199 _log.error(se, se);
200
201 throw se;
202 }
203 }
204
205 public static com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
206 HttpPrincipal httpPrincipal, long groupId, long sourceFolderId,
207 long parentFolderId, java.lang.String name,
208 java.lang.String description, boolean addCommunityPermissions,
209 boolean addGuestPermissions)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException, java.rmi.RemoteException {
212 try {
213 Object paramObj0 = new LongWrapper(groupId);
214
215 Object paramObj1 = new LongWrapper(sourceFolderId);
216
217 Object paramObj2 = new LongWrapper(parentFolderId);
218
219 Object paramObj3 = name;
220
221 if (name == null) {
222 paramObj3 = new NullWrapper("java.lang.String");
223 }
224
225 Object paramObj4 = description;
226
227 if (description == null) {
228 paramObj4 = new NullWrapper("java.lang.String");
229 }
230
231 Object paramObj5 = new BooleanWrapper(addCommunityPermissions);
232
233 Object paramObj6 = new BooleanWrapper(addGuestPermissions);
234
235 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
236 "copyFolder",
237 new Object[] {
238 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
239 paramObj5, paramObj6
240 });
241
242 Object returnObj = null;
243
244 try {
245 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
246 }
247 catch (Exception e) {
248 if (e instanceof com.liferay.portal.PortalException) {
249 throw (com.liferay.portal.PortalException)e;
250 }
251
252 if (e instanceof com.liferay.portal.SystemException) {
253 throw (com.liferay.portal.SystemException)e;
254 }
255
256 if (e instanceof java.rmi.RemoteException) {
257 throw (java.rmi.RemoteException)e;
258 }
259
260 throw new com.liferay.portal.SystemException(e);
261 }
262
263 return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
264 }
265 catch (com.liferay.portal.SystemException se) {
266 _log.error(se, se);
267
268 throw se;
269 }
270 }
271
272 public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
273 throws com.liferay.portal.PortalException,
274 com.liferay.portal.SystemException, java.rmi.RemoteException {
275 try {
276 Object paramObj0 = new LongWrapper(folderId);
277
278 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
279 "deleteFolder", new Object[] { paramObj0 });
280
281 try {
282 TunnelUtil.invoke(httpPrincipal, methodWrapper);
283 }
284 catch (Exception e) {
285 if (e instanceof com.liferay.portal.PortalException) {
286 throw (com.liferay.portal.PortalException)e;
287 }
288
289 if (e instanceof com.liferay.portal.SystemException) {
290 throw (com.liferay.portal.SystemException)e;
291 }
292
293 if (e instanceof java.rmi.RemoteException) {
294 throw (java.rmi.RemoteException)e;
295 }
296
297 throw new com.liferay.portal.SystemException(e);
298 }
299 }
300 catch (com.liferay.portal.SystemException se) {
301 _log.error(se, se);
302
303 throw se;
304 }
305 }
306
307 public static void deleteFolder(HttpPrincipal httpPrincipal, long groupId,
308 long parentFolderId, java.lang.String name)
309 throws com.liferay.portal.PortalException,
310 com.liferay.portal.SystemException, java.rmi.RemoteException {
311 try {
312 Object paramObj0 = new LongWrapper(groupId);
313
314 Object paramObj1 = new LongWrapper(parentFolderId);
315
316 Object paramObj2 = name;
317
318 if (name == null) {
319 paramObj2 = new NullWrapper("java.lang.String");
320 }
321
322 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
323 "deleteFolder",
324 new Object[] { paramObj0, paramObj1, paramObj2 });
325
326 try {
327 TunnelUtil.invoke(httpPrincipal, methodWrapper);
328 }
329 catch (Exception e) {
330 if (e instanceof com.liferay.portal.PortalException) {
331 throw (com.liferay.portal.PortalException)e;
332 }
333
334 if (e instanceof com.liferay.portal.SystemException) {
335 throw (com.liferay.portal.SystemException)e;
336 }
337
338 if (e instanceof java.rmi.RemoteException) {
339 throw (java.rmi.RemoteException)e;
340 }
341
342 throw new com.liferay.portal.SystemException(e);
343 }
344 }
345 catch (com.liferay.portal.SystemException se) {
346 _log.error(se, se);
347
348 throw se;
349 }
350 }
351
352 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
353 HttpPrincipal httpPrincipal, long folderId)
354 throws com.liferay.portal.PortalException,
355 com.liferay.portal.SystemException {
356 try {
357 Object paramObj0 = new LongWrapper(folderId);
358
359 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
360 "getFolder", new Object[] { paramObj0 });
361
362 Object returnObj = null;
363
364 try {
365 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
366 }
367 catch (Exception e) {
368 if (e instanceof com.liferay.portal.PortalException) {
369 throw (com.liferay.portal.PortalException)e;
370 }
371
372 if (e instanceof com.liferay.portal.SystemException) {
373 throw (com.liferay.portal.SystemException)e;
374 }
375
376 throw new com.liferay.portal.SystemException(e);
377 }
378
379 return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
380 }
381 catch (com.liferay.portal.SystemException se) {
382 _log.error(se, se);
383
384 throw se;
385 }
386 }
387
388 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
389 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
390 java.lang.String name)
391 throws com.liferay.portal.PortalException,
392 com.liferay.portal.SystemException {
393 try {
394 Object paramObj0 = new LongWrapper(groupId);
395
396 Object paramObj1 = new LongWrapper(parentFolderId);
397
398 Object paramObj2 = name;
399
400 if (name == null) {
401 paramObj2 = new NullWrapper("java.lang.String");
402 }
403
404 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
405 "getFolder",
406 new Object[] { paramObj0, paramObj1, paramObj2 });
407
408 Object returnObj = null;
409
410 try {
411 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
412 }
413 catch (Exception e) {
414 if (e instanceof com.liferay.portal.PortalException) {
415 throw (com.liferay.portal.PortalException)e;
416 }
417
418 if (e instanceof com.liferay.portal.SystemException) {
419 throw (com.liferay.portal.SystemException)e;
420 }
421
422 throw new com.liferay.portal.SystemException(e);
423 }
424
425 return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
426 }
427 catch (com.liferay.portal.SystemException se) {
428 _log.error(se, se);
429
430 throw se;
431 }
432 }
433
434 public static long getFolderId(HttpPrincipal httpPrincipal, long groupId,
435 long parentFolderId, java.lang.String name)
436 throws com.liferay.portal.PortalException,
437 com.liferay.portal.SystemException {
438 try {
439 Object paramObj0 = new LongWrapper(groupId);
440
441 Object paramObj1 = new LongWrapper(parentFolderId);
442
443 Object paramObj2 = name;
444
445 if (name == null) {
446 paramObj2 = new NullWrapper("java.lang.String");
447 }
448
449 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
450 "getFolderId",
451 new Object[] { paramObj0, paramObj1, paramObj2 });
452
453 Object returnObj = null;
454
455 try {
456 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
457 }
458 catch (Exception e) {
459 if (e instanceof com.liferay.portal.PortalException) {
460 throw (com.liferay.portal.PortalException)e;
461 }
462
463 if (e instanceof com.liferay.portal.SystemException) {
464 throw (com.liferay.portal.SystemException)e;
465 }
466
467 throw new com.liferay.portal.SystemException(e);
468 }
469
470 return ((Long)returnObj).longValue();
471 }
472 catch (com.liferay.portal.SystemException se) {
473 _log.error(se, se);
474
475 throw se;
476 }
477 }
478
479 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
480 HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
481 throws com.liferay.portal.PortalException,
482 com.liferay.portal.SystemException {
483 try {
484 Object paramObj0 = new LongWrapper(groupId);
485
486 Object paramObj1 = new LongWrapper(parentFolderId);
487
488 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
489 "getFolders", new Object[] { paramObj0, paramObj1 });
490
491 Object returnObj = null;
492
493 try {
494 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
495 }
496 catch (Exception e) {
497 if (e instanceof com.liferay.portal.PortalException) {
498 throw (com.liferay.portal.PortalException)e;
499 }
500
501 if (e instanceof com.liferay.portal.SystemException) {
502 throw (com.liferay.portal.SystemException)e;
503 }
504
505 throw new com.liferay.portal.SystemException(e);
506 }
507
508 return (java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder>)returnObj;
509 }
510 catch (com.liferay.portal.SystemException se) {
511 _log.error(se, se);
512
513 throw se;
514 }
515 }
516
517 public static boolean hasInheritableLock(HttpPrincipal httpPrincipal,
518 long folderId)
519 throws com.liferay.portal.SystemException,
520 com.liferay.portal.PortalException {
521 try {
522 Object paramObj0 = new LongWrapper(folderId);
523
524 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
525 "hasInheritableLock", new Object[] { paramObj0 });
526
527 Object returnObj = null;
528
529 try {
530 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
531 }
532 catch (Exception e) {
533 if (e instanceof com.liferay.portal.PortalException) {
534 throw (com.liferay.portal.PortalException)e;
535 }
536
537 throw new com.liferay.portal.SystemException(e);
538 }
539
540 return ((Boolean)returnObj).booleanValue();
541 }
542 catch (com.liferay.portal.SystemException se) {
543 _log.error(se, se);
544
545 throw se;
546 }
547 }
548
549 public static com.liferay.lock.model.Lock lockFolder(
550 HttpPrincipal httpPrincipal, long folderId)
551 throws com.liferay.portal.PortalException,
552 com.liferay.portal.SystemException, java.rmi.RemoteException {
553 try {
554 Object paramObj0 = new LongWrapper(folderId);
555
556 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
557 "lockFolder", new Object[] { paramObj0 });
558
559 Object returnObj = null;
560
561 try {
562 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
563 }
564 catch (Exception e) {
565 if (e instanceof com.liferay.portal.PortalException) {
566 throw (com.liferay.portal.PortalException)e;
567 }
568
569 if (e instanceof com.liferay.portal.SystemException) {
570 throw (com.liferay.portal.SystemException)e;
571 }
572
573 if (e instanceof java.rmi.RemoteException) {
574 throw (java.rmi.RemoteException)e;
575 }
576
577 throw new com.liferay.portal.SystemException(e);
578 }
579
580 return (com.liferay.lock.model.Lock)returnObj;
581 }
582 catch (com.liferay.portal.SystemException se) {
583 _log.error(se, se);
584
585 throw se;
586 }
587 }
588
589 public static com.liferay.lock.model.Lock lockFolder(
590 HttpPrincipal httpPrincipal, long folderId, java.lang.String owner,
591 boolean inheritable, long expirationTime)
592 throws com.liferay.portal.PortalException,
593 com.liferay.portal.SystemException, java.rmi.RemoteException {
594 try {
595 Object paramObj0 = new LongWrapper(folderId);
596
597 Object paramObj1 = owner;
598
599 if (owner == null) {
600 paramObj1 = new NullWrapper("java.lang.String");
601 }
602
603 Object paramObj2 = new BooleanWrapper(inheritable);
604
605 Object paramObj3 = new LongWrapper(expirationTime);
606
607 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
608 "lockFolder",
609 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
610
611 Object returnObj = null;
612
613 try {
614 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
615 }
616 catch (Exception e) {
617 if (e instanceof com.liferay.portal.PortalException) {
618 throw (com.liferay.portal.PortalException)e;
619 }
620
621 if (e instanceof com.liferay.portal.SystemException) {
622 throw (com.liferay.portal.SystemException)e;
623 }
624
625 if (e instanceof java.rmi.RemoteException) {
626 throw (java.rmi.RemoteException)e;
627 }
628
629 throw new com.liferay.portal.SystemException(e);
630 }
631
632 return (com.liferay.lock.model.Lock)returnObj;
633 }
634 catch (com.liferay.portal.SystemException se) {
635 _log.error(se, se);
636
637 throw se;
638 }
639 }
640
641 public static com.liferay.lock.model.Lock refreshFolderLock(
642 HttpPrincipal httpPrincipal, java.lang.String lockUuid,
643 long expirationTime)
644 throws com.liferay.portal.SystemException,
645 com.liferay.portal.PortalException {
646 try {
647 Object paramObj0 = lockUuid;
648
649 if (lockUuid == null) {
650 paramObj0 = new NullWrapper("java.lang.String");
651 }
652
653 Object paramObj1 = new LongWrapper(expirationTime);
654
655 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
656 "refreshFolderLock", new Object[] { paramObj0, paramObj1 });
657
658 Object returnObj = null;
659
660 try {
661 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
662 }
663 catch (Exception e) {
664 if (e instanceof com.liferay.portal.PortalException) {
665 throw (com.liferay.portal.PortalException)e;
666 }
667
668 throw new com.liferay.portal.SystemException(e);
669 }
670
671 return (com.liferay.lock.model.Lock)returnObj;
672 }
673 catch (com.liferay.portal.SystemException se) {
674 _log.error(se, se);
675
676 throw se;
677 }
678 }
679
680 public static void reIndexSearch(HttpPrincipal httpPrincipal, long companyId)
681 throws com.liferay.portal.PortalException,
682 com.liferay.portal.SystemException {
683 try {
684 Object paramObj0 = new LongWrapper(companyId);
685
686 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
687 "reIndexSearch", new Object[] { paramObj0 });
688
689 try {
690 TunnelUtil.invoke(httpPrincipal, methodWrapper);
691 }
692 catch (Exception e) {
693 if (e instanceof com.liferay.portal.PortalException) {
694 throw (com.liferay.portal.PortalException)e;
695 }
696
697 if (e instanceof com.liferay.portal.SystemException) {
698 throw (com.liferay.portal.SystemException)e;
699 }
700
701 throw new com.liferay.portal.SystemException(e);
702 }
703 }
704 catch (com.liferay.portal.SystemException se) {
705 _log.error(se, se);
706
707 throw se;
708 }
709 }
710
711 public static void unlockFolder(HttpPrincipal httpPrincipal, long folderId,
712 java.lang.String lockUuid)
713 throws com.liferay.portal.SystemException,
714 com.liferay.portal.PortalException {
715 try {
716 Object paramObj0 = new LongWrapper(folderId);
717
718 Object paramObj1 = lockUuid;
719
720 if (lockUuid == null) {
721 paramObj1 = new NullWrapper("java.lang.String");
722 }
723
724 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
725 "unlockFolder", new Object[] { paramObj0, paramObj1 });
726
727 try {
728 TunnelUtil.invoke(httpPrincipal, methodWrapper);
729 }
730 catch (Exception e) {
731 if (e instanceof com.liferay.portal.PortalException) {
732 throw (com.liferay.portal.PortalException)e;
733 }
734
735 throw new com.liferay.portal.SystemException(e);
736 }
737 }
738 catch (com.liferay.portal.SystemException se) {
739 _log.error(se, se);
740
741 throw se;
742 }
743 }
744
745 public static void unlockFolder(HttpPrincipal httpPrincipal, long groupId,
746 long parentFolderId, java.lang.String name, java.lang.String lockUuid)
747 throws com.liferay.portal.PortalException,
748 com.liferay.portal.SystemException {
749 try {
750 Object paramObj0 = new LongWrapper(groupId);
751
752 Object paramObj1 = new LongWrapper(parentFolderId);
753
754 Object paramObj2 = name;
755
756 if (name == null) {
757 paramObj2 = new NullWrapper("java.lang.String");
758 }
759
760 Object paramObj3 = lockUuid;
761
762 if (lockUuid == null) {
763 paramObj3 = new NullWrapper("java.lang.String");
764 }
765
766 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
767 "unlockFolder",
768 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
769
770 try {
771 TunnelUtil.invoke(httpPrincipal, methodWrapper);
772 }
773 catch (Exception e) {
774 if (e instanceof com.liferay.portal.PortalException) {
775 throw (com.liferay.portal.PortalException)e;
776 }
777
778 if (e instanceof com.liferay.portal.SystemException) {
779 throw (com.liferay.portal.SystemException)e;
780 }
781
782 throw new com.liferay.portal.SystemException(e);
783 }
784 }
785 catch (com.liferay.portal.SystemException se) {
786 _log.error(se, se);
787
788 throw se;
789 }
790 }
791
792 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
793 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
794 java.lang.String name, java.lang.String description)
795 throws com.liferay.portal.PortalException,
796 com.liferay.portal.SystemException, java.rmi.RemoteException {
797 try {
798 Object paramObj0 = new LongWrapper(folderId);
799
800 Object paramObj1 = new LongWrapper(parentFolderId);
801
802 Object paramObj2 = name;
803
804 if (name == null) {
805 paramObj2 = new NullWrapper("java.lang.String");
806 }
807
808 Object paramObj3 = description;
809
810 if (description == null) {
811 paramObj3 = new NullWrapper("java.lang.String");
812 }
813
814 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
815 "updateFolder",
816 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
817
818 Object returnObj = null;
819
820 try {
821 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
822 }
823 catch (Exception e) {
824 if (e instanceof com.liferay.portal.PortalException) {
825 throw (com.liferay.portal.PortalException)e;
826 }
827
828 if (e instanceof com.liferay.portal.SystemException) {
829 throw (com.liferay.portal.SystemException)e;
830 }
831
832 if (e instanceof java.rmi.RemoteException) {
833 throw (java.rmi.RemoteException)e;
834 }
835
836 throw new com.liferay.portal.SystemException(e);
837 }
838
839 return (com.liferay.portlet.documentlibrary.model.DLFolder)returnObj;
840 }
841 catch (com.liferay.portal.SystemException se) {
842 _log.error(se, se);
843
844 throw se;
845 }
846 }
847
848 public static boolean verifyInheritableLock(HttpPrincipal httpPrincipal,
849 long folderId, java.lang.String lockUuid)
850 throws com.liferay.portal.SystemException,
851 com.liferay.portal.PortalException {
852 try {
853 Object paramObj0 = new LongWrapper(folderId);
854
855 Object paramObj1 = lockUuid;
856
857 if (lockUuid == null) {
858 paramObj1 = new NullWrapper("java.lang.String");
859 }
860
861 MethodWrapper methodWrapper = new MethodWrapper(DLFolderServiceUtil.class.getName(),
862 "verifyInheritableLock",
863 new Object[] { paramObj0, paramObj1 });
864
865 Object returnObj = null;
866
867 try {
868 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
869 }
870 catch (Exception e) {
871 if (e instanceof com.liferay.portal.PortalException) {
872 throw (com.liferay.portal.PortalException)e;
873 }
874
875 throw new com.liferay.portal.SystemException(e);
876 }
877
878 return ((Boolean)returnObj).booleanValue();
879 }
880 catch (com.liferay.portal.SystemException se) {
881 _log.error(se, se);
882
883 throw se;
884 }
885 }
886
887 private static Log _log = LogFactoryUtil.getLog(DLFolderServiceHttp.class);
888 }