Class CliScanParser<T extends CliScanResponse>
java.lang.Object
com.blackduck.integration.polaris.common.cli.model.json.parser.CliScanParser<T>
- Direct Known Subclasses:
CliScanUnsupportedParser
,CliScanV1Parser
,CliScanV2Parser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonToolInfo
createCommonToolInfo
(ToolInfoV1 toolInfoV1) protected CliCommonResponseModel
createResponseModel
(IssueSummaryV1 issueSummary, ProjectInfoV1 projectInfo, ScanInfoV1 scanInfo) abstract CliCommonResponseModel
fromCliScan
(com.google.gson.JsonObject versionlessModel) protected T
fromJson
(com.google.gson.JsonObject jsonObject) abstract com.google.gson.reflect.TypeToken<T>
protected void
populateIssueSummary
(IssueSummaryV1 issueSummaryV1, Consumer<CommonIssueSummary> consumer) protected void
populateProjectInfo
(ProjectInfoV1 projectInfoV1, Consumer<CommonProjectInfo> consumer) protected void
populateScanInfo
(ScanInfoV1 scanInfoV1, Consumer<CommonScanInfo> consumer)
-
Constructor Details
-
CliScanParser
public CliScanParser(com.google.gson.Gson gson)
-
-
Method Details
-
getTypeToken
-
fromCliScan
public abstract CliCommonResponseModel fromCliScan(com.google.gson.JsonObject versionlessModel) throws com.blackduck.integration.exception.IntegrationException - Throws:
com.blackduck.integration.exception.IntegrationException
-
fromJson
-
createResponseModel
protected CliCommonResponseModel createResponseModel(IssueSummaryV1 issueSummary, ProjectInfoV1 projectInfo, ScanInfoV1 scanInfo) throws com.blackduck.integration.exception.IntegrationException - Throws:
com.blackduck.integration.exception.IntegrationException
-
populateScanInfo
protected void populateScanInfo(ScanInfoV1 scanInfoV1, Consumer<CommonScanInfo> consumer) throws com.blackduck.integration.exception.IntegrationException - Throws:
com.blackduck.integration.exception.IntegrationException
-
populateProjectInfo
protected void populateProjectInfo(ProjectInfoV1 projectInfoV1, Consumer<CommonProjectInfo> consumer) -
populateIssueSummary
protected void populateIssueSummary(IssueSummaryV1 issueSummaryV1, Consumer<CommonIssueSummary> consumer) throws com.blackduck.integration.exception.IntegrationException - Throws:
com.blackduck.integration.exception.IntegrationException
-
createCommonToolInfo
protected CommonToolInfo createCommonToolInfo(ToolInfoV1 toolInfoV1) throws com.blackduck.integration.exception.IntegrationException - Throws:
com.blackduck.integration.exception.IntegrationException
-