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