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