Example #1
0
 public User findUserByName(String username) {
   return userDao.findUser(username);
 }
Example #2
0
 private boolean userExists(User user) {
   User foundUser = userDao.findUser(user.getName());
   return !(foundUser instanceof NullUser);
 }