]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 24 Mar 2018 22:20:53 +0000 (23:20 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 24 Mar 2018 22:20:53 +0000 (23:20 +0100)
- updated reference UserUtils to Users

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java
src/java/org/mxchange/jusercore/model/user/FinancialsUserSessionBean.java

index 9b303f658ae4326f901a99abb2904ced7d11039d..e1056d2574276780c5565adc29d09f72797bbe38 100644 (file)
@@ -50,7 +50,7 @@ import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumbers;
 import org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProvider;
 import org.mxchange.jphone.utils.PhoneUtils;
 import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jusercore.model.user.UserUtils;
+import org.mxchange.jusercore.model.user.Users;
 
 /**
  * A helper class for beans that access the database.
@@ -1094,7 +1094,7 @@ public abstract class BaseFinancialsDatabaseBean extends BaseEnterpriseBean {
                }
 
                // Set all values
-               final Properties variables = UserUtils.getAllUserFields(user);
+               final Properties variables = Users.getAllUserFields(user);
 
                // Set base URL and random password
                variables.put("baseUrl", baseUrl); //NOI18N
index 95e0fb4d786d767131414ebcc4cb3905b65c43c3..1b699b62e7d46d0e44dc4b206268c5e5349136c3 100644 (file)
@@ -215,7 +215,7 @@ public class FinancialsUserSessionBean extends BaseFinancialsDatabaseBean implem
                // Loop until a user name is found
                while ((userName == null) || (userList.contains(userName))) {
                        // Generate random name
-                       userName = UserUtils.generateRandomUserName();
+                       userName = Users.generateRandomUserName();
                }
 
                // Trace message
@@ -448,7 +448,7 @@ public class FinancialsUserSessionBean extends BaseFinancialsDatabaseBean implem
                assert (managedUser instanceof User) : MessageFormat.format("User with id {0} not merged, but should be.", managedUser.getUserId()); //NOI18N
 
                // Copy all data
-               UserUtils.copyAll(managedUser, managedUser);
+               Users.copyAll(managedUser, managedUser);
 
                // Set as updated
                managedUser.setUserUpdated(new Date());
@@ -566,7 +566,7 @@ public class FinancialsUserSessionBean extends BaseFinancialsDatabaseBean implem
                assert (managedUser instanceof User) : MessageFormat.format("User with id {0} not found, but should be.", user.getUserId()); //NOI18N
 
                // Copy all data
-               UserUtils.copyAll(user, managedUser);
+               Users.copyAll(user, managedUser);
 
                // Set as updated
                managedUser.setUserUpdated(new Date());