From: Roland Häder <roland@mxchange.org>
Date: Sat, 24 Mar 2018 22:20:53 +0000 (+0100)
Subject: Please cherry-pick:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=997fa8458f02a6b698cd62cd8f09946aa20f419a;p=jjobs-ejb.git

Please cherry-pick:
- updated reference UserUtils to Users

Signed-off-by: Roland Häder <roland@mxchange.org>
---

diff --git a/src/java/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java b/src/java/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
index f58c9f7..1e567cb 100644
--- a/src/java/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
+++ b/src/java/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
@@ -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
diff --git a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java
index 7e9fc32..570cf0f 100644
--- a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java
+++ b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java
@@ -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());