Search in sources :

Example 1 with Workspace

use of com.mercedesbenz.sechub.sereco.Workspace in project sechub by mercedes-benz.

the class SerecoReportProductExecutor method createReport.

private ProductResult createReport(String projectId, UUID secHubJobUUID, UUIDTraceLogID traceLogId, ProductExecutorContext executorContext, List<ProductResult> foundProductResults) {
    Workspace workspace = sechubReportCollector.createWorkspace(projectId);
    for (ProductResult productResult : foundProductResults) {
        importProductResult(traceLogId, workspace, productResult);
    }
    String json = workspace.createReport();
    /* fetch + return all vulnerabilities as JSON */
    return new ProductResult(secHubJobUUID, projectId, executorContext.getExecutorConfig(), json);
}
Also used : ProductResult(com.mercedesbenz.sechub.domain.scan.product.ProductResult) Workspace(com.mercedesbenz.sechub.sereco.Workspace)

Aggregations

ProductResult (com.mercedesbenz.sechub.domain.scan.product.ProductResult)1 Workspace (com.mercedesbenz.sechub.sereco.Workspace)1