Пример #1
0
 /**
  * Delete user from data store
  *
  * @param Integer id
  */
 public void deleteUserById(Integer id) {
   userDao.deleteUserById(id);
 }
Пример #2
0
 /**
  * Delete user from data store
  *
  * @param String email
  */
 public void deleteUserByEmail(String email) {
   userDao.deleteUserByEmail(email);
 }
Пример #3
0
 /**
  * Change an user password
  *
  * @param User user
  * @param String pass
  */
 public void changeUserPassword(User user, String pass) {
   userDao.changeUserPassword(user, pass);
 }
Пример #4
0
 /**
  * Find all users in database
  *
  * @return ArrayList<User> of users
  */
 public List<User> findAllUsers() {
   return userDao.findAllUsers();
 }
Пример #5
0
 /**
  * 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);
 }
Пример #6
0
 /**
  * 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);
 }
Пример #7
0
 /**
  * Create a new user or update an existing one
  *
  * @param User user
  */
 public void createUser(User user) {
   userDao.createUser(user);
 }