コード例 #1
0
 /**
  * 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;
   }
 }
コード例 #2
0
 /**
  * Checks for an existing e-mail address
  *
  * @param email_address
  * @return
  */
 public boolean emailExists(String email_address) {
   return userRepository.emailExists(email_address);
 }
コード例 #3
0
 public void updateUser(User account) {
   userRepository.update(account);
 }
コード例 #4
0
 public List<User> findUsers(String aFieldName, Object aFieldValue) {
   return userRepository.find(aFieldName, aFieldValue);
 }
コード例 #5
0
 public void insertUser(User aUser) {
   userRepository.insert(aUser);
 }