Package org.butor.auth.common.user

Examples of org.butor.auth.common.user.UserKey


    }
   
    if (!Strings.isNullOrEmpty(user.getNewPwd())) {
      user.setPwd(CommonChecksumFunction.SHA512.generateChecksum(user.getNewPwd()));
    }
    UserKey uk = userDao.updateUser(user, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here


    if (!Strings.isNullOrEmpty(user.getNewPwd())) {
      user.setPwd(CommonChecksumFunction.SHA512.generateChecksum(user.getNewPwd()));
    }

    UserKey uk = userDao.insertUser(user, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

  @Override
  public void updateState(Context ctx, User user) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    UserKey uk = userDao.updateState(user, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here

  @Override
  public void updateQuestions(Context ctx, UserQuestions questions) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    UserKey uk = userDao.updateQuestions(questions, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here

    user.setRevNo(0);
    UpdateResult ur = insert(PROC_INSERT_USER, insertSql, user, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new UserKey(user.getId(), user.getRevNo() + 1);
  }
View Full Code Here

  public UserKey updateState(User user, CommonRequestArgs cra) {
    UpdateResult ur = update(PROC_UPDATE_STATE, updateStateSql, user, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new UserKey(user.getId(), user.getRevNo() +1);
  }
View Full Code Here

    }
    UpdateResult ur = update(PROC_UPDATE_USER, updateSql, user, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new UserKey(user.getId(), user.getRevNo() +1);
  }
View Full Code Here

  public UserKey updateQuestions(UserQuestions user, CommonRequestArgs cra) {
    UpdateResult ur = update(PROC_UPDATE_QUESTIONS, updateQuestionsSql, user, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new UserKey(user.getId(), user.getRevNo() +1);
  }
View Full Code Here

TOP

Related Classes of org.butor.auth.common.user.UserKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.