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