use of com.thinkbiganalytics.feedmgr.rest.model.UploadProgress in project kylo by Teradata.
the class TemplateImporter method initializeImportTemplateFromXml.
private void initializeImportTemplateFromXml() throws ImportException {
try {
UploadProgress progress = uploadProgressService.getUploadStatus(importOptions.getUploadKey());
progress.setSections(ImportSection.sectionsForImportAsString(ImportType.TEMPLATE_XML));
InputStream inputStream = new ByteArrayInputStream(file);
this.importTemplate = ImportUtil.getNewNiFiTemplateImport(fileName, inputStream);
importTemplate.setImportOptions(this.importTemplateOptions);
} catch (IOException e) {
throw new ImportException(e);
}
}
Aggregations