* 导入信息
*
* @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");
}
}