示例#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);
 }