Пример #1
0
  @Override
  public QuizUser getUser(String useremail) {
    QuizUser user = null;

    logger.info("Retriving User from DataStore");
    if (userDAO.getKeyList().contains(useremail)) {
      return userDAO.getUser(useremail);
    } else {
      return null;
    }
  }
Пример #2
0
  @Override
  public void updateUser(QuizUser user) {

    logger.info("Updating UserInfo from DataStore");
    userDAO.updateUser(user);
  }
Пример #3
0
  @Override
  public void createUser(String email, String nick) {

    logger.info("Creating User");
    userDAO.createUser(email, nick);
  }