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<com.liferay.portal.model.User> getGroupUsers(
497 HttpPrincipal httpPrincipal, 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<com.liferay.portal.model.User>)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<com.liferay.portal.model.User> getRoleUsers(
533 HttpPrincipal httpPrincipal, 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<com.liferay.portal.model.User>)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 void updateScreenName(HttpPrincipal httpPrincipal,
1364 long userId, java.lang.String screenName)
1365 throws com.liferay.portal.SystemException,
1366 com.liferay.portal.PortalException {
1367 try {
1368 Object paramObj0 = new LongWrapper(userId);
1369
1370 Object paramObj1 = screenName;
1371
1372 if (screenName == null) {
1373 paramObj1 = new NullWrapper("java.lang.String");
1374 }
1375
1376 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1377 "updateScreenName", new Object[] { paramObj0, paramObj1 });
1378
1379 try {
1380 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1381 }
1382 catch (Exception e) {
1383 if (e instanceof com.liferay.portal.SystemException) {
1384 throw (com.liferay.portal.SystemException)e;
1385 }
1386
1387 if (e instanceof com.liferay.portal.PortalException) {
1388 throw (com.liferay.portal.PortalException)e;
1389 }
1390
1391 throw new com.liferay.portal.SystemException(e);
1392 }
1393 }
1394 catch (com.liferay.portal.SystemException se) {
1395 _log.error(se, se);
1396
1397 throw se;
1398 }
1399 }
1400
1401 public static com.liferay.portal.model.User updateUser(
1402 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1403 boolean passwordReset, java.lang.String screenName,
1404 java.lang.String emailAddress, java.lang.String languageId,
1405 java.lang.String timeZoneId, java.lang.String greeting,
1406 java.lang.String comments, java.lang.String firstName,
1407 java.lang.String middleName, java.lang.String lastName, int prefixId,
1408 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1409 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1410 java.lang.String icqSn, java.lang.String jabberSn,
1411 java.lang.String msnSn, java.lang.String skypeSn,
1412 java.lang.String ymSn, java.lang.String jobTitle, long[] organizationIds)
1413 throws com.liferay.portal.SystemException,
1414 com.liferay.portal.PortalException {
1415 try {
1416 Object paramObj0 = new LongWrapper(userId);
1417
1418 Object paramObj1 = oldPassword;
1419
1420 if (oldPassword == null) {
1421 paramObj1 = new NullWrapper("java.lang.String");
1422 }
1423
1424 Object paramObj2 = new BooleanWrapper(passwordReset);
1425
1426 Object paramObj3 = screenName;
1427
1428 if (screenName == null) {
1429 paramObj3 = new NullWrapper("java.lang.String");
1430 }
1431
1432 Object paramObj4 = emailAddress;
1433
1434 if (emailAddress == null) {
1435 paramObj4 = new NullWrapper("java.lang.String");
1436 }
1437
1438 Object paramObj5 = languageId;
1439
1440 if (languageId == null) {
1441 paramObj5 = new NullWrapper("java.lang.String");
1442 }
1443
1444 Object paramObj6 = timeZoneId;
1445
1446 if (timeZoneId == null) {
1447 paramObj6 = new NullWrapper("java.lang.String");
1448 }
1449
1450 Object paramObj7 = greeting;
1451
1452 if (greeting == null) {
1453 paramObj7 = new NullWrapper("java.lang.String");
1454 }
1455
1456 Object paramObj8 = comments;
1457
1458 if (comments == null) {
1459 paramObj8 = new NullWrapper("java.lang.String");
1460 }
1461
1462 Object paramObj9 = firstName;
1463
1464 if (firstName == null) {
1465 paramObj9 = new NullWrapper("java.lang.String");
1466 }
1467
1468 Object paramObj10 = middleName;
1469
1470 if (middleName == null) {
1471 paramObj10 = new NullWrapper("java.lang.String");
1472 }
1473
1474 Object paramObj11 = lastName;
1475
1476 if (lastName == null) {
1477 paramObj11 = new NullWrapper("java.lang.String");
1478 }
1479
1480 Object paramObj12 = new IntegerWrapper(prefixId);
1481
1482 Object paramObj13 = new IntegerWrapper(suffixId);
1483
1484 Object paramObj14 = new BooleanWrapper(male);
1485
1486 Object paramObj15 = new IntegerWrapper(birthdayMonth);
1487
1488 Object paramObj16 = new IntegerWrapper(birthdayDay);
1489
1490 Object paramObj17 = new IntegerWrapper(birthdayYear);
1491
1492 Object paramObj18 = smsSn;
1493
1494 if (smsSn == null) {
1495 paramObj18 = new NullWrapper("java.lang.String");
1496 }
1497
1498 Object paramObj19 = aimSn;
1499
1500 if (aimSn == null) {
1501 paramObj19 = new NullWrapper("java.lang.String");
1502 }
1503
1504 Object paramObj20 = icqSn;
1505
1506 if (icqSn == null) {
1507 paramObj20 = new NullWrapper("java.lang.String");
1508 }
1509
1510 Object paramObj21 = jabberSn;
1511
1512 if (jabberSn == null) {
1513 paramObj21 = new NullWrapper("java.lang.String");
1514 }
1515
1516 Object paramObj22 = msnSn;
1517
1518 if (msnSn == null) {
1519 paramObj22 = new NullWrapper("java.lang.String");
1520 }
1521
1522 Object paramObj23 = skypeSn;
1523
1524 if (skypeSn == null) {
1525 paramObj23 = new NullWrapper("java.lang.String");
1526 }
1527
1528 Object paramObj24 = ymSn;
1529
1530 if (ymSn == null) {
1531 paramObj24 = new NullWrapper("java.lang.String");
1532 }
1533
1534 Object paramObj25 = jobTitle;
1535
1536 if (jobTitle == null) {
1537 paramObj25 = new NullWrapper("java.lang.String");
1538 }
1539
1540 Object paramObj26 = organizationIds;
1541
1542 if (organizationIds == null) {
1543 paramObj26 = new NullWrapper("[J");
1544 }
1545
1546 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1547 "updateUser",
1548 new Object[] {
1549 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1550 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1551 paramObj10, paramObj11, paramObj12, paramObj13,
1552 paramObj14, paramObj15, paramObj16, paramObj17,
1553 paramObj18, paramObj19, paramObj20, paramObj21,
1554 paramObj22, paramObj23, paramObj24, paramObj25,
1555 paramObj26
1556 });
1557
1558 Object returnObj = null;
1559
1560 try {
1561 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1562 }
1563 catch (Exception e) {
1564 if (e instanceof com.liferay.portal.SystemException) {
1565 throw (com.liferay.portal.SystemException)e;
1566 }
1567
1568 if (e instanceof com.liferay.portal.PortalException) {
1569 throw (com.liferay.portal.PortalException)e;
1570 }
1571
1572 throw new com.liferay.portal.SystemException(e);
1573 }
1574
1575 return (com.liferay.portal.model.User)returnObj;
1576 }
1577 catch (com.liferay.portal.SystemException se) {
1578 _log.error(se, se);
1579
1580 throw se;
1581 }
1582 }
1583
1584 public static com.liferay.portal.model.User updateUser(
1585 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1586 java.lang.String newPassword1, java.lang.String newPassword2,
1587 boolean passwordReset, java.lang.String screenName,
1588 java.lang.String emailAddress, java.lang.String languageId,
1589 java.lang.String timeZoneId, java.lang.String greeting,
1590 java.lang.String comments, java.lang.String firstName,
1591 java.lang.String middleName, java.lang.String lastName, int prefixId,
1592 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1593 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1594 java.lang.String icqSn, java.lang.String jabberSn,
1595 java.lang.String msnSn, java.lang.String skypeSn,
1596 java.lang.String ymSn, java.lang.String jobTitle, long[] organizationIds)
1597 throws com.liferay.portal.SystemException,
1598 com.liferay.portal.PortalException {
1599 try {
1600 Object paramObj0 = new LongWrapper(userId);
1601
1602 Object paramObj1 = oldPassword;
1603
1604 if (oldPassword == null) {
1605 paramObj1 = new NullWrapper("java.lang.String");
1606 }
1607
1608 Object paramObj2 = newPassword1;
1609
1610 if (newPassword1 == null) {
1611 paramObj2 = new NullWrapper("java.lang.String");
1612 }
1613
1614 Object paramObj3 = newPassword2;
1615
1616 if (newPassword2 == null) {
1617 paramObj3 = new NullWrapper("java.lang.String");
1618 }
1619
1620 Object paramObj4 = new BooleanWrapper(passwordReset);
1621
1622 Object paramObj5 = screenName;
1623
1624 if (screenName == null) {
1625 paramObj5 = new NullWrapper("java.lang.String");
1626 }
1627
1628 Object paramObj6 = emailAddress;
1629
1630 if (emailAddress == null) {
1631 paramObj6 = new NullWrapper("java.lang.String");
1632 }
1633
1634 Object paramObj7 = languageId;
1635
1636 if (languageId == null) {
1637 paramObj7 = new NullWrapper("java.lang.String");
1638 }
1639
1640 Object paramObj8 = timeZoneId;
1641
1642 if (timeZoneId == null) {
1643 paramObj8 = new NullWrapper("java.lang.String");
1644 }
1645
1646 Object paramObj9 = greeting;
1647
1648 if (greeting == null) {
1649 paramObj9 = new NullWrapper("java.lang.String");
1650 }
1651
1652 Object paramObj10 = comments;
1653
1654 if (comments == null) {
1655 paramObj10 = new NullWrapper("java.lang.String");
1656 }
1657
1658 Object paramObj11 = firstName;
1659
1660 if (firstName == null) {
1661 paramObj11 = new NullWrapper("java.lang.String");
1662 }
1663
1664 Object paramObj12 = middleName;
1665
1666 if (middleName == null) {
1667 paramObj12 = new NullWrapper("java.lang.String");
1668 }
1669
1670 Object paramObj13 = lastName;
1671
1672 if (lastName == null) {
1673 paramObj13 = new NullWrapper("java.lang.String");
1674 }
1675
1676 Object paramObj14 = new IntegerWrapper(prefixId);
1677
1678 Object paramObj15 = new IntegerWrapper(suffixId);
1679
1680 Object paramObj16 = new BooleanWrapper(male);
1681
1682 Object paramObj17 = new IntegerWrapper(birthdayMonth);
1683
1684 Object paramObj18 = new IntegerWrapper(birthdayDay);
1685
1686 Object paramObj19 = new IntegerWrapper(birthdayYear);
1687
1688 Object paramObj20 = smsSn;
1689
1690 if (smsSn == null) {
1691 paramObj20 = new NullWrapper("java.lang.String");
1692 }
1693
1694 Object paramObj21 = aimSn;
1695
1696 if (aimSn == null) {
1697 paramObj21 = new NullWrapper("java.lang.String");
1698 }
1699
1700 Object paramObj22 = icqSn;
1701
1702 if (icqSn == null) {
1703 paramObj22 = new NullWrapper("java.lang.String");
1704 }
1705
1706 Object paramObj23 = jabberSn;
1707
1708 if (jabberSn == null) {
1709 paramObj23 = new NullWrapper("java.lang.String");
1710 }
1711
1712 Object paramObj24 = msnSn;
1713
1714 if (msnSn == null) {
1715 paramObj24 = new NullWrapper("java.lang.String");
1716 }
1717
1718 Object paramObj25 = skypeSn;
1719
1720 if (skypeSn == null) {
1721 paramObj25 = new NullWrapper("java.lang.String");
1722 }
1723
1724 Object paramObj26 = ymSn;
1725
1726 if (ymSn == null) {
1727 paramObj26 = new NullWrapper("java.lang.String");
1728 }
1729
1730 Object paramObj27 = jobTitle;
1731
1732 if (jobTitle == null) {
1733 paramObj27 = new NullWrapper("java.lang.String");
1734 }
1735
1736 Object paramObj28 = organizationIds;
1737
1738 if (organizationIds == null) {
1739 paramObj28 = new NullWrapper("[J");
1740 }
1741
1742 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1743 "updateUser",
1744 new Object[] {
1745 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1746 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1747 paramObj10, paramObj11, paramObj12, paramObj13,
1748 paramObj14, paramObj15, paramObj16, paramObj17,
1749 paramObj18, paramObj19, paramObj20, paramObj21,
1750 paramObj22, paramObj23, paramObj24, paramObj25,
1751 paramObj26, paramObj27, paramObj28
1752 });
1753
1754 Object returnObj = null;
1755
1756 try {
1757 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1758 }
1759 catch (Exception e) {
1760 if (e instanceof com.liferay.portal.SystemException) {
1761 throw (com.liferay.portal.SystemException)e;
1762 }
1763
1764 if (e instanceof com.liferay.portal.PortalException) {
1765 throw (com.liferay.portal.PortalException)e;
1766 }
1767
1768 throw new com.liferay.portal.SystemException(e);
1769 }
1770
1771 return (com.liferay.portal.model.User)returnObj;
1772 }
1773 catch (com.liferay.portal.SystemException se) {
1774 _log.error(se, se);
1775
1776 throw se;
1777 }
1778 }
1779
1780 private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
1781}