use of com.mercedesbenz.sechub.domain.scan.config.ScanMappingToScanMappingConfigurationTransformer in project sechub by mercedes-benz.
the class ScanMappingConfigurationTestJSONasNamePatternDialogAction method createScanConfig.
private ScanMappingConfiguration createScanConfig(String json, MappingIdentifier identifier) {
MappingData mappingData = MappingData.fromString(json);
ScanMapping mapping = new ScanMapping(identifier.getId());
mapping.setData(mappingData.toJSON());
ScanMappingConfiguration config = new ScanMappingToScanMappingConfigurationTransformer().transform(Collections.singletonList(mapping));
return config;
}
Aggregations