Search in sources :

Example 1 with ScanMappingToScanConfigTransformer

use of com.mercedesbenz.sechub.domain.scan.config.ScanMappingToScanConfigTransformer in project sechub by mercedes-benz.

the class ScanConfigTestJSONasNamePatternDialogAction method createScanConfig.

private ScanConfig createScanConfig(String json, MappingIdentifier identifier) {
    MappingData mappingData = MappingData.fromString(json);
    ScanMapping mapping = new ScanMapping(identifier.getId());
    mapping.setData(mappingData.toJSON());
    ScanConfig config = new ScanMappingToScanConfigTransformer().transform(Collections.singletonList(mapping));
    return config;
}
Also used : ScanMapping(com.mercedesbenz.sechub.domain.scan.config.ScanMapping) ScanConfig(com.mercedesbenz.sechub.domain.scan.config.ScanConfig) MappingData(com.mercedesbenz.sechub.sharedkernel.mapping.MappingData) ScanMappingToScanConfigTransformer(com.mercedesbenz.sechub.domain.scan.config.ScanMappingToScanConfigTransformer)

Aggregations

ScanConfig (com.mercedesbenz.sechub.domain.scan.config.ScanConfig)1 ScanMapping (com.mercedesbenz.sechub.domain.scan.config.ScanMapping)1 ScanMappingToScanConfigTransformer (com.mercedesbenz.sechub.domain.scan.config.ScanMappingToScanConfigTransformer)1 MappingData (com.mercedesbenz.sechub.sharedkernel.mapping.MappingData)1