001
014
015 package com.liferay.portal.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.LocaleUtil;
022 import com.liferay.portal.service.UserServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class UserServiceSoap {
068
076 public static void addGroupUsers(long groupId, long[] userIds,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws RemoteException {
079 try {
080 UserServiceUtil.addGroupUsers(groupId, userIds, serviceContext);
081 }
082 catch (Exception e) {
083 _log.error(e, e);
084
085 throw new RemoteException(e.getMessage());
086 }
087 }
088
089
095 public static void addOrganizationUsers(long organizationId, long[] userIds)
096 throws RemoteException {
097 try {
098 UserServiceUtil.addOrganizationUsers(organizationId, userIds);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107
114 public static void addPasswordPolicyUsers(long passwordPolicyId,
115 long[] userIds) throws RemoteException {
116 try {
117 UserServiceUtil.addPasswordPolicyUsers(passwordPolicyId, userIds);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126
132 public static void addRoleUsers(long roleId, long[] userIds)
133 throws RemoteException {
134 try {
135 UserServiceUtil.addRoleUsers(roleId, userIds);
136 }
137 catch (Exception e) {
138 _log.error(e, e);
139
140 throw new RemoteException(e.getMessage());
141 }
142 }
143
144
150 public static void addTeamUsers(long teamId, long[] userIds)
151 throws RemoteException {
152 try {
153 UserServiceUtil.addTeamUsers(teamId, userIds);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162
207 public static com.liferay.portal.model.UserSoap addUser(long companyId,
208 boolean autoPassword, java.lang.String password1,
209 java.lang.String password2, boolean autoScreenName,
210 java.lang.String screenName, java.lang.String emailAddress,
211 long facebookId, java.lang.String openId, String locale,
212 java.lang.String firstName, java.lang.String middleName,
213 java.lang.String lastName, long prefixId, long suffixId, boolean male,
214 int birthdayMonth, int birthdayDay, int birthdayYear,
215 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
216 long[] roleIds, long[] userGroupIds, boolean sendEmail,
217 com.liferay.portal.service.ServiceContext serviceContext)
218 throws RemoteException {
219 try {
220 com.liferay.portal.model.User returnValue = UserServiceUtil.addUser(companyId,
221 autoPassword, password1, password2, autoScreenName,
222 screenName, emailAddress, facebookId, openId,
223 LocaleUtil.fromLanguageId(locale), firstName, middleName,
224 lastName, prefixId, suffixId, male, birthdayMonth,
225 birthdayDay, birthdayYear, jobTitle, groupIds,
226 organizationIds, roleIds, userGroupIds, sendEmail,
227 serviceContext);
228
229 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
230 }
231 catch (Exception e) {
232 _log.error(e, e);
233
234 throw new RemoteException(e.getMessage());
235 }
236 }
237
238
288 public static com.liferay.portal.model.UserSoap addUser(long companyId,
289 boolean autoPassword, java.lang.String password1,
290 java.lang.String password2, boolean autoScreenName,
291 java.lang.String screenName, java.lang.String emailAddress,
292 long facebookId, java.lang.String openId, String locale,
293 java.lang.String firstName, java.lang.String middleName,
294 java.lang.String lastName, long prefixId, long suffixId, boolean male,
295 int birthdayMonth, int birthdayDay, int birthdayYear,
296 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
297 long[] roleIds, long[] userGroupIds,
298 com.liferay.portal.model.AddressSoap[] addresses,
299 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
300 com.liferay.portal.model.PhoneSoap[] phones,
301 com.liferay.portal.model.WebsiteSoap[] websites,
302 com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
303 boolean sendEmail,
304 com.liferay.portal.service.ServiceContext serviceContext)
305 throws RemoteException {
306 try {
307 com.liferay.portal.model.User returnValue = UserServiceUtil.addUser(companyId,
308 autoPassword, password1, password2, autoScreenName,
309 screenName, emailAddress, facebookId, openId,
310 LocaleUtil.fromLanguageId(locale), firstName, middleName,
311 lastName, prefixId, suffixId, male, birthdayMonth,
312 birthdayDay, birthdayYear, jobTitle, groupIds,
313 organizationIds, roleIds, userGroupIds,
314 com.liferay.portal.model.impl.AddressModelImpl.toModels(
315 addresses),
316 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
317 emailAddresses),
318 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
319 phones),
320 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
321 websites),
322 com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
323 announcementsDelivers), sendEmail, serviceContext);
324
325 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
326 }
327 catch (Exception e) {
328 _log.error(e, e);
329
330 throw new RemoteException(e.getMessage());
331 }
332 }
333
334
340 public static void addUserGroupUsers(long userGroupId, long[] userIds)
341 throws RemoteException {
342 try {
343 UserServiceUtil.addUserGroupUsers(userGroupId, userIds);
344 }
345 catch (Exception e) {
346 _log.error(e, e);
347
348 throw new RemoteException(e.getMessage());
349 }
350 }
351
352
397 public static com.liferay.portal.model.UserSoap addUserWithWorkflow(
398 long companyId, boolean autoPassword, java.lang.String password1,
399 java.lang.String password2, boolean autoScreenName,
400 java.lang.String screenName, java.lang.String emailAddress,
401 long facebookId, java.lang.String openId, String locale,
402 java.lang.String firstName, java.lang.String middleName,
403 java.lang.String lastName, long prefixId, long suffixId, boolean male,
404 int birthdayMonth, int birthdayDay, int birthdayYear,
405 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
406 long[] roleIds, long[] userGroupIds, boolean sendEmail,
407 com.liferay.portal.service.ServiceContext serviceContext)
408 throws RemoteException {
409 try {
410 com.liferay.portal.model.User returnValue = UserServiceUtil.addUserWithWorkflow(companyId,
411 autoPassword, password1, password2, autoScreenName,
412 screenName, emailAddress, facebookId, openId,
413 LocaleUtil.fromLanguageId(locale), firstName, middleName,
414 lastName, prefixId, suffixId, male, birthdayMonth,
415 birthdayDay, birthdayYear, jobTitle, groupIds,
416 organizationIds, roleIds, userGroupIds, sendEmail,
417 serviceContext);
418
419 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
420 }
421 catch (Exception e) {
422 _log.error(e, e);
423
424 throw new RemoteException(e.getMessage());
425 }
426 }
427
428
478 public static com.liferay.portal.model.UserSoap addUserWithWorkflow(
479 long companyId, boolean autoPassword, java.lang.String password1,
480 java.lang.String password2, boolean autoScreenName,
481 java.lang.String screenName, java.lang.String emailAddress,
482 long facebookId, java.lang.String openId, String locale,
483 java.lang.String firstName, java.lang.String middleName,
484 java.lang.String lastName, long prefixId, long suffixId, boolean male,
485 int birthdayMonth, int birthdayDay, int birthdayYear,
486 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
487 long[] roleIds, long[] userGroupIds,
488 com.liferay.portal.model.AddressSoap[] addresses,
489 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
490 com.liferay.portal.model.PhoneSoap[] phones,
491 com.liferay.portal.model.WebsiteSoap[] websites,
492 com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
493 boolean sendEmail,
494 com.liferay.portal.service.ServiceContext serviceContext)
495 throws RemoteException {
496 try {
497 com.liferay.portal.model.User returnValue = UserServiceUtil.addUserWithWorkflow(companyId,
498 autoPassword, password1, password2, autoScreenName,
499 screenName, emailAddress, facebookId, openId,
500 LocaleUtil.fromLanguageId(locale), firstName, middleName,
501 lastName, prefixId, suffixId, male, birthdayMonth,
502 birthdayDay, birthdayYear, jobTitle, groupIds,
503 organizationIds, roleIds, userGroupIds,
504 com.liferay.portal.model.impl.AddressModelImpl.toModels(
505 addresses),
506 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
507 emailAddresses),
508 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
509 phones),
510 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
511 websites),
512 com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
513 announcementsDelivers), sendEmail, serviceContext);
514
515 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
516 }
517 catch (Exception e) {
518 _log.error(e, e);
519
520 throw new RemoteException(e.getMessage());
521 }
522 }
523
524
529 public static void deletePortrait(long userId) throws RemoteException {
530 try {
531 UserServiceUtil.deletePortrait(userId);
532 }
533 catch (Exception e) {
534 _log.error(e, e);
535
536 throw new RemoteException(e.getMessage());
537 }
538 }
539
540
546 public static void deleteRoleUser(long roleId, long userId)
547 throws RemoteException {
548 try {
549 UserServiceUtil.deleteRoleUser(roleId, userId);
550 }
551 catch (Exception e) {
552 _log.error(e, e);
553
554 throw new RemoteException(e.getMessage());
555 }
556 }
557
558
563 public static void deleteUser(long userId) throws RemoteException {
564 try {
565 UserServiceUtil.deleteUser(userId);
566 }
567 catch (Exception e) {
568 _log.error(e, e);
569
570 throw new RemoteException(e.getMessage());
571 }
572 }
573
574 public static com.liferay.portal.model.UserSoap[] getCompanyUsers(
575 long companyId, int start, int end) throws RemoteException {
576 try {
577 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getCompanyUsers(companyId,
578 start, end);
579
580 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
581 }
582 catch (Exception e) {
583 _log.error(e, e);
584
585 throw new RemoteException(e.getMessage());
586 }
587 }
588
589 public static int getCompanyUsersCount(long companyId)
590 throws RemoteException {
591 try {
592 int returnValue = UserServiceUtil.getCompanyUsersCount(companyId);
593
594 return returnValue;
595 }
596 catch (Exception e) {
597 _log.error(e, e);
598
599 throw new RemoteException(e.getMessage());
600 }
601 }
602
603 public static com.liferay.portal.model.UserSoap getCurrentUser()
604 throws RemoteException {
605 try {
606 com.liferay.portal.model.User returnValue = UserServiceUtil.getCurrentUser();
607
608 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
609 }
610 catch (Exception e) {
611 _log.error(e, e);
612
613 throw new RemoteException(e.getMessage());
614 }
615 }
616
617
623 public static long[] getGroupUserIds(long groupId)
624 throws RemoteException {
625 try {
626 long[] returnValue = UserServiceUtil.getGroupUserIds(groupId);
627
628 return returnValue;
629 }
630 catch (Exception e) {
631 _log.error(e, e);
632
633 throw new RemoteException(e.getMessage());
634 }
635 }
636
637
643 public static com.liferay.portal.model.UserSoap[] getGroupUsers(
644 long groupId) throws RemoteException {
645 try {
646 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getGroupUsers(groupId);
647
648 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
649 }
650 catch (Exception e) {
651 _log.error(e, e);
652
653 throw new RemoteException(e.getMessage());
654 }
655 }
656
657
663 public static long[] getOrganizationUserIds(long organizationId)
664 throws RemoteException {
665 try {
666 long[] returnValue = UserServiceUtil.getOrganizationUserIds(organizationId);
667
668 return returnValue;
669 }
670 catch (Exception e) {
671 _log.error(e, e);
672
673 throw new RemoteException(e.getMessage());
674 }
675 }
676
677
683 public static com.liferay.portal.model.UserSoap[] getOrganizationUsers(
684 long organizationId) throws RemoteException {
685 try {
686 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getOrganizationUsers(organizationId);
687
688 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
689 }
690 catch (Exception e) {
691 _log.error(e, e);
692
693 throw new RemoteException(e.getMessage());
694 }
695 }
696
697
703 public static long[] getRoleUserIds(long roleId) throws RemoteException {
704 try {
705 long[] returnValue = UserServiceUtil.getRoleUserIds(roleId);
706
707 return returnValue;
708 }
709 catch (Exception e) {
710 _log.error(e, e);
711
712 throw new RemoteException(e.getMessage());
713 }
714 }
715
716
723 public static com.liferay.portal.model.UserSoap getUserByEmailAddress(
724 long companyId, java.lang.String emailAddress)
725 throws RemoteException {
726 try {
727 com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByEmailAddress(companyId,
728 emailAddress);
729
730 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
731 }
732 catch (Exception e) {
733 _log.error(e, e);
734
735 throw new RemoteException(e.getMessage());
736 }
737 }
738
739
745 public static com.liferay.portal.model.UserSoap getUserById(long userId)
746 throws RemoteException {
747 try {
748 com.liferay.portal.model.User returnValue = UserServiceUtil.getUserById(userId);
749
750 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
751 }
752 catch (Exception e) {
753 _log.error(e, e);
754
755 throw new RemoteException(e.getMessage());
756 }
757 }
758
759
766 public static com.liferay.portal.model.UserSoap getUserByScreenName(
767 long companyId, java.lang.String screenName) throws RemoteException {
768 try {
769 com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByScreenName(companyId,
770 screenName);
771
772 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
773 }
774 catch (Exception e) {
775 _log.error(e, e);
776
777 throw new RemoteException(e.getMessage());
778 }
779 }
780
781 public static com.liferay.portal.model.UserSoap[] getUserGroupUsers(
782 long userGroupId) throws RemoteException {
783 try {
784 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getUserGroupUsers(userGroupId);
785
786 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
787 }
788 catch (Exception e) {
789 _log.error(e, e);
790
791 throw new RemoteException(e.getMessage());
792 }
793 }
794
795
802 public static long getUserIdByEmailAddress(long companyId,
803 java.lang.String emailAddress) throws RemoteException {
804 try {
805 long returnValue = UserServiceUtil.getUserIdByEmailAddress(companyId,
806 emailAddress);
807
808 return returnValue;
809 }
810 catch (Exception e) {
811 _log.error(e, e);
812
813 throw new RemoteException(e.getMessage());
814 }
815 }
816
817
824 public static long getUserIdByScreenName(long companyId,
825 java.lang.String screenName) throws RemoteException {
826 try {
827 long returnValue = UserServiceUtil.getUserIdByScreenName(companyId,
828 screenName);
829
830 return returnValue;
831 }
832 catch (Exception e) {
833 _log.error(e, e);
834
835 throw new RemoteException(e.getMessage());
836 }
837 }
838
839
847 public static boolean hasGroupUser(long groupId, long userId)
848 throws RemoteException {
849 try {
850 boolean returnValue = UserServiceUtil.hasGroupUser(groupId, userId);
851
852 return returnValue;
853 }
854 catch (Exception e) {
855 _log.error(e, e);
856
857 throw new RemoteException(e.getMessage());
858 }
859 }
860
861
869 public static boolean hasRoleUser(long roleId, long userId)
870 throws RemoteException {
871 try {
872 boolean returnValue = UserServiceUtil.hasRoleUser(roleId, userId);
873
874 return returnValue;
875 }
876 catch (Exception e) {
877 _log.error(e, e);
878
879 throw new RemoteException(e.getMessage());
880 }
881 }
882
883
896 public static boolean hasRoleUser(long companyId, java.lang.String name,
897 long userId, boolean inherited) throws RemoteException {
898 try {
899 boolean returnValue = UserServiceUtil.hasRoleUser(companyId, name,
900 userId, inherited);
901
902 return returnValue;
903 }
904 catch (Exception e) {
905 _log.error(e, e);
906
907 throw new RemoteException(e.getMessage());
908 }
909 }
910
911
931 public static boolean sendPasswordByEmailAddress(long companyId,
932 java.lang.String emailAddress) throws RemoteException {
933 try {
934 boolean returnValue = UserServiceUtil.sendPasswordByEmailAddress(companyId,
935 emailAddress);
936
937 return returnValue;
938 }
939 catch (Exception e) {
940 _log.error(e, e);
941
942 throw new RemoteException(e.getMessage());
943 }
944 }
945
946
965 public static boolean sendPasswordByScreenName(long companyId,
966 java.lang.String screenName) throws RemoteException {
967 try {
968 boolean returnValue = UserServiceUtil.sendPasswordByScreenName(companyId,
969 screenName);
970
971 return returnValue;
972 }
973 catch (Exception e) {
974 _log.error(e, e);
975
976 throw new RemoteException(e.getMessage());
977 }
978 }
979
980
998 public static boolean sendPasswordByUserId(long userId)
999 throws RemoteException {
1000 try {
1001 boolean returnValue = UserServiceUtil.sendPasswordByUserId(userId);
1002
1003 return returnValue;
1004 }
1005 catch (Exception e) {
1006 _log.error(e, e);
1007
1008 throw new RemoteException(e.getMessage());
1009 }
1010 }
1011
1012
1019 public static void setRoleUsers(long roleId, long[] userIds)
1020 throws RemoteException {
1021 try {
1022 UserServiceUtil.setRoleUsers(roleId, userIds);
1023 }
1024 catch (Exception e) {
1025 _log.error(e, e);
1026
1027 throw new RemoteException(e.getMessage());
1028 }
1029 }
1030
1031
1038 public static void setUserGroupUsers(long userGroupId, long[] userIds)
1039 throws RemoteException {
1040 try {
1041 UserServiceUtil.setUserGroupUsers(userGroupId, userIds);
1042 }
1043 catch (Exception e) {
1044 _log.error(e, e);
1045
1046 throw new RemoteException(e.getMessage());
1047 }
1048 }
1049
1050
1056 public static void unsetGroupTeamsUsers(long groupId, long[] userIds)
1057 throws RemoteException {
1058 try {
1059 UserServiceUtil.unsetGroupTeamsUsers(groupId, userIds);
1060 }
1061 catch (Exception e) {
1062 _log.error(e, e);
1063
1064 throw new RemoteException(e.getMessage());
1065 }
1066 }
1067
1068
1076 public static void unsetGroupUsers(long groupId, long[] userIds,
1077 com.liferay.portal.service.ServiceContext serviceContext)
1078 throws RemoteException {
1079 try {
1080 UserServiceUtil.unsetGroupUsers(groupId, userIds, serviceContext);
1081 }
1082 catch (Exception e) {
1083 _log.error(e, e);
1084
1085 throw new RemoteException(e.getMessage());
1086 }
1087 }
1088
1089
1095 public static void unsetOrganizationUsers(long organizationId,
1096 long[] userIds) throws RemoteException {
1097 try {
1098 UserServiceUtil.unsetOrganizationUsers(organizationId, userIds);
1099 }
1100 catch (Exception e) {
1101 _log.error(e, e);
1102
1103 throw new RemoteException(e.getMessage());
1104 }
1105 }
1106
1107
1113 public static void unsetPasswordPolicyUsers(long passwordPolicyId,
1114 long[] userIds) throws RemoteException {
1115 try {
1116 UserServiceUtil.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
1117 }
1118 catch (Exception e) {
1119 _log.error(e, e);
1120
1121 throw new RemoteException(e.getMessage());
1122 }
1123 }
1124
1125
1131 public static void unsetRoleUsers(long roleId, long[] userIds)
1132 throws RemoteException {
1133 try {
1134 UserServiceUtil.unsetRoleUsers(roleId, userIds);
1135 }
1136 catch (Exception e) {
1137 _log.error(e, e);
1138
1139 throw new RemoteException(e.getMessage());
1140 }
1141 }
1142
1143
1149 public static void unsetTeamUsers(long teamId, long[] userIds)
1150 throws RemoteException {
1151 try {
1152 UserServiceUtil.unsetTeamUsers(teamId, userIds);
1153 }
1154 catch (Exception e) {
1155 _log.error(e, e);
1156
1157 throw new RemoteException(e.getMessage());
1158 }
1159 }
1160
1161
1167 public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
1168 throws RemoteException {
1169 try {
1170 UserServiceUtil.unsetUserGroupUsers(userGroupId, userIds);
1171 }
1172 catch (Exception e) {
1173 _log.error(e, e);
1174
1175 throw new RemoteException(e.getMessage());
1176 }
1177 }
1178
1179
1186 public static com.liferay.portal.model.UserSoap updateAgreedToTermsOfUse(
1187 long userId, boolean agreedToTermsOfUse) throws RemoteException {
1188 try {
1189 com.liferay.portal.model.User returnValue = UserServiceUtil.updateAgreedToTermsOfUse(userId,
1190 agreedToTermsOfUse);
1191
1192 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1193 }
1194 catch (Exception e) {
1195 _log.error(e, e);
1196
1197 throw new RemoteException(e.getMessage());
1198 }
1199 }
1200
1201
1213 public static com.liferay.portal.model.UserSoap updateEmailAddress(
1214 long userId, java.lang.String password, java.lang.String emailAddress1,
1215 java.lang.String emailAddress2,
1216 com.liferay.portal.service.ServiceContext serviceContext)
1217 throws RemoteException {
1218 try {
1219 com.liferay.portal.model.User returnValue = UserServiceUtil.updateEmailAddress(userId,
1220 password, emailAddress1, emailAddress2, serviceContext);
1221
1222 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1223 }
1224 catch (Exception e) {
1225 _log.error(e, e);
1226
1227 throw new RemoteException(e.getMessage());
1228 }
1229 }
1230
1231
1267 public static com.liferay.portal.model.UserSoap updateIncompleteUser(
1268 long companyId, boolean autoPassword, java.lang.String password1,
1269 java.lang.String password2, boolean autoScreenName,
1270 java.lang.String screenName, java.lang.String emailAddress,
1271 long facebookId, java.lang.String openId, String locale,
1272 java.lang.String firstName, java.lang.String middleName,
1273 java.lang.String lastName, long prefixId, long suffixId, boolean male,
1274 int birthdayMonth, int birthdayDay, int birthdayYear,
1275 java.lang.String jobTitle, boolean updateUserInformation,
1276 boolean sendEmail,
1277 com.liferay.portal.service.ServiceContext serviceContext)
1278 throws RemoteException {
1279 try {
1280 com.liferay.portal.model.User returnValue = UserServiceUtil.updateIncompleteUser(companyId,
1281 autoPassword, password1, password2, autoScreenName,
1282 screenName, emailAddress, facebookId, openId,
1283 LocaleUtil.fromLanguageId(locale), firstName, middleName,
1284 lastName, prefixId, suffixId, male, birthdayMonth,
1285 birthdayDay, birthdayYear, jobTitle, updateUserInformation,
1286 sendEmail, serviceContext);
1287
1288 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1289 }
1290 catch (Exception e) {
1291 _log.error(e, e);
1292
1293 throw new RemoteException(e.getMessage());
1294 }
1295 }
1296
1297
1304 public static com.liferay.portal.model.UserSoap updateLockoutById(
1305 long userId, boolean lockout) throws RemoteException {
1306 try {
1307 com.liferay.portal.model.User returnValue = UserServiceUtil.updateLockoutById(userId,
1308 lockout);
1309
1310 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1311 }
1312 catch (Exception e) {
1313 _log.error(e, e);
1314
1315 throw new RemoteException(e.getMessage());
1316 }
1317 }
1318
1319
1326 public static com.liferay.portal.model.UserSoap updateOpenId(long userId,
1327 java.lang.String openId) throws RemoteException {
1328 try {
1329 com.liferay.portal.model.User returnValue = UserServiceUtil.updateOpenId(userId,
1330 openId);
1331
1332 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1333 }
1334 catch (Exception e) {
1335 _log.error(e, e);
1336
1337 throw new RemoteException(e.getMessage());
1338 }
1339 }
1340
1341
1350 public static void updateOrganizations(long userId, long[] organizationIds,
1351 com.liferay.portal.service.ServiceContext serviceContext)
1352 throws RemoteException {
1353 try {
1354 UserServiceUtil.updateOrganizations(userId, organizationIds,
1355 serviceContext);
1356 }
1357 catch (Exception e) {
1358 _log.error(e, e);
1359
1360 throw new RemoteException(e.getMessage());
1361 }
1362 }
1363
1364
1374 public static com.liferay.portal.model.UserSoap updatePassword(
1375 long userId, java.lang.String password1, java.lang.String password2,
1376 boolean passwordReset) throws RemoteException {
1377 try {
1378 com.liferay.portal.model.User returnValue = UserServiceUtil.updatePassword(userId,
1379 password1, password2, passwordReset);
1380
1381 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1382 }
1383 catch (Exception e) {
1384 _log.error(e, e);
1385
1386 throw new RemoteException(e.getMessage());
1387 }
1388 }
1389
1390
1397 public static com.liferay.portal.model.UserSoap updatePortrait(
1398 long userId, byte[] bytes) throws RemoteException {
1399 try {
1400 com.liferay.portal.model.User returnValue = UserServiceUtil.updatePortrait(userId,
1401 bytes);
1402
1403 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1404 }
1405 catch (Exception e) {
1406 _log.error(e, e);
1407
1408 throw new RemoteException(e.getMessage());
1409 }
1410 }
1411
1412
1420 public static com.liferay.portal.model.UserSoap updateReminderQuery(
1421 long userId, java.lang.String question, java.lang.String answer)
1422 throws RemoteException {
1423 try {
1424 com.liferay.portal.model.User returnValue = UserServiceUtil.updateReminderQuery(userId,
1425 question, answer);
1426
1427 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1428 }
1429 catch (Exception e) {
1430 _log.error(e, e);
1431
1432 throw new RemoteException(e.getMessage());
1433 }
1434 }
1435
1436
1443 public static com.liferay.portal.model.UserSoap updateScreenName(
1444 long userId, java.lang.String screenName) throws RemoteException {
1445 try {
1446 com.liferay.portal.model.User returnValue = UserServiceUtil.updateScreenName(userId,
1447 screenName);
1448
1449 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1450 }
1451 catch (Exception e) {
1452 _log.error(e, e);
1453
1454 throw new RemoteException(e.getMessage());
1455 }
1456 }
1457
1458
1467 @Deprecated
1468 public static com.liferay.portal.model.UserSoap updateStatus(long userId,
1469 int status) throws RemoteException {
1470 try {
1471 com.liferay.portal.model.User returnValue = UserServiceUtil.updateStatus(userId,
1472 status);
1473
1474 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1475 }
1476 catch (Exception e) {
1477 _log.error(e, e);
1478
1479 throw new RemoteException(e.getMessage());
1480 }
1481 }
1482
1483
1493 public static com.liferay.portal.model.UserSoap updateStatus(long userId,
1494 int status, com.liferay.portal.service.ServiceContext serviceContext)
1495 throws RemoteException {
1496 try {
1497 com.liferay.portal.model.User returnValue = UserServiceUtil.updateStatus(userId,
1498 status, serviceContext);
1499
1500 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1501 }
1502 catch (Exception e) {
1503 _log.error(e, e);
1504
1505 throw new RemoteException(e.getMessage());
1506 }
1507 }
1508
1509
1564 public static com.liferay.portal.model.UserSoap updateUser(long userId,
1565 java.lang.String oldPassword, java.lang.String newPassword1,
1566 java.lang.String newPassword2, boolean passwordReset,
1567 java.lang.String reminderQueryQuestion,
1568 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1569 java.lang.String emailAddress, long facebookId,
1570 java.lang.String openId, boolean portrait, byte[] portraitBytes,
1571 java.lang.String languageId, java.lang.String timeZoneId,
1572 java.lang.String greeting, java.lang.String comments,
1573 java.lang.String firstName, java.lang.String middleName,
1574 java.lang.String lastName, long prefixId, long suffixId, boolean male,
1575 int birthdayMonth, int birthdayDay, int birthdayYear,
1576 java.lang.String smsSn, java.lang.String facebookSn,
1577 java.lang.String jabberSn, java.lang.String skypeSn,
1578 java.lang.String twitterSn, java.lang.String jobTitle, long[] groupIds,
1579 long[] organizationIds, long[] roleIds,
1580 com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
1581 long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses,
1582 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
1583 com.liferay.portal.model.PhoneSoap[] phones,
1584 com.liferay.portal.model.WebsiteSoap[] websites,
1585 com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
1586 com.liferay.portal.service.ServiceContext serviceContext)
1587 throws RemoteException {
1588 try {
1589 com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
1590 oldPassword, newPassword1, newPassword2, passwordReset,
1591 reminderQueryQuestion, reminderQueryAnswer, screenName,
1592 emailAddress, facebookId, openId, portrait, portraitBytes,
1593 languageId, timeZoneId, greeting, comments, firstName,
1594 middleName, lastName, prefixId, suffixId, male,
1595 birthdayMonth, birthdayDay, birthdayYear, smsSn,
1596 facebookSn, jabberSn, skypeSn, twitterSn, jobTitle,
1597 groupIds, organizationIds, roleIds,
1598 com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
1599 userGroupRoles), userGroupIds,
1600 com.liferay.portal.model.impl.AddressModelImpl.toModels(
1601 addresses),
1602 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
1603 emailAddresses),
1604 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
1605 phones),
1606 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
1607 websites),
1608 com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
1609 announcementsDelivers), serviceContext);
1610
1611 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1612 }
1613 catch (Exception e) {
1614 _log.error(e, e);
1615
1616 throw new RemoteException(e.getMessage());
1617 }
1618 }
1619
1620
1680 @Deprecated
1681 public static com.liferay.portal.model.UserSoap updateUser(long userId,
1682 java.lang.String oldPassword, java.lang.String newPassword1,
1683 java.lang.String newPassword2, boolean passwordReset,
1684 java.lang.String reminderQueryQuestion,
1685 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1686 java.lang.String emailAddress, long facebookId,
1687 java.lang.String openId, java.lang.String languageId,
1688 java.lang.String timeZoneId, java.lang.String greeting,
1689 java.lang.String comments, java.lang.String firstName,
1690 java.lang.String middleName, java.lang.String lastName, long prefixId,
1691 long suffixId, boolean male, int birthdayMonth, int birthdayDay,
1692 int birthdayYear, java.lang.String smsSn, java.lang.String facebookSn,
1693 java.lang.String jabberSn, java.lang.String skypeSn,
1694 java.lang.String twitterSn, java.lang.String jobTitle, long[] groupIds,
1695 long[] organizationIds, long[] roleIds,
1696 com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
1697 long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses,
1698 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
1699 com.liferay.portal.model.PhoneSoap[] phones,
1700 com.liferay.portal.model.WebsiteSoap[] websites,
1701 com.liferay.portlet.announcements.model.AnnouncementsDeliverySoap[] announcementsDelivers,
1702 com.liferay.portal.service.ServiceContext serviceContext)
1703 throws RemoteException {
1704 try {
1705 com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
1706 oldPassword, newPassword1, newPassword2, passwordReset,
1707 reminderQueryQuestion, reminderQueryAnswer, screenName,
1708 emailAddress, facebookId, openId, languageId, timeZoneId,
1709 greeting, comments, firstName, middleName, lastName,
1710 prefixId, suffixId, male, birthdayMonth, birthdayDay,
1711 birthdayYear, smsSn, facebookSn, jabberSn, skypeSn,
1712 twitterSn, jobTitle, groupIds, organizationIds, roleIds,
1713 com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
1714 userGroupRoles), userGroupIds,
1715 com.liferay.portal.model.impl.AddressModelImpl.toModels(
1716 addresses),
1717 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
1718 emailAddresses),
1719 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
1720 phones),
1721 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
1722 websites),
1723 com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.toModels(
1724 announcementsDelivers), serviceContext);
1725
1726 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1727 }
1728 catch (Exception e) {
1729 _log.error(e, e);
1730
1731 throw new RemoteException(e.getMessage());
1732 }
1733 }
1734
1735
1783 public static com.liferay.portal.model.UserSoap updateUser(long userId,
1784 java.lang.String oldPassword, java.lang.String newPassword1,
1785 java.lang.String newPassword2, boolean passwordReset,
1786 java.lang.String reminderQueryQuestion,
1787 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1788 java.lang.String emailAddress, long facebookId,
1789 java.lang.String openId, java.lang.String languageId,
1790 java.lang.String timeZoneId, java.lang.String greeting,
1791 java.lang.String comments, java.lang.String firstName,
1792 java.lang.String middleName, java.lang.String lastName, long prefixId,
1793 long suffixId, boolean male, int birthdayMonth, int birthdayDay,
1794 int birthdayYear, java.lang.String smsSn, java.lang.String facebookSn,
1795 java.lang.String jabberSn, java.lang.String skypeSn,
1796 java.lang.String twitterSn, java.lang.String jobTitle, long[] groupIds,
1797 long[] organizationIds, long[] roleIds,
1798 com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
1799 long[] userGroupIds,
1800 com.liferay.portal.service.ServiceContext serviceContext)
1801 throws RemoteException {
1802 try {
1803 com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
1804 oldPassword, newPassword1, newPassword2, passwordReset,
1805 reminderQueryQuestion, reminderQueryAnswer, screenName,
1806 emailAddress, facebookId, openId, languageId, timeZoneId,
1807 greeting, comments, firstName, middleName, lastName,
1808 prefixId, suffixId, male, birthdayMonth, birthdayDay,
1809 birthdayYear, smsSn, facebookSn, jabberSn, skypeSn,
1810 twitterSn, jobTitle, groupIds, organizationIds, roleIds,
1811 com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
1812 userGroupRoles), userGroupIds, serviceContext);
1813
1814 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1815 }
1816 catch (Exception e) {
1817 _log.error(e, e);
1818
1819 throw new RemoteException(e.getMessage());
1820 }
1821 }
1822
1823 private static Log _log = LogFactoryUtil.getLog(UserServiceSoap.class);
1824 }