Package org.butor.json

Examples of org.butor.json.CommonRequestArgs


      ctx.getResponseHandler());
  }

  @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

  }

  @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 String secFunc;
  private AuthDao authDao;

  @Override
  public void listRole(Context ctx, FuncKey funcKey) {
    CommonRequestArgs cra = ctx.getRequest();
    if (!authDao.hasAccess(systemId, secFunc, AccessMode.READ, cra)) {
      ApplicationException.exception(DAOMessageID.UNAUTHORIZED.getMessage());
    }
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    List<Role> list = roleDao.listRole(funcKey, cra);
View Full Code Here

    ResponseHandlerHelper.addList(list, rh);
  }

  @Override
  public void readRole(Context ctx, String roleId) {
    CommonRequestArgs cra = ctx.getRequest();
    if (!authDao.hasAccess(systemId, secFunc, AccessMode.READ, cra)) {
      ApplicationException.exception(DAOMessageID.UNAUTHORIZED.getMessage());
    }
    ResponseHandler<Object> rh = ctx.getResponseHandler();
    RoleKey rk = new RoleKey(roleId);
View Full Code Here

  }

  @Override
  @Transactional
  public void createRole(Context ctx, Role role) {
    CommonRequestArgs cra = ctx.getRequest();
    if (Strings.isNullOrEmpty(role.getId())) {
      ApplicationException.exception(
          CommonMessageID.MISSING_ARG.getMessage("roleId"));
    }
    if (Strings.isNullOrEmpty(role.getDescription())) {
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.