Examples of CommonRequestArgs


Examples of org.butor.json.CommonRequestArgs

  private LdapUserModel ldapUserModel = null;
  private IMailer mailer;

  @Override
  public void listUser(final Context ctx, ListUserCriteria criteria, String func) {
    CommonRequestArgs cra = ctx.getRequest();
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    List<User> list = userDao.listUser(criteria, func, cra);
    Iterator<User> it = list.iterator();
    while (it.hasNext()) {
      User u = it.next();
View Full Code Here

Examples of org.butor.json.CommonRequestArgs

  }

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

Examples of org.butor.json.CommonRequestArgs

    }
    if (Strings.isNullOrEmpty(user.getId())) {
      rh.addMessage(CommonMessageID.MISSING_ARG.getMessage("ID"));
      return;
    }
    CommonRequestArgs cra = ctx.getRequest();
    validateUser(user);
    if(Strings.isNullOrEmpty(user.getFullName())) {
      user.setFullName(user.getDisplayName());
    }
   
View Full Code Here

Examples of org.butor.json.CommonRequestArgs


  @Override
  public void insertUser(Context ctx, User user) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    validateUser(user);
    if(Strings.isNullOrEmpty(user.getFullName())) {
      user.setFullName(user.getDisplayName());
    }
View Full Code Here

Examples of org.butor.json.CommonRequestArgs

      ApplicationException.exception(AuthMessageID.USER_ID_SHOULD_BE_EMAIL.getMessage());
    }
  }
  @Override
  public void deleteUser(Context ctx, UserKey uk) {
    CommonRequestArgs cra = ctx.getRequest();
    User user = userDao.readUser(uk.getId(), null, cra);
    if (user == null) {
      ApplicationException.exception(AuthMessageID.USER_NOT_FOUND.getMessage());
    }
    if (user.isActive()) {
View Full Code Here

Examples of org.butor.json.CommonRequestArgs

  }

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

Examples of org.butor.json.CommonRequestArgs

  }

  @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;
    }
View Full Code Here

Examples of org.butor.json.CommonRequestArgs

  }

  @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;
    }
View Full Code Here

Examples of org.butor.json.CommonRequestArgs

  private FuncDao funcDao;

  @Override
  public void listFunc(Context<Func> ctx, String sys, String func) {
    ResponseHandler<Func> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    List<Func> list = funcDao.listFunc(sys, func, cra);
    ResponseHandlerHelper.addList(list, rh);
  }
View Full Code Here

Examples of org.butor.json.CommonRequestArgs

  }

  @Override
  public void readFunc(Context ctx, FuncKey funcKey) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    Func func = funcDao.readFunc(funcKey, cra);
    if (func == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.