/** * Gets an account from a given login * * @param aEmail Email of the account * @param aPassword Password of the account * @return User account associated with the login if valid */ public User getAccountFromLogin(String aEmail, String aPassword) { try { return userRepository.validateUser(aEmail, aPassword); } catch (Exception e) { return null; } }
/** * Checks for an existing e-mail address * * @param email_address * @return */ public boolean emailExists(String email_address) { return userRepository.emailExists(email_address); }
public void updateUser(User account) { userRepository.update(account); }
public List<User> findUsers(String aFieldName, Object aFieldValue) { return userRepository.find(aFieldName, aFieldValue); }
public void insertUser(User aUser) { userRepository.insert(aUser); }