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