Search in sources :

Example 1 with MetadataParsingResult

use of com.epam.pipeline.manager.metadata.parser.MetadataParsingResult in project cloud-pipeline by epam.

the class MetadataUploadManager method uploadFromFile.

public List<MetadataEntity> uploadFromFile(Long parentId, MultipartFile file) {
    Assert.notNull(parentId, messageHelper.getMessage(MessageConstants.ERROR_PARAMETER_NULL_OR_EMPTY));
    MetadataParsingResult parsedData = readFile(parentId, file);
    return metadataEntityManager.createAndUpdateEntities(parentId, parsedData);
}
Also used : MetadataParsingResult(com.epam.pipeline.manager.metadata.parser.MetadataParsingResult)

Aggregations

MetadataParsingResult (com.epam.pipeline.manager.metadata.parser.MetadataParsingResult)1