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 java.util.List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> 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), announcementsDelivers, sendEmail,
322 serviceContext);
323
324 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
325 }
326 catch (Exception e) {
327 _log.error(e, e);
328
329 throw new RemoteException(e.getMessage());
330 }
331 }
332
333
339 public static void addUserGroupUsers(long userGroupId, long[] userIds)
340 throws RemoteException {
341 try {
342 UserServiceUtil.addUserGroupUsers(userGroupId, userIds);
343 }
344 catch (Exception e) {
345 _log.error(e, e);
346
347 throw new RemoteException(e.getMessage());
348 }
349 }
350
351
396 public static com.liferay.portal.model.UserSoap addUserWithWorkflow(
397 long companyId, boolean autoPassword, java.lang.String password1,
398 java.lang.String password2, boolean autoScreenName,
399 java.lang.String screenName, java.lang.String emailAddress,
400 long facebookId, java.lang.String openId, String locale,
401 java.lang.String firstName, java.lang.String middleName,
402 java.lang.String lastName, long prefixId, long suffixId, boolean male,
403 int birthdayMonth, int birthdayDay, int birthdayYear,
404 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
405 long[] roleIds, long[] userGroupIds, boolean sendEmail,
406 com.liferay.portal.service.ServiceContext serviceContext)
407 throws RemoteException {
408 try {
409 com.liferay.portal.model.User returnValue = UserServiceUtil.addUserWithWorkflow(companyId,
410 autoPassword, password1, password2, autoScreenName,
411 screenName, emailAddress, facebookId, openId,
412 LocaleUtil.fromLanguageId(locale), firstName, middleName,
413 lastName, prefixId, suffixId, male, birthdayMonth,
414 birthdayDay, birthdayYear, jobTitle, groupIds,
415 organizationIds, roleIds, userGroupIds, sendEmail,
416 serviceContext);
417
418 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
419 }
420 catch (Exception e) {
421 _log.error(e, e);
422
423 throw new RemoteException(e.getMessage());
424 }
425 }
426
427
477 public static com.liferay.portal.model.UserSoap addUserWithWorkflow(
478 long companyId, boolean autoPassword, java.lang.String password1,
479 java.lang.String password2, boolean autoScreenName,
480 java.lang.String screenName, java.lang.String emailAddress,
481 long facebookId, java.lang.String openId, String locale,
482 java.lang.String firstName, java.lang.String middleName,
483 java.lang.String lastName, long prefixId, long suffixId, boolean male,
484 int birthdayMonth, int birthdayDay, int birthdayYear,
485 java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
486 long[] roleIds, long[] userGroupIds,
487 com.liferay.portal.model.AddressSoap[] addresses,
488 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
489 com.liferay.portal.model.PhoneSoap[] phones,
490 com.liferay.portal.model.WebsiteSoap[] websites,
491 java.util.List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
492 boolean sendEmail,
493 com.liferay.portal.service.ServiceContext serviceContext)
494 throws RemoteException {
495 try {
496 com.liferay.portal.model.User returnValue = UserServiceUtil.addUserWithWorkflow(companyId,
497 autoPassword, password1, password2, autoScreenName,
498 screenName, emailAddress, facebookId, openId,
499 LocaleUtil.fromLanguageId(locale), firstName, middleName,
500 lastName, prefixId, suffixId, male, birthdayMonth,
501 birthdayDay, birthdayYear, jobTitle, groupIds,
502 organizationIds, roleIds, userGroupIds,
503 com.liferay.portal.model.impl.AddressModelImpl.toModels(
504 addresses),
505 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
506 emailAddresses),
507 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
508 phones),
509 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
510 websites), announcementsDelivers, sendEmail,
511 serviceContext);
512
513 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
514 }
515 catch (Exception e) {
516 _log.error(e, e);
517
518 throw new RemoteException(e.getMessage());
519 }
520 }
521
522
527 public static void deletePortrait(long userId) throws RemoteException {
528 try {
529 UserServiceUtil.deletePortrait(userId);
530 }
531 catch (Exception e) {
532 _log.error(e, e);
533
534 throw new RemoteException(e.getMessage());
535 }
536 }
537
538
544 public static void deleteRoleUser(long roleId, long userId)
545 throws RemoteException {
546 try {
547 UserServiceUtil.deleteRoleUser(roleId, userId);
548 }
549 catch (Exception e) {
550 _log.error(e, e);
551
552 throw new RemoteException(e.getMessage());
553 }
554 }
555
556
561 public static void deleteUser(long userId) throws RemoteException {
562 try {
563 UserServiceUtil.deleteUser(userId);
564 }
565 catch (Exception e) {
566 _log.error(e, e);
567
568 throw new RemoteException(e.getMessage());
569 }
570 }
571
572 public static com.liferay.portal.model.UserSoap[] getCompanyUsers(
573 long companyId, int start, int end) throws RemoteException {
574 try {
575 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getCompanyUsers(companyId,
576 start, end);
577
578 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
579 }
580 catch (Exception e) {
581 _log.error(e, e);
582
583 throw new RemoteException(e.getMessage());
584 }
585 }
586
587 public static int getCompanyUsersCount(long companyId)
588 throws RemoteException {
589 try {
590 int returnValue = UserServiceUtil.getCompanyUsersCount(companyId);
591
592 return returnValue;
593 }
594 catch (Exception e) {
595 _log.error(e, e);
596
597 throw new RemoteException(e.getMessage());
598 }
599 }
600
601 public static com.liferay.portal.model.UserSoap getCurrentUser()
602 throws RemoteException {
603 try {
604 com.liferay.portal.model.User returnValue = UserServiceUtil.getCurrentUser();
605
606 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
607 }
608 catch (Exception e) {
609 _log.error(e, e);
610
611 throw new RemoteException(e.getMessage());
612 }
613 }
614
615
621 public static long[] getGroupUserIds(long groupId)
622 throws RemoteException {
623 try {
624 long[] returnValue = UserServiceUtil.getGroupUserIds(groupId);
625
626 return returnValue;
627 }
628 catch (Exception e) {
629 _log.error(e, e);
630
631 throw new RemoteException(e.getMessage());
632 }
633 }
634
635
641 public static com.liferay.portal.model.UserSoap[] getGroupUsers(
642 long groupId) throws RemoteException {
643 try {
644 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getGroupUsers(groupId);
645
646 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
647 }
648 catch (Exception e) {
649 _log.error(e, e);
650
651 throw new RemoteException(e.getMessage());
652 }
653 }
654
655
661 public static long[] getOrganizationUserIds(long organizationId)
662 throws RemoteException {
663 try {
664 long[] returnValue = UserServiceUtil.getOrganizationUserIds(organizationId);
665
666 return returnValue;
667 }
668 catch (Exception e) {
669 _log.error(e, e);
670
671 throw new RemoteException(e.getMessage());
672 }
673 }
674
675
681 public static com.liferay.portal.model.UserSoap[] getOrganizationUsers(
682 long organizationId) throws RemoteException {
683 try {
684 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getOrganizationUsers(organizationId);
685
686 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
687 }
688 catch (Exception e) {
689 _log.error(e, e);
690
691 throw new RemoteException(e.getMessage());
692 }
693 }
694
695
701 public static long[] getRoleUserIds(long roleId) throws RemoteException {
702 try {
703 long[] returnValue = UserServiceUtil.getRoleUserIds(roleId);
704
705 return returnValue;
706 }
707 catch (Exception e) {
708 _log.error(e, e);
709
710 throw new RemoteException(e.getMessage());
711 }
712 }
713
714
721 public static com.liferay.portal.model.UserSoap getUserByEmailAddress(
722 long companyId, java.lang.String emailAddress)
723 throws RemoteException {
724 try {
725 com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByEmailAddress(companyId,
726 emailAddress);
727
728 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
729 }
730 catch (Exception e) {
731 _log.error(e, e);
732
733 throw new RemoteException(e.getMessage());
734 }
735 }
736
737
743 public static com.liferay.portal.model.UserSoap getUserById(long userId)
744 throws RemoteException {
745 try {
746 com.liferay.portal.model.User returnValue = UserServiceUtil.getUserById(userId);
747
748 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
749 }
750 catch (Exception e) {
751 _log.error(e, e);
752
753 throw new RemoteException(e.getMessage());
754 }
755 }
756
757
764 public static com.liferay.portal.model.UserSoap getUserByScreenName(
765 long companyId, java.lang.String screenName) throws RemoteException {
766 try {
767 com.liferay.portal.model.User returnValue = UserServiceUtil.getUserByScreenName(companyId,
768 screenName);
769
770 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
771 }
772 catch (Exception e) {
773 _log.error(e, e);
774
775 throw new RemoteException(e.getMessage());
776 }
777 }
778
779 public static com.liferay.portal.model.UserSoap[] getUserGroupUsers(
780 long userGroupId) throws RemoteException {
781 try {
782 java.util.List<com.liferay.portal.model.User> returnValue = UserServiceUtil.getUserGroupUsers(userGroupId);
783
784 return com.liferay.portal.model.UserSoap.toSoapModels(returnValue);
785 }
786 catch (Exception e) {
787 _log.error(e, e);
788
789 throw new RemoteException(e.getMessage());
790 }
791 }
792
793
800 public static long getUserIdByEmailAddress(long companyId,
801 java.lang.String emailAddress) throws RemoteException {
802 try {
803 long returnValue = UserServiceUtil.getUserIdByEmailAddress(companyId,
804 emailAddress);
805
806 return returnValue;
807 }
808 catch (Exception e) {
809 _log.error(e, e);
810
811 throw new RemoteException(e.getMessage());
812 }
813 }
814
815
822 public static long getUserIdByScreenName(long companyId,
823 java.lang.String screenName) throws RemoteException {
824 try {
825 long returnValue = UserServiceUtil.getUserIdByScreenName(companyId,
826 screenName);
827
828 return returnValue;
829 }
830 catch (Exception e) {
831 _log.error(e, e);
832
833 throw new RemoteException(e.getMessage());
834 }
835 }
836
837
845 public static boolean hasGroupUser(long groupId, long userId)
846 throws RemoteException {
847 try {
848 boolean returnValue = UserServiceUtil.hasGroupUser(groupId, userId);
849
850 return returnValue;
851 }
852 catch (Exception e) {
853 _log.error(e, e);
854
855 throw new RemoteException(e.getMessage());
856 }
857 }
858
859
867 public static boolean hasRoleUser(long roleId, long userId)
868 throws RemoteException {
869 try {
870 boolean returnValue = UserServiceUtil.hasRoleUser(roleId, userId);
871
872 return returnValue;
873 }
874 catch (Exception e) {
875 _log.error(e, e);
876
877 throw new RemoteException(e.getMessage());
878 }
879 }
880
881
894 public static boolean hasRoleUser(long companyId, java.lang.String name,
895 long userId, boolean inherited) throws RemoteException {
896 try {
897 boolean returnValue = UserServiceUtil.hasRoleUser(companyId, name,
898 userId, inherited);
899
900 return returnValue;
901 }
902 catch (Exception e) {
903 _log.error(e, e);
904
905 throw new RemoteException(e.getMessage());
906 }
907 }
908
909
929 public static boolean sendPasswordByEmailAddress(long companyId,
930 java.lang.String emailAddress) throws RemoteException {
931 try {
932 boolean returnValue = UserServiceUtil.sendPasswordByEmailAddress(companyId,
933 emailAddress);
934
935 return returnValue;
936 }
937 catch (Exception e) {
938 _log.error(e, e);
939
940 throw new RemoteException(e.getMessage());
941 }
942 }
943
944
963 public static boolean sendPasswordByScreenName(long companyId,
964 java.lang.String screenName) throws RemoteException {
965 try {
966 boolean returnValue = UserServiceUtil.sendPasswordByScreenName(companyId,
967 screenName);
968
969 return returnValue;
970 }
971 catch (Exception e) {
972 _log.error(e, e);
973
974 throw new RemoteException(e.getMessage());
975 }
976 }
977
978
996 public static boolean sendPasswordByUserId(long userId)
997 throws RemoteException {
998 try {
999 boolean returnValue = UserServiceUtil.sendPasswordByUserId(userId);
1000
1001 return returnValue;
1002 }
1003 catch (Exception e) {
1004 _log.error(e, e);
1005
1006 throw new RemoteException(e.getMessage());
1007 }
1008 }
1009
1010
1017 public static void setRoleUsers(long roleId, long[] userIds)
1018 throws RemoteException {
1019 try {
1020 UserServiceUtil.setRoleUsers(roleId, userIds);
1021 }
1022 catch (Exception e) {
1023 _log.error(e, e);
1024
1025 throw new RemoteException(e.getMessage());
1026 }
1027 }
1028
1029
1036 public static void setUserGroupUsers(long userGroupId, long[] userIds)
1037 throws RemoteException {
1038 try {
1039 UserServiceUtil.setUserGroupUsers(userGroupId, userIds);
1040 }
1041 catch (Exception e) {
1042 _log.error(e, e);
1043
1044 throw new RemoteException(e.getMessage());
1045 }
1046 }
1047
1048
1054 public static void unsetGroupTeamsUsers(long groupId, long[] userIds)
1055 throws RemoteException {
1056 try {
1057 UserServiceUtil.unsetGroupTeamsUsers(groupId, userIds);
1058 }
1059 catch (Exception e) {
1060 _log.error(e, e);
1061
1062 throw new RemoteException(e.getMessage());
1063 }
1064 }
1065
1066
1074 public static void unsetGroupUsers(long groupId, long[] userIds,
1075 com.liferay.portal.service.ServiceContext serviceContext)
1076 throws RemoteException {
1077 try {
1078 UserServiceUtil.unsetGroupUsers(groupId, userIds, serviceContext);
1079 }
1080 catch (Exception e) {
1081 _log.error(e, e);
1082
1083 throw new RemoteException(e.getMessage());
1084 }
1085 }
1086
1087
1093 public static void unsetOrganizationUsers(long organizationId,
1094 long[] userIds) throws RemoteException {
1095 try {
1096 UserServiceUtil.unsetOrganizationUsers(organizationId, userIds);
1097 }
1098 catch (Exception e) {
1099 _log.error(e, e);
1100
1101 throw new RemoteException(e.getMessage());
1102 }
1103 }
1104
1105
1111 public static void unsetPasswordPolicyUsers(long passwordPolicyId,
1112 long[] userIds) throws RemoteException {
1113 try {
1114 UserServiceUtil.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
1115 }
1116 catch (Exception e) {
1117 _log.error(e, e);
1118
1119 throw new RemoteException(e.getMessage());
1120 }
1121 }
1122
1123
1129 public static void unsetRoleUsers(long roleId, long[] userIds)
1130 throws RemoteException {
1131 try {
1132 UserServiceUtil.unsetRoleUsers(roleId, userIds);
1133 }
1134 catch (Exception e) {
1135 _log.error(e, e);
1136
1137 throw new RemoteException(e.getMessage());
1138 }
1139 }
1140
1141
1147 public static void unsetTeamUsers(long teamId, long[] userIds)
1148 throws RemoteException {
1149 try {
1150 UserServiceUtil.unsetTeamUsers(teamId, userIds);
1151 }
1152 catch (Exception e) {
1153 _log.error(e, e);
1154
1155 throw new RemoteException(e.getMessage());
1156 }
1157 }
1158
1159
1165 public static void unsetUserGroupUsers(long userGroupId, long[] userIds)
1166 throws RemoteException {
1167 try {
1168 UserServiceUtil.unsetUserGroupUsers(userGroupId, userIds);
1169 }
1170 catch (Exception e) {
1171 _log.error(e, e);
1172
1173 throw new RemoteException(e.getMessage());
1174 }
1175 }
1176
1177
1184 public static com.liferay.portal.model.UserSoap updateAgreedToTermsOfUse(
1185 long userId, boolean agreedToTermsOfUse) throws RemoteException {
1186 try {
1187 com.liferay.portal.model.User returnValue = UserServiceUtil.updateAgreedToTermsOfUse(userId,
1188 agreedToTermsOfUse);
1189
1190 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1191 }
1192 catch (Exception e) {
1193 _log.error(e, e);
1194
1195 throw new RemoteException(e.getMessage());
1196 }
1197 }
1198
1199
1211 public static com.liferay.portal.model.UserSoap updateEmailAddress(
1212 long userId, java.lang.String password, java.lang.String emailAddress1,
1213 java.lang.String emailAddress2,
1214 com.liferay.portal.service.ServiceContext serviceContext)
1215 throws RemoteException {
1216 try {
1217 com.liferay.portal.model.User returnValue = UserServiceUtil.updateEmailAddress(userId,
1218 password, emailAddress1, emailAddress2, serviceContext);
1219
1220 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1221 }
1222 catch (Exception e) {
1223 _log.error(e, e);
1224
1225 throw new RemoteException(e.getMessage());
1226 }
1227 }
1228
1229
1265 public static com.liferay.portal.model.UserSoap updateIncompleteUser(
1266 long companyId, boolean autoPassword, java.lang.String password1,
1267 java.lang.String password2, boolean autoScreenName,
1268 java.lang.String screenName, java.lang.String emailAddress,
1269 long facebookId, java.lang.String openId, String locale,
1270 java.lang.String firstName, java.lang.String middleName,
1271 java.lang.String lastName, long prefixId, long suffixId, boolean male,
1272 int birthdayMonth, int birthdayDay, int birthdayYear,
1273 java.lang.String jobTitle, boolean updateUserInformation,
1274 boolean sendEmail,
1275 com.liferay.portal.service.ServiceContext serviceContext)
1276 throws RemoteException {
1277 try {
1278 com.liferay.portal.model.User returnValue = UserServiceUtil.updateIncompleteUser(companyId,
1279 autoPassword, password1, password2, autoScreenName,
1280 screenName, emailAddress, facebookId, openId,
1281 LocaleUtil.fromLanguageId(locale), firstName, middleName,
1282 lastName, prefixId, suffixId, male, birthdayMonth,
1283 birthdayDay, birthdayYear, jobTitle, updateUserInformation,
1284 sendEmail, serviceContext);
1285
1286 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1287 }
1288 catch (Exception e) {
1289 _log.error(e, e);
1290
1291 throw new RemoteException(e.getMessage());
1292 }
1293 }
1294
1295
1302 public static com.liferay.portal.model.UserSoap updateLockoutById(
1303 long userId, boolean lockout) throws RemoteException {
1304 try {
1305 com.liferay.portal.model.User returnValue = UserServiceUtil.updateLockoutById(userId,
1306 lockout);
1307
1308 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1309 }
1310 catch (Exception e) {
1311 _log.error(e, e);
1312
1313 throw new RemoteException(e.getMessage());
1314 }
1315 }
1316
1317
1324 public static com.liferay.portal.model.UserSoap updateOpenId(long userId,
1325 java.lang.String openId) throws RemoteException {
1326 try {
1327 com.liferay.portal.model.User returnValue = UserServiceUtil.updateOpenId(userId,
1328 openId);
1329
1330 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1331 }
1332 catch (Exception e) {
1333 _log.error(e, e);
1334
1335 throw new RemoteException(e.getMessage());
1336 }
1337 }
1338
1339
1348 public static void updateOrganizations(long userId, long[] organizationIds,
1349 com.liferay.portal.service.ServiceContext serviceContext)
1350 throws RemoteException {
1351 try {
1352 UserServiceUtil.updateOrganizations(userId, organizationIds,
1353 serviceContext);
1354 }
1355 catch (Exception e) {
1356 _log.error(e, e);
1357
1358 throw new RemoteException(e.getMessage());
1359 }
1360 }
1361
1362
1372 public static com.liferay.portal.model.UserSoap updatePassword(
1373 long userId, java.lang.String password1, java.lang.String password2,
1374 boolean passwordReset) throws RemoteException {
1375 try {
1376 com.liferay.portal.model.User returnValue = UserServiceUtil.updatePassword(userId,
1377 password1, password2, passwordReset);
1378
1379 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1380 }
1381 catch (Exception e) {
1382 _log.error(e, e);
1383
1384 throw new RemoteException(e.getMessage());
1385 }
1386 }
1387
1388
1395 public static com.liferay.portal.model.UserSoap updatePortrait(
1396 long userId, byte[] bytes) throws RemoteException {
1397 try {
1398 com.liferay.portal.model.User returnValue = UserServiceUtil.updatePortrait(userId,
1399 bytes);
1400
1401 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1402 }
1403 catch (Exception e) {
1404 _log.error(e, e);
1405
1406 throw new RemoteException(e.getMessage());
1407 }
1408 }
1409
1410
1418 public static com.liferay.portal.model.UserSoap updateReminderQuery(
1419 long userId, java.lang.String question, java.lang.String answer)
1420 throws RemoteException {
1421 try {
1422 com.liferay.portal.model.User returnValue = UserServiceUtil.updateReminderQuery(userId,
1423 question, answer);
1424
1425 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1426 }
1427 catch (Exception e) {
1428 _log.error(e, e);
1429
1430 throw new RemoteException(e.getMessage());
1431 }
1432 }
1433
1434
1441 public static com.liferay.portal.model.UserSoap updateScreenName(
1442 long userId, java.lang.String screenName) throws RemoteException {
1443 try {
1444 com.liferay.portal.model.User returnValue = UserServiceUtil.updateScreenName(userId,
1445 screenName);
1446
1447 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1448 }
1449 catch (Exception e) {
1450 _log.error(e, e);
1451
1452 throw new RemoteException(e.getMessage());
1453 }
1454 }
1455
1456
1465 @Deprecated
1466 public static com.liferay.portal.model.UserSoap updateStatus(long userId,
1467 int status) throws RemoteException {
1468 try {
1469 com.liferay.portal.model.User returnValue = UserServiceUtil.updateStatus(userId,
1470 status);
1471
1472 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1473 }
1474 catch (Exception e) {
1475 _log.error(e, e);
1476
1477 throw new RemoteException(e.getMessage());
1478 }
1479 }
1480
1481
1491 public static com.liferay.portal.model.UserSoap updateStatus(long userId,
1492 int status, com.liferay.portal.service.ServiceContext serviceContext)
1493 throws RemoteException {
1494 try {
1495 com.liferay.portal.model.User returnValue = UserServiceUtil.updateStatus(userId,
1496 status, serviceContext);
1497
1498 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1499 }
1500 catch (Exception e) {
1501 _log.error(e, e);
1502
1503 throw new RemoteException(e.getMessage());
1504 }
1505 }
1506
1507
1562 public static com.liferay.portal.model.UserSoap updateUser(long userId,
1563 java.lang.String oldPassword, java.lang.String newPassword1,
1564 java.lang.String newPassword2, boolean passwordReset,
1565 java.lang.String reminderQueryQuestion,
1566 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1567 java.lang.String emailAddress, long facebookId,
1568 java.lang.String openId, boolean portrait, byte[] portraitBytes,
1569 java.lang.String languageId, java.lang.String timeZoneId,
1570 java.lang.String greeting, java.lang.String comments,
1571 java.lang.String firstName, java.lang.String middleName,
1572 java.lang.String lastName, long prefixId, long suffixId, boolean male,
1573 int birthdayMonth, int birthdayDay, int birthdayYear,
1574 java.lang.String smsSn, java.lang.String facebookSn,
1575 java.lang.String jabberSn, java.lang.String skypeSn,
1576 java.lang.String twitterSn, java.lang.String jobTitle, long[] groupIds,
1577 long[] organizationIds, long[] roleIds,
1578 com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
1579 long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses,
1580 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
1581 com.liferay.portal.model.PhoneSoap[] phones,
1582 com.liferay.portal.model.WebsiteSoap[] websites,
1583 java.util.List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
1584 com.liferay.portal.service.ServiceContext serviceContext)
1585 throws RemoteException {
1586 try {
1587 com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
1588 oldPassword, newPassword1, newPassword2, passwordReset,
1589 reminderQueryQuestion, reminderQueryAnswer, screenName,
1590 emailAddress, facebookId, openId, portrait, portraitBytes,
1591 languageId, timeZoneId, greeting, comments, firstName,
1592 middleName, lastName, prefixId, suffixId, male,
1593 birthdayMonth, birthdayDay, birthdayYear, smsSn,
1594 facebookSn, jabberSn, skypeSn, twitterSn, jobTitle,
1595 groupIds, organizationIds, roleIds,
1596 com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
1597 userGroupRoles), userGroupIds,
1598 com.liferay.portal.model.impl.AddressModelImpl.toModels(
1599 addresses),
1600 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
1601 emailAddresses),
1602 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
1603 phones),
1604 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
1605 websites), announcementsDelivers, serviceContext);
1606
1607 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1608 }
1609 catch (Exception e) {
1610 _log.error(e, e);
1611
1612 throw new RemoteException(e.getMessage());
1613 }
1614 }
1615
1616
1676 @Deprecated
1677 public static com.liferay.portal.model.UserSoap updateUser(long userId,
1678 java.lang.String oldPassword, java.lang.String newPassword1,
1679 java.lang.String newPassword2, boolean passwordReset,
1680 java.lang.String reminderQueryQuestion,
1681 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1682 java.lang.String emailAddress, long facebookId,
1683 java.lang.String openId, java.lang.String languageId,
1684 java.lang.String timeZoneId, java.lang.String greeting,
1685 java.lang.String comments, java.lang.String firstName,
1686 java.lang.String middleName, java.lang.String lastName, long prefixId,
1687 long suffixId, boolean male, int birthdayMonth, int birthdayDay,
1688 int birthdayYear, java.lang.String smsSn, java.lang.String facebookSn,
1689 java.lang.String jabberSn, java.lang.String skypeSn,
1690 java.lang.String twitterSn, java.lang.String jobTitle, long[] groupIds,
1691 long[] organizationIds, long[] roleIds,
1692 com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
1693 long[] userGroupIds, com.liferay.portal.model.AddressSoap[] addresses,
1694 com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
1695 com.liferay.portal.model.PhoneSoap[] phones,
1696 com.liferay.portal.model.WebsiteSoap[] websites,
1697 java.util.List<com.liferay.announcements.kernel.model.AnnouncementsDelivery> announcementsDelivers,
1698 com.liferay.portal.service.ServiceContext serviceContext)
1699 throws RemoteException {
1700 try {
1701 com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
1702 oldPassword, newPassword1, newPassword2, passwordReset,
1703 reminderQueryQuestion, reminderQueryAnswer, screenName,
1704 emailAddress, facebookId, openId, languageId, timeZoneId,
1705 greeting, comments, firstName, middleName, lastName,
1706 prefixId, suffixId, male, birthdayMonth, birthdayDay,
1707 birthdayYear, smsSn, facebookSn, jabberSn, skypeSn,
1708 twitterSn, jobTitle, groupIds, organizationIds, roleIds,
1709 com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
1710 userGroupRoles), userGroupIds,
1711 com.liferay.portal.model.impl.AddressModelImpl.toModels(
1712 addresses),
1713 com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
1714 emailAddresses),
1715 com.liferay.portal.model.impl.PhoneModelImpl.toModels(
1716 phones),
1717 com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
1718 websites), announcementsDelivers, serviceContext);
1719
1720 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1721 }
1722 catch (Exception e) {
1723 _log.error(e, e);
1724
1725 throw new RemoteException(e.getMessage());
1726 }
1727 }
1728
1729
1777 public static com.liferay.portal.model.UserSoap updateUser(long userId,
1778 java.lang.String oldPassword, java.lang.String newPassword1,
1779 java.lang.String newPassword2, boolean passwordReset,
1780 java.lang.String reminderQueryQuestion,
1781 java.lang.String reminderQueryAnswer, java.lang.String screenName,
1782 java.lang.String emailAddress, long facebookId,
1783 java.lang.String openId, java.lang.String languageId,
1784 java.lang.String timeZoneId, java.lang.String greeting,
1785 java.lang.String comments, java.lang.String firstName,
1786 java.lang.String middleName, java.lang.String lastName, long prefixId,
1787 long suffixId, boolean male, int birthdayMonth, int birthdayDay,
1788 int birthdayYear, java.lang.String smsSn, java.lang.String facebookSn,
1789 java.lang.String jabberSn, java.lang.String skypeSn,
1790 java.lang.String twitterSn, java.lang.String jobTitle, long[] groupIds,
1791 long[] organizationIds, long[] roleIds,
1792 com.liferay.portal.model.UserGroupRoleSoap[] userGroupRoles,
1793 long[] userGroupIds,
1794 com.liferay.portal.service.ServiceContext serviceContext)
1795 throws RemoteException {
1796 try {
1797 com.liferay.portal.model.User returnValue = UserServiceUtil.updateUser(userId,
1798 oldPassword, newPassword1, newPassword2, passwordReset,
1799 reminderQueryQuestion, reminderQueryAnswer, screenName,
1800 emailAddress, facebookId, openId, languageId, timeZoneId,
1801 greeting, comments, firstName, middleName, lastName,
1802 prefixId, suffixId, male, birthdayMonth, birthdayDay,
1803 birthdayYear, smsSn, facebookSn, jabberSn, skypeSn,
1804 twitterSn, jobTitle, groupIds, organizationIds, roleIds,
1805 com.liferay.portal.model.impl.UserGroupRoleModelImpl.toModels(
1806 userGroupRoles), userGroupIds, serviceContext);
1807
1808 return com.liferay.portal.model.UserSoap.toSoapModel(returnValue);
1809 }
1810 catch (Exception e) {
1811 _log.error(e, e);
1812
1813 throw new RemoteException(e.getMessage());
1814 }
1815 }
1816
1817 private static Log _log = LogFactoryUtil.getLog(UserServiceSoap.class);
1818 }