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