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