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