public User get(int userId) { return userDao.get(userId); }
public User getUserByUserNameAndPassword(String userName, String password) { User user = userDao.getUserByUserName(userName); return (user != null && user.getPassword().equals(password)) ? user : null; }
public void save(User user) { log.debug("Entered save"); userDao.save(user); }