/** * Delete user from data store * * @param Integer id */ public void deleteUserById(Integer id) { userDao.deleteUserById(id); }
/** * Delete user from data store * * @param String email */ public void deleteUserByEmail(String email) { userDao.deleteUserByEmail(email); }
/** * Change an user password * * @param User user * @param String pass */ public void changeUserPassword(User user, String pass) { userDao.changeUserPassword(user, pass); }
/** * Find all users in database * * @return ArrayList<User> of users */ public List<User> findAllUsers() { return userDao.findAllUsers(); }
/** * Find a user by email * * @param String email * @return User user represented by the email provided */ public User findUserByEmail(String email) { return userDao.findUserByEmail(email); }
/** * Find a user * * @param Integer id identifier of the user to be retrieved * @return User user represented by the identifier provided */ public User findUserById(Integer id) { return userDao.findUserById(id); }
/** * Create a new user or update an existing one * * @param User user */ public void createUser(User user) { userDao.createUser(user); }