Class PolicyEvaluator
java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.impl.PolicyEvaluator
- Since:
- 1.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyEvaluator(com.sonatype.insight.brain.client.RestClientFactory.RestClient restClient, ReportClientFactory reportClientFactory) Constructs a new PolicyEvaluator with the specified REST client and report client factory. -
Method Summary
Modifier and TypeMethodDescriptionevaluateApplication(com.sonatype.insight.scan.model.ClientScanResult clientScanResult, String appId, com.sonatype.insight.scan.model.ClientScanType clientScanType, String stageId) Evaluates the application policy and returns the evaluation result.evaluateApplication(com.sonatype.insight.scan.model.ClientScanResult clientScanResult, String appId, com.sonatype.insight.scan.model.ClientScanType clientScanType, String stageId, File resultFile) Evaluates the application policy and writes results to the specified file if provided.getPrioritiesLink(String applicationId, String scanId) Returns the link to the priorities report if the required license features are enabled.getReportLink(String applicationId, String scanId)
-
Constructor Details
-
PolicyEvaluator
public PolicyEvaluator(com.sonatype.insight.brain.client.RestClientFactory.RestClient restClient, ReportClientFactory reportClientFactory) Constructs a new PolicyEvaluator with the specified REST client and report client factory.
-
-
Method Details
-
evaluateApplication
public ApplicationPolicyEvaluation evaluateApplication(com.sonatype.insight.scan.model.ClientScanResult clientScanResult, String appId, com.sonatype.insight.scan.model.ClientScanType clientScanType, String stageId) throws IqClientException Evaluates the application policy and returns the evaluation result.- Throws:
IqClientException
-
evaluateApplication
public ApplicationPolicyEvaluation evaluateApplication(com.sonatype.insight.scan.model.ClientScanResult clientScanResult, String appId, com.sonatype.insight.scan.model.ClientScanType clientScanType, String stageId, File resultFile) throws IqClientException Evaluates the application policy and writes results to the specified file if provided.- Throws:
IqClientException
-
getReportLink
- Since:
- 5.2.0
-
getPrioritiesLink
Returns the link to the priorities report if the required license features are enabled.
-