Package org.butor.json

Examples of org.butor.json.JsonHelper.serialize()


          serviceArgs[0] = ctx;
          for (int ii=1; ii<args.length;ii++)
            serviceArgs[ii] = args[ii];

          JsonServiceRequest jsr = (JsonServiceRequest)ctx.getRequest();
          String sargs = jsh.serialize(serviceArgs);
          //logger.info("calling service {} with args {}", method.getName(), sargs);
          jsr.setService(method.getName());
          jsr.setServiceArgsJson(sargs);

          return target.invoke(serviceCaller, serviceArgs);
View Full Code Here


          serviceArgs[0] = ctx;
          for (int ii=1; ii<args.length;ii++)
            serviceArgs[ii] = args[ii];

          JsonServiceRequest jsr = (JsonServiceRequest)ctx.getRequest();
          String sargs = jsh.serialize(serviceArgs);
          //logger.info("calling service {} with args {}", method.getName(), sargs);
          jsr.setService(method.getName());
          jsr.setServiceArgsJson(sargs);

          return target.invoke(serviceCaller, serviceArgs);
View Full Code Here

    List<FirmWithAccessMode> fl = queryList(PROC_LIST_FIRM, listSql, FirmWithAccessMode.class, crit, cra, authDataCrit);
    JsonHelper jsh = new JsonHelper();
    for (FirmWithAccessMode f : fl) {
      if (f.getAttributesMap() != null) {
        f.setAttributes(jsh.serialize(f.getAttributesMap()));
      }
    }
    return fl;
  }
View Full Code Here

    firm.setCreationDate(firm.getStamp());
    firm.setRevNo(0);

    if (firm.getAttributesMap() != null) {
      JsonHelper jsh = new JsonHelper();
      firm.setAttributes(jsh.serialize(firm.getAttributesMap()));
    }

    UpdateResult ur = insert(PROC_INSERT_FIRM, insertSql, firm, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UNAUTHORIZED.getMessage());
View Full Code Here

    if (!authDao.hasAccess(SecurityConstants.SYSTEM_ID, SecurityConstants.SEC_FUNC_FIRMS, AccessMode.WRITE, cra)) {
      ApplicationException.exception(DAOMessageID.UNAUTHORIZED.getMessage());
    }
    if (firm.getAttributesMap() != null) {
      JsonHelper jsh = new JsonHelper();
      firm.setAttributes(jsh.serialize(firm.getAttributesMap()));
    }
    UpdateResult ur = update(PROC_UPDATE_FIRM, updateSql, firm, cra);
    if (ur.numberOfRowAffected == 0) {
      Firm ef = readFirm(firm.getFirmId(), cra);
      if (ef == null || ef.getRevNo() != firm.getRevNo()) {
View Full Code Here

          serviceArgs[0] = ctx;
          for (int ii=1; ii<args.length;ii++)
            serviceArgs[ii] = args[ii];

          JsonServiceRequest jsr = (JsonServiceRequest)ctx.getRequest();
          String sargs = jsh.serialize(serviceArgs);
          //logger.info("calling service {} with args {}", method.getName(), sargs);
          jsr.setService(method.getName());
          jsr.setServiceArgsJson(sargs);

          return target.invoke(serviceCaller, serviceArgs);
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.