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