use of com.mercedesbenz.sechub.commons.archive.SecHubFileStructureDataProvider in project sechub by mercedes-benz.
the class PDSWorkspaceService method resolveFileStructureDataProviderOrNull.
SecHubFileStructureDataProvider resolveFileStructureDataProviderOrNull(UUID jobUUID, PDSJobConfiguration config, ScanType scanType) throws IOException {
SecHubConfigurationModel model = resolveAndEnsureSecHubConfigurationModel(config);
if (model == null) {
return null;
}
SecHubFileStructureDataProvider configuration = SecHubFileStructureDataProvider.builder().setScanType(scanType).setModel(model).build();
return configuration;
}
use of com.mercedesbenz.sechub.commons.archive.SecHubFileStructureDataProvider in project sechub by mercedes-benz.
the class PDSWorkspaceService method extractTarFileUploadsWhenConfigured.
public void extractTarFileUploadsWhenConfigured(UUID jobUUID, PDSJobConfiguration config) throws IOException {
PDSProductSetup productSetup = resolveProductSetup(config);
if (!productSetup.isExtractUploads()) {
return;
}
ScanType scanType = productSetup.getScanType();
SecHubFileStructureDataProvider provider = resolveFileStructureDataProviderOrNull(jobUUID, config, scanType);
exractUploadedTarFiles(jobUUID, true, provider);
}
use of com.mercedesbenz.sechub.commons.archive.SecHubFileStructureDataProvider in project sechub by mercedes-benz.
the class PDSWorkspaceService method extractZipFileUploadsWhenConfigured.
public void extractZipFileUploadsWhenConfigured(UUID jobUUID, PDSJobConfiguration config) throws IOException {
PDSProductSetup productSetup = resolveProductSetup(config);
if (!productSetup.isExtractUploads()) {
return;
}
ScanType scanType = productSetup.getScanType();
SecHubFileStructureDataProvider provider = resolveFileStructureDataProviderOrNull(jobUUID, config, scanType);
extractUploadedZipFiles(jobUUID, true, provider);
}
Aggregations