]> git.mxchange.org Git - jjobs-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>
Fri, 19 Jul 2019 22:04:43 +0000 (00:04 +0200)
- updated reference UserUtils to Users

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java

index f58c9f7180a562181c1c25a5b22c8ac9bd2d0050..1e567cb09f003d0f54a96bada06b8bfd7641a79d 100644 (file)
@@ -52,7 +52,7 @@ import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumbers;
 import org.mxchange.jphone.utils.PhoneUtils;
 import org.mxchange.jusercore.model.user.LoginUser;
 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.
@@ -1168,7 +1168,7 @@ public abstract class BaseJobsDatabaseBean extends BaseDatabaseBean {
                }
 
                // 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 7e9fc32ec7a18a1d017a5b833704ba1fbae28e33..570cf0f6d0308e6b512c258d3691468071ff9eb3 100644 (file)
@@ -221,7 +221,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                // Loop until a user name is found
                while ((userName == null) || (userList.contains(userName))) {
                        // Generate random name
-                       userName = UserUtils.generateRandomUserName();
+                       userName = Users.generateRandomUserName();
                }
 
                // Trace message
@@ -451,7 +451,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                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(managedUser, managedUser);
 
                // Set as updated
                managedUser.setUserUpdated(new Date());
@@ -569,7 +569,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes
                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());