// upgrade NotRegisteredUser to User in database public void upgradeNotRegisteredUser(User user) { db.upgradeNotRegisteredUser(user); }
// get User with email back from database public User findByEmail(String email) { User user = db.selectUserByEmail(email); return user; }
// insert NotRegisteredUser in database public void insertNotRegisteredUser(User user) { db.insertNotRegisteredUser(user); }
public User findByNotRegisteredUserName(String userName) { User user = db.selectNotRegisteredUserByUsername(userName); return user; }
// get User with username back from database public User findByUserName(String username) { User user = db.selectUserByUsername(username); return user; }
// List of all the users in database public List<User> getUsers() { List<User> users = db.selectAllUsers(); return users; }
// Update User ( only updates password and language ! ) public void updateUser(User user) { db.updateUser(user); }
// Check if username is available public boolean checkIfUserNameAvailable(String username) { return db.checkIfUserNameAvailable(username); }