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