Examples of FuncKey


Examples of org.butor.auth.common.func.FuncKey

  @Override
  @Transactional
  public void updateFunc(Context ctx, Func func) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    FuncKey uk = funcDao.updateFunc(func, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

  @Override
  @Transactional
  public void insertFunc(Context ctx, Func func) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    FuncKey uk = funcDao.insertFunc(func, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

  @Override
  @Transactional
  public void updateFunc(Context ctx, Func func) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    FuncKey uk = funcDao.updateFunc(func, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

  @Override
  @Transactional
  public void insertFunc(Context ctx, Func func) {
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    FuncKey uk = funcDao.insertFunc(func, cra);
    if (uk == null) {
      rh.addMessage(CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
    rh.addRow(uk);
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

    }
    UpdateResult ur = update(PROC_INSERT_FUNC, this.insertSql, func, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new FuncKey(func.getFunc(), func.getSys(), 0);
  }
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

    }
    UpdateResult ur = update(PROC_UPDATE_FUNC, this.updateSql, func, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new FuncKey(func.getFunc(), func.getSys(), func.getRevNo()+1);
  }
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

    UpdateResult ur = insert(PROC_INSERT_FUNC, this.insertSql, func, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.INSERT_FAILURE.getMessage());
    }
    return new FuncKey(func.getFunc(), func.getSys(), 0);
  }
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

    UpdateResult ur = update(PROC_UPDATE_FUNC, this.updateSql, func, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new FuncKey(func.getFunc(), func.getSys(), func.getRevNo()+1);
  }
View Full Code Here

Examples of org.butor.auth.common.func.FuncKey

    authData.setDataTypes("role");
    authData.setMode((AccessMode.READ).value());
    authData.setMember(cra.getUserId());
   
    if (criteria == null){
      criteria = new FuncKey(null, null);
    }
    Map<String, Object> args = ArgsBuilder.create().
      set("funcSys", criteria != null ? criteria.getSys() : null).
      set("funcId", criteria != null ? criteria.getFunc() : null).build();
   
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.