1
19
20 package com.liferay.portal.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24 import com.liferay.portal.kernel.util.BooleanWrapper;
25 import com.liferay.portal.kernel.util.IntegerWrapper;
26 import com.liferay.portal.kernel.util.LongWrapper;
27 import com.liferay.portal.kernel.util.MethodWrapper;
28 import com.liferay.portal.kernel.util.NullWrapper;
29 import com.liferay.portal.security.auth.HttpPrincipal;
30 import com.liferay.portal.service.UserServiceUtil;
31
32
71 public class UserServiceHttp {
72 public static void addGroupUsers(HttpPrincipal httpPrincipal, long groupId,
73 long[] userIds)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException {
76 try {
77 Object paramObj0 = new LongWrapper(groupId);
78
79 Object paramObj1 = userIds;
80
81 if (userIds == null) {
82 paramObj1 = new NullWrapper("[J");
83 }
84
85 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
86 "addGroupUsers", new Object[] { paramObj0, paramObj1 });
87
88 try {
89 TunnelUtil.invoke(httpPrincipal, methodWrapper);
90 }
91 catch (Exception e) {
92 if (e instanceof com.liferay.portal.PortalException) {
93 throw (com.liferay.portal.PortalException)e;
94 }
95
96 if (e instanceof com.liferay.portal.SystemException) {
97 throw (com.liferay.portal.SystemException)e;
98 }
99
100 throw new com.liferay.portal.SystemException(e);
101 }
102 }
103 catch (com.liferay.portal.SystemException se) {
104 _log.error(se, se);
105
106 throw se;
107 }
108 }
109
110 public static void addOrganizationUsers(HttpPrincipal httpPrincipal,
111 long organizationId, long[] userIds)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException {
114 try {
115 Object paramObj0 = new LongWrapper(organizationId);
116
117 Object paramObj1 = userIds;
118
119 if (userIds == null) {
120 paramObj1 = new NullWrapper("[J");
121 }
122
123 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
124 "addOrganizationUsers",
125 new Object[] { paramObj0, paramObj1 });
126
127 try {
128 TunnelUtil.invoke(httpPrincipal, methodWrapper);
129 }
130 catch (Exception e) {
131 if (e instanceof com.liferay.portal.PortalException) {
132 throw (com.liferay.portal.PortalException)e;
133 }
134
135 if (e instanceof com.liferay.portal.SystemException) {
136 throw (com.liferay.portal.SystemException)e;
137 }
138
139 throw new com.liferay.portal.SystemException(e);
140 }
141 }
142 catch (com.liferay.portal.SystemException se) {
143 _log.error(se, se);
144
145 throw se;
146 }
147 }
148
149 public static void addPasswordPolicyUsers(HttpPrincipal httpPrincipal,
150 long passwordPolicyId, long[] userIds)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 try {
154 Object paramObj0 = new LongWrapper(passwordPolicyId);
155
156 Object paramObj1 = userIds;
157
158 if (userIds == null) {
159 paramObj1 = new NullWrapper("[J");
160 }
161
162 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
163 "addPasswordPolicyUsers",
164 new Object[] { paramObj0, paramObj1 });
165
166 try {
167 TunnelUtil.invoke(httpPrincipal, methodWrapper);
168 }
169 catch (Exception e) {
170 if (e instanceof com.liferay.portal.PortalException) {
171 throw (com.liferay.portal.PortalException)e;
172 }
173
174 if (e instanceof com.liferay.portal.SystemException) {
175 throw (com.liferay.portal.SystemException)e;
176 }
177
178 throw new com.liferay.portal.SystemException(e);
179 }
180 }
181 catch (com.liferay.portal.SystemException se) {
182 _log.error(se, se);
183
184 throw se;
185 }
186 }
187
188 public static void addRoleUsers(HttpPrincipal httpPrincipal, long roleId,
189 long[] userIds)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 try {
193 Object paramObj0 = new LongWrapper(roleId);
194
195 Object paramObj1 = userIds;
196
197 if (userIds == null) {
198 paramObj1 = new NullWrapper("[J");
199 }
200
201 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
202 "addRoleUsers", new Object[] { paramObj0, paramObj1 });
203
204 try {
205 TunnelUtil.invoke(httpPrincipal, methodWrapper);
206 }
207 catch (Exception e) {
208 if (e instanceof com.liferay.portal.PortalException) {
209 throw (com.liferay.portal.PortalException)e;
210 }
211
212 if (e instanceof com.liferay.portal.SystemException) {
213 throw (com.liferay.portal.SystemException)e;
214 }
215
216 throw new com.liferay.portal.SystemException(e);
217 }
218 }
219 catch (com.liferay.portal.SystemException se) {
220 _log.error(se, se);
221
222 throw se;
223 }
224 }
225
226 public static void addUserGroupUsers(HttpPrincipal httpPrincipal,
227 long userGroupId, long[] userIds)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 try {
231 Object paramObj0 = new LongWrapper(userGroupId);
232
233 Object paramObj1 = userIds;
234
235 if (userIds == null) {
236 paramObj1 = new NullWrapper("[J");
237 }
238
239 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
240 "addUserGroupUsers", new Object[] { paramObj0, paramObj1 });
241
242 try {
243 TunnelUtil.invoke(httpPrincipal, methodWrapper);
244 }
245 catch (Exception e) {
246 if (e instanceof com.liferay.portal.PortalException) {
247 throw (com.liferay.portal.PortalException)e;
248 }
249
250 if (e instanceof com.liferay.portal.SystemException) {
251 throw (com.liferay.portal.SystemException)e;
252 }
253
254 throw new com.liferay.portal.SystemException(e);
255 }
256 }
257 catch (com.liferay.portal.SystemException se) {
258 _log.error(se, se);
259
260 throw se;
261 }
262 }
263
264 public static com.liferay.portal.model.User addUser(
265 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
266 java.lang.String password1, java.lang.String password2,
267 boolean autoScreenName, java.lang.String screenName,
268 java.lang.String emailAddress, java.util.Locale locale,
269 java.lang.String firstName, java.lang.String middleName,
270 java.lang.String lastName, int prefixId, int suffixId, boolean male,
271 int birthdayMonth, int birthdayDay, int birthdayYear,
272 java.lang.String jobTitle, long[] organizationIds, boolean sendEmail)
273 throws com.liferay.portal.PortalException,
274 com.liferay.portal.SystemException {
275 try {
276 Object paramObj0 = new LongWrapper(companyId);
277
278 Object paramObj1 = new BooleanWrapper(autoPassword);
279
280 Object paramObj2 = password1;
281
282 if (password1 == null) {
283 paramObj2 = new NullWrapper("java.lang.String");
284 }
285
286 Object paramObj3 = password2;
287
288 if (password2 == null) {
289 paramObj3 = new NullWrapper("java.lang.String");
290 }
291
292 Object paramObj4 = new BooleanWrapper(autoScreenName);
293
294 Object paramObj5 = screenName;
295
296 if (screenName == null) {
297 paramObj5 = new NullWrapper("java.lang.String");
298 }
299
300 Object paramObj6 = emailAddress;
301
302 if (emailAddress == null) {
303 paramObj6 = new NullWrapper("java.lang.String");
304 }
305
306 Object paramObj7 = locale;
307
308 if (locale == null) {
309 paramObj7 = new NullWrapper("java.util.Locale");
310 }
311
312 Object paramObj8 = firstName;
313
314 if (firstName == null) {
315 paramObj8 = new NullWrapper("java.lang.String");
316 }
317
318 Object paramObj9 = middleName;
319
320 if (middleName == null) {
321 paramObj9 = new NullWrapper("java.lang.String");
322 }
323
324 Object paramObj10 = lastName;
325
326 if (lastName == null) {
327 paramObj10 = new NullWrapper("java.lang.String");
328 }
329
330 Object paramObj11 = new IntegerWrapper(prefixId);
331
332 Object paramObj12 = new IntegerWrapper(suffixId);
333
334 Object paramObj13 = new BooleanWrapper(male);
335
336 Object paramObj14 = new IntegerWrapper(birthdayMonth);
337
338 Object paramObj15 = new IntegerWrapper(birthdayDay);
339
340 Object paramObj16 = new IntegerWrapper(birthdayYear);
341
342 Object paramObj17 = jobTitle;
343
344 if (jobTitle == null) {
345 paramObj17 = new NullWrapper("java.lang.String");
346 }
347
348 Object paramObj18 = organizationIds;
349
350 if (organizationIds == null) {
351 paramObj18 = new NullWrapper("[J");
352 }
353
354 Object paramObj19 = new BooleanWrapper(sendEmail);
355
356 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
357 "addUser",
358 new Object[] {
359 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
360 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
361 paramObj10, paramObj11, paramObj12, paramObj13,
362 paramObj14, paramObj15, paramObj16, paramObj17,
363 paramObj18, paramObj19
364 });
365
366 Object returnObj = null;
367
368 try {
369 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
370 }
371 catch (Exception e) {
372 if (e instanceof com.liferay.portal.PortalException) {
373 throw (com.liferay.portal.PortalException)e;
374 }
375
376 if (e instanceof com.liferay.portal.SystemException) {
377 throw (com.liferay.portal.SystemException)e;
378 }
379
380 throw new com.liferay.portal.SystemException(e);
381 }
382
383 return (com.liferay.portal.model.User)returnObj;
384 }
385 catch (com.liferay.portal.SystemException se) {
386 _log.error(se, se);
387
388 throw se;
389 }
390 }
391
392 public static void deleteRoleUser(HttpPrincipal httpPrincipal, long roleId,
393 long userId)
394 throws com.liferay.portal.PortalException,
395 com.liferay.portal.SystemException {
396 try {
397 Object paramObj0 = new LongWrapper(roleId);
398
399 Object paramObj1 = new LongWrapper(userId);
400
401 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
402 "deleteRoleUser", new Object[] { paramObj0, paramObj1 });
403
404 try {
405 TunnelUtil.invoke(httpPrincipal, methodWrapper);
406 }
407 catch (Exception e) {
408 if (e instanceof com.liferay.portal.PortalException) {
409 throw (com.liferay.portal.PortalException)e;
410 }
411
412 if (e instanceof com.liferay.portal.SystemException) {
413 throw (com.liferay.portal.SystemException)e;
414 }
415
416 throw new com.liferay.portal.SystemException(e);
417 }
418 }
419 catch (com.liferay.portal.SystemException se) {
420 _log.error(se, se);
421
422 throw se;
423 }
424 }
425
426 public static void deleteUser(HttpPrincipal httpPrincipal, long userId)
427 throws com.liferay.portal.PortalException,
428 com.liferay.portal.SystemException {
429 try {
430 Object paramObj0 = new LongWrapper(userId);
431
432 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
433 "deleteUser", new Object[] { paramObj0 });
434
435 try {
436 TunnelUtil.invoke(httpPrincipal, methodWrapper);
437 }
438 catch (Exception e) {
439 if (e instanceof com.liferay.portal.PortalException) {
440 throw (com.liferay.portal.PortalException)e;
441 }
442
443 if (e instanceof com.liferay.portal.SystemException) {
444 throw (com.liferay.portal.SystemException)e;
445 }
446
447 throw new com.liferay.portal.SystemException(e);
448 }
449 }
450 catch (com.liferay.portal.SystemException se) {
451 _log.error(se, se);
452
453 throw se;
454 }
455 }
456
457 public static long getDefaultUserId(HttpPrincipal httpPrincipal,
458 long companyId)
459 throws com.liferay.portal.PortalException,
460 com.liferay.portal.SystemException {
461 try {
462 Object paramObj0 = new LongWrapper(companyId);
463
464 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
465 "getDefaultUserId", new Object[] { paramObj0 });
466
467 Object returnObj = null;
468
469 try {
470 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
471 }
472 catch (Exception e) {
473 if (e instanceof com.liferay.portal.PortalException) {
474 throw (com.liferay.portal.PortalException)e;
475 }
476
477 if (e instanceof com.liferay.portal.SystemException) {
478 throw (com.liferay.portal.SystemException)e;
479 }
480
481 throw new com.liferay.portal.SystemException(e);
482 }
483
484 return ((Long)returnObj).longValue();
485 }
486 catch (com.liferay.portal.SystemException se) {
487 _log.error(se, se);
488
489 throw se;
490 }
491 }
492
493 public static long[] getGroupUserIds(HttpPrincipal httpPrincipal,
494 long groupId) throws com.liferay.portal.SystemException {
495 try {
496 Object paramObj0 = new LongWrapper(groupId);
497
498 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
499 "getGroupUserIds", new Object[] { paramObj0 });
500
501 Object returnObj = null;
502
503 try {
504 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
505 }
506 catch (Exception e) {
507 if (e instanceof com.liferay.portal.SystemException) {
508 throw (com.liferay.portal.SystemException)e;
509 }
510
511 throw new com.liferay.portal.SystemException(e);
512 }
513
514 return (long[])returnObj;
515 }
516 catch (com.liferay.portal.SystemException se) {
517 _log.error(se, se);
518
519 throw se;
520 }
521 }
522
523 public static long[] getOrganizationUserIds(HttpPrincipal httpPrincipal,
524 long organizationId) throws com.liferay.portal.SystemException {
525 try {
526 Object paramObj0 = new LongWrapper(organizationId);
527
528 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
529 "getOrganizationUserIds", new Object[] { paramObj0 });
530
531 Object returnObj = null;
532
533 try {
534 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
535 }
536 catch (Exception e) {
537 if (e instanceof com.liferay.portal.SystemException) {
538 throw (com.liferay.portal.SystemException)e;
539 }
540
541 throw new com.liferay.portal.SystemException(e);
542 }
543
544 return (long[])returnObj;
545 }
546 catch (com.liferay.portal.SystemException se) {
547 _log.error(se, se);
548
549 throw se;
550 }
551 }
552
553 public static long[] getRoleUserIds(HttpPrincipal httpPrincipal, long roleId)
554 throws com.liferay.portal.SystemException {
555 try {
556 Object paramObj0 = new LongWrapper(roleId);
557
558 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
559 "getRoleUserIds", new Object[] { paramObj0 });
560
561 Object returnObj = null;
562
563 try {
564 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
565 }
566 catch (Exception e) {
567 if (e instanceof com.liferay.portal.SystemException) {
568 throw (com.liferay.portal.SystemException)e;
569 }
570
571 throw new com.liferay.portal.SystemException(e);
572 }
573
574 return (long[])returnObj;
575 }
576 catch (com.liferay.portal.SystemException se) {
577 _log.error(se, se);
578
579 throw se;
580 }
581 }
582
583 public static com.liferay.portal.model.User getUserByEmailAddress(
584 HttpPrincipal httpPrincipal, long companyId,
585 java.lang.String emailAddress)
586 throws com.liferay.portal.PortalException,
587 com.liferay.portal.SystemException {
588 try {
589 Object paramObj0 = new LongWrapper(companyId);
590
591 Object paramObj1 = emailAddress;
592
593 if (emailAddress == null) {
594 paramObj1 = new NullWrapper("java.lang.String");
595 }
596
597 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
598 "getUserByEmailAddress",
599 new Object[] { paramObj0, paramObj1 });
600
601 Object returnObj = null;
602
603 try {
604 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
605 }
606 catch (Exception e) {
607 if (e instanceof com.liferay.portal.PortalException) {
608 throw (com.liferay.portal.PortalException)e;
609 }
610
611 if (e instanceof com.liferay.portal.SystemException) {
612 throw (com.liferay.portal.SystemException)e;
613 }
614
615 throw new com.liferay.portal.SystemException(e);
616 }
617
618 return (com.liferay.portal.model.User)returnObj;
619 }
620 catch (com.liferay.portal.SystemException se) {
621 _log.error(se, se);
622
623 throw se;
624 }
625 }
626
627 public static com.liferay.portal.model.User getUserById(
628 HttpPrincipal httpPrincipal, long userId)
629 throws com.liferay.portal.PortalException,
630 com.liferay.portal.SystemException {
631 try {
632 Object paramObj0 = new LongWrapper(userId);
633
634 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
635 "getUserById", new Object[] { paramObj0 });
636
637 Object returnObj = null;
638
639 try {
640 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
641 }
642 catch (Exception e) {
643 if (e instanceof com.liferay.portal.PortalException) {
644 throw (com.liferay.portal.PortalException)e;
645 }
646
647 if (e instanceof com.liferay.portal.SystemException) {
648 throw (com.liferay.portal.SystemException)e;
649 }
650
651 throw new com.liferay.portal.SystemException(e);
652 }
653
654 return (com.liferay.portal.model.User)returnObj;
655 }
656 catch (com.liferay.portal.SystemException se) {
657 _log.error(se, se);
658
659 throw se;
660 }
661 }
662
663 public static com.liferay.portal.model.User getUserByScreenName(
664 HttpPrincipal httpPrincipal, long companyId, java.lang.String screenName)
665 throws com.liferay.portal.PortalException,
666 com.liferay.portal.SystemException {
667 try {
668 Object paramObj0 = new LongWrapper(companyId);
669
670 Object paramObj1 = screenName;
671
672 if (screenName == null) {
673 paramObj1 = new NullWrapper("java.lang.String");
674 }
675
676 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
677 "getUserByScreenName", new Object[] { paramObj0, paramObj1 });
678
679 Object returnObj = null;
680
681 try {
682 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
683 }
684 catch (Exception e) {
685 if (e instanceof com.liferay.portal.PortalException) {
686 throw (com.liferay.portal.PortalException)e;
687 }
688
689 if (e instanceof com.liferay.portal.SystemException) {
690 throw (com.liferay.portal.SystemException)e;
691 }
692
693 throw new com.liferay.portal.SystemException(e);
694 }
695
696 return (com.liferay.portal.model.User)returnObj;
697 }
698 catch (com.liferay.portal.SystemException se) {
699 _log.error(se, se);
700
701 throw se;
702 }
703 }
704
705 public static long getUserIdByEmailAddress(HttpPrincipal httpPrincipal,
706 long companyId, java.lang.String emailAddress)
707 throws com.liferay.portal.PortalException,
708 com.liferay.portal.SystemException {
709 try {
710 Object paramObj0 = new LongWrapper(companyId);
711
712 Object paramObj1 = emailAddress;
713
714 if (emailAddress == null) {
715 paramObj1 = new NullWrapper("java.lang.String");
716 }
717
718 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
719 "getUserIdByEmailAddress",
720 new Object[] { paramObj0, paramObj1 });
721
722 Object returnObj = null;
723
724 try {
725 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
726 }
727 catch (Exception e) {
728 if (e instanceof com.liferay.portal.PortalException) {
729 throw (com.liferay.portal.PortalException)e;
730 }
731
732 if (e instanceof com.liferay.portal.SystemException) {
733 throw (com.liferay.portal.SystemException)e;
734 }
735
736 throw new com.liferay.portal.SystemException(e);
737 }
738
739 return ((Long)returnObj).longValue();
740 }
741 catch (com.liferay.portal.SystemException se) {
742 _log.error(se, se);
743
744 throw se;
745 }
746 }
747
748 public static long getUserIdByScreenName(HttpPrincipal httpPrincipal,
749 long companyId, java.lang.String screenName)
750 throws com.liferay.portal.PortalException,
751 com.liferay.portal.SystemException {
752 try {
753 Object paramObj0 = new LongWrapper(companyId);
754
755 Object paramObj1 = screenName;
756
757 if (screenName == null) {
758 paramObj1 = new NullWrapper("java.lang.String");
759 }
760
761 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
762 "getUserIdByScreenName",
763 new Object[] { paramObj0, paramObj1 });
764
765 Object returnObj = null;
766
767 try {
768 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
769 }
770 catch (Exception e) {
771 if (e instanceof com.liferay.portal.PortalException) {
772 throw (com.liferay.portal.PortalException)e;
773 }
774
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).longValue();
783 }
784 catch (com.liferay.portal.SystemException se) {
785 _log.error(se, se);
786
787 throw se;
788 }
789 }
790
791 public static boolean hasGroupUser(HttpPrincipal httpPrincipal,
792 long groupId, long userId) throws com.liferay.portal.SystemException {
793 try {
794 Object paramObj0 = new LongWrapper(groupId);
795
796 Object paramObj1 = new LongWrapper(userId);
797
798 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
799 "hasGroupUser", new Object[] { paramObj0, paramObj1 });
800
801 Object returnObj = null;
802
803 try {
804 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
805 }
806 catch (Exception e) {
807 if (e instanceof com.liferay.portal.SystemException) {
808 throw (com.liferay.portal.SystemException)e;
809 }
810
811 throw new com.liferay.portal.SystemException(e);
812 }
813
814 return ((Boolean)returnObj).booleanValue();
815 }
816 catch (com.liferay.portal.SystemException se) {
817 _log.error(se, se);
818
819 throw se;
820 }
821 }
822
823 public static boolean hasRoleUser(HttpPrincipal httpPrincipal, long roleId,
824 long userId) throws com.liferay.portal.SystemException {
825 try {
826 Object paramObj0 = new LongWrapper(roleId);
827
828 Object paramObj1 = new LongWrapper(userId);
829
830 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
831 "hasRoleUser", new Object[] { paramObj0, paramObj1 });
832
833 Object returnObj = null;
834
835 try {
836 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
837 }
838 catch (Exception e) {
839 if (e instanceof com.liferay.portal.SystemException) {
840 throw (com.liferay.portal.SystemException)e;
841 }
842
843 throw new com.liferay.portal.SystemException(e);
844 }
845
846 return ((Boolean)returnObj).booleanValue();
847 }
848 catch (com.liferay.portal.SystemException se) {
849 _log.error(se, se);
850
851 throw se;
852 }
853 }
854
855 public static void setRoleUsers(HttpPrincipal httpPrincipal, long roleId,
856 long[] userIds)
857 throws com.liferay.portal.PortalException,
858 com.liferay.portal.SystemException {
859 try {
860 Object paramObj0 = new LongWrapper(roleId);
861
862 Object paramObj1 = userIds;
863
864 if (userIds == null) {
865 paramObj1 = new NullWrapper("[J");
866 }
867
868 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
869 "setRoleUsers", new Object[] { paramObj0, paramObj1 });
870
871 try {
872 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 catch (com.liferay.portal.SystemException se) {
887 _log.error(se, se);
888
889 throw se;
890 }
891 }
892
893 public static void setUserGroupUsers(HttpPrincipal httpPrincipal,
894 long userGroupId, long[] userIds)
895 throws com.liferay.portal.PortalException,
896 com.liferay.portal.SystemException {
897 try {
898 Object paramObj0 = new LongWrapper(userGroupId);
899
900 Object paramObj1 = userIds;
901
902 if (userIds == null) {
903 paramObj1 = new NullWrapper("[J");
904 }
905
906 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
907 "setUserGroupUsers", new Object[] { paramObj0, paramObj1 });
908
909 try {
910 TunnelUtil.invoke(httpPrincipal, methodWrapper);
911 }
912 catch (Exception e) {
913 if (e instanceof com.liferay.portal.PortalException) {
914 throw (com.liferay.portal.PortalException)e;
915 }
916
917 if (e instanceof com.liferay.portal.SystemException) {
918 throw (com.liferay.portal.SystemException)e;
919 }
920
921 throw new com.liferay.portal.SystemException(e);
922 }
923 }
924 catch (com.liferay.portal.SystemException se) {
925 _log.error(se, se);
926
927 throw se;
928 }
929 }
930
931 public static void unsetGroupUsers(HttpPrincipal httpPrincipal,
932 long groupId, long[] userIds)
933 throws com.liferay.portal.PortalException,
934 com.liferay.portal.SystemException {
935 try {
936 Object paramObj0 = new LongWrapper(groupId);
937
938 Object paramObj1 = userIds;
939
940 if (userIds == null) {
941 paramObj1 = new NullWrapper("[J");
942 }
943
944 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
945 "unsetGroupUsers", new Object[] { paramObj0, paramObj1 });
946
947 try {
948 TunnelUtil.invoke(httpPrincipal, methodWrapper);
949 }
950 catch (Exception e) {
951 if (e instanceof com.liferay.portal.PortalException) {
952 throw (com.liferay.portal.PortalException)e;
953 }
954
955 if (e instanceof com.liferay.portal.SystemException) {
956 throw (com.liferay.portal.SystemException)e;
957 }
958
959 throw new com.liferay.portal.SystemException(e);
960 }
961 }
962 catch (com.liferay.portal.SystemException se) {
963 _log.error(se, se);
964
965 throw se;
966 }
967 }
968
969 public static void unsetOrganizationUsers(HttpPrincipal httpPrincipal,
970 long organizationId, long[] userIds)
971 throws com.liferay.portal.PortalException,
972 com.liferay.portal.SystemException {
973 try {
974 Object paramObj0 = new LongWrapper(organizationId);
975
976 Object paramObj1 = userIds;
977
978 if (userIds == null) {
979 paramObj1 = new NullWrapper("[J");
980 }
981
982 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
983 "unsetOrganizationUsers",
984 new Object[] { paramObj0, paramObj1 });
985
986 try {
987 TunnelUtil.invoke(httpPrincipal, methodWrapper);
988 }
989 catch (Exception e) {
990 if (e instanceof com.liferay.portal.PortalException) {
991 throw (com.liferay.portal.PortalException)e;
992 }
993
994 if (e instanceof com.liferay.portal.SystemException) {
995 throw (com.liferay.portal.SystemException)e;
996 }
997
998 throw new com.liferay.portal.SystemException(e);
999 }
1000 }
1001 catch (com.liferay.portal.SystemException se) {
1002 _log.error(se, se);
1003
1004 throw se;
1005 }
1006 }
1007
1008 public static void unsetPasswordPolicyUsers(HttpPrincipal httpPrincipal,
1009 long passwordPolicyId, long[] userIds)
1010 throws com.liferay.portal.PortalException,
1011 com.liferay.portal.SystemException {
1012 try {
1013 Object paramObj0 = new LongWrapper(passwordPolicyId);
1014
1015 Object paramObj1 = userIds;
1016
1017 if (userIds == null) {
1018 paramObj1 = new NullWrapper("[J");
1019 }
1020
1021 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1022 "unsetPasswordPolicyUsers",
1023 new Object[] { paramObj0, paramObj1 });
1024
1025 try {
1026 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1027 }
1028 catch (Exception e) {
1029 if (e instanceof com.liferay.portal.PortalException) {
1030 throw (com.liferay.portal.PortalException)e;
1031 }
1032
1033 if (e instanceof com.liferay.portal.SystemException) {
1034 throw (com.liferay.portal.SystemException)e;
1035 }
1036
1037 throw new com.liferay.portal.SystemException(e);
1038 }
1039 }
1040 catch (com.liferay.portal.SystemException se) {
1041 _log.error(se, se);
1042
1043 throw se;
1044 }
1045 }
1046
1047 public static void unsetRoleUsers(HttpPrincipal httpPrincipal, long roleId,
1048 long[] userIds)
1049 throws com.liferay.portal.PortalException,
1050 com.liferay.portal.SystemException {
1051 try {
1052 Object paramObj0 = new LongWrapper(roleId);
1053
1054 Object paramObj1 = userIds;
1055
1056 if (userIds == null) {
1057 paramObj1 = new NullWrapper("[J");
1058 }
1059
1060 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1061 "unsetRoleUsers", new Object[] { paramObj0, paramObj1 });
1062
1063 try {
1064 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1065 }
1066 catch (Exception e) {
1067 if (e instanceof com.liferay.portal.PortalException) {
1068 throw (com.liferay.portal.PortalException)e;
1069 }
1070
1071 if (e instanceof com.liferay.portal.SystemException) {
1072 throw (com.liferay.portal.SystemException)e;
1073 }
1074
1075 throw new com.liferay.portal.SystemException(e);
1076 }
1077 }
1078 catch (com.liferay.portal.SystemException se) {
1079 _log.error(se, se);
1080
1081 throw se;
1082 }
1083 }
1084
1085 public static void unsetUserGroupUsers(HttpPrincipal httpPrincipal,
1086 long userGroupId, long[] userIds)
1087 throws com.liferay.portal.PortalException,
1088 com.liferay.portal.SystemException {
1089 try {
1090 Object paramObj0 = new LongWrapper(userGroupId);
1091
1092 Object paramObj1 = userIds;
1093
1094 if (userIds == null) {
1095 paramObj1 = new NullWrapper("[J");
1096 }
1097
1098 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1099 "unsetUserGroupUsers", new Object[] { paramObj0, paramObj1 });
1100
1101 try {
1102 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1103 }
1104 catch (Exception e) {
1105 if (e instanceof com.liferay.portal.PortalException) {
1106 throw (com.liferay.portal.PortalException)e;
1107 }
1108
1109 if (e instanceof com.liferay.portal.SystemException) {
1110 throw (com.liferay.portal.SystemException)e;
1111 }
1112
1113 throw new com.liferay.portal.SystemException(e);
1114 }
1115 }
1116 catch (com.liferay.portal.SystemException se) {
1117 _log.error(se, se);
1118
1119 throw se;
1120 }
1121 }
1122
1123 public static com.liferay.portal.model.User updateActive(
1124 HttpPrincipal httpPrincipal, long userId, boolean active)
1125 throws com.liferay.portal.PortalException,
1126 com.liferay.portal.SystemException {
1127 try {
1128 Object paramObj0 = new LongWrapper(userId);
1129
1130 Object paramObj1 = new BooleanWrapper(active);
1131
1132 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1133 "updateActive", new Object[] { paramObj0, paramObj1 });
1134
1135 Object returnObj = null;
1136
1137 try {
1138 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1139 }
1140 catch (Exception e) {
1141 if (e instanceof com.liferay.portal.PortalException) {
1142 throw (com.liferay.portal.PortalException)e;
1143 }
1144
1145 if (e instanceof com.liferay.portal.SystemException) {
1146 throw (com.liferay.portal.SystemException)e;
1147 }
1148
1149 throw new com.liferay.portal.SystemException(e);
1150 }
1151
1152 return (com.liferay.portal.model.User)returnObj;
1153 }
1154 catch (com.liferay.portal.SystemException se) {
1155 _log.error(se, se);
1156
1157 throw se;
1158 }
1159 }
1160
1161 public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
1162 HttpPrincipal httpPrincipal, long userId, boolean agreedToTermsOfUse)
1163 throws com.liferay.portal.PortalException,
1164 com.liferay.portal.SystemException {
1165 try {
1166 Object paramObj0 = new LongWrapper(userId);
1167
1168 Object paramObj1 = new BooleanWrapper(agreedToTermsOfUse);
1169
1170 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1171 "updateAgreedToTermsOfUse",
1172 new Object[] { paramObj0, paramObj1 });
1173
1174 Object returnObj = null;
1175
1176 try {
1177 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1178 }
1179 catch (Exception e) {
1180 if (e instanceof com.liferay.portal.PortalException) {
1181 throw (com.liferay.portal.PortalException)e;
1182 }
1183
1184 if (e instanceof com.liferay.portal.SystemException) {
1185 throw (com.liferay.portal.SystemException)e;
1186 }
1187
1188 throw new com.liferay.portal.SystemException(e);
1189 }
1190
1191 return (com.liferay.portal.model.User)returnObj;
1192 }
1193 catch (com.liferay.portal.SystemException se) {
1194 _log.error(se, se);
1195
1196 throw se;
1197 }
1198 }
1199
1200 public static com.liferay.portal.model.User updateLockout(
1201 HttpPrincipal httpPrincipal, long userId, boolean lockout)
1202 throws com.liferay.portal.PortalException,
1203 com.liferay.portal.SystemException {
1204 try {
1205 Object paramObj0 = new LongWrapper(userId);
1206
1207 Object paramObj1 = new BooleanWrapper(lockout);
1208
1209 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1210 "updateLockout", new Object[] { paramObj0, paramObj1 });
1211
1212 Object returnObj = null;
1213
1214 try {
1215 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1216 }
1217 catch (Exception e) {
1218 if (e instanceof com.liferay.portal.PortalException) {
1219 throw (com.liferay.portal.PortalException)e;
1220 }
1221
1222 if (e instanceof com.liferay.portal.SystemException) {
1223 throw (com.liferay.portal.SystemException)e;
1224 }
1225
1226 throw new com.liferay.portal.SystemException(e);
1227 }
1228
1229 return (com.liferay.portal.model.User)returnObj;
1230 }
1231 catch (com.liferay.portal.SystemException se) {
1232 _log.error(se, se);
1233
1234 throw se;
1235 }
1236 }
1237
1238 public static void updateOpenId(HttpPrincipal httpPrincipal, long userId,
1239 java.lang.String openId)
1240 throws com.liferay.portal.PortalException,
1241 com.liferay.portal.SystemException {
1242 try {
1243 Object paramObj0 = new LongWrapper(userId);
1244
1245 Object paramObj1 = openId;
1246
1247 if (openId == null) {
1248 paramObj1 = new NullWrapper("java.lang.String");
1249 }
1250
1251 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1252 "updateOpenId", 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 updateOrganizations(HttpPrincipal httpPrincipal,
1277 long userId, long[] organizationIds)
1278 throws com.liferay.portal.PortalException,
1279 com.liferay.portal.SystemException {
1280 try {
1281 Object paramObj0 = new LongWrapper(userId);
1282
1283 Object paramObj1 = organizationIds;
1284
1285 if (organizationIds == null) {
1286 paramObj1 = new NullWrapper("[J");
1287 }
1288
1289 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1290 "updateOrganizations", new Object[] { paramObj0, paramObj1 });
1291
1292 try {
1293 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1294 }
1295 catch (Exception e) {
1296 if (e instanceof com.liferay.portal.PortalException) {
1297 throw (com.liferay.portal.PortalException)e;
1298 }
1299
1300 if (e instanceof com.liferay.portal.SystemException) {
1301 throw (com.liferay.portal.SystemException)e;
1302 }
1303
1304 throw new com.liferay.portal.SystemException(e);
1305 }
1306 }
1307 catch (com.liferay.portal.SystemException se) {
1308 _log.error(se, se);
1309
1310 throw se;
1311 }
1312 }
1313
1314 public static com.liferay.portal.model.User updatePassword(
1315 HttpPrincipal httpPrincipal, long userId, java.lang.String password1,
1316 java.lang.String password2, boolean passwordReset)
1317 throws com.liferay.portal.PortalException,
1318 com.liferay.portal.SystemException {
1319 try {
1320 Object paramObj0 = new LongWrapper(userId);
1321
1322 Object paramObj1 = password1;
1323
1324 if (password1 == null) {
1325 paramObj1 = new NullWrapper("java.lang.String");
1326 }
1327
1328 Object paramObj2 = password2;
1329
1330 if (password2 == null) {
1331 paramObj2 = new NullWrapper("java.lang.String");
1332 }
1333
1334 Object paramObj3 = new BooleanWrapper(passwordReset);
1335
1336 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1337 "updatePassword",
1338 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1339
1340 Object returnObj = null;
1341
1342 try {
1343 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1344 }
1345 catch (Exception e) {
1346 if (e instanceof com.liferay.portal.PortalException) {
1347 throw (com.liferay.portal.PortalException)e;
1348 }
1349
1350 if (e instanceof com.liferay.portal.SystemException) {
1351 throw (com.liferay.portal.SystemException)e;
1352 }
1353
1354 throw new com.liferay.portal.SystemException(e);
1355 }
1356
1357 return (com.liferay.portal.model.User)returnObj;
1358 }
1359 catch (com.liferay.portal.SystemException se) {
1360 _log.error(se, se);
1361
1362 throw se;
1363 }
1364 }
1365
1366 public static void updatePortrait(HttpPrincipal httpPrincipal, long userId,
1367 byte[] bytes)
1368 throws com.liferay.portal.PortalException,
1369 com.liferay.portal.SystemException {
1370 try {
1371 Object paramObj0 = new LongWrapper(userId);
1372
1373 Object paramObj1 = bytes;
1374
1375 if (bytes == null) {
1376 paramObj1 = new NullWrapper("[B");
1377 }
1378
1379 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1380 "updatePortrait", new Object[] { paramObj0, paramObj1 });
1381
1382 try {
1383 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1384 }
1385 catch (Exception e) {
1386 if (e instanceof com.liferay.portal.PortalException) {
1387 throw (com.liferay.portal.PortalException)e;
1388 }
1389
1390 if (e instanceof com.liferay.portal.SystemException) {
1391 throw (com.liferay.portal.SystemException)e;
1392 }
1393
1394 throw new com.liferay.portal.SystemException(e);
1395 }
1396 }
1397 catch (com.liferay.portal.SystemException se) {
1398 _log.error(se, se);
1399
1400 throw se;
1401 }
1402 }
1403
1404 public static void updateScreenName(HttpPrincipal httpPrincipal,
1405 long userId, java.lang.String screenName)
1406 throws com.liferay.portal.PortalException,
1407 com.liferay.portal.SystemException {
1408 try {
1409 Object paramObj0 = new LongWrapper(userId);
1410
1411 Object paramObj1 = screenName;
1412
1413 if (screenName == null) {
1414 paramObj1 = new NullWrapper("java.lang.String");
1415 }
1416
1417 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1418 "updateScreenName", new Object[] { paramObj0, paramObj1 });
1419
1420 try {
1421 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1422 }
1423 catch (Exception e) {
1424 if (e instanceof com.liferay.portal.PortalException) {
1425 throw (com.liferay.portal.PortalException)e;
1426 }
1427
1428 if (e instanceof com.liferay.portal.SystemException) {
1429 throw (com.liferay.portal.SystemException)e;
1430 }
1431
1432 throw new com.liferay.portal.SystemException(e);
1433 }
1434 }
1435 catch (com.liferay.portal.SystemException se) {
1436 _log.error(se, se);
1437
1438 throw se;
1439 }
1440 }
1441
1442 public static com.liferay.portal.model.User updateUser(
1443 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1444 boolean passwordReset, java.lang.String screenName,
1445 java.lang.String emailAddress, java.lang.String languageId,
1446 java.lang.String timeZoneId, java.lang.String greeting,
1447 java.lang.String comments, java.lang.String firstName,
1448 java.lang.String middleName, java.lang.String lastName, int prefixId,
1449 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1450 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1451 java.lang.String facebookSn, java.lang.String icqSn,
1452 java.lang.String jabberSn, java.lang.String msnSn,
1453 java.lang.String mySpaceSn, java.lang.String skypeSn,
1454 java.lang.String twitterSn, java.lang.String ymSn,
1455 java.lang.String jobTitle, long[] organizationIds)
1456 throws com.liferay.portal.PortalException,
1457 com.liferay.portal.SystemException {
1458 try {
1459 Object paramObj0 = new LongWrapper(userId);
1460
1461 Object paramObj1 = oldPassword;
1462
1463 if (oldPassword == null) {
1464 paramObj1 = new NullWrapper("java.lang.String");
1465 }
1466
1467 Object paramObj2 = new BooleanWrapper(passwordReset);
1468
1469 Object paramObj3 = screenName;
1470
1471 if (screenName == null) {
1472 paramObj3 = new NullWrapper("java.lang.String");
1473 }
1474
1475 Object paramObj4 = emailAddress;
1476
1477 if (emailAddress == null) {
1478 paramObj4 = new NullWrapper("java.lang.String");
1479 }
1480
1481 Object paramObj5 = languageId;
1482
1483 if (languageId == null) {
1484 paramObj5 = new NullWrapper("java.lang.String");
1485 }
1486
1487 Object paramObj6 = timeZoneId;
1488
1489 if (timeZoneId == null) {
1490 paramObj6 = new NullWrapper("java.lang.String");
1491 }
1492
1493 Object paramObj7 = greeting;
1494
1495 if (greeting == null) {
1496 paramObj7 = new NullWrapper("java.lang.String");
1497 }
1498
1499 Object paramObj8 = comments;
1500
1501 if (comments == null) {
1502 paramObj8 = new NullWrapper("java.lang.String");
1503 }
1504
1505 Object paramObj9 = firstName;
1506
1507 if (firstName == null) {
1508 paramObj9 = new NullWrapper("java.lang.String");
1509 }
1510
1511 Object paramObj10 = middleName;
1512
1513 if (middleName == null) {
1514 paramObj10 = new NullWrapper("java.lang.String");
1515 }
1516
1517 Object paramObj11 = lastName;
1518
1519 if (lastName == null) {
1520 paramObj11 = new NullWrapper("java.lang.String");
1521 }
1522
1523 Object paramObj12 = new IntegerWrapper(prefixId);
1524
1525 Object paramObj13 = new IntegerWrapper(suffixId);
1526
1527 Object paramObj14 = new BooleanWrapper(male);
1528
1529 Object paramObj15 = new IntegerWrapper(birthdayMonth);
1530
1531 Object paramObj16 = new IntegerWrapper(birthdayDay);
1532
1533 Object paramObj17 = new IntegerWrapper(birthdayYear);
1534
1535 Object paramObj18 = smsSn;
1536
1537 if (smsSn == null) {
1538 paramObj18 = new NullWrapper("java.lang.String");
1539 }
1540
1541 Object paramObj19 = aimSn;
1542
1543 if (aimSn == null) {
1544 paramObj19 = new NullWrapper("java.lang.String");
1545 }
1546
1547 Object paramObj20 = facebookSn;
1548
1549 if (facebookSn == null) {
1550 paramObj20 = new NullWrapper("java.lang.String");
1551 }
1552
1553 Object paramObj21 = icqSn;
1554
1555 if (icqSn == null) {
1556 paramObj21 = new NullWrapper("java.lang.String");
1557 }
1558
1559 Object paramObj22 = jabberSn;
1560
1561 if (jabberSn == null) {
1562 paramObj22 = new NullWrapper("java.lang.String");
1563 }
1564
1565 Object paramObj23 = msnSn;
1566
1567 if (msnSn == null) {
1568 paramObj23 = new NullWrapper("java.lang.String");
1569 }
1570
1571 Object paramObj24 = mySpaceSn;
1572
1573 if (mySpaceSn == null) {
1574 paramObj24 = new NullWrapper("java.lang.String");
1575 }
1576
1577 Object paramObj25 = skypeSn;
1578
1579 if (skypeSn == null) {
1580 paramObj25 = new NullWrapper("java.lang.String");
1581 }
1582
1583 Object paramObj26 = twitterSn;
1584
1585 if (twitterSn == null) {
1586 paramObj26 = new NullWrapper("java.lang.String");
1587 }
1588
1589 Object paramObj27 = ymSn;
1590
1591 if (ymSn == null) {
1592 paramObj27 = new NullWrapper("java.lang.String");
1593 }
1594
1595 Object paramObj28 = jobTitle;
1596
1597 if (jobTitle == null) {
1598 paramObj28 = new NullWrapper("java.lang.String");
1599 }
1600
1601 Object paramObj29 = organizationIds;
1602
1603 if (organizationIds == null) {
1604 paramObj29 = new NullWrapper("[J");
1605 }
1606
1607 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1608 "updateUser",
1609 new Object[] {
1610 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1611 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1612 paramObj10, paramObj11, paramObj12, paramObj13,
1613 paramObj14, paramObj15, paramObj16, paramObj17,
1614 paramObj18, paramObj19, paramObj20, paramObj21,
1615 paramObj22, paramObj23, paramObj24, paramObj25,
1616 paramObj26, paramObj27, paramObj28, paramObj29
1617 });
1618
1619 Object returnObj = null;
1620
1621 try {
1622 returnObj = 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 return (com.liferay.portal.model.User)returnObj;
1637 }
1638 catch (com.liferay.portal.SystemException se) {
1639 _log.error(se, se);
1640
1641 throw se;
1642 }
1643 }
1644
1645 public static com.liferay.portal.model.User updateUser(
1646 HttpPrincipal httpPrincipal, long userId, java.lang.String oldPassword,
1647 java.lang.String newPassword1, java.lang.String newPassword2,
1648 boolean passwordReset, java.lang.String screenName,
1649 java.lang.String emailAddress, java.lang.String languageId,
1650 java.lang.String timeZoneId, java.lang.String greeting,
1651 java.lang.String comments, java.lang.String firstName,
1652 java.lang.String middleName, java.lang.String lastName, int prefixId,
1653 int suffixId, boolean male, int birthdayMonth, int birthdayDay,
1654 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
1655 java.lang.String facebookSn, java.lang.String icqSn,
1656 java.lang.String jabberSn, java.lang.String msnSn,
1657 java.lang.String mySpaceSn, java.lang.String skypeSn,
1658 java.lang.String twitterSn, java.lang.String ymSn,
1659 java.lang.String jobTitle, long[] organizationIds)
1660 throws com.liferay.portal.PortalException,
1661 com.liferay.portal.SystemException {
1662 try {
1663 Object paramObj0 = new LongWrapper(userId);
1664
1665 Object paramObj1 = oldPassword;
1666
1667 if (oldPassword == null) {
1668 paramObj1 = new NullWrapper("java.lang.String");
1669 }
1670
1671 Object paramObj2 = newPassword1;
1672
1673 if (newPassword1 == null) {
1674 paramObj2 = new NullWrapper("java.lang.String");
1675 }
1676
1677 Object paramObj3 = newPassword2;
1678
1679 if (newPassword2 == null) {
1680 paramObj3 = new NullWrapper("java.lang.String");
1681 }
1682
1683 Object paramObj4 = new BooleanWrapper(passwordReset);
1684
1685 Object paramObj5 = screenName;
1686
1687 if (screenName == null) {
1688 paramObj5 = new NullWrapper("java.lang.String");
1689 }
1690
1691 Object paramObj6 = emailAddress;
1692
1693 if (emailAddress == null) {
1694 paramObj6 = new NullWrapper("java.lang.String");
1695 }
1696
1697 Object paramObj7 = languageId;
1698
1699 if (languageId == null) {
1700 paramObj7 = new NullWrapper("java.lang.String");
1701 }
1702
1703 Object paramObj8 = timeZoneId;
1704
1705 if (timeZoneId == null) {
1706 paramObj8 = new NullWrapper("java.lang.String");
1707 }
1708
1709 Object paramObj9 = greeting;
1710
1711 if (greeting == null) {
1712 paramObj9 = new NullWrapper("java.lang.String");
1713 }
1714
1715 Object paramObj10 = comments;
1716
1717 if (comments == null) {
1718 paramObj10 = new NullWrapper("java.lang.String");
1719 }
1720
1721 Object paramObj11 = firstName;
1722
1723 if (firstName == null) {
1724 paramObj11 = new NullWrapper("java.lang.String");
1725 }
1726
1727 Object paramObj12 = middleName;
1728
1729 if (middleName == null) {
1730 paramObj12 = new NullWrapper("java.lang.String");
1731 }
1732
1733 Object paramObj13 = lastName;
1734
1735 if (lastName == null) {
1736 paramObj13 = new NullWrapper("java.lang.String");
1737 }
1738
1739 Object paramObj14 = new IntegerWrapper(prefixId);
1740
1741 Object paramObj15 = new IntegerWrapper(suffixId);
1742
1743 Object paramObj16 = new BooleanWrapper(male);
1744
1745 Object paramObj17 = new IntegerWrapper(birthdayMonth);
1746
1747 Object paramObj18 = new IntegerWrapper(birthdayDay);
1748
1749 Object paramObj19 = new IntegerWrapper(birthdayYear);
1750
1751 Object paramObj20 = smsSn;
1752
1753 if (smsSn == null) {
1754 paramObj20 = new NullWrapper("java.lang.String");
1755 }
1756
1757 Object paramObj21 = aimSn;
1758
1759 if (aimSn == null) {
1760 paramObj21 = new NullWrapper("java.lang.String");
1761 }
1762
1763 Object paramObj22 = facebookSn;
1764
1765 if (facebookSn == null) {
1766 paramObj22 = new NullWrapper("java.lang.String");
1767 }
1768
1769 Object paramObj23 = icqSn;
1770
1771 if (icqSn == null) {
1772 paramObj23 = new NullWrapper("java.lang.String");
1773 }
1774
1775 Object paramObj24 = jabberSn;
1776
1777 if (jabberSn == null) {
1778 paramObj24 = new NullWrapper("java.lang.String");
1779 }
1780
1781 Object paramObj25 = msnSn;
1782
1783 if (msnSn == null) {
1784 paramObj25 = new NullWrapper("java.lang.String");
1785 }
1786
1787 Object paramObj26 = mySpaceSn;
1788
1789 if (mySpaceSn == null) {
1790 paramObj26 = new NullWrapper("java.lang.String");
1791 }
1792
1793 Object paramObj27 = skypeSn;
1794
1795 if (skypeSn == null) {
1796 paramObj27 = new NullWrapper("java.lang.String");
1797 }
1798
1799 Object paramObj28 = twitterSn;
1800
1801 if (twitterSn == null) {
1802 paramObj28 = new NullWrapper("java.lang.String");
1803 }
1804
1805 Object paramObj29 = ymSn;
1806
1807 if (ymSn == null) {
1808 paramObj29 = new NullWrapper("java.lang.String");
1809 }
1810
1811 Object paramObj30 = jobTitle;
1812
1813 if (jobTitle == null) {
1814 paramObj30 = new NullWrapper("java.lang.String");
1815 }
1816
1817 Object paramObj31 = organizationIds;
1818
1819 if (organizationIds == null) {
1820 paramObj31 = new NullWrapper("[J");
1821 }
1822
1823 MethodWrapper methodWrapper = new MethodWrapper(UserServiceUtil.class.getName(),
1824 "updateUser",
1825 new Object[] {
1826 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1827 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1828 paramObj10, paramObj11, paramObj12, paramObj13,
1829 paramObj14, paramObj15, paramObj16, paramObj17,
1830 paramObj18, paramObj19, paramObj20, paramObj21,
1831 paramObj22, paramObj23, paramObj24, paramObj25,
1832 paramObj26, paramObj27, paramObj28, paramObj29,
1833 paramObj30, paramObj31
1834 });
1835
1836 Object returnObj = null;
1837
1838 try {
1839 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1840 }
1841 catch (Exception e) {
1842 if (e instanceof com.liferay.portal.PortalException) {
1843 throw (com.liferay.portal.PortalException)e;
1844 }
1845
1846 if (e instanceof com.liferay.portal.SystemException) {
1847 throw (com.liferay.portal.SystemException)e;
1848 }
1849
1850 throw new com.liferay.portal.SystemException(e);
1851 }
1852
1853 return (com.liferay.portal.model.User)returnObj;
1854 }
1855 catch (com.liferay.portal.SystemException se) {
1856 _log.error(se, se);
1857
1858 throw se;
1859 }
1860 }
1861
1862 private static Log _log = LogFactoryUtil.getLog(UserServiceHttp.class);
1863}