Package org.butor.json

Examples of org.butor.json.CommonRequestArgs


    ResponseHandlerHelper.addList(authDao.listAuthFunc(cra),
      ctx.getResponseHandler());
  }
  @Override
  public void listAuthSys(Context ctx, String system, String function) {
    CommonRequestArgs cra = ctx.getRequest();
   
    List<AttrSet> list = new ArrayList<AttrSet>();
    Map<String, List<String>> authData = authDao.prepareAuthData(system,
      function, AccessMode.READ, cra, "func");
    if (authData.size() > 0 && authData.get("func_list") != null) {
View Full Code Here


    AttrSetCriteria criteria = AttrSetCriteria.valueOf("codeset", "systems", null, cra.getLang());
    return attrSetDao.getAttrSet(criteria, cra);
  }
  @Override
  public void listAuthData(Context ctx, ListAuthDataCriteria criteria) {
    CommonRequestArgs cra = ctx.getRequest();
    ResponseHandlerHelper.addList(listAuthData(criteria, cra),
      ctx.getResponseHandler());
  }
View Full Code Here

    ResponseHandlerHelper.addList(listAuthData(criteria, cra),
      ctx.getResponseHandler());
  }
  @Override
  public void listAuth(Context ctx, ListAuthCriteria criteria) {
    CommonRequestArgs cra = ctx.getRequest();
    ResponseHandlerHelper.addList(listAuth(criteria, cra),
      ctx.getResponseHandler());
  }
View Full Code Here

  public List<Auth> listAuth(ListAuthCriteria criteria, CommonRequestArgs cra) {
    return authDao.listAuth(criteria, cra);
  }
  @Override
  public void listUserAuthFunc(Context ctx, ListUserAuthFuncCriteria criteria) {
    CommonRequestArgs cra = ctx.getRequest();
    ResponseHandlerHelper.addList(authDao.listUserAuthFunc(criteria, cra),
      ctx.getResponseHandler());
  }
View Full Code Here

  public List<AuthData> listAuthData(ListAuthDataCriteria criteria, CommonRequestArgs cra) {
    return authDao.listAuthData(criteria, cra);
  }
  @Override
  public void readAuth(Context ctx, int authId) {
    CommonRequestArgs cra = ctx.getRequest();
    ResponseHandler<Object> handler = ctx.getResponseHandler();
    handler.addRow(readAuth(authId, cra));
  }
View Full Code Here

    return auth;
  }
  @Override
  @Transactional
  public void createAuth(Context ctx, Auth auth) {
    CommonRequestArgs cra = ctx.getRequest();
    AuthKey key = createAuth(auth, cra);
    ctx.getResponseHandler().addRow(key);
  }
View Full Code Here

    return ak;
  }
  @Override
  @Transactional
  public void updateAuth(Context ctx, Auth auth) {
    CommonRequestArgs cra = ctx.getRequest();
    AuthKey key = updateAuth(auth, cra);
    ctx.getResponseHandler().addRow(key);
  }
View Full Code Here

    return ak;
  }
  @Override
  @Transactional
  public void deleteAuth(Context ctx, AuthKey ak) {
    CommonRequestArgs cra = ctx.getRequest();
    deleteAuth(ak, cra);
  }
View Full Code Here

  private UserDao userDao;
 
  @Override
  public void listFirm(Context<FirmWithAccessMode> ctx, ListFirmCriteria crit) {
    ResponseHandler<FirmWithAccessMode> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    List<FirmWithAccessMode> list = firmDao.listFirm(crit, cra);
    ResponseHandlerHelper.addList(list, rh);
  }
View Full Code Here

  }

  @Override
  public void readFirm(Context<Firm> ctx, long firmId, String sys, String func, AccessMode mode) {
    ResponseHandler<Firm> rh = ctx.getResponseHandler();
    CommonRequestArgs cra = ctx.getRequest();
    Firm firm = firmDao.readFirm(firmId, sys, func, mode, cra);
    if (firm == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }
View Full Code Here

TOP

Related Classes of org.butor.json.CommonRequestArgs

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.