1
19
20 package com.liferay.portal.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24 import com.liferay.portal.kernel.util.BooleanWrapper;
25 import com.liferay.portal.kernel.util.IntegerWrapper;
26 import com.liferay.portal.kernel.util.LongWrapper;
27 import com.liferay.portal.kernel.util.MethodWrapper;
28 import com.liferay.portal.kernel.util.NullWrapper;
29 import com.liferay.portal.security.auth.HttpPrincipal;
30 import com.liferay.portal.service.UserServiceUtil;
31
32
71 public class UserServiceHttp {
72 public static void addGroupUsers(HttpPrincipal httpPrincipal, long groupId,
73 long[] userIds)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException {
76 try {
77 Object paramObj0 = new LongWrapper(groupId);
78
79 Object paramObj1 = userIds;
80
81 if (userIds == null) {
82 paramObj1 = new NullWrapper("[J");
83 }
84
85 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
86 "addGroupUsers", new Object[] { paramObj0, paramObj1 });
87
88 try {
89 TunnelUtil.invoke(httpPrincipal, methodWrapper);
90 }
91 catch (Exception e) {
92 if (e instanceof com.liferay.portal.PortalException) {
93 throw (com.liferay.portal.PortalException)e;
94 }
95
96 if (e instanceof com.liferay.portal.SystemException) {
97 throw (com.liferay.portal.SystemException)e;
98 }
99
100 throw new com.liferay.portal.SystemException(e);
101 }
102 }
103 catch (com.liferay.portal.SystemException se) {
104 _log.error(se, se);
105
106 throw se;
107 }
108 }
109
110 public static void addOrganizationUsers(HttpPrincipal httpPrincipal,
111 long organizationId, long[] userIds)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException {
114 try {
115 Object paramObj0 = new LongWrapper(organizationId);
116
117 Object paramObj1 = userIds;
118
119 if (userIds == null) {
120 paramObj1 = new NullWrapper("[J");
121 }
122
123 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
124 "addOrganizationUsers",
125 new Object[] { paramObj0, paramObj1 });
126
127 try {
128 TunnelUtil.invoke(httpPrincipal, methodWrapper);
129 }
130 catch (Exception e) {
131 if (e instanceof com.liferay.portal.PortalException) {
132 throw (com.liferay.portal.PortalException)e;
133 }
134
135 if (e instanceof com.liferay.portal.SystemException) {
136 throw (com.liferay.portal.SystemException)e;
137 }
138
139 throw new com.liferay.portal.SystemException(e);
140 }
141 }
142 catch (com.liferay.portal.SystemException se) {
143 _log.error(se, se);
144
145 throw se;
146 }
147 }
148
149 public static void addPasswordPolicyUsers(HttpPrincipal httpPrincipal,
150 long passwordPolicyId, long[] userIds)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 try {
154 Object paramObj0 = new LongWrapper(passwordPolicyId);
155
156 Object paramObj1 = userIds;
157
158 if (userIds == null) {
159 paramObj1 = new NullWrapper("[J");
160 }
161
162 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
163 "addPasswordPolicyUsers",
164 new Object[] { paramObj0, paramObj1 });
165
166 try {
167 TunnelUtil.invoke(httpPrincipal, methodWrapper);
168 }
169 catch (Exception e) {
170 if (e instanceof com.liferay.portal.PortalException) {
171 throw (com.liferay.portal.PortalException)e;
172 }
173
174 if (e instanceof com.liferay.portal.SystemException) {
175 throw (com.liferay.portal.SystemException)e;
176 }
177
178 throw new com.liferay.portal.SystemException(e);
179 }
180 }
181 catch (com.liferay.portal.SystemException se) {
182 _log.error(se, se);
183
184 throw se;
185 }
186 }
187
188 public static void addRoleUsers(HttpPrincipal httpPrincipal, long roleId,
189 long[] userIds)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 try {
193 Object paramObj0 = new LongWrapper(roleId);
194
195 Object paramObj1 = userIds;
196
197 if (userIds == null) {
198 paramObj1 = new NullWrapper("[J");
199 }
200
201 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
202 "addRoleUsers", new Object[] { paramObj0, paramObj1 });
203
204 try {
205 TunnelUtil.invoke(httpPrincipal, methodWrapper);
206 }
207 catch (Exception e) {
208 if (e instanceof com.liferay.portal.PortalException) {
209 throw (com.liferay.portal.PortalException)e;
210 }
211
212 if (e instanceof com.liferay.portal.SystemException) {
213 throw (com.liferay.portal.SystemException)e;
214 }
215
216 throw new com.liferay.portal.SystemException(e);
217 }
218 }
219 catch (com.liferay.portal.SystemException se) {
220 _log.error(se, se);
221
222 throw se;
223 }
224 }
225
226 public static void addUserGroupUsers(HttpPrincipal httpPrincipal,
227 long userGroupId, long[] userIds)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 try {
231 Object paramObj0 = new LongWrapper(userGroupId);
232
233 Object paramObj1 = userIds;
234
235 if (userIds == null) {
236 paramObj1 = new NullWrapper("[J");
237 }
238
239 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
240 "addUserGroupUsers", new Object[] { paramObj0, paramObj1 });
241
242 try {
243 TunnelUtil.invoke(httpPrincipal, methodWrapper);
244 }
245 catch (Exception e) {
246 if (e instanceof com.liferay.portal.PortalException) {
247 throw (com.liferay.portal.PortalException)e;
248 }
249
250 if (e instanceof com.liferay.portal.SystemException) {
251 throw (com.liferay.portal.SystemException)e;
252 }
253
254 throw new com.liferay.portal.SystemException(e);
255 }
256 }
257 catch (com.liferay.portal.SystemException se) {
258 _log.error(se, se);
259
260 throw se;
261 }
262 }
263
264 public static com.liferay.portal.model.User addUser(
265 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
266 java.lang.String password1, java.lang.String password2,
267 boolean autoScreenName, java.lang.String screenName,
268 java.lang.String emailAddress, java.lang.String openId,
269 java.util.Locale locale, java.lang.String firstName,
270 java.lang.String middleName, java.lang.String lastName, int prefixId,
271 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
272 int birthdayYear, java.lang.String jobTitle, long[] groupIds,
273 long[] organizationIds, long[] roleIds, long[] userGroupIds,
274 boolean sendEmail,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.PortalException,
277 com.liferay.portal.SystemException {
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 = openId;
310
311 if (openId == null) {
312 paramObj7 = new NullWrapper("java.lang.String");
313 }
314
315 Object paramObj8 = locale;
316
317 if (locale == null) {
318 paramObj8 = new NullWrapper("java.util.Locale");
319 }
320
321 Object paramObj9 = firstName;
322
323 if (firstName == null) {
324 paramObj9 = new NullWrapper("java.lang.String");
325 }
326
327 Object paramObj10 = middleName;
328
329 if (middleName == null) {
330 paramObj10 = new NullWrapper("java.lang.String");
331 }
332
333 Object paramObj11 = lastName;
334
335 if (lastName == null) {
336 paramObj11 = new NullWrapper("java.lang.String");
337 }
338
339 Object paramObj12 = new IntegerWrapper(prefixId);
340
341 Object paramObj13 = new IntegerWrapper(suffixId);
342
343 Object paramObj14 = new BooleanWrapper(male);
344
345 Object paramObj15 = new IntegerWrapper(birthdayMonth);
346
347 Object paramObj16 = new IntegerWrapper(birthdayDay);
348
349 Object paramObj17 = new IntegerWrapper(birthdayYear);
350
351 Object paramObj18 = jobTitle;
352
353 if (jobTitle == null) {
354 paramObj18 = new NullWrapper("java.lang.String");
355 }
356
357 Object paramObj19 = groupIds;
358
359 if (groupIds == null) {
360 paramObj19 = new NullWrapper("[J");
361 }
362
363 Object paramObj20 = organizationIds;
364
365 if (organizationIds == null) {
366 paramObj20 = new NullWrapper("[J");
367 }
368
369 Object paramObj21 = roleIds;
370
371 if (roleIds == null) {
372 paramObj21 = new NullWrapper("[J");
373 }
374
375 Object paramObj22 = userGroupIds;
376
377 if (userGroupIds == null) {
378 paramObj22 = new NullWrapper("[J");
379 }
380
381 Object paramObj23 = new BooleanWrapper(sendEmail);
382
383 Object paramObj24 = serviceContext;
384
385 if (serviceContext == null) {
386 paramObj24 = new NullWrapper(
387 "com.liferay.portal.service.ServiceContext");
388 }
389
390 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
391 "addUser",
392 new Object[] {
393 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
394 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
395 paramObj10, paramObj11, paramObj12, paramObj13,
396 paramObj14, paramObj15, paramObj16, paramObj17,
397 paramObj18, paramObj19, paramObj20, paramObj21,
398 paramObj22, paramObj23, paramObj24
399 });
400
401 Object returnObj = null;
402
403 try {
404 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
405 }
406 catch (Exception e) {
407 if (e instanceof com.liferay.portal.PortalException) {
408 throw (com.liferay.portal.PortalException)e;
409 }
410
411 if (e instanceof com.liferay.portal.SystemException) {
412 throw (com.liferay.portal.SystemException)e;
413 }
414
415 throw new com.liferay.portal.SystemException(e);
416 }
417
418 return (com.liferay.portal.model.User)returnObj;
419 }
420 catch (com.liferay.portal.SystemException se) {
421 _log.error(se, se);
422
423 throw se;
424 }
425 }
426
427 public static com.liferay.portal.model.User addUser(
428 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
429 java.lang.String password1, java.lang.String password2,
430 boolean autoScreenName, java.lang.String screenName,
431 java.lang.String emailAddress, java.lang.String openId,
432 java.util.Locale locale, java.lang.String firstName,
433 java.lang.String middleName, java.lang.String lastName, int prefixId,
434 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
435 int birthdayYear, java.lang.String jobTitle, long[] groupIds,
436 long[] organizationIds, long[] roleIds, long[] userGroupIds,
437 boolean sendEmail,
438 java.util.List<com.liferay.portal.model.Address> addresses,
439 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
440 java.util.List<com.liferay.portal.model.Phone> phones,
441 java.util.List<com.liferay.portal.model.Website> websites,
442 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
443 com.liferay.portal.service.ServiceContext serviceContext)
444 throws com.liferay.portal.PortalException,
445 com.liferay.portal.SystemException {
446 try {
447 Object paramObj0 = new LongWrapper(companyId);
448
449 Object paramObj1 = new BooleanWrapper(autoPassword);
450
451 Object paramObj2 = password1;
452
453 if (password1 == null) {
454 paramObj2 = new NullWrapper("java.lang.String");
455 }
456
457 Object paramObj3 = password2;
458
459 if (password2 == null) {
460 paramObj3 = new NullWrapper("java.lang.String");
461 }
462
463 Object paramObj4 = new BooleanWrapper(autoScreenName);
464
465 Object paramObj5 = screenName;
466
467 if (screenName == null) {
468 paramObj5 = new NullWrapper("java.lang.String");
469 }
470
471 Object paramObj6 = emailAddress;
472
473 if (emailAddress == null) {
474 paramObj6 = new NullWrapper("java.lang.String");
475 }
476
477 Object paramObj7 = openId;
478
479 if (openId == null) {
480 paramObj7 = new NullWrapper("java.lang.String");
481 }
482
483 Object paramObj8 = locale;
484
485 if (locale == null) {
486 paramObj8 = new NullWrapper("java.util.Locale");
487 }
488
489 Object paramObj9 = firstName;
490
491 if (firstName == null) {
492 paramObj9 = new NullWrapper("java.lang.String");
493 }
494
495 Object paramObj10 = middleName;
496
497 if (middleName == null) {
498 paramObj10 = new NullWrapper("java.lang.String");
499 }
500
501 Object paramObj11 = lastName;
502
503 if (lastName == null) {
504 paramObj11 = new NullWrapper("java.lang.String");
505 }
506
507 Object paramObj12 = new IntegerWrapper(prefixId);
508
509 Object paramObj13 = new IntegerWrapper(suffixId);
510
511 Object paramObj14 = new BooleanWrapper(male);
512
513 Object paramObj15 = new IntegerWrapper(birthdayMonth);
514
515 Object paramObj16 = new IntegerWrapper(birthdayDay);
516
517 Object paramObj17 = new IntegerWrapper(birthdayYear);
518
519 Object paramObj18 = jobTitle;
520
521 if (jobTitle == null) {
522 paramObj18 = new NullWrapper("java.lang.String");
523 }
524
525 Object paramObj19 = groupIds;
526
527 if (groupIds == null) {
528 paramObj19 = new NullWrapper("[J");
529 }
530
531 Object paramObj20 = organizationIds;
532
533 if (organizationIds == null) {
534 paramObj20 = new NullWrapper("[J");
535 }
536
537 Object paramObj21 = roleIds;
538
539 if (roleIds == null) {
540 paramObj21 = new NullWrapper("[J");
541 }
542
543 Object paramObj22 = userGroupIds;
544
545 if (userGroupIds == null) {
546 paramObj22 = new NullWrapper("[J");
547 }
548
549 Object paramObj23 = new BooleanWrapper(sendEmail);
550
551 Object paramObj24 = addresses;
552
553 if (addresses == null) {
554 paramObj24 = new NullWrapper("java.util.List");
555 }
556
557 Object paramObj25 = emailAddresses;
558
559 if (emailAddresses == null) {
560 paramObj25 = new NullWrapper("java.util.List");
561 }
562
563 Object paramObj26 = phones;
564
565 if (phones == null) {
566 paramObj26 = new NullWrapper("java.util.List");
567 }
568
569 Object paramObj27 = websites;
570
571 if (websites == null) {
572 paramObj27 = new NullWrapper("java.util.List");
573 }
574
575 Object paramObj28 = announcementsDelivers;
576
577 if (announcementsDelivers == null) {
578 paramObj28 = new NullWrapper("java.util.List");
579 }
580
581 Object paramObj29 = serviceContext;
582
583 if (serviceContext == null) {
584 paramObj29 = new NullWrapper(
585 "com.liferay.portal.service.ServiceContext");
586 }
587
588 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
589 "addUser",
590 new Object[] {
591 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
592 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
593 paramObj10, paramObj11, paramObj12, paramObj13,
594 paramObj14, paramObj15, paramObj16, paramObj17,
595 paramObj18, paramObj19, paramObj20, paramObj21,
596 paramObj22, paramObj23, paramObj24, paramObj25,
597 paramObj26, paramObj27, paramObj28, paramObj29
598 });
599
600 Object returnObj = null;
601
602 try {
603 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
604 }
605 catch (Exception e) {
606 if (e instanceof com.liferay.portal.PortalException) {
607 throw (com.liferay.portal.PortalException)e;
608 }
609
610 if (e instanceof com.liferay.portal.SystemException) {
611 throw (com.liferay.portal.SystemException)e;
612 }
613
614 throw new com.liferay.portal.SystemException(e);
615 }
616
617 return (com.liferay.portal.model.User)returnObj;
618 }
619 catch (com.liferay.portal.SystemException se) {
620 _log.error(se, se);
621
622 throw se;
623 }
624 }
625
626 public static void deletePortrait(HttpPrincipal httpPrincipal, long userId)
627 throws com.liferay.portal.PortalException,
628 com.liferay.portal.SystemException {
629 try {
630 Object paramObj0 = new LongWrapper(userId);
631
632 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
633 "deletePortrait", new Object[] { paramObj0 });
634
635 try {
636 TunnelUtil.invoke(httpPrincipal, methodWrapper);
637 }
638 catch (Exception e) {
639 if (e instanceof com.liferay.portal.PortalException) {
640 throw (com.liferay.portal.PortalException)e;
641 }
642
643 if (e instanceof com.liferay.portal.SystemException) {
644 throw (com.liferay.portal.SystemException)e;
645 }
646
647 throw new com.liferay.portal.SystemException(e);
648 }
649 }
650 catch (com.liferay.portal.SystemException se) {
651 _log.error(se, se);
652
653 throw se;
654 }
655 }
656
657 public static void deleteRoleUser(HttpPrincipal httpPrincipal, long roleId,
658 long userId)
659 throws com.liferay.portal.PortalException,
660 com.liferay.portal.SystemException {
661 try {
662 Object paramObj0 = new LongWrapper(roleId);
663
664 Object paramObj1 = new LongWrapper(userId);
665
666 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
667 "deleteRoleUser", new Object[] { paramObj0, paramObj1 });
668
669 try {
670 TunnelUtil.invoke(httpPrincipal, methodWrapper);
671 }
672 catch (Exception e) {
673 if (e instanceof com.liferay.portal.PortalException) {
674 throw (com.liferay.portal.PortalException)e;
675 }
676
677 if (e instanceof com.liferay.portal.SystemException) {
678 throw (com.liferay.portal.SystemException)e;
679 }
680
681 throw new com.liferay.portal.SystemException(e);
682 }
683 }
684 catch (com.liferay.portal.SystemException se) {
685 _log.error(se, se);
686
687 throw se;
688 }
689 }
690
691 public static void deleteUser(HttpPrincipal httpPrincipal, long userId)
692 throws com.liferay.portal.PortalException,
693 com.liferay.portal.SystemException {
694 try {
695 Object paramObj0 = new LongWrapper(userId);
696
697 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
698 "deleteUser", new Object[] { paramObj0 });
699
700 try {
701 TunnelUtil.invoke(httpPrincipal, methodWrapper);
702 }
703 catch (Exception e) {
704 if (e instanceof com.liferay.portal.PortalException) {
705 throw (com.liferay.portal.PortalException)e;
706 }
707
708 if (e instanceof com.liferay.portal.SystemException) {
709 throw (com.liferay.portal.SystemException)e;
710 }
711
712 throw new com.liferay.portal.SystemException(e);
713 }
714 }
715 catch (com.liferay.portal.SystemException se) {
716 _log.error(se, se);
717
718 throw se;
719 }
720 }
721
722 public static long getDefaultUserId(HttpPrincipal httpPrincipal,
723 long companyId)
724 throws com.liferay.portal.PortalException,
725 com.liferay.portal.SystemException {
726 try {
727 Object paramObj0 = new LongWrapper(companyId);
728
729 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
730 "getDefaultUserId", new Object[] { paramObj0 });
731
732 Object returnObj = null;
733
734 try {
735 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
736 }
737 catch (Exception e) {
738 if (e instanceof com.liferay.portal.PortalException) {
739 throw (com.liferay.portal.PortalException)e;
740 }
741
742 if (e instanceof com.liferay.portal.SystemException) {
743 throw (com.liferay.portal.SystemException)e;
744 }
745
746 throw new com.liferay.portal.SystemException(e);
747 }
748
749 return ((Long)returnObj).longValue();
750 }
751 catch (com.liferay.portal.SystemException se) {
752 _log.error(se, se);
753
754 throw se;
755 }
756 }
757
758 public static long[] getGroupUserIds(HttpPrincipal httpPrincipal,
759 long groupId) throws com.liferay.portal.SystemException {
760 try {
761 Object paramObj0 = new LongWrapper(groupId);
762
763 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
764 "getGroupUserIds", new Object[] { paramObj0 });
765
766 Object returnObj = null;
767
768 try {
769 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
770 }
771 catch (Exception e) {
772 if (e instanceof com.liferay.portal.SystemException) {
773 throw (com.liferay.portal.SystemException)e;
774 }
775
776 throw new com.liferay.portal.SystemException(e);
777 }
778
779 return (long[])returnObj;
780 }
781 catch (com.liferay.portal.SystemException se) {
782 _log.error(se, se);
783
784 throw se;
785 }
786 }
787
788 public static long[] getOrganizationUserIds(HttpPrincipal httpPrincipal,
789 long organizationId) throws com.liferay.portal.SystemException {
790 try {
791 Object paramObj0 = new LongWrapper(organizationId);
792
793 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
794 "getOrganizationUserIds", new Object[] { paramObj0 });
795
796 Object returnObj = null;
797
798 try {
799 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
800 }
801 catch (Exception e) {
802 if (e instanceof com.liferay.portal.SystemException) {
803 throw (com.liferay.portal.SystemException)e;
804 }
805
806 throw new com.liferay.portal.SystemException(e);
807 }
808
809 return (long[])returnObj;
810 }
811 catch (com.liferay.portal.SystemException se) {
812 _log.error(se, se);
813
814 throw se;
815 }
816 }
817
818 public static long[] getRoleUserIds(HttpPrincipal httpPrincipal, long roleId)
819 throws com.liferay.portal.SystemException {
820 try {
821 Object paramObj0 = new LongWrapper(roleId);
822
823 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
824 "getRoleUserIds", new Object[] { paramObj0 });
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 throw new com.liferay.portal.SystemException(e);
837 }
838
839 return (long[])returnObj;
840 }
841 catch (com.liferay.portal.SystemException se) {
842 _log.error(se, se);
843
844 throw se;
845 }
846 }
847
848 public static com.liferay.portal.model.User getUserByEmailAddress(
849 HttpPrincipal httpPrincipal, long companyId,
850 java.lang.String emailAddress)
851 throws com.liferay.portal.PortalException,
852 com.liferay.portal.SystemException {
853 try {
854 Object paramObj0 = new LongWrapper(companyId);
855
856 Object paramObj1 = emailAddress;
857
858 if (emailAddress == null) {
859 paramObj1 = new NullWrapper("java.lang.String");
860 }
861
862 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
863 "getUserByEmailAddress",
864 new Object[] { paramObj0, paramObj1 });
865
866 Object returnObj = null;
867
868 try {
869 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
870 }
871 catch (Exception e) {
872 if (e instanceof com.liferay.portal.PortalException) {
873 throw (com.liferay.portal.PortalException)e;
874 }
875
876 if (e instanceof com.liferay.portal.SystemException) {
877 throw (com.liferay.portal.SystemException)e;
878 }
879
880 throw new com.liferay.portal.SystemException(e);
881 }
882
883 return (com.liferay.portal.model.User)returnObj;
884 }
885 catch (com.liferay.portal.SystemException se) {
886 _log.error(se, se);
887
888 throw se;
889 }
890 }
891
892 public static com.liferay.portal.model.User getUserById(
893 HttpPrincipal httpPrincipal, long userId)
894 throws com.liferay.portal.PortalException,
895 com.liferay.portal.SystemException {
896 try {
897 Object paramObj0 = new LongWrapper(userId);
898
899 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
900 "getUserById", new Object[] { paramObj0 });
901
902 Object returnObj = null;
903
904 try {
905 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
906 }
907 catch (Exception e) {
908 if (e instanceof com.liferay.portal.PortalException) {
909 throw (com.liferay.portal.PortalException)e;
910 }
911
912 if (e instanceof com.liferay.portal.SystemException) {
913 throw (com.liferay.portal.SystemException)e;
914 }
915
916 throw new com.liferay.portal.SystemException(e);
917 }
918
919 return (com.liferay.portal.model.User)returnObj;
920 }
921 catch (com.liferay.portal.SystemException se) {
922 _log.error(se, se);
923
924 throw se;
925 }
926 }
927
928 public static com.liferay.portal.model.User getUserByScreenName(
929 HttpPrincipal httpPrincipal, long companyId, java.lang.String screenName)
930 throws com.liferay.portal.PortalException,
931 com.liferay.portal.SystemException {
932 try {
933 Object paramObj0 = new LongWrapper(companyId);
934
935 Object paramObj1 = screenName;
936
937 if (screenName == null) {
938 paramObj1 = new NullWrapper("java.lang.String");
939 }
940
941 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
942 "getUserByScreenName", new Object[] { paramObj0, paramObj1 });
943
944 Object returnObj = null;
945
946 try {
947 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
948 }
949 catch (Exception e) {
950 if (e instanceof com.liferay.portal.PortalException) {
951 throw (com.liferay.portal.PortalException)e;
952 }
953
954 if (e instanceof com.liferay.portal.SystemException) {
955 throw (com.liferay.portal.SystemException)e;
956 }
957
958 throw new com.liferay.portal.SystemException(e);
959 }
960
961 return (com.liferay.portal.model.User)returnObj;
962 }
963 catch (com.liferay.portal.SystemException se) {
964 _log.error(se, se);
965
966 throw se;
967 }
968 }
969
970 public static long getUserIdByEmailAddress(HttpPrincipal httpPrincipal,
971 long companyId, java.lang.String emailAddress)
972 throws com.liferay.portal.PortalException,
973 com.liferay.portal.SystemException {
974 try {
975 Object paramObj0 = new LongWrapper(companyId);
976
977 Object paramObj1 = emailAddress;
978
979 if (emailAddress == null) {
980 paramObj1 = new NullWrapper("java.lang.String");
981 }
982
983 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
984 "getUserIdByEmailAddress",
985 new Object[] { paramObj0, paramObj1 });
986
987 Object returnObj = null;
988
989 try {
990 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
991 }
992 catch (Exception e) {
993 if (e instanceof com.liferay.portal.PortalException) {
994 throw (com.liferay.portal.PortalException)e;
995 }
996
997 if (e instanceof com.liferay.portal.SystemException) {
998 throw (com.liferay.portal.SystemException)e;
999 }
1000
1001 throw new com.liferay.portal.SystemException(e);
1002 }
1003
1004 return ((Long)returnObj).longValue();
1005 }
1006 catch (com.liferay.portal.SystemException se) {
1007 _log.error(se, se);
1008
1009 throw se;
1010 }
1011 }
1012
1013 public static long getUserIdByScreenName(HttpPrincipal httpPrincipal,
1014 long companyId, java.lang.String screenName)
1015 throws com.liferay.portal.PortalException,
1016 com.liferay.portal.SystemException {
1017 try {
1018 Object paramObj0 = new LongWrapper(companyId);
1019
1020 Object paramObj1 = screenName;
1021
1022 if (screenName == null) {
1023 paramObj1 = new NullWrapper("java.lang.String");
1024 }
1025
1026 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1027 "getUserIdByScreenName",
1028 new Object[] { paramObj0, paramObj1 });
1029
1030 Object returnObj = null;
1031
1032 try {
1033 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1034 }
1035 catch (Exception e) {
1036 if (e instanceof com.liferay.portal.PortalException) {
1037 throw (com.liferay.portal.PortalException)e;
1038 }
1039
1040 if (e instanceof com.liferay.portal.SystemException) {
1041 throw (com.liferay.portal.SystemException)e;
1042 }
1043
1044 throw new com.liferay.portal.SystemException(e);
1045 }
1046
1047 return ((Long)returnObj).longValue();
1048 }
1049 catch (com.liferay.portal.SystemException se) {
1050 _log.error(se, se);
1051
1052 throw se;
1053 }
1054 }
1055
1056 public static boolean hasGroupUser(HttpPrincipal httpPrincipal,
1057 long groupId, long userId) throws com.liferay.portal.SystemException {
1058 try {
1059 Object paramObj0 = new LongWrapper(groupId);
1060
1061 Object paramObj1 = new LongWrapper(userId);
1062
1063 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1064 "hasGroupUser", new Object[] { paramObj0, paramObj1 });
1065
1066 Object returnObj = null;
1067
1068 try {
1069 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1070 }
1071 catch (Exception e) {
1072 if (e instanceof com.liferay.portal.SystemException) {
1073 throw (com.liferay.portal.SystemException)e;
1074 }
1075
1076 throw new com.liferay.portal.SystemException(e);
1077 }
1078
1079 return ((Boolean)returnObj).booleanValue();
1080 }
1081 catch (com.liferay.portal.SystemException se) {
1082 _log.error(se, se);
1083
1084 throw se;
1085 }
1086 }
1087
1088 public static boolean hasRoleUser(HttpPrincipal httpPrincipal, long roleId,
1089 long userId) throws com.liferay.portal.SystemException {
1090 try {
1091 Object paramObj0 = new LongWrapper(roleId);
1092
1093 Object paramObj1 = new LongWrapper(userId);
1094
1095 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1096 "hasRoleUser", new Object[] { paramObj0, paramObj1 });
1097
1098 Object returnObj = null;
1099
1100 try {
1101 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1102 }
1103 catch (Exception e) {
1104 if (e instanceof com.liferay.portal.SystemException) {
1105 throw (com.liferay.portal.SystemException)e;
1106 }
1107
1108 throw new com.liferay.portal.SystemException(e);
1109 }
1110
1111 return ((Boolean)returnObj).booleanValue();
1112 }
1113 catch (com.liferay.portal.SystemException se) {
1114 _log.error(se, se);
1115
1116 throw se;
1117 }
1118 }
1119
1120 public static boolean hasRoleUser(HttpPrincipal httpPrincipal,
1121 long companyId, java.lang.String name, long userId, boolean inherited)
1122 throws com.liferay.portal.PortalException,
1123 com.liferay.portal.SystemException {
1124 try {
1125 Object paramObj0 = new LongWrapper(companyId);
1126
1127 Object paramObj1 = name;
1128
1129 if (name == null) {
1130 paramObj1 = new NullWrapper("java.lang.String");
1131 }
1132
1133 Object paramObj2 = new LongWrapper(userId);
1134
1135 Object paramObj3 = new BooleanWrapper(inherited);
1136
1137 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1138 "hasRoleUser",
1139 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1140
1141 Object returnObj = null;
1142
1143 try {
1144 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1145 }
1146 catch (Exception e) {
1147 if (e instanceof com.liferay.portal.PortalException) {
1148 throw (com.liferay.portal.PortalException)e;
1149 }
1150
1151 if (e instanceof com.liferay.portal.SystemException) {
1152 throw (com.liferay.portal.SystemException)e;
1153 }
1154
1155 throw new com.liferay.portal.SystemException(e);
1156 }
1157
1158 return ((Boolean)returnObj).booleanValue();
1159 }
1160 catch (com.liferay.portal.SystemException se) {
1161 _log.error(se, se);
1162
1163 throw se;
1164 }
1165 }
1166
1167 public static void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1168 long[] userIds)
1169 throws com.liferay.portal.PortalException,
1170 com.liferay.portal.SystemException {
1171 try {
1172 Object paramObj0 = new LongWrapper(roleId);
1173
1174 Object paramObj1 = userIds;
1175
1176 if (userIds == null) {
1177 paramObj1 = new NullWrapper("[J");
1178 }
1179
1180 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1181 "setRoleUsers", new Object[] { paramObj0, paramObj1 });
1182
1183 try {
1184 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1185 }
1186 catch (Exception e) {
1187 if (e instanceof com.liferay.portal.PortalException) {
1188 throw (com.liferay.portal.PortalException)e;
1189 }
1190
1191 if (e instanceof com.liferay.portal.SystemException) {
1192 throw (com.liferay.portal.SystemException)e;
1193 }
1194
1195 throw new com.liferay.portal.SystemException(e);
1196 }
1197 }
1198 catch (com.liferay.portal.SystemException se) {
1199 _log.error(se, se);
1200
1201 throw se;
1202 }
1203 }
1204
1205 public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
1206 long userGroupId, long[] userIds)
1207 throws com.liferay.portal.PortalException,
1208 com.liferay.portal.SystemException {
1209 try {
1210 Object paramObj0 = new LongWrapper(userGroupId);
1211
1212 Object paramObj1 = userIds;
1213
1214 if (userIds == null) {
1215 paramObj1 = new NullWrapper("[J");
1216 }
1217
1218 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1219 "setUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1220
1221 try {
1222 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1223 }
1224 catch (Exception e) {
1225 if (e instanceof com.liferay.portal.PortalException) {
1226 throw (com.liferay.portal.PortalException)e;
1227 }
1228
1229 if (e instanceof com.liferay.portal.SystemException) {
1230 throw (com.liferay.portal.SystemException)e;
1231 }
1232
1233 throw new com.liferay.portal.SystemException(e);
1234 }
1235 }
1236 catch (com.liferay.portal.SystemException se) {
1237 _log.error(se, se);
1238
1239 throw se;
1240 }
1241 }
1242
1243 public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
1244 long groupId, long[] userIds)
1245 throws com.liferay.portal.PortalException,
1246 com.liferay.portal.SystemException {
1247 try {
1248 Object paramObj0 = new LongWrapper(groupId);
1249
1250 Object paramObj1 = userIds;
1251
1252 if (userIds == null) {
1253 paramObj1 = new NullWrapper("[J");
1254 }
1255
1256 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1257 "unsetGroupUsers", new Object[] { paramObj0, paramObj1 });
1258
1259 try {
1260 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1261 }
1262 catch (Exception e) {
1263 if (e instanceof com.liferay.portal.PortalException) {
1264 throw (com.liferay.portal.PortalException)e;
1265 }
1266
1267 if (e instanceof com.liferay.portal.SystemException) {
1268 throw (com.liferay.portal.SystemException)e;
1269 }
1270
1271 throw new com.liferay.portal.SystemException(e);
1272 }
1273 }
1274 catch (com.liferay.portal.SystemException se) {
1275 _log.error(se, se);
1276
1277 throw se;
1278 }
1279 }
1280
1281 public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
1282 long organizationId, long[] userIds)
1283 throws com.liferay.portal.PortalException,
1284 com.liferay.portal.SystemException {
1285 try {
1286 Object paramObj0 = new LongWrapper(organizationId);
1287
1288 Object paramObj1 = userIds;
1289
1290 if (userIds == null) {
1291 paramObj1 = new NullWrapper("[J");
1292 }
1293
1294 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1295 "unsetOrganizationUsers",
1296 new Object[] { paramObj0, paramObj1 });
1297
1298 try {
1299 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1300 }
1301 catch (Exception e) {
1302 if (e instanceof com.liferay.portal.PortalException) {
1303 throw (com.liferay.portal.PortalException)e;
1304 }
1305
1306 if (e instanceof com.liferay.portal.SystemException) {
1307 throw (com.liferay.portal.SystemException)e;
1308 }
1309
1310 throw new com.liferay.portal.SystemException(e);
1311 }
1312 }
1313 catch (com.liferay.portal.SystemException se) {
1314 _log.error(se, se);
1315
1316 throw se;
1317 }
1318 }
1319
1320 public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1321 long passwordPolicyId, long[] userIds)
1322 throws com.liferay.portal.PortalException,
1323 com.liferay.portal.SystemException {
1324 try {
1325 Object paramObj0 = new LongWrapper(passwordPolicyId);
1326
1327 Object paramObj1 = userIds;
1328
1329 if (userIds == null) {
1330 paramObj1 = new NullWrapper("[J");
1331 }
1332
1333 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1334 "unsetPasswordPolicyUsers",
1335 new Object[] { paramObj0, paramObj1 });
1336
1337 try {
1338 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1339 }
1340 catch (Exception e) {
1341 if (e instanceof com.liferay.portal.PortalException) {
1342 throw (com.liferay.portal.PortalException)e;
1343 }
1344
1345 if (e instanceof com.liferay.portal.SystemException) {
1346 throw (com.liferay.portal.SystemException)e;
1347 }
1348
1349 throw new com.liferay.portal.SystemException(e);
1350 }
1351 }
1352 catch (com.liferay.portal.SystemException se) {
1353 _log.error(se, se);
1354
1355 throw se;
1356 }
1357 }
1358
1359 public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1360 long[] userIds)
1361 throws com.liferay.portal.PortalException,
1362 com.liferay.portal.SystemException {
1363 try {
1364 Object paramObj0 = new LongWrapper(roleId);
1365
1366 Object paramObj1 = userIds;
1367
1368 if (userIds == null) {
1369 paramObj1 = new NullWrapper("[J");
1370 }
1371
1372 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1373 "unsetRoleUsers", new Object[] { paramObj0, paramObj1 });
1374
1375 try {
1376 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1377 }
1378 catch (Exception e) {
1379 if (e instanceof com.liferay.portal.PortalException) {
1380 throw (com.liferay.portal.PortalException)e;
1381 }
1382
1383 if (e instanceof com.liferay.portal.SystemException) {
1384 throw (com.liferay.portal.SystemException)e;
1385 }
1386
1387 throw new com.liferay.portal.SystemException(e);
1388 }
1389 }
1390 catch (com.liferay.portal.SystemException se) {
1391 _log.error(se, se);
1392
1393 throw se;
1394 }
1395 }
1396
1397 public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1398 long userGroupId, long[] userIds)
1399 throws com.liferay.portal.PortalException,
1400 com.liferay.portal.SystemException {
1401 try {
1402 Object paramObj0 = new LongWrapper(userGroupId);
1403
1404 Object paramObj1 = userIds;
1405
1406 if (userIds == null) {
1407 paramObj1 = new NullWrapper("[J");
1408 }
1409
1410 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1411 "unsetUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1412
1413 try {
1414 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1415 }
1416 catch (Exception e) {
1417 if (e instanceof com.liferay.portal.PortalException) {
1418 throw (com.liferay.portal.PortalException)e;
1419 }
1420
1421 if (e instanceof com.liferay.portal.SystemException) {
1422 throw (com.liferay.portal.SystemException)e;
1423 }
1424
1425 throw new com.liferay.portal.SystemException(e);
1426 }
1427 }
1428 catch (com.liferay.portal.SystemException se) {
1429 _log.error(se, se);
1430
1431 throw se;
1432 }
1433 }
1434
1435 public static com.liferay.portal.model.User updateActive(
1436 HttpPrincipal httpPrincipal, long userId, boolean active)
1437 throws com.liferay.portal.PortalException,
1438 com.liferay.portal.SystemException {
1439 try {
1440 Object paramObj0 = new LongWrapper(userId);
1441
1442 Object paramObj1 = new BooleanWrapper(active);
1443
1444 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1445 "updateActive", new Object[] { paramObj0, paramObj1 });
1446
1447 Object returnObj = null;
1448
1449 try {
1450 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1451 }
1452 catch (Exception e) {
1453 if (e instanceof com.liferay.portal.PortalException) {
1454 throw (com.liferay.portal.PortalException)e;
1455 }
1456
1457 if (e instanceof com.liferay.portal.SystemException) {
1458 throw (com.liferay.portal.SystemException)e;
1459 }
1460
1461 throw new com.liferay.portal.SystemException(e);
1462 }
1463
1464 return (com.liferay.portal.model.User)returnObj;
1465 }
1466 catch (com.liferay.portal.SystemException se) {
1467 _log.error(se, se);
1468
1469 throw se;
1470 }
1471 }
1472
1473 public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1474 HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1475 throws com.liferay.portal.PortalException,
1476 com.liferay.portal.SystemException {
1477 try {
1478 Object paramObj0 = new LongWrapper(userId);
1479
1480 Object paramObj1 = new BooleanWrapper(agreedToTermsOfUse);
1481
1482 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1483 "updateAgreedToTermsOfUse",
1484 new Object[] { paramObj0, paramObj1 });
1485
1486 Object returnObj = null;
1487
1488 try {
1489 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1490 }
1491 catch (Exception e) {
1492 if (e instanceof com.liferay.portal.PortalException) {
1493 throw (com.liferay.portal.PortalException)e;
1494 }
1495
1496 if (e instanceof com.liferay.portal.SystemException) {
1497 throw (com.liferay.portal.SystemException)e;
1498 }
1499
1500 throw new com.liferay.portal.SystemException(e);
1501 }
1502
1503 return (com.liferay.portal.model.User)returnObj;
1504 }
1505 catch (com.liferay.portal.SystemException se) {
1506 _log.error(se, se);
1507
1508 throw se;
1509 }
1510 }
1511
1512 public static void updateEmailAddress(HttpPrincipal httpPrincipal,
1513 long userId, java.lang.String password, java.lang.String emailAddress1,
1514 java.lang.String emailAddress2)
1515 throws com.liferay.portal.PortalException,
1516 com.liferay.portal.SystemException {
1517 try {
1518 Object paramObj0 = new LongWrapper(userId);
1519
1520 Object paramObj1 = password;
1521
1522 if (password == null) {
1523 paramObj1 = new NullWrapper("java.lang.String");
1524 }
1525
1526 Object paramObj2 = emailAddress1;
1527
1528 if (emailAddress1 == null) {
1529 paramObj2 = new NullWrapper("java.lang.String");
1530 }
1531
1532 Object paramObj3 = emailAddress2;
1533
1534 if (emailAddress2 == null) {
1535 paramObj3 = new NullWrapper("java.lang.String");
1536 }
1537
1538 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1539 "updateEmailAddress",
1540 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1541
1542 try {
1543 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1544 }
1545 catch (Exception e) {
1546 if (e instanceof com.liferay.portal.PortalException) {
1547 throw (com.liferay.portal.PortalException)e;
1548 }
1549
1550 if (e instanceof com.liferay.portal.SystemException) {
1551 throw (com.liferay.portal.SystemException)e;
1552 }
1553
1554 throw new com.liferay.portal.SystemException(e);
1555 }
1556 }
1557 catch (com.liferay.portal.SystemException se) {
1558 _log.error(se, se);
1559
1560 throw se;
1561 }
1562 }
1563
1564 public static com.liferay.portal.model.User updateLockout(
1565 HttpPrincipal httpPrincipal, long userId, boolean lockout)
1566 throws com.liferay.portal.PortalException,
1567 com.liferay.portal.SystemException {
1568 try {
1569 Object paramObj0 = new LongWrapper(userId);
1570
1571 Object paramObj1 = new BooleanWrapper(lockout);
1572
1573 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1574 "updateLockout", new Object[] { paramObj0, paramObj1 });
1575
1576 Object returnObj = null;
1577
1578 try {
1579 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1580 }
1581 catch (Exception e) {
1582 if (e instanceof com.liferay.portal.PortalException) {
1583 throw (com.liferay.portal.PortalException)e;
1584 }
1585
1586 if (e instanceof com.liferay.portal.SystemException) {
1587 throw (com.liferay.portal.SystemException)e;
1588 }
1589
1590 throw new com.liferay.portal.SystemException(e);
1591 }
1592
1593 return (com.liferay.portal.model.User)returnObj;
1594 }
1595 catch (com.liferay.portal.SystemException se) {
1596 _log.error(se, se);
1597
1598 throw se;
1599 }
1600 }
1601
1602 public static void updateOpenId(HttpPrincipal httpPrincipal, long userId,
1603 java.lang.String openId)
1604 throws com.liferay.portal.PortalException,
1605 com.liferay.portal.SystemException {
1606 try {
1607 Object paramObj0 = new LongWrapper(userId);
1608
1609 Object paramObj1 = openId;
1610
1611 if (openId == null) {
1612 paramObj1 = new NullWrapper("java.lang.String");
1613 }
1614
1615 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1616 "updateOpenId", new Object[] { paramObj0, paramObj1 });
1617
1618 try {
1619 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1620 }
1621 catch (Exception e) {
1622 if (e instanceof com.liferay.portal.PortalException) {
1623 throw (com.liferay.portal.PortalException)e;
1624 }
1625
1626 if (e instanceof com.liferay.portal.SystemException) {
1627 throw (com.liferay.portal.SystemException)e;
1628 }
1629
1630 throw new com.liferay.portal.SystemException(e);
1631 }
1632 }
1633 catch (com.liferay.portal.SystemException se) {
1634 _log.error(se, se);
1635
1636 throw se;
1637 }
1638 }
1639
1640 public static void updateOrganizations(HttpPrincipal httpPrincipal,
1641 long userId, long[] organizationIds)
1642 throws com.liferay.portal.PortalException,
1643 com.liferay.portal.SystemException {
1644 try {
1645 Object paramObj0 = new LongWrapper(userId);
1646
1647 Object paramObj1 = organizationIds;
1648
1649 if (organizationIds == null) {
1650 paramObj1 = new NullWrapper("[J");
1651 }
1652
1653 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1654 "updateOrganizations", new Object[] { paramObj0, paramObj1 });
1655
1656 try {
1657 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1658 }
1659 catch (Exception e) {
1660 if (e instanceof com.liferay.portal.PortalException) {
1661 throw (com.liferay.portal.PortalException)e;
1662 }
1663
1664 if (e instanceof com.liferay.portal.SystemException) {
1665 throw (com.liferay.portal.SystemException)e;
1666 }
1667
1668 throw new com.liferay.portal.SystemException(e);
1669 }
1670 }
1671 catch (com.liferay.portal.SystemException se) {
1672 _log.error(se, se);
1673
1674 throw se;
1675 }
1676 }
1677
1678 public static com.liferay.portal.model.User updatePassword(
1679 HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1680 java.lang.String password2, boolean passwordReset)
1681 throws com.liferay.portal.PortalException,
1682 com.liferay.portal.SystemException {
1683 try {
1684 Object paramObj0 = new LongWrapper(userId);
1685
1686 Object paramObj1 = password1;
1687
1688 if (password1 == null) {
1689 paramObj1 = new NullWrapper("java.lang.String");
1690 }
1691
1692 Object paramObj2 = password2;
1693
1694 if (password2 == null) {
1695 paramObj2 = new NullWrapper("java.lang.String");
1696 }
1697
1698 Object paramObj3 = new BooleanWrapper(passwordReset);
1699
1700 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1701 "updatePassword",
1702 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1703
1704 Object returnObj = null;
1705
1706 try {
1707 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1708 }
1709 catch (Exception e) {
1710 if (e instanceof com.liferay.portal.PortalException) {
1711 throw (com.liferay.portal.PortalException)e;
1712 }
1713
1714 if (e instanceof com.liferay.portal.SystemException) {
1715 throw (com.liferay.portal.SystemException)e;
1716 }
1717
1718 throw new com.liferay.portal.SystemException(e);
1719 }
1720
1721 return (com.liferay.portal.model.User)returnObj;
1722 }
1723 catch (com.liferay.portal.SystemException se) {
1724 _log.error(se, se);
1725
1726 throw se;
1727 }
1728 }
1729
1730 public static void updatePortrait(HttpPrincipal httpPrincipal, long userId,
1731 byte[] bytes)
1732 throws com.liferay.portal.PortalException,
1733 com.liferay.portal.SystemException {
1734 try {
1735 Object paramObj0 = new LongWrapper(userId);
1736
1737 Object paramObj1 = bytes;
1738
1739 if (bytes == null) {
1740 paramObj1 = new NullWrapper("[B");
1741 }
1742
1743 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1744 "updatePortrait", new Object[] { paramObj0, paramObj1 });
1745
1746 try {
1747 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1748 }
1749 catch (Exception e) {
1750 if (e instanceof com.liferay.portal.PortalException) {
1751 throw (com.liferay.portal.PortalException)e;
1752 }
1753
1754 if (e instanceof com.liferay.portal.SystemException) {
1755 throw (com.liferay.portal.SystemException)e;
1756 }
1757
1758 throw new com.liferay.portal.SystemException(e);
1759 }
1760 }
1761 catch (com.liferay.portal.SystemException se) {
1762 _log.error(se, se);
1763
1764 throw se;
1765 }
1766 }
1767
1768 public static void updateReminderQuery(HttpPrincipal httpPrincipal,
1769 long userId, java.lang.String question, java.lang.String answer)
1770 throws com.liferay.portal.PortalException,
1771 com.liferay.portal.SystemException {
1772 try {
1773 Object paramObj0 = new LongWrapper(userId);
1774
1775 Object paramObj1 = question;
1776
1777 if (question == null) {
1778 paramObj1 = new NullWrapper("java.lang.String");
1779 }
1780
1781 Object paramObj2 = answer;
1782
1783 if (answer == null) {
1784 paramObj2 = new NullWrapper("java.lang.String");
1785 }
1786
1787 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1788 "updateReminderQuery",
1789 new Object[] { paramObj0, paramObj1, paramObj2 });
1790
1791 try {
1792 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1793 }
1794 catch (Exception e) {
1795 if (e instanceof com.liferay.portal.PortalException) {
1796 throw (com.liferay.portal.PortalException)e;
1797 }
1798
1799 if (e instanceof com.liferay.portal.SystemException) {
1800 throw (com.liferay.portal.SystemException)e;
1801 }
1802
1803 throw new com.liferay.portal.SystemException(e);
1804 }
1805 }
1806 catch (com.liferay.portal.SystemException se) {
1807 _log.error(se, se);
1808
1809 throw se;
1810 }
1811 }
1812
1813 public static void updateScreenName(HttpPrincipal httpPrincipal,
1814 long userId, java.lang.String screenName)
1815 throws com.liferay.portal.PortalException,
1816 com.liferay.portal.SystemException {
1817 try {
1818 Object paramObj0 = new LongWrapper(userId);
1819
1820 Object paramObj1 = screenName;
1821
1822 if (screenName == null) {
1823 paramObj1 = new NullWrapper("java.lang.String");
1824 }
1825
1826 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1827 "updateScreenName", new Object[] { paramObj0, paramObj1 });
1828
1829 try {
1830 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1831 }
1832 catch (Exception e) {
1833 if (e instanceof com.liferay.portal.PortalException) {
1834 throw (com.liferay.portal.PortalException)e;
1835 }
1836
1837 if (e instanceof com.liferay.portal.SystemException) {
1838 throw (com.liferay.portal.SystemException)e;
1839 }
1840
1841 throw new com.liferay.portal.SystemException(e);
1842 }
1843 }
1844 catch (com.liferay.portal.SystemException se) {
1845 _log.error(se, se);
1846
1847 throw se;
1848 }
1849 }
1850
1851 public static com.liferay.portal.model.User updateUser(
1852 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1853 java.lang.String newPassword1, java.lang.String newPassword2,
1854 boolean passwordReset, java.lang.String reminderQueryQuestion,
1855 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1856 java.lang.String emailAddress, java.lang.String openId,
1857 java.lang.String languageId, java.lang.String timeZoneId,
1858 java.lang.String greeting, java.lang.String comments,
1859 java.lang.String firstName, java.lang.String middleName,
1860 java.lang.String lastName, int prefixId, int suffixId, boolean male,
1861 int birthdayMonth, int birthdayDay, int birthdayYear,
1862 java.lang.String smsSn, java.lang.String aimSn,
1863 java.lang.String facebookSn, java.lang.String icqSn,
1864 java.lang.String jabberSn, java.lang.String msnSn,
1865 java.lang.String mySpaceSn, java.lang.String skypeSn,
1866 java.lang.String twitterSn, java.lang.String ymSn,
1867 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1868 long[] roleIds,
1869 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1870 long[] userGroupIds,
1871 com.liferay.portal.service.ServiceContext serviceContext)
1872 throws com.liferay.portal.PortalException,
1873 com.liferay.portal.SystemException {
1874 try {
1875 Object paramObj0 = new LongWrapper(userId);
1876
1877 Object paramObj1 = oldPassword;
1878
1879 if (oldPassword == null) {
1880 paramObj1 = new NullWrapper("java.lang.String");
1881 }
1882
1883 Object paramObj2 = newPassword1;
1884
1885 if (newPassword1 == null) {
1886 paramObj2 = new NullWrapper("java.lang.String");
1887 }
1888
1889 Object paramObj3 = newPassword2;
1890
1891 if (newPassword2 == null) {
1892 paramObj3 = new NullWrapper("java.lang.String");
1893 }
1894
1895 Object paramObj4 = new BooleanWrapper(passwordReset);
1896
1897 Object paramObj5 = reminderQueryQuestion;
1898
1899 if (reminderQueryQuestion == null) {
1900 paramObj5 = new NullWrapper("java.lang.String");
1901 }
1902
1903 Object paramObj6 = reminderQueryAnswer;
1904
1905 if (reminderQueryAnswer == null) {
1906 paramObj6 = new NullWrapper("java.lang.String");
1907 }
1908
1909 Object paramObj7 = screenName;
1910
1911 if (screenName == null) {
1912 paramObj7 = new NullWrapper("java.lang.String");
1913 }
1914
1915 Object paramObj8 = emailAddress;
1916
1917 if (emailAddress == null) {
1918 paramObj8 = new NullWrapper("java.lang.String");
1919 }
1920
1921 Object paramObj9 = openId;
1922
1923 if (openId == null) {
1924 paramObj9 = new NullWrapper("java.lang.String");
1925 }
1926
1927 Object paramObj10 = languageId;
1928
1929 if (languageId == null) {
1930 paramObj10 = new NullWrapper("java.lang.String");
1931 }
1932
1933 Object paramObj11 = timeZoneId;
1934
1935 if (timeZoneId == null) {
1936 paramObj11 = new NullWrapper("java.lang.String");
1937 }
1938
1939 Object paramObj12 = greeting;
1940
1941 if (greeting == null) {
1942 paramObj12 = new NullWrapper("java.lang.String");
1943 }
1944
1945 Object paramObj13 = comments;
1946
1947 if (comments == null) {
1948 paramObj13 = new NullWrapper("java.lang.String");
1949 }
1950
1951 Object paramObj14 = firstName;
1952
1953 if (firstName == null) {
1954 paramObj14 = new NullWrapper("java.lang.String");
1955 }
1956
1957 Object paramObj15 = middleName;
1958
1959 if (middleName == null) {
1960 paramObj15 = new NullWrapper("java.lang.String");
1961 }
1962
1963 Object paramObj16 = lastName;
1964
1965 if (lastName == null) {
1966 paramObj16 = new NullWrapper("java.lang.String");
1967 }
1968
1969 Object paramObj17 = new IntegerWrapper(prefixId);
1970
1971 Object paramObj18 = new IntegerWrapper(suffixId);
1972
1973 Object paramObj19 = new BooleanWrapper(male);
1974
1975 Object paramObj20 = new IntegerWrapper(birthdayMonth);
1976
1977 Object paramObj21 = new IntegerWrapper(birthdayDay);
1978
1979 Object paramObj22 = new IntegerWrapper(birthdayYear);
1980
1981 Object paramObj23 = smsSn;
1982
1983 if (smsSn == null) {
1984 paramObj23 = new NullWrapper("java.lang.String");
1985 }
1986
1987 Object paramObj24 = aimSn;
1988
1989 if (aimSn == null) {
1990 paramObj24 = new NullWrapper("java.lang.String");
1991 }
1992
1993 Object paramObj25 = facebookSn;
1994
1995 if (facebookSn == null) {
1996 paramObj25 = new NullWrapper("java.lang.String");
1997 }
1998
1999 Object paramObj26 = icqSn;
2000
2001 if (icqSn == null) {
2002 paramObj26 = new NullWrapper("java.lang.String");
2003 }
2004
2005 Object paramObj27 = jabberSn;
2006
2007 if (jabberSn == null) {
2008 paramObj27 = new NullWrapper("java.lang.String");
2009 }
2010
2011 Object paramObj28 = msnSn;
2012
2013 if (msnSn == null) {
2014 paramObj28 = new NullWrapper("java.lang.String");
2015 }
2016
2017 Object paramObj29 = mySpaceSn;
2018
2019 if (mySpaceSn == null) {
2020 paramObj29 = new NullWrapper("java.lang.String");
2021 }
2022
2023 Object paramObj30 = skypeSn;
2024
2025 if (skypeSn == null) {
2026 paramObj30 = new NullWrapper("java.lang.String");
2027 }
2028
2029 Object paramObj31 = twitterSn;
2030
2031 if (twitterSn == null) {
2032 paramObj31 = new NullWrapper("java.lang.String");
2033 }
2034
2035 Object paramObj32 = ymSn;
2036
2037 if (ymSn == null) {
2038 paramObj32 = new NullWrapper("java.lang.String");
2039 }
2040
2041 Object paramObj33 = jobTitle;
2042
2043 if (jobTitle == null) {
2044 paramObj33 = new NullWrapper("java.lang.String");
2045 }
2046
2047 Object paramObj34 = groupIds;
2048
2049 if (groupIds == null) {
2050 paramObj34 = new NullWrapper("[J");
2051 }
2052
2053 Object paramObj35 = organizationIds;
2054
2055 if (organizationIds == null) {
2056 paramObj35 = new NullWrapper("[J");
2057 }
2058
2059 Object paramObj36 = roleIds;
2060
2061 if (roleIds == null) {
2062 paramObj36 = new NullWrapper("[J");
2063 }
2064
2065 Object paramObj37 = userGroupRoles;
2066
2067 if (userGroupRoles == null) {
2068 paramObj37 = new NullWrapper("java.util.List");
2069 }
2070
2071 Object paramObj38 = userGroupIds;
2072
2073 if (userGroupIds == null) {
2074 paramObj38 = new NullWrapper("[J");
2075 }
2076
2077 Object paramObj39 = serviceContext;
2078
2079 if (serviceContext == null) {
2080 paramObj39 = new NullWrapper(
2081 "com.liferay.portal.service.ServiceContext");
2082 }
2083
2084 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
2085 "updateUser",
2086 new Object[] {
2087 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
2088 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
2089 paramObj10, paramObj11, paramObj12, paramObj13,
2090 paramObj14, paramObj15, paramObj16, paramObj17,
2091 paramObj18, paramObj19, paramObj20, paramObj21,
2092 paramObj22, paramObj23, paramObj24, paramObj25,
2093 paramObj26, paramObj27, paramObj28, paramObj29,
2094 paramObj30, paramObj31, paramObj32, paramObj33,
2095 paramObj34, paramObj35, paramObj36, paramObj37,
2096 paramObj38, paramObj39
2097 });
2098
2099 Object returnObj = null;
2100
2101 try {
2102 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
2103 }
2104 catch (Exception e) {
2105 if (e instanceof com.liferay.portal.PortalException) {
2106 throw (com.liferay.portal.PortalException)e;
2107 }
2108
2109 if (e instanceof com.liferay.portal.SystemException) {
2110 throw (com.liferay.portal.SystemException)e;
2111 }
2112
2113 throw new com.liferay.portal.SystemException(e);
2114 }
2115
2116 return (com.liferay.portal.model.User)returnObj;
2117 }
2118 catch (com.liferay.portal.SystemException se) {
2119 _log.error(se, se);
2120
2121 throw se;
2122 }
2123 }
2124
2125 public static com.liferay.portal.model.User updateUser(
2126 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
2127 java.lang.String newPassword1, java.lang.String newPassword2,
2128 boolean passwordReset, java.lang.String reminderQueryQuestion,
2129 java.lang.String reminderQueryAnswer, java.lang.String screenName,
2130 java.lang.String emailAddress, java.lang.String openId,
2131 java.lang.String languageId, java.lang.String timeZoneId,
2132 java.lang.String greeting, java.lang.String comments,
2133 java.lang.String firstName, java.lang.String middleName,
2134 java.lang.String lastName, int prefixId, int suffixId, boolean male,
2135 int birthdayMonth, int birthdayDay, int birthdayYear,
2136 java.lang.String smsSn, java.lang.String aimSn,
2137 java.lang.String facebookSn, java.lang.String icqSn,
2138 java.lang.String jabberSn, java.lang.String msnSn,
2139 java.lang.String mySpaceSn, java.lang.String skypeSn,
2140 java.lang.String twitterSn, java.lang.String ymSn,
2141 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
2142 long[] roleIds,
2143 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
2144 long[] userGroupIds,
2145 java.util.List<com.liferay.portal.model.Address> addresses,
2146 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
2147 java.util.List<com.liferay.portal.model.Phone> phones,
2148 java.util.List<com.liferay.portal.model.Website> websites,
2149 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
2150 com.liferay.portal.service.ServiceContext serviceContext)
2151 throws com.liferay.portal.PortalException,
2152 com.liferay.portal.SystemException {
2153 try {
2154 Object paramObj0 = new LongWrapper(userId);
2155
2156 Object paramObj1 = oldPassword;
2157
2158 if (oldPassword == null) {
2159 paramObj1 = new NullWrapper("java.lang.String");
2160 }
2161
2162 Object paramObj2 = newPassword1;
2163
2164 if (newPassword1 == null) {
2165 paramObj2 = new NullWrapper("java.lang.String");
2166 }
2167
2168 Object paramObj3 = newPassword2;
2169
2170 if (newPassword2 == null) {
2171 paramObj3 = new NullWrapper("java.lang.String");
2172 }
2173
2174 Object paramObj4 = new BooleanWrapper(passwordReset);
2175
2176 Object paramObj5 = reminderQueryQuestion;
2177
2178 if (reminderQueryQuestion == null) {
2179 paramObj5 = new NullWrapper("java.lang.String");
2180 }
2181
2182 Object paramObj6 = reminderQueryAnswer;
2183
2184 if (reminderQueryAnswer == null) {
2185 paramObj6 = new NullWrapper("java.lang.String");
2186 }
2187
2188 Object paramObj7 = screenName;
2189
2190 if (screenName == null) {
2191 paramObj7 = new NullWrapper("java.lang.String");
2192 }
2193
2194 Object paramObj8 = emailAddress;
2195
2196 if (emailAddress == null) {
2197 paramObj8 = new NullWrapper("java.lang.String");
2198 }
2199
2200 Object paramObj9 = openId;
2201
2202 if (openId == null) {
2203 paramObj9 = new NullWrapper("java.lang.String");
2204 }
2205
2206 Object paramObj10 = languageId;
2207
2208 if (languageId == null) {
2209 paramObj10 = new NullWrapper("java.lang.String");
2210 }
2211
2212 Object paramObj11 = timeZoneId;
2213
2214 if (timeZoneId == null) {
2215 paramObj11 = new NullWrapper("java.lang.String");
2216 }
2217
2218 Object paramObj12 = greeting;
2219
2220 if (greeting == null) {
2221 paramObj12 = new NullWrapper("java.lang.String");
2222 }
2223
2224 Object paramObj13 = comments;
2225
2226 if (comments == null) {
2227 paramObj13 = new NullWrapper("java.lang.String");
2228 }
2229
2230 Object paramObj14 = firstName;
2231
2232 if (firstName == null) {
2233 paramObj14 = new NullWrapper("java.lang.String");
2234 }
2235
2236 Object paramObj15 = middleName;
2237
2238 if (middleName == null) {
2239 paramObj15 = new NullWrapper("java.lang.String");
2240 }
2241
2242 Object paramObj16 = lastName;
2243
2244 if (lastName == null) {
2245 paramObj16 = new NullWrapper("java.lang.String");
2246 }
2247
2248 Object paramObj17 = new IntegerWrapper(prefixId);
2249
2250 Object paramObj18 = new IntegerWrapper(suffixId);
2251
2252 Object paramObj19 = new BooleanWrapper(male);
2253
2254 Object paramObj20 = new IntegerWrapper(birthdayMonth);
2255
2256 Object paramObj21 = new IntegerWrapper(birthdayDay);
2257
2258 Object paramObj22 = new IntegerWrapper(birthdayYear);
2259
2260 Object paramObj23 = smsSn;
2261
2262 if (smsSn == null) {
2263 paramObj23 = new NullWrapper("java.lang.String");
2264 }
2265
2266 Object paramObj24 = aimSn;
2267
2268 if (aimSn == null) {
2269 paramObj24 = new NullWrapper("java.lang.String");
2270 }
2271
2272 Object paramObj25 = facebookSn;
2273
2274 if (facebookSn == null) {
2275 paramObj25 = new NullWrapper("java.lang.String");
2276 }
2277
2278 Object paramObj26 = icqSn;
2279
2280 if (icqSn == null) {
2281 paramObj26 = new NullWrapper("java.lang.String");
2282 }
2283
2284 Object paramObj27 = jabberSn;
2285
2286 if (jabberSn == null) {
2287 paramObj27 = new NullWrapper("java.lang.String");
2288 }
2289
2290 Object paramObj28 = msnSn;
2291
2292 if (msnSn == null) {
2293 paramObj28 = new NullWrapper("java.lang.String");
2294 }
2295
2296 Object paramObj29 = mySpaceSn;
2297
2298 if (mySpaceSn == null) {
2299 paramObj29 = new NullWrapper("java.lang.String");
2300 }
2301
2302 Object paramObj30 = skypeSn;
2303
2304 if (skypeSn == null) {
2305 paramObj30 = new NullWrapper("java.lang.String");
2306 }
2307
2308 Object paramObj31 = twitterSn;
2309
2310 if (twitterSn == null) {
2311 paramObj31 = new NullWrapper("java.lang.String");
2312 }
2313
2314 Object paramObj32 = ymSn;
2315
2316 if (ymSn == null) {
2317 paramObj32 = new NullWrapper("java.lang.String");
2318 }
2319
2320 Object paramObj33 = jobTitle;
2321
2322 if (jobTitle == null) {
2323 paramObj33 = new NullWrapper("java.lang.String");
2324 }
2325
2326 Object paramObj34 = groupIds;
2327
2328 if (groupIds == null) {
2329 paramObj34 = new NullWrapper("[J");
2330 }
2331
2332 Object paramObj35 = organizationIds;
2333
2334 if (organizationIds == null) {
2335 paramObj35 = new NullWrapper("[J");
2336 }
2337
2338 Object paramObj36 = roleIds;
2339
2340 if (roleIds == null) {
2341 paramObj36 = new NullWrapper("[J");
2342 }
2343
2344 Object paramObj37 = userGroupRoles;
2345
2346 if (userGroupRoles == null) {
2347 paramObj37 = new NullWrapper("java.util.List");
2348 }
2349
2350 Object paramObj38 = userGroupIds;
2351
2352 if (userGroupIds == null) {
2353 paramObj38 = new NullWrapper("[J");
2354 }
2355
2356 Object paramObj39 = addresses;
2357
2358 if (addresses == null) {
2359 paramObj39 = new NullWrapper("java.util.List");
2360 }
2361
2362 Object paramObj40 = emailAddresses;
2363
2364 if (emailAddresses == null) {
2365 paramObj40 = new NullWrapper("java.util.List");
2366 }
2367
2368 Object paramObj41 = phones;
2369
2370 if (phones == null) {
2371 paramObj41 = new NullWrapper("java.util.List");
2372 }
2373
2374 Object paramObj42 = websites;
2375
2376 if (websites == null) {
2377 paramObj42 = new NullWrapper("java.util.List");
2378 }
2379
2380 Object paramObj43 = announcementsDelivers;
2381
2382 if (announcementsDelivers == null) {
2383 paramObj43 = new NullWrapper("java.util.List");
2384 }
2385
2386 Object paramObj44 = serviceContext;
2387
2388 if (serviceContext == null) {
2389 paramObj44 = new NullWrapper(
2390 "com.liferay.portal.service.ServiceContext");
2391 }
2392
2393 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
2394 "updateUser",
2395 new Object[] {
2396 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
2397 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
2398 paramObj10, paramObj11, paramObj12, paramObj13,
2399 paramObj14, paramObj15, paramObj16, paramObj17,
2400 paramObj18, paramObj19, paramObj20, paramObj21,
2401 paramObj22, paramObj23, paramObj24, paramObj25,
2402 paramObj26, paramObj27, paramObj28, paramObj29,
2403 paramObj30, paramObj31, paramObj32, paramObj33,
2404 paramObj34, paramObj35, paramObj36, paramObj37,
2405 paramObj38, paramObj39, paramObj40, paramObj41,
2406 paramObj42, paramObj43, paramObj44
2407 });
2408
2409 Object returnObj = null;
2410
2411 try {
2412 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
2413 }
2414 catch (Exception e) {
2415 if (e instanceof com.liferay.portal.PortalException) {
2416 throw (com.liferay.portal.PortalException)e;
2417 }
2418
2419 if (e instanceof com.liferay.portal.SystemException) {
2420 throw (com.liferay.portal.SystemException)e;
2421 }
2422
2423 throw new com.liferay.portal.SystemException(e);
2424 }
2425
2426 return (com.liferay.portal.model.User)returnObj;
2427 }
2428 catch (com.liferay.portal.SystemException se) {
2429 _log.error(se, se);
2430
2431 throw se;
2432 }
2433 }
2434
2435 private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
2436}