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