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