Package org.beangle.ems.dictionary.service

Examples of org.beangle.ems.dictionary.service.CodeFixture


  public void onItemFinish(TransferResult tr) {
    try {
      String code = (String) PropertyUtils.getProperty((Entity<?>) transfer.getCurrent(), codeAttrName);
      if (!codeGenerator.isValidCode(code)) {
        code = codeGenerator.gen(new CodeFixture((Entity<?>) transfer.getCurrent()));
        PropertyUtils.setProperty(transfer.getCurrent(), codeAttrName, code);
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here


        }
        if (StringUtils.isNotEmpty(fixture.getScript())) {
          interpreter.eval(fixture.getScript());
        }
      }
      return gen(new CodeFixture(entity, codeScript.getScript()));
    } catch (Exception e) {
      return ExceptionUtils.getFullStackTrace(e);
    }
  }
View Full Code Here

   * @param request
   * @param response
   * @return @
   */
  public String test() {
    CodeFixture codeFixture = new CodeFixture(Params.sub("codeFixture"));
    String testResult = codeGenerator.test(codeFixture);
    if (null == testResult) {
      testResult = "null";
    }
    put("testResult", testResult);
View Full Code Here

      throw new RuntimeException(e);
    }
    String code = get("baseCode.code");
    Model.populate(Params.sub("baseCode"), baseCode);
    if (!codeGenerator.isValidCode(code)) {
      code = codeGenerator.gen(new CodeFixture(baseCode));
      if (codeGenerator.isValidCode(code)) {
        baseCode.setCode(code);
      } else {
        return forward(new Action("edit"), "system.codeGen.failure");
      }
View Full Code Here

      throw new RuntimeException(e);
    }
    String code = get("baseCode.code");
    Model.populate(Params.sub("baseCode"), baseCode);
    if (!codeGenerator.isValidCode(code)) {
      code = codeGenerator.gen(new CodeFixture(baseCode));
      if (codeGenerator.isValidCode(code)) {
        baseCode.setCode(code);
      } else {
        return forward(new Action("edit"), "system.codeGen.failure");
      }
View Full Code Here

  public void onItemFinish(TransferResult tr) {
    try {
      String code = (String) PropertyUtils.getProperty((Entity<?>) transfer.getCurrent(), codeAttrName);
      if (!codeGenerator.isValidCode(code)) {
        code = codeGenerator.gen(new CodeFixture((Entity<?>) transfer.getCurrent()));
        PropertyUtils.setProperty(transfer.getCurrent(), codeAttrName, code);
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

        }
        if (StringUtils.isNotEmpty(fixture.getScript())) {
          interpreter.eval(fixture.getScript());
        }
      }
      return gen(new CodeFixture(entity, codeScript.getScript()));
    } catch (Exception e) {
      return ExceptionUtils.getFullStackTrace(e);
    }
  }
View Full Code Here

   * @param request
   * @param response
   * @return @
   */
  public String test() {
    CodeFixture codeFixture = new CodeFixture(Params.sub("codeFixture"));
    String testResult = codeGenerator.test(codeFixture);
    if (null == testResult) {
      testResult = "null";
    }
    put("testResult", testResult);
View Full Code Here

TOP

Related Classes of org.beangle.ems.dictionary.service.CodeFixture

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.