Package org.beangle.model.transfer

Examples of org.beangle.model.transfer.TransferResult


        "Content-Disposition",
        "attachment;filename="
            + encodeAttachName(ServletActionContext.getRequest(), fileName + "." + format));
    // 进行输出
    exporter.setContext(context);
    exporter.transfer(new TransferResult());
    return null;
  }
View Full Code Here


   * 导入信息
   *
   * @return
   */
  public String importData() {
    TransferResult tr = new TransferResult();
    EntityImporter importer = buildEntityImporter();
    if (null == importer) { return forward("/components/importData/error"); }
    configImporter(importer);
    importer.transfer(tr);
    put("importResult", tr);
    if (tr.hasErrors()) {
      return forward("/components/importData/error");
    } else {
      return forward("/components/importData/result");
    }
  }
View Full Code Here

        "attachment;filename="
            + encodeAttachName(ServletActionContext.getRequest(), fileName + "."
                + format));
    // 进行输出
    exporter.setContext(context);
    exporter.transfer(new TransferResult());
    return null;
  }
View Full Code Here

   * @param request
   * @param response
   * @return @
   */
  public String importData() {
    TransferResult tr = new TransferResult();
    EntityImporter importer = buildEntityImporter();
    if (null == importer) { return forward("/components/importData/error"); }
    configImporter(importer);
    importer.transfer(tr);
    put("importResult", tr);
    if (tr.hasErrors()) {
      return forward("/components/importData/error");
    } else {
      return forward("/components/importData/result");
    }
  }
View Full Code Here

        "Content-Disposition",
        "attachment;filename="
            + encodeAttachName(ServletActionContext.getRequest(), fileName + "." + format));
    // 进行输出
    exporter.setContext(context);
    exporter.transfer(new TransferResult());
    return null;
  }
View Full Code Here

   * 导入信息
   *
   * @return
   */
  public String importData() {
    TransferResult tr = new TransferResult();
    EntityImporter importer = buildEntityImporter();
    if (null == importer) { return forward("/components/importData/error"); }
    configImporter(importer);
    importer.transfer(tr);
    put("importResult", tr);
    if (tr.hasErrors()) {
      return forward("/components/importData/error");
    } else {
      return forward("/components/importData/result");
    }
  }
View Full Code Here

TOP

Related Classes of org.beangle.model.transfer.TransferResult

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.