Examples of toJSONObject()


Examples of com.iisigroup.cap.auth.model.Function.toJSONObject()

    if (!CapString.isEmpty(code)) {
      function = functionSetService.findFunctionByCode(code);
    }

    if (function != null) {
      result.putAll(new AjaxFormResult(function.toJSONObject(
          CapEntityUtil.getColumnName(function), null)));
    }

    return result;
  }// ;
View Full Code Here

Examples of com.iisigroup.cap.auth.model.Role.toJSONObject()

        if (!CapString.isEmpty(code)) {
            role = roleSetService.findRoleByCode(code);
        }

        if (role != null) {
            result.putAll(new AjaxFormResult(role.toJSONObject(
                    CapEntityUtil.getColumnName(role), null)));
        }

        return result;
    }// ;
View Full Code Here

Examples of com.iisigroup.cap.base.model.Remind.toJSONObject()

      result.set("startTime", new ADDateTimeFormatter("HH:mm")
          .reformat(remind.getStartDate()));
      result.set("endTime", new ADDateTimeFormatter("HH:mm")
          .reformat(remind.getEndDate()));
      result.putAll(new AjaxFormResult(remind.toJSONObject(
          CapEntityUtil.getColumnName(remind), fmt)));
    }

    return result;
  }
View Full Code Here

Examples of com.iisigroup.cap.base.model.Remind.toJSONObject()

    remind.setLocale(SimpleContextHolder.get(CapWebUtil.localeKey)
        .toString());

    commonSrv.save(remind);

    result.putAll(new AjaxFormResult(remind.toJSONObject(
        CapEntityUtil.getColumnName(remind), null)));
    return result;
  }

  /**
 
View Full Code Here

Examples of com.iisigroup.cap.rule.model.DivCtItm.toJSONObject()

      ctItm = conditionMntService.getById(oid);
    }else if(!CapString.isEmpty(divCtNo)){
      ctItm = conditionMntService.findByDivCtItmNo(divCtNo);
    }
    if(ctItm!=null){
      result.putAll(ctItm.toJSONObject(new String[]{"divCtNo", "divCtNm"
          , "divCtTyp", "divCtSetting", "divCtAction", "oid"}, null));
//      if(ctItm.getDivCtDtls()!=null && !ctItm.getDivCtDtls().isEmpty()){
//        DivCtDtl ctDtl = ctItm.getDivCtDtls().get(0);
//        JSONObject jsObj = JSONObject.fromObject(ctDtl.getDivCtJson());
//        String rangeNoKey = jsObj.optString("gridData");
View Full Code Here

Examples of com.iisigroup.cap.rule.model.DivFtItm.toJSONObject()

      ftItm = factorMntService.getById(oid);
    }else if(!CapString.isEmpty(factorNo)){
      ftItm = factorMntService.findByDivFtItmNo(factorNo);
    }
    if(ftItm!=null){
      result.putAll(ftItm.toJSONObject(new String[]{"factorNo", "factorNm", "dataType"
          , "oid", "tableNm", "columnNm"}, null));
    }
    return result;
  }// ;
View Full Code Here

Examples of com.iisigroup.cap.rule.model.DivRlItm.toJSONObject()

      rlItm = ruleTbMntService.getById(oid);
    }else if(!CapString.isEmpty(divCtNo)){
      rlItm = ruleTbMntService.findByDivRlNo(divCtNo);
    }
    if(rlItm!=null){
      result.putAll(rlItm.toJSONObject(new String[]{"divRlNo", "divRlNm"
          , "oid"}, null));
      result.set("RadioGroup1", rlItm.getDivRlTyp());
    }
   
    return result;
View Full Code Here

Examples of com.nimbusds.jose.JWSHeader.toJSONObject()

   
    // Create JWS header with HS256 algorithm
    JWSHeader header = new JWSHeader(JWSAlgorithm.HS256);
    header.setContentType("text/plain");
   
    System.out.println("JWS header: " + header.toJSONObject());
   
   
    // Create JWS object
    JWSObject jwsObject = new JWSObject(header, payload);
   
View Full Code Here

Examples of com.nimbusds.jose.Payload.toJSONObject()

    if (payload == null) {
      return null;
    }

    JSONObject json = payload.toJSONObject();

    if (json == null) {
      throw new ParseException("Payload of JWE object is not a valid JSON object", 0);
    }
View Full Code Here

Examples of com.nimbusds.jwt.JWTClaimsSet.toJSONObject()

    // Create JWS header with HS256 algorithm
    JWSHeader header = new JWSHeader(JWSAlgorithm.HS256);
    header.setContentType("text/plain");

    // Create JWS object
    JWSObject jwsObject = new JWSObject(header, new Payload(jwtClaims.toJSONObject()));

    // Create HMAC signer
    JWSSigner signer = new MACSigner(SHARED_KEY.getBytes());

    try {
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.