Search in sources :

Example 1 with CodeLocationCreationData

use of com.synopsys.integration.blackduck.codelocation.CodeLocationCreationData in project hub-detect by blackducksoftware.

the class OnlineBlackDuckSignatureScanner method performOnlineScan.

public CodeLocationCreationData<ScanBatchOutput> performOnlineScan(NameVersion projectNameVersion, File installDirectory, File dockerTarFile) throws InterruptedException, IntegrationException, DetectUserFriendlyException, IOException {
    NotificationTaskRange notificationTaskRange = codeLocationCreationService.calculateCodeLocationRange();
    ScanBatchOutput scanBatchOutput = performScanActions(projectNameVersion, installDirectory, dockerTarFile);
    CodeLocationCreationData<ScanBatchOutput> creationData = new CodeLocationCreationData<>(notificationTaskRange, scanBatchOutput);
    return creationData;
}
Also used : CodeLocationCreationData(com.synopsys.integration.blackduck.codelocation.CodeLocationCreationData) NotificationTaskRange(com.synopsys.integration.blackduck.service.model.NotificationTaskRange) ScanBatchOutput(com.synopsys.integration.blackduck.codelocation.signaturescanner.ScanBatchOutput)

Aggregations

CodeLocationCreationData (com.synopsys.integration.blackduck.codelocation.CodeLocationCreationData)1 ScanBatchOutput (com.synopsys.integration.blackduck.codelocation.signaturescanner.ScanBatchOutput)1 NotificationTaskRange (com.synopsys.integration.blackduck.service.model.NotificationTaskRange)1