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.UserServiceUtil;
34
35
74 public class UserServiceHttp {
75 public static void addGroupUsers(HttpPrincipal httpPrincipal, long groupId,
76 long[] userIds)
77 throws com.liferay.portal.SystemException,
78 com.liferay.portal.PortalException {
79 try {
80 Object paramObj0 = new LongWrapper(groupId);
81
82 Object paramObj1 = userIds;
83
84 if (userIds == null) {
85 paramObj1 = new NullWrapper("[J");
86 }
87
88 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
89 "addGroupUsers", new Object[] { paramObj0, paramObj1 });
90
91 try {
92 TunnelUtil.invoke(httpPrincipal, methodWrapper);
93 }
94 catch (Exception e) {
95 if (e instanceof com.liferay.portal.SystemException) {
96 throw (com.liferay.portal.SystemException)e;
97 }
98
99 if (e instanceof com.liferay.portal.PortalException) {
100 throw (com.liferay.portal.PortalException)e;
101 }
102
103 throw new com.liferay.portal.SystemException(e);
104 }
105 }
106 catch (com.liferay.portal.SystemException se) {
107 _log.error(se, se);
108
109 throw se;
110 }
111 }
112
113 public static void addOrganizationUsers(HttpPrincipal httpPrincipal,
114 long organizationId, long[] userIds)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portal.PortalException {
117 try {
118 Object paramObj0 = new LongWrapper(organizationId);
119
120 Object paramObj1 = userIds;
121
122 if (userIds == null) {
123 paramObj1 = new NullWrapper("[J");
124 }
125
126 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
127 "addOrganizationUsers",
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.SystemException) {
135 throw (com.liferay.portal.SystemException)e;
136 }
137
138 if (e instanceof com.liferay.portal.PortalException) {
139 throw (com.liferay.portal.PortalException)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 void addPasswordPolicyUsers(HttpPrincipal httpPrincipal,
153 long passwordPolicyId, long[] userIds)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portal.PortalException {
156 try {
157 Object paramObj0 = new LongWrapper(passwordPolicyId);
158
159 Object paramObj1 = userIds;
160
161 if (userIds == null) {
162 paramObj1 = new NullWrapper("[J");
163 }
164
165 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
166 "addPasswordPolicyUsers",
167 new Object[] { paramObj0, paramObj1 });
168
169 try {
170 TunnelUtil.invoke(httpPrincipal, methodWrapper);
171 }
172 catch (Exception e) {
173 if (e instanceof com.liferay.portal.SystemException) {
174 throw (com.liferay.portal.SystemException)e;
175 }
176
177 if (e instanceof com.liferay.portal.PortalException) {
178 throw (com.liferay.portal.PortalException)e;
179 }
180
181 throw new com.liferay.portal.SystemException(e);
182 }
183 }
184 catch (com.liferay.portal.SystemException se) {
185 _log.error(se, se);
186
187 throw se;
188 }
189 }
190
191 public static void addRoleUsers(HttpPrincipal httpPrincipal, long roleId,
192 long[] userIds)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portal.PortalException {
195 try {
196 Object paramObj0 = new LongWrapper(roleId);
197
198 Object paramObj1 = userIds;
199
200 if (userIds == null) {
201 paramObj1 = new NullWrapper("[J");
202 }
203
204 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
205 "addRoleUsers", new Object[] { paramObj0, paramObj1 });
206
207 try {
208 TunnelUtil.invoke(httpPrincipal, methodWrapper);
209 }
210 catch (Exception e) {
211 if (e instanceof com.liferay.portal.SystemException) {
212 throw (com.liferay.portal.SystemException)e;
213 }
214
215 if (e instanceof com.liferay.portal.PortalException) {
216 throw (com.liferay.portal.PortalException)e;
217 }
218
219 throw new com.liferay.portal.SystemException(e);
220 }
221 }
222 catch (com.liferay.portal.SystemException se) {
223 _log.error(se, se);
224
225 throw se;
226 }
227 }
228
229 public static void addUserGroupUsers(HttpPrincipal httpPrincipal,
230 long userGroupId, long[] userIds)
231 throws com.liferay.portal.SystemException,
232 com.liferay.portal.PortalException {
233 try {
234 Object paramObj0 = new LongWrapper(userGroupId);
235
236 Object paramObj1 = userIds;
237
238 if (userIds == null) {
239 paramObj1 = new NullWrapper("[J");
240 }
241
242 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
243 "addUserGroupUsers", new Object[] { paramObj0, paramObj1 });
244
245 try {
246 TunnelUtil.invoke(httpPrincipal, methodWrapper);
247 }
248 catch (Exception e) {
249 if (e instanceof com.liferay.portal.SystemException) {
250 throw (com.liferay.portal.SystemException)e;
251 }
252
253 if (e instanceof com.liferay.portal.PortalException) {
254 throw (com.liferay.portal.PortalException)e;
255 }
256
257 throw new com.liferay.portal.SystemException(e);
258 }
259 }
260 catch (com.liferay.portal.SystemException se) {
261 _log.error(se, se);
262
263 throw se;
264 }
265 }
266
267 public static com.liferay.portal.model.User addUser(
268 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
269 java.lang.String password1, java.lang.String password2,
270 boolean autoScreenName, java.lang.String screenName,
271 java.lang.String emailAddress, java.util.Locale locale,
272 java.lang.String firstName, java.lang.String middleName,
273 java.lang.String lastName, int prefixId, int suffixId, boolean male,
274 int birthdayMonth, int birthdayDay, int birthdayYear,
275 java.lang.String jobTitle, long[] organizationIds, boolean sendEmail)
276 throws com.liferay.portal.SystemException,
277 com.liferay.portal.PortalException {
278 try {
279 Object paramObj0 = new LongWrapper(companyId);
280
281 Object paramObj1 = new BooleanWrapper(autoPassword);
282
283 Object paramObj2 = password1;
284
285 if (password1 == null) {
286 paramObj2 = new NullWrapper("java.lang.String");
287 }
288
289 Object paramObj3 = password2;
290
291 if (password2 == null) {
292 paramObj3 = new NullWrapper("java.lang.String");
293 }
294
295 Object paramObj4 = new BooleanWrapper(autoScreenName);
296
297 Object paramObj5 = screenName;
298
299 if (screenName == null) {
300 paramObj5 = new NullWrapper("java.lang.String");
301 }
302
303 Object paramObj6 = emailAddress;
304
305 if (emailAddress == null) {
306 paramObj6 = new NullWrapper("java.lang.String");
307 }
308
309 Object paramObj7 = locale;
310
311 if (locale == null) {
312 paramObj7 = new NullWrapper("java.util.Locale");
313 }
314
315 Object paramObj8 = firstName;
316
317 if (firstName == null) {
318 paramObj8 = new NullWrapper("java.lang.String");
319 }
320
321 Object paramObj9 = middleName;
322
323 if (middleName == null) {
324 paramObj9 = new NullWrapper("java.lang.String");
325 }
326
327 Object paramObj10 = lastName;
328
329 if (lastName == null) {
330 paramObj10 = new NullWrapper("java.lang.String");
331 }
332
333 Object paramObj11 = new IntegerWrapper(prefixId);
334
335 Object paramObj12 = new IntegerWrapper(suffixId);
336
337 Object paramObj13 = new BooleanWrapper(male);
338
339 Object paramObj14 = new IntegerWrapper(birthdayMonth);
340
341 Object paramObj15 = new IntegerWrapper(birthdayDay);
342
343 Object paramObj16 = new IntegerWrapper(birthdayYear);
344
345 Object paramObj17 = jobTitle;
346
347 if (jobTitle == null) {
348 paramObj17 = new NullWrapper("java.lang.String");
349 }
350
351 Object paramObj18 = organizationIds;
352
353 if (organizationIds == null) {
354 paramObj18 = new NullWrapper("[J");
355 }
356
357 Object paramObj19 = new BooleanWrapper(sendEmail);
358
359 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
360 "addUser",
361 new Object[] {
362 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
363 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
364 paramObj10, paramObj11, paramObj12, paramObj13,
365 paramObj14, paramObj15, paramObj16, paramObj17,
366 paramObj18, paramObj19
367 });
368
369 Object returnObj = null;
370
371 try {
372 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
373 }
374 catch (Exception e) {
375 if (e instanceof com.liferay.portal.SystemException) {
376 throw (com.liferay.portal.SystemException)e;
377 }
378
379 if (e instanceof com.liferay.portal.PortalException) {
380 throw (com.liferay.portal.PortalException)e;
381 }
382
383 throw new com.liferay.portal.SystemException(e);
384 }
385
386 return (com.liferay.portal.model.User)returnObj;
387 }
388 catch (com.liferay.portal.SystemException se) {
389 _log.error(se, se);
390
391 throw se;
392 }
393 }
394
395 public static void deleteRoleUser(HttpPrincipal httpPrincipal, long roleId,
396 long userId)
397 throws com.liferay.portal.SystemException,
398 com.liferay.portal.PortalException {
399 try {
400 Object paramObj0 = new LongWrapper(roleId);
401
402 Object paramObj1 = new LongWrapper(userId);
403
404 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
405 "deleteRoleUser", new Object[] { paramObj0, paramObj1 });
406
407 try {
408 TunnelUtil.invoke(httpPrincipal, methodWrapper);
409 }
410 catch (Exception e) {
411 if (e instanceof com.liferay.portal.SystemException) {
412 throw (com.liferay.portal.SystemException)e;
413 }
414
415 if (e instanceof com.liferay.portal.PortalException) {
416 throw (com.liferay.portal.PortalException)e;
417 }
418
419 throw new com.liferay.portal.SystemException(e);
420 }
421 }
422 catch (com.liferay.portal.SystemException se) {
423 _log.error(se, se);
424
425 throw se;
426 }
427 }
428
429 public static void deleteUser(HttpPrincipal httpPrincipal, long userId)
430 throws com.liferay.portal.SystemException,
431 com.liferay.portal.PortalException {
432 try {
433 Object paramObj0 = new LongWrapper(userId);
434
435 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
436 "deleteUser", new Object[] { paramObj0 });
437
438 try {
439 TunnelUtil.invoke(httpPrincipal, methodWrapper);
440 }
441 catch (Exception e) {
442 if (e instanceof com.liferay.portal.SystemException) {
443 throw (com.liferay.portal.SystemException)e;
444 }
445
446 if (e instanceof com.liferay.portal.PortalException) {
447 throw (com.liferay.portal.PortalException)e;
448 }
449
450 throw new com.liferay.portal.SystemException(e);
451 }
452 }
453 catch (com.liferay.portal.SystemException se) {
454 _log.error(se, se);
455
456 throw se;
457 }
458 }
459
460 public static long getDefaultUserId(HttpPrincipal httpPrincipal,
461 long companyId)
462 throws com.liferay.portal.SystemException,
463 com.liferay.portal.PortalException {
464 try {
465 Object paramObj0 = new LongWrapper(companyId);
466
467 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
468 "getDefaultUserId", new Object[] { paramObj0 });
469
470 Object returnObj = null;
471
472 try {
473 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
474 }
475 catch (Exception e) {
476 if (e instanceof com.liferay.portal.SystemException) {
477 throw (com.liferay.portal.SystemException)e;
478 }
479
480 if (e instanceof com.liferay.portal.PortalException) {
481 throw (com.liferay.portal.PortalException)e;
482 }
483
484 throw new com.liferay.portal.SystemException(e);
485 }
486
487 return ((Long)returnObj).longValue();
488 }
489 catch (com.liferay.portal.SystemException se) {
490 _log.error(se, se);
491
492 throw se;
493 }
494 }
495
496 public static java.util.List getGroupUsers(HttpPrincipal httpPrincipal,
497 long groupId)
498 throws com.liferay.portal.SystemException,
499 com.liferay.portal.PortalException {
500 try {
501 Object paramObj0 = new LongWrapper(groupId);
502
503 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
504 "getGroupUsers", new Object[] { paramObj0 });
505
506 Object returnObj = null;
507
508 try {
509 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
510 }
511 catch (Exception e) {
512 if (e instanceof com.liferay.portal.SystemException) {
513 throw (com.liferay.portal.SystemException)e;
514 }
515
516 if (e instanceof com.liferay.portal.PortalException) {
517 throw (com.liferay.portal.PortalException)e;
518 }
519
520 throw new com.liferay.portal.SystemException(e);
521 }
522
523 return (java.util.List)returnObj;
524 }
525 catch (com.liferay.portal.SystemException se) {
526 _log.error(se, se);
527
528 throw se;
529 }
530 }
531
532 public static java.util.List getRoleUsers(HttpPrincipal httpPrincipal,
533 long roleId)
534 throws com.liferay.portal.SystemException,
535 com.liferay.portal.PortalException {
536 try {
537 Object paramObj0 = new LongWrapper(roleId);
538
539 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
540 "getRoleUsers", new Object[] { paramObj0 });
541
542 Object returnObj = null;
543
544 try {
545 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
546 }
547 catch (Exception e) {
548 if (e instanceof com.liferay.portal.SystemException) {
549 throw (com.liferay.portal.SystemException)e;
550 }
551
552 if (e instanceof com.liferay.portal.PortalException) {
553 throw (com.liferay.portal.PortalException)e;
554 }
555
556 throw new com.liferay.portal.SystemException(e);
557 }
558
559 return (java.util.List)returnObj;
560 }
561 catch (com.liferay.portal.SystemException se) {
562 _log.error(se, se);
563
564 throw se;
565 }
566 }
567
568 public static com.liferay.portal.model.User getUserByEmailAddress(
569 HttpPrincipal httpPrincipal, long companyId,
570 java.lang.String emailAddress)
571 throws com.liferay.portal.SystemException,
572 com.liferay.portal.PortalException {
573 try {
574 Object paramObj0 = new LongWrapper(companyId);
575
576 Object paramObj1 = emailAddress;
577
578 if (emailAddress == null) {
579 paramObj1 = new NullWrapper("java.lang.String");
580 }
581
582 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
583 "getUserByEmailAddress",
584 new Object[] { paramObj0, paramObj1 });
585
586 Object returnObj = null;
587
588 try {
589 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
590 }
591 catch (Exception e) {
592 if (e instanceof com.liferay.portal.SystemException) {
593 throw (com.liferay.portal.SystemException)e;
594 }
595
596 if (e instanceof com.liferay.portal.PortalException) {
597 throw (com.liferay.portal.PortalException)e;
598 }
599
600 throw new com.liferay.portal.SystemException(e);
601 }
602
603 return (com.liferay.portal.model.User)returnObj;
604 }
605 catch (com.liferay.portal.SystemException se) {
606 _log.error(se, se);
607
608 throw se;
609 }
610 }
611
612 public static com.liferay.portal.model.User getUserById(
613 HttpPrincipal httpPrincipal, long userId)
614 throws com.liferay.portal.SystemException,
615 com.liferay.portal.PortalException {
616 try {
617 Object paramObj0 = new LongWrapper(userId);
618
619 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
620 "getUserById", new Object[] { paramObj0 });
621
622 Object returnObj = null;
623
624 try {
625 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
626 }
627 catch (Exception e) {
628 if (e instanceof com.liferay.portal.SystemException) {
629 throw (com.liferay.portal.SystemException)e;
630 }
631
632 if (e instanceof com.liferay.portal.PortalException) {
633 throw (com.liferay.portal.PortalException)e;
634 }
635
636 throw new com.liferay.portal.SystemException(e);
637 }
638
639 return (com.liferay.portal.model.User)returnObj;
640 }
641 catch (com.liferay.portal.SystemException se) {
642 _log.error(se, se);
643
644 throw se;
645 }
646 }
647
648 public static com.liferay.portal.model.User getUserByScreenName(
649 HttpPrincipal httpPrincipal, long companyId, java.lang.String screenName)
650 throws com.liferay.portal.SystemException,
651 com.liferay.portal.PortalException {
652 try {
653 Object paramObj0 = new LongWrapper(companyId);
654
655 Object paramObj1 = screenName;
656
657 if (screenName == null) {
658 paramObj1 = new NullWrapper("java.lang.String");
659 }
660
661 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
662 "getUserByScreenName", new Object[] { paramObj0, paramObj1 });
663
664 Object returnObj = null;
665
666 try {
667 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
668 }
669 catch (Exception e) {
670 if (e instanceof com.liferay.portal.SystemException) {
671 throw (com.liferay.portal.SystemException)e;
672 }
673
674 if (e instanceof com.liferay.portal.PortalException) {
675 throw (com.liferay.portal.PortalException)e;
676 }
677
678 throw new com.liferay.portal.SystemException(e);
679 }
680
681 return (com.liferay.portal.model.User)returnObj;
682 }
683 catch (com.liferay.portal.SystemException se) {
684 _log.error(se, se);
685
686 throw se;
687 }
688 }
689
690 public static long getUserIdByEmailAddress(HttpPrincipal httpPrincipal,
691 long companyId, java.lang.String emailAddress)
692 throws com.liferay.portal.SystemException,
693 com.liferay.portal.PortalException {
694 try {
695 Object paramObj0 = new LongWrapper(companyId);
696
697 Object paramObj1 = emailAddress;
698
699 if (emailAddress == null) {
700 paramObj1 = new NullWrapper("java.lang.String");
701 }
702
703 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
704 "getUserIdByEmailAddress",
705 new Object[] { paramObj0, paramObj1 });
706
707 Object returnObj = null;
708
709 try {
710 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
711 }
712 catch (Exception e) {
713 if (e instanceof com.liferay.portal.SystemException) {
714 throw (com.liferay.portal.SystemException)e;
715 }
716
717 if (e instanceof com.liferay.portal.PortalException) {
718 throw (com.liferay.portal.PortalException)e;
719 }
720
721 throw new com.liferay.portal.SystemException(e);
722 }
723
724 return ((Long)returnObj).longValue();
725 }
726 catch (com.liferay.portal.SystemException se) {
727 _log.error(se, se);
728
729 throw se;
730 }
731 }
732
733 public static long getUserIdByScreenName(HttpPrincipal httpPrincipal,
734 long companyId, java.lang.String screenName)
735 throws com.liferay.portal.SystemException,
736 com.liferay.portal.PortalException {
737 try {
738 Object paramObj0 = new LongWrapper(companyId);
739
740 Object paramObj1 = screenName;
741
742 if (screenName == null) {
743 paramObj1 = new NullWrapper("java.lang.String");
744 }
745
746 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
747 "getUserIdByScreenName",
748 new Object[] { paramObj0, paramObj1 });
749
750 Object returnObj = null;
751
752 try {
753 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
754 }
755 catch (Exception e) {
756 if (e instanceof com.liferay.portal.SystemException) {
757 throw (com.liferay.portal.SystemException)e;
758 }
759
760 if (e instanceof com.liferay.portal.PortalException) {
761 throw (com.liferay.portal.PortalException)e;
762 }
763
764 throw new com.liferay.portal.SystemException(e);
765 }
766
767 return ((Long)returnObj).longValue();
768 }
769 catch (com.liferay.portal.SystemException se) {
770 _log.error(se, se);
771
772 throw se;
773 }
774 }
775
776 public static boolean hasGroupUser(HttpPrincipal httpPrincipal,
777 long groupId, long userId)
778 throws com.liferay.portal.SystemException,
779 com.liferay.portal.PortalException {
780 try {
781 Object paramObj0 = new LongWrapper(groupId);
782
783 Object paramObj1 = new LongWrapper(userId);
784
785 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
786 "hasGroupUser", new Object[] { paramObj0, paramObj1 });
787
788 Object returnObj = null;
789
790 try {
791 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
792 }
793 catch (Exception e) {
794 if (e instanceof com.liferay.portal.SystemException) {
795 throw (com.liferay.portal.SystemException)e;
796 }
797
798 if (e instanceof com.liferay.portal.PortalException) {
799 throw (com.liferay.portal.PortalException)e;
800 }
801
802 throw new com.liferay.portal.SystemException(e);
803 }
804
805 return ((Boolean)returnObj).booleanValue();
806 }
807 catch (com.liferay.portal.SystemException se) {
808 _log.error(se, se);
809
810 throw se;
811 }
812 }
813
814 public static boolean hasRoleUser(HttpPrincipal httpPrincipal, long roleId,
815 long userId)
816 throws com.liferay.portal.SystemException,
817 com.liferay.portal.PortalException {
818 try {
819 Object paramObj0 = new LongWrapper(roleId);
820
821 Object paramObj1 = new LongWrapper(userId);
822
823 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
824 "hasRoleUser", new Object[] { paramObj0, paramObj1 });
825
826 Object returnObj = null;
827
828 try {
829 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
830 }
831 catch (Exception e) {
832 if (e instanceof com.liferay.portal.SystemException) {
833 throw (com.liferay.portal.SystemException)e;
834 }
835
836 if (e instanceof com.liferay.portal.PortalException) {
837 throw (com.liferay.portal.PortalException)e;
838 }
839
840 throw new com.liferay.portal.SystemException(e);
841 }
842
843 return ((Boolean)returnObj).booleanValue();
844 }
845 catch (com.liferay.portal.SystemException se) {
846 _log.error(se, se);
847
848 throw se;
849 }
850 }
851
852 public static void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
853 long[] userIds)
854 throws com.liferay.portal.SystemException,
855 com.liferay.portal.PortalException {
856 try {
857 Object paramObj0 = new LongWrapper(roleId);
858
859 Object paramObj1 = userIds;
860
861 if (userIds == null) {
862 paramObj1 = new NullWrapper("[J");
863 }
864
865 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
866 "setRoleUsers", new Object[] { paramObj0, paramObj1 });
867
868 try {
869 TunnelUtil.invoke(httpPrincipal, methodWrapper);
870 }
871 catch (Exception e) {
872 if (e instanceof com.liferay.portal.SystemException) {
873 throw (com.liferay.portal.SystemException)e;
874 }
875
876 if (e instanceof com.liferay.portal.PortalException) {
877 throw (com.liferay.portal.PortalException)e;
878 }
879
880 throw new com.liferay.portal.SystemException(e);
881 }
882 }
883 catch (com.liferay.portal.SystemException se) {
884 _log.error(se, se);
885
886 throw se;
887 }
888 }
889
890 public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
891 long userGroupId, long[] userIds)
892 throws com.liferay.portal.SystemException,
893 com.liferay.portal.PortalException {
894 try {
895 Object paramObj0 = new LongWrapper(userGroupId);
896
897 Object paramObj1 = userIds;
898
899 if (userIds == null) {
900 paramObj1 = new NullWrapper("[J");
901 }
902
903 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
904 "setUserGroupUsers", new Object[] { paramObj0, paramObj1 });
905
906 try {
907 TunnelUtil.invoke(httpPrincipal, methodWrapper);
908 }
909 catch (Exception e) {
910 if (e instanceof com.liferay.portal.SystemException) {
911 throw (com.liferay.portal.SystemException)e;
912 }
913
914 if (e instanceof com.liferay.portal.PortalException) {
915 throw (com.liferay.portal.PortalException)e;
916 }
917
918 throw new com.liferay.portal.SystemException(e);
919 }
920 }
921 catch (com.liferay.portal.SystemException se) {
922 _log.error(se, se);
923
924 throw se;
925 }
926 }
927
928 public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
929 long groupId, long[] userIds)
930 throws com.liferay.portal.SystemException,
931 com.liferay.portal.PortalException {
932 try {
933 Object paramObj0 = new LongWrapper(groupId);
934
935 Object paramObj1 = userIds;
936
937 if (userIds == null) {
938 paramObj1 = new NullWrapper("[J");
939 }
940
941 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
942 "unsetGroupUsers", new Object[] { paramObj0, paramObj1 });
943
944 try {
945 TunnelUtil.invoke(httpPrincipal, methodWrapper);
946 }
947 catch (Exception e) {
948 if (e instanceof com.liferay.portal.SystemException) {
949 throw (com.liferay.portal.SystemException)e;
950 }
951
952 if (e instanceof com.liferay.portal.PortalException) {
953 throw (com.liferay.portal.PortalException)e;
954 }
955
956 throw new com.liferay.portal.SystemException(e);
957 }
958 }
959 catch (com.liferay.portal.SystemException se) {
960 _log.error(se, se);
961
962 throw se;
963 }
964 }
965
966 public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
967 long organizationId, long[] userIds)
968 throws com.liferay.portal.SystemException,
969 com.liferay.portal.PortalException {
970 try {
971 Object paramObj0 = new LongWrapper(organizationId);
972
973 Object paramObj1 = userIds;
974
975 if (userIds == null) {
976 paramObj1 = new NullWrapper("[J");
977 }
978
979 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
980 "unsetOrganizationUsers",
981 new Object[] { paramObj0, paramObj1 });
982
983 try {
984 TunnelUtil.invoke(httpPrincipal, methodWrapper);
985 }
986 catch (Exception e) {
987 if (e instanceof com.liferay.portal.SystemException) {
988 throw (com.liferay.portal.SystemException)e;
989 }
990
991 if (e instanceof com.liferay.portal.PortalException) {
992 throw (com.liferay.portal.PortalException)e;
993 }
994
995 throw new com.liferay.portal.SystemException(e);
996 }
997 }
998 catch (com.liferay.portal.SystemException se) {
999 _log.error(se, se);
1000
1001 throw se;
1002 }
1003 }
1004
1005 public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1006 long passwordPolicyId, long[] userIds)
1007 throws com.liferay.portal.SystemException,
1008 com.liferay.portal.PortalException {
1009 try {
1010 Object paramObj0 = new LongWrapper(passwordPolicyId);
1011
1012 Object paramObj1 = userIds;
1013
1014 if (userIds == null) {
1015 paramObj1 = new NullWrapper("[J");
1016 }
1017
1018 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1019 "unsetPasswordPolicyUsers",
1020 new Object[] { paramObj0, paramObj1 });
1021
1022 try {
1023 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1024 }
1025 catch (Exception e) {
1026 if (e instanceof com.liferay.portal.SystemException) {
1027 throw (com.liferay.portal.SystemException)e;
1028 }
1029
1030 if (e instanceof com.liferay.portal.PortalException) {
1031 throw (com.liferay.portal.PortalException)e;
1032 }
1033
1034 throw new com.liferay.portal.SystemException(e);
1035 }
1036 }
1037 catch (com.liferay.portal.SystemException se) {
1038 _log.error(se, se);
1039
1040 throw se;
1041 }
1042 }
1043
1044 public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1045 long[] userIds)
1046 throws com.liferay.portal.SystemException,
1047 com.liferay.portal.PortalException {
1048 try {
1049 Object paramObj0 = new LongWrapper(roleId);
1050
1051 Object paramObj1 = userIds;
1052
1053 if (userIds == null) {
1054 paramObj1 = new NullWrapper("[J");
1055 }
1056
1057 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1058 "unsetRoleUsers", new Object[] { paramObj0, paramObj1 });
1059
1060 try {
1061 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1062 }
1063 catch (Exception e) {
1064 if (e instanceof com.liferay.portal.SystemException) {
1065 throw (com.liferay.portal.SystemException)e;
1066 }
1067
1068 if (e instanceof com.liferay.portal.PortalException) {
1069 throw (com.liferay.portal.PortalException)e;
1070 }
1071
1072 throw new com.liferay.portal.SystemException(e);
1073 }
1074 }
1075 catch (com.liferay.portal.SystemException se) {
1076 _log.error(se, se);
1077
1078 throw se;
1079 }
1080 }
1081
1082 public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1083 long userGroupId, long[] userIds)
1084 throws com.liferay.portal.SystemException,
1085 com.liferay.portal.PortalException {
1086 try {
1087 Object paramObj0 = new LongWrapper(userGroupId);
1088
1089 Object paramObj1 = userIds;
1090
1091 if (userIds == null) {
1092 paramObj1 = new NullWrapper("[J");
1093 }
1094
1095 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1096 "unsetUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1097
1098 try {
1099 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1100 }
1101 catch (Exception e) {
1102 if (e instanceof com.liferay.portal.SystemException) {
1103 throw (com.liferay.portal.SystemException)e;
1104 }
1105
1106 if (e instanceof com.liferay.portal.PortalException) {
1107 throw (com.liferay.portal.PortalException)e;
1108 }
1109
1110 throw new com.liferay.portal.SystemException(e);
1111 }
1112 }
1113 catch (com.liferay.portal.SystemException se) {
1114 _log.error(se, se);
1115
1116 throw se;
1117 }
1118 }
1119
1120 public static com.liferay.portal.model.User updateActive(
1121 HttpPrincipal httpPrincipal, long userId, boolean active)
1122 throws com.liferay.portal.SystemException,
1123 com.liferay.portal.PortalException {
1124 try {
1125 Object paramObj0 = new LongWrapper(userId);
1126
1127 Object paramObj1 = new BooleanWrapper(active);
1128
1129 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1130 "updateActive", new Object[] { paramObj0, paramObj1 });
1131
1132 Object returnObj = null;
1133
1134 try {
1135 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1136 }
1137 catch (Exception e) {
1138 if (e instanceof com.liferay.portal.SystemException) {
1139 throw (com.liferay.portal.SystemException)e;
1140 }
1141
1142 if (e instanceof com.liferay.portal.PortalException) {
1143 throw (com.liferay.portal.PortalException)e;
1144 }
1145
1146 throw new com.liferay.portal.SystemException(e);
1147 }
1148
1149 return (com.liferay.portal.model.User)returnObj;
1150 }
1151 catch (com.liferay.portal.SystemException se) {
1152 _log.error(se, se);
1153
1154 throw se;
1155 }
1156 }
1157
1158 public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1159 HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1160 throws com.liferay.portal.SystemException,
1161 com.liferay.portal.PortalException {
1162 try {
1163 Object paramObj0 = new LongWrapper(userId);
1164
1165 Object paramObj1 = new BooleanWrapper(agreedToTermsOfUse);
1166
1167 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1168 "updateAgreedToTermsOfUse",
1169 new Object[] { paramObj0, paramObj1 });
1170
1171 Object returnObj = null;
1172
1173 try {
1174 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1175 }
1176 catch (Exception e) {
1177 if (e instanceof com.liferay.portal.SystemException) {
1178 throw (com.liferay.portal.SystemException)e;
1179 }
1180
1181 if (e instanceof com.liferay.portal.PortalException) {
1182 throw (com.liferay.portal.PortalException)e;
1183 }
1184
1185 throw new com.liferay.portal.SystemException(e);
1186 }
1187
1188 return (com.liferay.portal.model.User)returnObj;
1189 }
1190 catch (com.liferay.portal.SystemException se) {
1191 _log.error(se, se);
1192
1193 throw se;
1194 }
1195 }
1196
1197 public static com.liferay.portal.model.User updateLockout(
1198 HttpPrincipal httpPrincipal, long userId, boolean lockout)
1199 throws com.liferay.portal.SystemException,
1200 com.liferay.portal.PortalException {
1201 try {
1202 Object paramObj0 = new LongWrapper(userId);
1203
1204 Object paramObj1 = new BooleanWrapper(lockout);
1205
1206 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1207 "updateLockout", new Object[] { paramObj0, paramObj1 });
1208
1209 Object returnObj = null;
1210
1211 try {
1212 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1213 }
1214 catch (Exception e) {
1215 if (e instanceof com.liferay.portal.SystemException) {
1216 throw (com.liferay.portal.SystemException)e;
1217 }
1218
1219 if (e instanceof com.liferay.portal.PortalException) {
1220 throw (com.liferay.portal.PortalException)e;
1221 }
1222
1223 throw new com.liferay.portal.SystemException(e);
1224 }
1225
1226 return (com.liferay.portal.model.User)returnObj;
1227 }
1228 catch (com.liferay.portal.SystemException se) {
1229 _log.error(se, se);
1230
1231 throw se;
1232 }
1233 }
1234
1235 public static void updateOrganizations(HttpPrincipal httpPrincipal,
1236 long userId, long[] organizationIds)
1237 throws com.liferay.portal.SystemException,
1238 com.liferay.portal.PortalException {
1239 try {
1240 Object paramObj0 = new LongWrapper(userId);
1241
1242 Object paramObj1 = organizationIds;
1243
1244 if (organizationIds == null) {
1245 paramObj1 = new NullWrapper("[J");
1246 }
1247
1248 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1249 "updateOrganizations", new Object[] { paramObj0, paramObj1 });
1250
1251 try {
1252 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1253 }
1254 catch (Exception e) {
1255 if (e instanceof com.liferay.portal.SystemException) {
1256 throw (com.liferay.portal.SystemException)e;
1257 }
1258
1259 if (e instanceof com.liferay.portal.PortalException) {
1260 throw (com.liferay.portal.PortalException)e;
1261 }
1262
1263 throw new com.liferay.portal.SystemException(e);
1264 }
1265 }
1266 catch (com.liferay.portal.SystemException se) {
1267 _log.error(se, se);
1268
1269 throw se;
1270 }
1271 }
1272
1273 public static com.liferay.portal.model.User updatePassword(
1274 HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1275 java.lang.String password2, boolean passwordReset)
1276 throws com.liferay.portal.SystemException,
1277 com.liferay.portal.PortalException {
1278 try {
1279 Object paramObj0 = new LongWrapper(userId);
1280
1281 Object paramObj1 = password1;
1282
1283 if (password1 == null) {
1284 paramObj1 = new NullWrapper("java.lang.String");
1285 }
1286
1287 Object paramObj2 = password2;
1288
1289 if (password2 == null) {
1290 paramObj2 = new NullWrapper("java.lang.String");
1291 }
1292
1293 Object paramObj3 = new BooleanWrapper(passwordReset);
1294
1295 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1296 "updatePassword",
1297 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1298
1299 Object returnObj = null;
1300
1301 try {
1302 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1303 }
1304 catch (Exception e) {
1305 if (e instanceof com.liferay.portal.SystemException) {
1306 throw (com.liferay.portal.SystemException)e;
1307 }
1308
1309 if (e instanceof com.liferay.portal.PortalException) {
1310 throw (com.liferay.portal.PortalException)e;
1311 }
1312
1313 throw new com.liferay.portal.SystemException(e);
1314 }
1315
1316 return (com.liferay.portal.model.User)returnObj;
1317 }
1318 catch (com.liferay.portal.SystemException se) {
1319 _log.error(se, se);
1320
1321 throw se;
1322 }
1323 }
1324
1325 public static void updatePortrait(HttpPrincipal httpPrincipal, long userId,
1326 byte[] bytes)
1327 throws com.liferay.portal.SystemException,
1328 com.liferay.portal.PortalException {
1329 try {
1330 Object paramObj0 = new LongWrapper(userId);
1331
1332 Object paramObj1 = bytes;
1333
1334 if (bytes == null) {
1335 paramObj1 = new NullWrapper("[B");
1336 }
1337
1338 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1339 "updatePortrait", new Object[] { paramObj0, paramObj1 });
1340
1341 try {
1342 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1343 }
1344 catch (Exception e) {
1345 if (e instanceof com.liferay.portal.SystemException) {
1346 throw (com.liferay.portal.SystemException)e;
1347 }
1348
1349 if (e instanceof com.liferay.portal.PortalException) {
1350 throw (com.liferay.portal.PortalException)e;
1351 }
1352
1353 throw new com.liferay.portal.SystemException(e);
1354 }
1355 }
1356 catch (com.liferay.portal.SystemException se) {
1357 _log.error(se, se);
1358
1359 throw se;
1360 }
1361 }
1362
1363 public static com.liferay.portal.model.User updateUser(
1364 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1365 boolean passwordReset, java.lang.String screenName,
1366 java.lang.String emailAddress, java.lang.String languageId,
1367 java.lang.String timeZoneId, java.lang.String greeting,
1368 java.lang.String comments, java.lang.String firstName,
1369 java.lang.String middleName, java.lang.String lastName, int prefixId,
1370 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1371 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1372 java.lang.String icqSn, java.lang.String jabberSn,
1373 java.lang.String msnSn, java.lang.String skypeSn,
1374 java.lang.String ymSn, java.lang.String jobTitle, long[] organizationIds)
1375 throws com.liferay.portal.SystemException,
1376 com.liferay.portal.PortalException {
1377 try {
1378 Object paramObj0 = new LongWrapper(userId);
1379
1380 Object paramObj1 = oldPassword;
1381
1382 if (oldPassword == null) {
1383 paramObj1 = new NullWrapper("java.lang.String");
1384 }
1385
1386 Object paramObj2 = new BooleanWrapper(passwordReset);
1387
1388 Object paramObj3 = screenName;
1389
1390 if (screenName == null) {
1391 paramObj3 = new NullWrapper("java.lang.String");
1392 }
1393
1394 Object paramObj4 = emailAddress;
1395
1396 if (emailAddress == null) {
1397 paramObj4 = new NullWrapper("java.lang.String");
1398 }
1399
1400 Object paramObj5 = languageId;
1401
1402 if (languageId == null) {
1403 paramObj5 = new NullWrapper("java.lang.String");
1404 }
1405
1406 Object paramObj6 = timeZoneId;
1407
1408 if (timeZoneId == null) {
1409 paramObj6 = new NullWrapper("java.lang.String");
1410 }
1411
1412 Object paramObj7 = greeting;
1413
1414 if (greeting == null) {
1415 paramObj7 = new NullWrapper("java.lang.String");
1416 }
1417
1418 Object paramObj8 = comments;
1419
1420 if (comments == null) {
1421 paramObj8 = new NullWrapper("java.lang.String");
1422 }
1423
1424 Object paramObj9 = firstName;
1425
1426 if (firstName == null) {
1427 paramObj9 = new NullWrapper("java.lang.String");
1428 }
1429
1430 Object paramObj10 = middleName;
1431
1432 if (middleName == null) {
1433 paramObj10 = new NullWrapper("java.lang.String");
1434 }
1435
1436 Object paramObj11 = lastName;
1437
1438 if (lastName == null) {
1439 paramObj11 = new NullWrapper("java.lang.String");
1440 }
1441
1442 Object paramObj12 = new IntegerWrapper(prefixId);
1443
1444 Object paramObj13 = new IntegerWrapper(suffixId);
1445
1446 Object paramObj14 = new BooleanWrapper(male);
1447
1448 Object paramObj15 = new IntegerWrapper(birthdayMonth);
1449
1450 Object paramObj16 = new IntegerWrapper(birthdayDay);
1451
1452 Object paramObj17 = new IntegerWrapper(birthdayYear);
1453
1454 Object paramObj18 = smsSn;
1455
1456 if (smsSn == null) {
1457 paramObj18 = new NullWrapper("java.lang.String");
1458 }
1459
1460 Object paramObj19 = aimSn;
1461
1462 if (aimSn == null) {
1463 paramObj19 = new NullWrapper("java.lang.String");
1464 }
1465
1466 Object paramObj20 = icqSn;
1467
1468 if (icqSn == null) {
1469 paramObj20 = new NullWrapper("java.lang.String");
1470 }
1471
1472 Object paramObj21 = jabberSn;
1473
1474 if (jabberSn == null) {
1475 paramObj21 = new NullWrapper("java.lang.String");
1476 }
1477
1478 Object paramObj22 = msnSn;
1479
1480 if (msnSn == null) {
1481 paramObj22 = new NullWrapper("java.lang.String");
1482 }
1483
1484 Object paramObj23 = skypeSn;
1485
1486 if (skypeSn == null) {
1487 paramObj23 = new NullWrapper("java.lang.String");
1488 }
1489
1490 Object paramObj24 = ymSn;
1491
1492 if (ymSn == null) {
1493 paramObj24 = new NullWrapper("java.lang.String");
1494 }
1495
1496 Object paramObj25 = jobTitle;
1497
1498 if (jobTitle == null) {
1499 paramObj25 = new NullWrapper("java.lang.String");
1500 }
1501
1502 Object paramObj26 = organizationIds;
1503
1504 if (organizationIds == null) {
1505 paramObj26 = new NullWrapper("[J");
1506 }
1507
1508 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1509 "updateUser",
1510 new Object[] {
1511 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1512 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1513 paramObj10, paramObj11, paramObj12, paramObj13,
1514 paramObj14, paramObj15, paramObj16, paramObj17,
1515 paramObj18, paramObj19, paramObj20, paramObj21,
1516 paramObj22, paramObj23, paramObj24, paramObj25,
1517 paramObj26
1518 });
1519
1520 Object returnObj = null;
1521
1522 try {
1523 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1524 }
1525 catch (Exception e) {
1526 if (e instanceof com.liferay.portal.SystemException) {
1527 throw (com.liferay.portal.SystemException)e;
1528 }
1529
1530 if (e instanceof com.liferay.portal.PortalException) {
1531 throw (com.liferay.portal.PortalException)e;
1532 }
1533
1534 throw new com.liferay.portal.SystemException(e);
1535 }
1536
1537 return (com.liferay.portal.model.User)returnObj;
1538 }
1539 catch (com.liferay.portal.SystemException se) {
1540 _log.error(se, se);
1541
1542 throw se;
1543 }
1544 }
1545
1546 public static com.liferay.portal.model.User updateUser(
1547 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1548 java.lang.String newPassword1, java.lang.String newPassword2,
1549 boolean passwordReset, java.lang.String screenName,
1550 java.lang.String emailAddress, java.lang.String languageId,
1551 java.lang.String timeZoneId, java.lang.String greeting,
1552 java.lang.String comments, java.lang.String firstName,
1553 java.lang.String middleName, java.lang.String lastName, int prefixId,
1554 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1555 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1556 java.lang.String icqSn, java.lang.String jabberSn,
1557 java.lang.String msnSn, java.lang.String skypeSn,
1558 java.lang.String ymSn, java.lang.String jobTitle, long[] organizationIds)
1559 throws com.liferay.portal.SystemException,
1560 com.liferay.portal.PortalException {
1561 try {
1562 Object paramObj0 = new LongWrapper(userId);
1563
1564 Object paramObj1 = oldPassword;
1565
1566 if (oldPassword == null) {
1567 paramObj1 = new NullWrapper("java.lang.String");
1568 }
1569
1570 Object paramObj2 = newPassword1;
1571
1572 if (newPassword1 == null) {
1573 paramObj2 = new NullWrapper("java.lang.String");
1574 }
1575
1576 Object paramObj3 = newPassword2;
1577
1578 if (newPassword2 == null) {
1579 paramObj3 = new NullWrapper("java.lang.String");
1580 }
1581
1582 Object paramObj4 = new BooleanWrapper(passwordReset);
1583
1584 Object paramObj5 = screenName;
1585
1586 if (screenName == null) {
1587 paramObj5 = new NullWrapper("java.lang.String");
1588 }
1589
1590 Object paramObj6 = emailAddress;
1591
1592 if (emailAddress == null) {
1593 paramObj6 = new NullWrapper("java.lang.String");
1594 }
1595
1596 Object paramObj7 = languageId;
1597
1598 if (languageId == null) {
1599 paramObj7 = new NullWrapper("java.lang.String");
1600 }
1601
1602 Object paramObj8 = timeZoneId;
1603
1604 if (timeZoneId == null) {
1605 paramObj8 = new NullWrapper("java.lang.String");
1606 }
1607
1608 Object paramObj9 = greeting;
1609
1610 if (greeting == null) {
1611 paramObj9 = new NullWrapper("java.lang.String");
1612 }
1613
1614 Object paramObj10 = comments;
1615
1616 if (comments == null) {
1617 paramObj10 = new NullWrapper("java.lang.String");
1618 }
1619
1620 Object paramObj11 = firstName;
1621
1622 if (firstName == null) {
1623 paramObj11 = new NullWrapper("java.lang.String");
1624 }
1625
1626 Object paramObj12 = middleName;
1627
1628 if (middleName == null) {
1629 paramObj12 = new NullWrapper("java.lang.String");
1630 }
1631
1632 Object paramObj13 = lastName;
1633
1634 if (lastName == null) {
1635 paramObj13 = new NullWrapper("java.lang.String");
1636 }
1637
1638 Object paramObj14 = new IntegerWrapper(prefixId);
1639
1640 Object paramObj15 = new IntegerWrapper(suffixId);
1641
1642 Object paramObj16 = new BooleanWrapper(male);
1643
1644 Object paramObj17 = new IntegerWrapper(birthdayMonth);
1645
1646 Object paramObj18 = new IntegerWrapper(birthdayDay);
1647
1648 Object paramObj19 = new IntegerWrapper(birthdayYear);
1649
1650 Object paramObj20 = smsSn;
1651
1652 if (smsSn == null) {
1653 paramObj20 = new NullWrapper("java.lang.String");
1654 }
1655
1656 Object paramObj21 = aimSn;
1657
1658 if (aimSn == null) {
1659 paramObj21 = new NullWrapper("java.lang.String");
1660 }
1661
1662 Object paramObj22 = icqSn;
1663
1664 if (icqSn == null) {
1665 paramObj22 = new NullWrapper("java.lang.String");
1666 }
1667
1668 Object paramObj23 = jabberSn;
1669
1670 if (jabberSn == null) {
1671 paramObj23 = new NullWrapper("java.lang.String");
1672 }
1673
1674 Object paramObj24 = msnSn;
1675
1676 if (msnSn == null) {
1677 paramObj24 = new NullWrapper("java.lang.String");
1678 }
1679
1680 Object paramObj25 = skypeSn;
1681
1682 if (skypeSn == null) {
1683 paramObj25 = new NullWrapper("java.lang.String");
1684 }
1685
1686 Object paramObj26 = ymSn;
1687
1688 if (ymSn == null) {
1689 paramObj26 = new NullWrapper("java.lang.String");
1690 }
1691
1692 Object paramObj27 = jobTitle;
1693
1694 if (jobTitle == null) {
1695 paramObj27 = new NullWrapper("java.lang.String");
1696 }
1697
1698 Object paramObj28 = organizationIds;
1699
1700 if (organizationIds == null) {
1701 paramObj28 = new NullWrapper("[J");
1702 }
1703
1704 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1705 "updateUser",
1706 new Object[] {
1707 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1708 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1709 paramObj10, paramObj11, paramObj12, paramObj13,
1710 paramObj14, paramObj15, paramObj16, paramObj17,
1711 paramObj18, paramObj19, paramObj20, paramObj21,
1712 paramObj22, paramObj23, paramObj24, paramObj25,
1713 paramObj26, paramObj27, paramObj28
1714 });
1715
1716 Object returnObj = null;
1717
1718 try {
1719 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1720 }
1721 catch (Exception e) {
1722 if (e instanceof com.liferay.portal.SystemException) {
1723 throw (com.liferay.portal.SystemException)e;
1724 }
1725
1726 if (e instanceof com.liferay.portal.PortalException) {
1727 throw (com.liferay.portal.PortalException)e;
1728 }
1729
1730 throw new com.liferay.portal.SystemException(e);
1731 }
1732
1733 return (com.liferay.portal.model.User)returnObj;
1734 }
1735 catch (com.liferay.portal.SystemException se) {
1736 _log.error(se, se);
1737
1738 throw se;
1739 }
1740 }
1741
1742 private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
1743}