From 997fa8458f02a6b698cd62cd8f09946aa20f419a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 24 Mar 2018 23:20:53 +0100 Subject: [PATCH] Please cherry-pick: - updated reference UserUtils to Users MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../org/mxchange/jjobs/database/BaseJobsDatabaseBean.java | 4 ++-- .../mxchange/jusercore/model/user/JobsUserSessionBean.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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()); -- 2.39.5