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.
}
// 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
// Loop until a user name is found
while ((userName == null) || (userList.contains(userName))) {
// Generate random name
- userName = UserUtils.generateRandomUserName();
+ userName = Users.generateRandomUserName();
}
// Trace message
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());
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());