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 void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1124 long[] userIds)
1125 throws com.liferay.portal.PortalException,
1126 com.liferay.portal.SystemException {
1127 try {
1128 Object paramObj0 = new LongWrapper(roleId);
1129
1130 Object paramObj1 = userIds;
1131
1132 if (userIds == null) {
1133 paramObj1 = new NullWrapper("[J");
1134 }
1135
1136 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1137 "setRoleUsers", new Object[] { paramObj0, paramObj1 });
1138
1139 try {
1140 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1141 }
1142 catch (Exception e) {
1143 if (e instanceof com.liferay.portal.PortalException) {
1144 throw (com.liferay.portal.PortalException)e;
1145 }
1146
1147 if (e instanceof com.liferay.portal.SystemException) {
1148 throw (com.liferay.portal.SystemException)e;
1149 }
1150
1151 throw new com.liferay.portal.SystemException(e);
1152 }
1153 }
1154 catch (com.liferay.portal.SystemException se) {
1155 _log.error(se, se);
1156
1157 throw se;
1158 }
1159 }
1160
1161 public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
1162 long userGroupId, long[] userIds)
1163 throws com.liferay.portal.PortalException,
1164 com.liferay.portal.SystemException {
1165 try {
1166 Object paramObj0 = new LongWrapper(userGroupId);
1167
1168 Object paramObj1 = userIds;
1169
1170 if (userIds == null) {
1171 paramObj1 = new NullWrapper("[J");
1172 }
1173
1174 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1175 "setUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1176
1177 try {
1178 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1179 }
1180 catch (Exception e) {
1181 if (e instanceof com.liferay.portal.PortalException) {
1182 throw (com.liferay.portal.PortalException)e;
1183 }
1184
1185 if (e instanceof com.liferay.portal.SystemException) {
1186 throw (com.liferay.portal.SystemException)e;
1187 }
1188
1189 throw new com.liferay.portal.SystemException(e);
1190 }
1191 }
1192 catch (com.liferay.portal.SystemException se) {
1193 _log.error(se, se);
1194
1195 throw se;
1196 }
1197 }
1198
1199 public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
1200 long groupId, long[] userIds)
1201 throws com.liferay.portal.PortalException,
1202 com.liferay.portal.SystemException {
1203 try {
1204 Object paramObj0 = new LongWrapper(groupId);
1205
1206 Object paramObj1 = userIds;
1207
1208 if (userIds == null) {
1209 paramObj1 = new NullWrapper("[J");
1210 }
1211
1212 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1213 "unsetGroupUsers", new Object[] { paramObj0, paramObj1 });
1214
1215 try {
1216 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1217 }
1218 catch (Exception e) {
1219 if (e instanceof com.liferay.portal.PortalException) {
1220 throw (com.liferay.portal.PortalException)e;
1221 }
1222
1223 if (e instanceof com.liferay.portal.SystemException) {
1224 throw (com.liferay.portal.SystemException)e;
1225 }
1226
1227 throw new com.liferay.portal.SystemException(e);
1228 }
1229 }
1230 catch (com.liferay.portal.SystemException se) {
1231 _log.error(se, se);
1232
1233 throw se;
1234 }
1235 }
1236
1237 public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
1238 long organizationId, long[] userIds)
1239 throws com.liferay.portal.PortalException,
1240 com.liferay.portal.SystemException {
1241 try {
1242 Object paramObj0 = new LongWrapper(organizationId);
1243
1244 Object paramObj1 = userIds;
1245
1246 if (userIds == null) {
1247 paramObj1 = new NullWrapper("[J");
1248 }
1249
1250 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1251 "unsetOrganizationUsers",
1252 new Object[] { paramObj0, paramObj1 });
1253
1254 try {
1255 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1256 }
1257 catch (Exception e) {
1258 if (e instanceof com.liferay.portal.PortalException) {
1259 throw (com.liferay.portal.PortalException)e;
1260 }
1261
1262 if (e instanceof com.liferay.portal.SystemException) {
1263 throw (com.liferay.portal.SystemException)e;
1264 }
1265
1266 throw new com.liferay.portal.SystemException(e);
1267 }
1268 }
1269 catch (com.liferay.portal.SystemException se) {
1270 _log.error(se, se);
1271
1272 throw se;
1273 }
1274 }
1275
1276 public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1277 long passwordPolicyId, long[] userIds)
1278 throws com.liferay.portal.PortalException,
1279 com.liferay.portal.SystemException {
1280 try {
1281 Object paramObj0 = new LongWrapper(passwordPolicyId);
1282
1283 Object paramObj1 = userIds;
1284
1285 if (userIds == null) {
1286 paramObj1 = new NullWrapper("[J");
1287 }
1288
1289 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1290 "unsetPasswordPolicyUsers",
1291 new Object[] { paramObj0, paramObj1 });
1292
1293 try {
1294 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1295 }
1296 catch (Exception e) {
1297 if (e instanceof com.liferay.portal.PortalException) {
1298 throw (com.liferay.portal.PortalException)e;
1299 }
1300
1301 if (e instanceof com.liferay.portal.SystemException) {
1302 throw (com.liferay.portal.SystemException)e;
1303 }
1304
1305 throw new com.liferay.portal.SystemException(e);
1306 }
1307 }
1308 catch (com.liferay.portal.SystemException se) {
1309 _log.error(se, se);
1310
1311 throw se;
1312 }
1313 }
1314
1315 public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1316 long[] userIds)
1317 throws com.liferay.portal.PortalException,
1318 com.liferay.portal.SystemException {
1319 try {
1320 Object paramObj0 = new LongWrapper(roleId);
1321
1322 Object paramObj1 = userIds;
1323
1324 if (userIds == null) {
1325 paramObj1 = new NullWrapper("[J");
1326 }
1327
1328 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1329 "unsetRoleUsers", new Object[] { paramObj0, paramObj1 });
1330
1331 try {
1332 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1333 }
1334 catch (Exception e) {
1335 if (e instanceof com.liferay.portal.PortalException) {
1336 throw (com.liferay.portal.PortalException)e;
1337 }
1338
1339 if (e instanceof com.liferay.portal.SystemException) {
1340 throw (com.liferay.portal.SystemException)e;
1341 }
1342
1343 throw new com.liferay.portal.SystemException(e);
1344 }
1345 }
1346 catch (com.liferay.portal.SystemException se) {
1347 _log.error(se, se);
1348
1349 throw se;
1350 }
1351 }
1352
1353 public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1354 long userGroupId, long[] userIds)
1355 throws com.liferay.portal.PortalException,
1356 com.liferay.portal.SystemException {
1357 try {
1358 Object paramObj0 = new LongWrapper(userGroupId);
1359
1360 Object paramObj1 = userIds;
1361
1362 if (userIds == null) {
1363 paramObj1 = new NullWrapper("[J");
1364 }
1365
1366 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1367 "unsetUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1368
1369 try {
1370 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1371 }
1372 catch (Exception e) {
1373 if (e instanceof com.liferay.portal.PortalException) {
1374 throw (com.liferay.portal.PortalException)e;
1375 }
1376
1377 if (e instanceof com.liferay.portal.SystemException) {
1378 throw (com.liferay.portal.SystemException)e;
1379 }
1380
1381 throw new com.liferay.portal.SystemException(e);
1382 }
1383 }
1384 catch (com.liferay.portal.SystemException se) {
1385 _log.error(se, se);
1386
1387 throw se;
1388 }
1389 }
1390
1391 public static com.liferay.portal.model.User updateActive(
1392 HttpPrincipal httpPrincipal, long userId, boolean active)
1393 throws com.liferay.portal.PortalException,
1394 com.liferay.portal.SystemException {
1395 try {
1396 Object paramObj0 = new LongWrapper(userId);
1397
1398 Object paramObj1 = new BooleanWrapper(active);
1399
1400 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1401 "updateActive", new Object[] { paramObj0, paramObj1 });
1402
1403 Object returnObj = null;
1404
1405 try {
1406 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1407 }
1408 catch (Exception e) {
1409 if (e instanceof com.liferay.portal.PortalException) {
1410 throw (com.liferay.portal.PortalException)e;
1411 }
1412
1413 if (e instanceof com.liferay.portal.SystemException) {
1414 throw (com.liferay.portal.SystemException)e;
1415 }
1416
1417 throw new com.liferay.portal.SystemException(e);
1418 }
1419
1420 return (com.liferay.portal.model.User)returnObj;
1421 }
1422 catch (com.liferay.portal.SystemException se) {
1423 _log.error(se, se);
1424
1425 throw se;
1426 }
1427 }
1428
1429 public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1430 HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1431 throws com.liferay.portal.PortalException,
1432 com.liferay.portal.SystemException {
1433 try {
1434 Object paramObj0 = new LongWrapper(userId);
1435
1436 Object paramObj1 = new BooleanWrapper(agreedToTermsOfUse);
1437
1438 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1439 "updateAgreedToTermsOfUse",
1440 new Object[] { paramObj0, paramObj1 });
1441
1442 Object returnObj = null;
1443
1444 try {
1445 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1446 }
1447 catch (Exception e) {
1448 if (e instanceof com.liferay.portal.PortalException) {
1449 throw (com.liferay.portal.PortalException)e;
1450 }
1451
1452 if (e instanceof com.liferay.portal.SystemException) {
1453 throw (com.liferay.portal.SystemException)e;
1454 }
1455
1456 throw new com.liferay.portal.SystemException(e);
1457 }
1458
1459 return (com.liferay.portal.model.User)returnObj;
1460 }
1461 catch (com.liferay.portal.SystemException se) {
1462 _log.error(se, se);
1463
1464 throw se;
1465 }
1466 }
1467
1468 public static void updateEmailAddress(HttpPrincipal httpPrincipal,
1469 long userId, java.lang.String password, java.lang.String emailAddress1,
1470 java.lang.String emailAddress2)
1471 throws com.liferay.portal.PortalException,
1472 com.liferay.portal.SystemException {
1473 try {
1474 Object paramObj0 = new LongWrapper(userId);
1475
1476 Object paramObj1 = password;
1477
1478 if (password == null) {
1479 paramObj1 = new NullWrapper("java.lang.String");
1480 }
1481
1482 Object paramObj2 = emailAddress1;
1483
1484 if (emailAddress1 == null) {
1485 paramObj2 = new NullWrapper("java.lang.String");
1486 }
1487
1488 Object paramObj3 = emailAddress2;
1489
1490 if (emailAddress2 == null) {
1491 paramObj3 = new NullWrapper("java.lang.String");
1492 }
1493
1494 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1495 "updateEmailAddress",
1496 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1497
1498 try {
1499 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1500 }
1501 catch (Exception e) {
1502 if (e instanceof com.liferay.portal.PortalException) {
1503 throw (com.liferay.portal.PortalException)e;
1504 }
1505
1506 if (e instanceof com.liferay.portal.SystemException) {
1507 throw (com.liferay.portal.SystemException)e;
1508 }
1509
1510 throw new com.liferay.portal.SystemException(e);
1511 }
1512 }
1513 catch (com.liferay.portal.SystemException se) {
1514 _log.error(se, se);
1515
1516 throw se;
1517 }
1518 }
1519
1520 public static com.liferay.portal.model.User updateLockout(
1521 HttpPrincipal httpPrincipal, long userId, boolean lockout)
1522 throws com.liferay.portal.PortalException,
1523 com.liferay.portal.SystemException {
1524 try {
1525 Object paramObj0 = new LongWrapper(userId);
1526
1527 Object paramObj1 = new BooleanWrapper(lockout);
1528
1529 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1530 "updateLockout", new Object[] { paramObj0, paramObj1 });
1531
1532 Object returnObj = null;
1533
1534 try {
1535 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1536 }
1537 catch (Exception e) {
1538 if (e instanceof com.liferay.portal.PortalException) {
1539 throw (com.liferay.portal.PortalException)e;
1540 }
1541
1542 if (e instanceof com.liferay.portal.SystemException) {
1543 throw (com.liferay.portal.SystemException)e;
1544 }
1545
1546 throw new com.liferay.portal.SystemException(e);
1547 }
1548
1549 return (com.liferay.portal.model.User)returnObj;
1550 }
1551 catch (com.liferay.portal.SystemException se) {
1552 _log.error(se, se);
1553
1554 throw se;
1555 }
1556 }
1557
1558 public static void updateOpenId(HttpPrincipal httpPrincipal, long userId,
1559 java.lang.String openId)
1560 throws com.liferay.portal.PortalException,
1561 com.liferay.portal.SystemException {
1562 try {
1563 Object paramObj0 = new LongWrapper(userId);
1564
1565 Object paramObj1 = openId;
1566
1567 if (openId == null) {
1568 paramObj1 = new NullWrapper("java.lang.String");
1569 }
1570
1571 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1572 "updateOpenId", new Object[] { paramObj0, paramObj1 });
1573
1574 try {
1575 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1576 }
1577 catch (Exception e) {
1578 if (e instanceof com.liferay.portal.PortalException) {
1579 throw (com.liferay.portal.PortalException)e;
1580 }
1581
1582 if (e instanceof com.liferay.portal.SystemException) {
1583 throw (com.liferay.portal.SystemException)e;
1584 }
1585
1586 throw new com.liferay.portal.SystemException(e);
1587 }
1588 }
1589 catch (com.liferay.portal.SystemException se) {
1590 _log.error(se, se);
1591
1592 throw se;
1593 }
1594 }
1595
1596 public static void updateOrganizations(HttpPrincipal httpPrincipal,
1597 long userId, long[] organizationIds)
1598 throws com.liferay.portal.PortalException,
1599 com.liferay.portal.SystemException {
1600 try {
1601 Object paramObj0 = new LongWrapper(userId);
1602
1603 Object paramObj1 = organizationIds;
1604
1605 if (organizationIds == null) {
1606 paramObj1 = new NullWrapper("[J");
1607 }
1608
1609 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1610 "updateOrganizations", new Object[] { paramObj0, paramObj1 });
1611
1612 try {
1613 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1614 }
1615 catch (Exception e) {
1616 if (e instanceof com.liferay.portal.PortalException) {
1617 throw (com.liferay.portal.PortalException)e;
1618 }
1619
1620 if (e instanceof com.liferay.portal.SystemException) {
1621 throw (com.liferay.portal.SystemException)e;
1622 }
1623
1624 throw new com.liferay.portal.SystemException(e);
1625 }
1626 }
1627 catch (com.liferay.portal.SystemException se) {
1628 _log.error(se, se);
1629
1630 throw se;
1631 }
1632 }
1633
1634 public static com.liferay.portal.model.User updatePassword(
1635 HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1636 java.lang.String password2, boolean passwordReset)
1637 throws com.liferay.portal.PortalException,
1638 com.liferay.portal.SystemException {
1639 try {
1640 Object paramObj0 = new LongWrapper(userId);
1641
1642 Object paramObj1 = password1;
1643
1644 if (password1 == null) {
1645 paramObj1 = new NullWrapper("java.lang.String");
1646 }
1647
1648 Object paramObj2 = password2;
1649
1650 if (password2 == null) {
1651 paramObj2 = new NullWrapper("java.lang.String");
1652 }
1653
1654 Object paramObj3 = new BooleanWrapper(passwordReset);
1655
1656 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1657 "updatePassword",
1658 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1659
1660 Object returnObj = null;
1661
1662 try {
1663 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1664 }
1665 catch (Exception e) {
1666 if (e instanceof com.liferay.portal.PortalException) {
1667 throw (com.liferay.portal.PortalException)e;
1668 }
1669
1670 if (e instanceof com.liferay.portal.SystemException) {
1671 throw (com.liferay.portal.SystemException)e;
1672 }
1673
1674 throw new com.liferay.portal.SystemException(e);
1675 }
1676
1677 return (com.liferay.portal.model.User)returnObj;
1678 }
1679 catch (com.liferay.portal.SystemException se) {
1680 _log.error(se, se);
1681
1682 throw se;
1683 }
1684 }
1685
1686 public static void updatePortrait(HttpPrincipal httpPrincipal, long userId,
1687 byte[] bytes)
1688 throws com.liferay.portal.PortalException,
1689 com.liferay.portal.SystemException {
1690 try {
1691 Object paramObj0 = new LongWrapper(userId);
1692
1693 Object paramObj1 = bytes;
1694
1695 if (bytes == null) {
1696 paramObj1 = new NullWrapper("[B");
1697 }
1698
1699 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1700 "updatePortrait", new Object[] { paramObj0, paramObj1 });
1701
1702 try {
1703 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1704 }
1705 catch (Exception e) {
1706 if (e instanceof com.liferay.portal.PortalException) {
1707 throw (com.liferay.portal.PortalException)e;
1708 }
1709
1710 if (e instanceof com.liferay.portal.SystemException) {
1711 throw (com.liferay.portal.SystemException)e;
1712 }
1713
1714 throw new com.liferay.portal.SystemException(e);
1715 }
1716 }
1717 catch (com.liferay.portal.SystemException se) {
1718 _log.error(se, se);
1719
1720 throw se;
1721 }
1722 }
1723
1724 public static void updateReminderQuery(HttpPrincipal httpPrincipal,
1725 long userId, java.lang.String question, java.lang.String answer)
1726 throws com.liferay.portal.PortalException,
1727 com.liferay.portal.SystemException {
1728 try {
1729 Object paramObj0 = new LongWrapper(userId);
1730
1731 Object paramObj1 = question;
1732
1733 if (question == null) {
1734 paramObj1 = new NullWrapper("java.lang.String");
1735 }
1736
1737 Object paramObj2 = answer;
1738
1739 if (answer == null) {
1740 paramObj2 = new NullWrapper("java.lang.String");
1741 }
1742
1743 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1744 "updateReminderQuery",
1745 new Object[] { paramObj0, paramObj1, paramObj2 });
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 updateScreenName(HttpPrincipal httpPrincipal,
1770 long userId, java.lang.String screenName)
1771 throws com.liferay.portal.PortalException,
1772 com.liferay.portal.SystemException {
1773 try {
1774 Object paramObj0 = new LongWrapper(userId);
1775
1776 Object paramObj1 = screenName;
1777
1778 if (screenName == null) {
1779 paramObj1 = new NullWrapper("java.lang.String");
1780 }
1781
1782 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1783 "updateScreenName", new Object[] { paramObj0, paramObj1 });
1784
1785 try {
1786 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1787 }
1788 catch (Exception e) {
1789 if (e instanceof com.liferay.portal.PortalException) {
1790 throw (com.liferay.portal.PortalException)e;
1791 }
1792
1793 if (e instanceof com.liferay.portal.SystemException) {
1794 throw (com.liferay.portal.SystemException)e;
1795 }
1796
1797 throw new com.liferay.portal.SystemException(e);
1798 }
1799 }
1800 catch (com.liferay.portal.SystemException se) {
1801 _log.error(se, se);
1802
1803 throw se;
1804 }
1805 }
1806
1807 public static com.liferay.portal.model.User updateUser(
1808 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1809 java.lang.String newPassword1, java.lang.String newPassword2,
1810 boolean passwordReset, java.lang.String reminderQueryQuestion,
1811 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1812 java.lang.String emailAddress, java.lang.String openId,
1813 java.lang.String languageId, java.lang.String timeZoneId,
1814 java.lang.String greeting, java.lang.String comments,
1815 java.lang.String firstName, java.lang.String middleName,
1816 java.lang.String lastName, int prefixId, int suffixId, boolean male,
1817 int birthdayMonth, int birthdayDay, int birthdayYear,
1818 java.lang.String smsSn, java.lang.String aimSn,
1819 java.lang.String facebookSn, java.lang.String icqSn,
1820 java.lang.String jabberSn, java.lang.String msnSn,
1821 java.lang.String mySpaceSn, java.lang.String skypeSn,
1822 java.lang.String twitterSn, java.lang.String ymSn,
1823 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
1824 long[] roleIds,
1825 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
1826 long[] userGroupIds,
1827 com.liferay.portal.service.ServiceContext serviceContext)
1828 throws com.liferay.portal.PortalException,
1829 com.liferay.portal.SystemException {
1830 try {
1831 Object paramObj0 = new LongWrapper(userId);
1832
1833 Object paramObj1 = oldPassword;
1834
1835 if (oldPassword == null) {
1836 paramObj1 = new NullWrapper("java.lang.String");
1837 }
1838
1839 Object paramObj2 = newPassword1;
1840
1841 if (newPassword1 == null) {
1842 paramObj2 = new NullWrapper("java.lang.String");
1843 }
1844
1845 Object paramObj3 = newPassword2;
1846
1847 if (newPassword2 == null) {
1848 paramObj3 = new NullWrapper("java.lang.String");
1849 }
1850
1851 Object paramObj4 = new BooleanWrapper(passwordReset);
1852
1853 Object paramObj5 = reminderQueryQuestion;
1854
1855 if (reminderQueryQuestion == null) {
1856 paramObj5 = new NullWrapper("java.lang.String");
1857 }
1858
1859 Object paramObj6 = reminderQueryAnswer;
1860
1861 if (reminderQueryAnswer == null) {
1862 paramObj6 = new NullWrapper("java.lang.String");
1863 }
1864
1865 Object paramObj7 = screenName;
1866
1867 if (screenName == null) {
1868 paramObj7 = new NullWrapper("java.lang.String");
1869 }
1870
1871 Object paramObj8 = emailAddress;
1872
1873 if (emailAddress == null) {
1874 paramObj8 = new NullWrapper("java.lang.String");
1875 }
1876
1877 Object paramObj9 = openId;
1878
1879 if (openId == null) {
1880 paramObj9 = new NullWrapper("java.lang.String");
1881 }
1882
1883 Object paramObj10 = languageId;
1884
1885 if (languageId == null) {
1886 paramObj10 = new NullWrapper("java.lang.String");
1887 }
1888
1889 Object paramObj11 = timeZoneId;
1890
1891 if (timeZoneId == null) {
1892 paramObj11 = new NullWrapper("java.lang.String");
1893 }
1894
1895 Object paramObj12 = greeting;
1896
1897 if (greeting == null) {
1898 paramObj12 = new NullWrapper("java.lang.String");
1899 }
1900
1901 Object paramObj13 = comments;
1902
1903 if (comments == null) {
1904 paramObj13 = new NullWrapper("java.lang.String");
1905 }
1906
1907 Object paramObj14 = firstName;
1908
1909 if (firstName == null) {
1910 paramObj14 = new NullWrapper("java.lang.String");
1911 }
1912
1913 Object paramObj15 = middleName;
1914
1915 if (middleName == null) {
1916 paramObj15 = new NullWrapper("java.lang.String");
1917 }
1918
1919 Object paramObj16 = lastName;
1920
1921 if (lastName == null) {
1922 paramObj16 = new NullWrapper("java.lang.String");
1923 }
1924
1925 Object paramObj17 = new IntegerWrapper(prefixId);
1926
1927 Object paramObj18 = new IntegerWrapper(suffixId);
1928
1929 Object paramObj19 = new BooleanWrapper(male);
1930
1931 Object paramObj20 = new IntegerWrapper(birthdayMonth);
1932
1933 Object paramObj21 = new IntegerWrapper(birthdayDay);
1934
1935 Object paramObj22 = new IntegerWrapper(birthdayYear);
1936
1937 Object paramObj23 = smsSn;
1938
1939 if (smsSn == null) {
1940 paramObj23 = new NullWrapper("java.lang.String");
1941 }
1942
1943 Object paramObj24 = aimSn;
1944
1945 if (aimSn == null) {
1946 paramObj24 = new NullWrapper("java.lang.String");
1947 }
1948
1949 Object paramObj25 = facebookSn;
1950
1951 if (facebookSn == null) {
1952 paramObj25 = new NullWrapper("java.lang.String");
1953 }
1954
1955 Object paramObj26 = icqSn;
1956
1957 if (icqSn == null) {
1958 paramObj26 = new NullWrapper("java.lang.String");
1959 }
1960
1961 Object paramObj27 = jabberSn;
1962
1963 if (jabberSn == null) {
1964 paramObj27 = new NullWrapper("java.lang.String");
1965 }
1966
1967 Object paramObj28 = msnSn;
1968
1969 if (msnSn == null) {
1970 paramObj28 = new NullWrapper("java.lang.String");
1971 }
1972
1973 Object paramObj29 = mySpaceSn;
1974
1975 if (mySpaceSn == null) {
1976 paramObj29 = new NullWrapper("java.lang.String");
1977 }
1978
1979 Object paramObj30 = skypeSn;
1980
1981 if (skypeSn == null) {
1982 paramObj30 = new NullWrapper("java.lang.String");
1983 }
1984
1985 Object paramObj31 = twitterSn;
1986
1987 if (twitterSn == null) {
1988 paramObj31 = new NullWrapper("java.lang.String");
1989 }
1990
1991 Object paramObj32 = ymSn;
1992
1993 if (ymSn == null) {
1994 paramObj32 = new NullWrapper("java.lang.String");
1995 }
1996
1997 Object paramObj33 = jobTitle;
1998
1999 if (jobTitle == null) {
2000 paramObj33 = new NullWrapper("java.lang.String");
2001 }
2002
2003 Object paramObj34 = groupIds;
2004
2005 if (groupIds == null) {
2006 paramObj34 = new NullWrapper("[J");
2007 }
2008
2009 Object paramObj35 = organizationIds;
2010
2011 if (organizationIds == null) {
2012 paramObj35 = new NullWrapper("[J");
2013 }
2014
2015 Object paramObj36 = roleIds;
2016
2017 if (roleIds == null) {
2018 paramObj36 = new NullWrapper("[J");
2019 }
2020
2021 Object paramObj37 = userGroupRoles;
2022
2023 if (userGroupRoles == null) {
2024 paramObj37 = new NullWrapper("java.util.List");
2025 }
2026
2027 Object paramObj38 = userGroupIds;
2028
2029 if (userGroupIds == null) {
2030 paramObj38 = new NullWrapper("[J");
2031 }
2032
2033 Object paramObj39 = serviceContext;
2034
2035 if (serviceContext == null) {
2036 paramObj39 = new NullWrapper(
2037 "com.liferay.portal.service.ServiceContext");
2038 }
2039
2040 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
2041 "updateUser",
2042 new Object[] {
2043 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
2044 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
2045 paramObj10, paramObj11, paramObj12, paramObj13,
2046 paramObj14, paramObj15, paramObj16, paramObj17,
2047 paramObj18, paramObj19, paramObj20, paramObj21,
2048 paramObj22, paramObj23, paramObj24, paramObj25,
2049 paramObj26, paramObj27, paramObj28, paramObj29,
2050 paramObj30, paramObj31, paramObj32, paramObj33,
2051 paramObj34, paramObj35, paramObj36, paramObj37,
2052 paramObj38, paramObj39
2053 });
2054
2055 Object returnObj = null;
2056
2057 try {
2058 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
2059 }
2060 catch (Exception e) {
2061 if (e instanceof com.liferay.portal.PortalException) {
2062 throw (com.liferay.portal.PortalException)e;
2063 }
2064
2065 if (e instanceof com.liferay.portal.SystemException) {
2066 throw (com.liferay.portal.SystemException)e;
2067 }
2068
2069 throw new com.liferay.portal.SystemException(e);
2070 }
2071
2072 return (com.liferay.portal.model.User)returnObj;
2073 }
2074 catch (com.liferay.portal.SystemException se) {
2075 _log.error(se, se);
2076
2077 throw se;
2078 }
2079 }
2080
2081 public static com.liferay.portal.model.User updateUser(
2082 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
2083 java.lang.String newPassword1, java.lang.String newPassword2,
2084 boolean passwordReset, java.lang.String reminderQueryQuestion,
2085 java.lang.String reminderQueryAnswer, java.lang.String screenName,
2086 java.lang.String emailAddress, java.lang.String openId,
2087 java.lang.String languageId, java.lang.String timeZoneId,
2088 java.lang.String greeting, java.lang.String comments,
2089 java.lang.String firstName, java.lang.String middleName,
2090 java.lang.String lastName, int prefixId, int suffixId, boolean male,
2091 int birthdayMonth, int birthdayDay, int birthdayYear,
2092 java.lang.String smsSn, java.lang.String aimSn,
2093 java.lang.String facebookSn, java.lang.String icqSn,
2094 java.lang.String jabberSn, java.lang.String msnSn,
2095 java.lang.String mySpaceSn, java.lang.String skypeSn,
2096 java.lang.String twitterSn, java.lang.String ymSn,
2097 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
2098 long[] roleIds,
2099 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
2100 long[] userGroupIds,
2101 java.util.List<com.liferay.portal.model.Address> addresses,
2102 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
2103 java.util.List<com.liferay.portal.model.Phone> phones,
2104 java.util.List<com.liferay.portal.model.Website> websites,
2105 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
2106 com.liferay.portal.service.ServiceContext serviceContext)
2107 throws com.liferay.portal.PortalException,
2108 com.liferay.portal.SystemException {
2109 try {
2110 Object paramObj0 = new LongWrapper(userId);
2111
2112 Object paramObj1 = oldPassword;
2113
2114 if (oldPassword == null) {
2115 paramObj1 = new NullWrapper("java.lang.String");
2116 }
2117
2118 Object paramObj2 = newPassword1;
2119
2120 if (newPassword1 == null) {
2121 paramObj2 = new NullWrapper("java.lang.String");
2122 }
2123
2124 Object paramObj3 = newPassword2;
2125
2126 if (newPassword2 == null) {
2127 paramObj3 = new NullWrapper("java.lang.String");
2128 }
2129
2130 Object paramObj4 = new BooleanWrapper(passwordReset);
2131
2132 Object paramObj5 = reminderQueryQuestion;
2133
2134 if (reminderQueryQuestion == null) {
2135 paramObj5 = new NullWrapper("java.lang.String");
2136 }
2137
2138 Object paramObj6 = reminderQueryAnswer;
2139
2140 if (reminderQueryAnswer == null) {
2141 paramObj6 = new NullWrapper("java.lang.String");
2142 }
2143
2144 Object paramObj7 = screenName;
2145
2146 if (screenName == null) {
2147 paramObj7 = new NullWrapper("java.lang.String");
2148 }
2149
2150 Object paramObj8 = emailAddress;
2151
2152 if (emailAddress == null) {
2153 paramObj8 = new NullWrapper("java.lang.String");
2154 }
2155
2156 Object paramObj9 = openId;
2157
2158 if (openId == null) {
2159 paramObj9 = new NullWrapper("java.lang.String");
2160 }
2161
2162 Object paramObj10 = languageId;
2163
2164 if (languageId == null) {
2165 paramObj10 = new NullWrapper("java.lang.String");
2166 }
2167
2168 Object paramObj11 = timeZoneId;
2169
2170 if (timeZoneId == null) {
2171 paramObj11 = new NullWrapper("java.lang.String");
2172 }
2173
2174 Object paramObj12 = greeting;
2175
2176 if (greeting == null) {
2177 paramObj12 = new NullWrapper("java.lang.String");
2178 }
2179
2180 Object paramObj13 = comments;
2181
2182 if (comments == null) {
2183 paramObj13 = new NullWrapper("java.lang.String");
2184 }
2185
2186 Object paramObj14 = firstName;
2187
2188 if (firstName == null) {
2189 paramObj14 = new NullWrapper("java.lang.String");
2190 }
2191
2192 Object paramObj15 = middleName;
2193
2194 if (middleName == null) {
2195 paramObj15 = new NullWrapper("java.lang.String");
2196 }
2197
2198 Object paramObj16 = lastName;
2199
2200 if (lastName == null) {
2201 paramObj16 = new NullWrapper("java.lang.String");
2202 }
2203
2204 Object paramObj17 = new IntegerWrapper(prefixId);
2205
2206 Object paramObj18 = new IntegerWrapper(suffixId);
2207
2208 Object paramObj19 = new BooleanWrapper(male);
2209
2210 Object paramObj20 = new IntegerWrapper(birthdayMonth);
2211
2212 Object paramObj21 = new IntegerWrapper(birthdayDay);
2213
2214 Object paramObj22 = new IntegerWrapper(birthdayYear);
2215
2216 Object paramObj23 = smsSn;
2217
2218 if (smsSn == null) {
2219 paramObj23 = new NullWrapper("java.lang.String");
2220 }
2221
2222 Object paramObj24 = aimSn;
2223
2224 if (aimSn == null) {
2225 paramObj24 = new NullWrapper("java.lang.String");
2226 }
2227
2228 Object paramObj25 = facebookSn;
2229
2230 if (facebookSn == null) {
2231 paramObj25 = new NullWrapper("java.lang.String");
2232 }
2233
2234 Object paramObj26 = icqSn;
2235
2236 if (icqSn == null) {
2237 paramObj26 = new NullWrapper("java.lang.String");
2238 }
2239
2240 Object paramObj27 = jabberSn;
2241
2242 if (jabberSn == null) {
2243 paramObj27 = new NullWrapper("java.lang.String");
2244 }
2245
2246 Object paramObj28 = msnSn;
2247
2248 if (msnSn == null) {
2249 paramObj28 = new NullWrapper("java.lang.String");
2250 }
2251
2252 Object paramObj29 = mySpaceSn;
2253
2254 if (mySpaceSn == null) {
2255 paramObj29 = new NullWrapper("java.lang.String");
2256 }
2257
2258 Object paramObj30 = skypeSn;
2259
2260 if (skypeSn == null) {
2261 paramObj30 = new NullWrapper("java.lang.String");
2262 }
2263
2264 Object paramObj31 = twitterSn;
2265
2266 if (twitterSn == null) {
2267 paramObj31 = new NullWrapper("java.lang.String");
2268 }
2269
2270 Object paramObj32 = ymSn;
2271
2272 if (ymSn == null) {
2273 paramObj32 = new NullWrapper("java.lang.String");
2274 }
2275
2276 Object paramObj33 = jobTitle;
2277
2278 if (jobTitle == null) {
2279 paramObj33 = new NullWrapper("java.lang.String");
2280 }
2281
2282 Object paramObj34 = groupIds;
2283
2284 if (groupIds == null) {
2285 paramObj34 = new NullWrapper("[J");
2286 }
2287
2288 Object paramObj35 = organizationIds;
2289
2290 if (organizationIds == null) {
2291 paramObj35 = new NullWrapper("[J");
2292 }
2293
2294 Object paramObj36 = roleIds;
2295
2296 if (roleIds == null) {
2297 paramObj36 = new NullWrapper("[J");
2298 }
2299
2300 Object paramObj37 = userGroupRoles;
2301
2302 if (userGroupRoles == null) {
2303 paramObj37 = new NullWrapper("java.util.List");
2304 }
2305
2306 Object paramObj38 = userGroupIds;
2307
2308 if (userGroupIds == null) {
2309 paramObj38 = new NullWrapper("[J");
2310 }
2311
2312 Object paramObj39 = addresses;
2313
2314 if (addresses == null) {
2315 paramObj39 = new NullWrapper("java.util.List");
2316 }
2317
2318 Object paramObj40 = emailAddresses;
2319
2320 if (emailAddresses == null) {
2321 paramObj40 = new NullWrapper("java.util.List");
2322 }
2323
2324 Object paramObj41 = phones;
2325
2326 if (phones == null) {
2327 paramObj41 = new NullWrapper("java.util.List");
2328 }
2329
2330 Object paramObj42 = websites;
2331
2332 if (websites == null) {
2333 paramObj42 = new NullWrapper("java.util.List");
2334 }
2335
2336 Object paramObj43 = announcementsDelivers;
2337
2338 if (announcementsDelivers == null) {
2339 paramObj43 = new NullWrapper("java.util.List");
2340 }
2341
2342 Object paramObj44 = serviceContext;
2343
2344 if (serviceContext == null) {
2345 paramObj44 = new NullWrapper(
2346 "com.liferay.portal.service.ServiceContext");
2347 }
2348
2349 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
2350 "updateUser",
2351 new Object[] {
2352 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
2353 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
2354 paramObj10, paramObj11, paramObj12, paramObj13,
2355 paramObj14, paramObj15, paramObj16, paramObj17,
2356 paramObj18, paramObj19, paramObj20, paramObj21,
2357 paramObj22, paramObj23, paramObj24, paramObj25,
2358 paramObj26, paramObj27, paramObj28, paramObj29,
2359 paramObj30, paramObj31, paramObj32, paramObj33,
2360 paramObj34, paramObj35, paramObj36, paramObj37,
2361 paramObj38, paramObj39, paramObj40, paramObj41,
2362 paramObj42, paramObj43, paramObj44
2363 });
2364
2365 Object returnObj = null;
2366
2367 try {
2368 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
2369 }
2370 catch (Exception e) {
2371 if (e instanceof com.liferay.portal.PortalException) {
2372 throw (com.liferay.portal.PortalException)e;
2373 }
2374
2375 if (e instanceof com.liferay.portal.SystemException) {
2376 throw (com.liferay.portal.SystemException)e;
2377 }
2378
2379 throw new com.liferay.portal.SystemException(e);
2380 }
2381
2382 return (com.liferay.portal.model.User)returnObj;
2383 }
2384 catch (com.liferay.portal.SystemException se) {
2385 _log.error(se, se);
2386
2387 throw se;
2388 }
2389 }
2390
2391 private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
2392}