Class PolicyEvaluationResult
java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.api.PolicyEvaluationResult
- All Implemented Interfaces:
Serializable
- Since:
- 1.0.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyEvaluationResult(int affectedComponentCount, int criticalComponentCount, int severeComponentCount, int moderateComponentCount, int criticalPolicyViolationCount, int severePolicyViolationCount, int moderatePolicyViolationCount, int legacyViolationCount, int totalComponentCount, List<PolicyAlert> policyAlerts) Constructs a policy evaluation result with the given counts and alerts. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the count of affected components.intReturns the count of critical components.intReturns the count of critical policy violations.intReturns the count of legacy violations.intReturns the count of moderate components.intReturns the count of moderate policy violations.Returns the list of policy alerts.intReturns the count of severe components.intReturns the count of severe policy violations.intReturns the total component count.booleanReturns whether the result contains failures.booleanReturns whether the result contains notifications.booleanReturns whether the result contains warnings.
-
Constructor Details
-
PolicyEvaluationResult
public PolicyEvaluationResult(int affectedComponentCount, int criticalComponentCount, int severeComponentCount, int moderateComponentCount, int criticalPolicyViolationCount, int severePolicyViolationCount, int moderatePolicyViolationCount, int legacyViolationCount, int totalComponentCount, List<PolicyAlert> policyAlerts) Constructs a policy evaluation result with the given counts and alerts.
-
-
Method Details
-
getAffectedComponentCount
public int getAffectedComponentCount()Returns the count of affected components. -
getCriticalComponentCount
public int getCriticalComponentCount()Returns the count of critical components. -
getSevereComponentCount
public int getSevereComponentCount()Returns the count of severe components. -
getModerateComponentCount
public int getModerateComponentCount()Returns the count of moderate components. -
getCriticalPolicyViolationCount
public int getCriticalPolicyViolationCount()Returns the count of critical policy violations. -
getSeverePolicyViolationCount
public int getSeverePolicyViolationCount()Returns the count of severe policy violations. -
getModeratePolicyViolationCount
public int getModeratePolicyViolationCount()Returns the count of moderate policy violations. -
getLegacyViolationCount
public int getLegacyViolationCount()Returns the count of legacy violations. -
getTotalComponentCount
public int getTotalComponentCount()Returns the total component count. -
getPolicyAlerts
Returns the list of policy alerts. -
hasFailures
public boolean hasFailures()Returns whether the result contains failures. -
hasWarnings
public boolean hasWarnings()Returns whether the result contains warnings. -
hasNotifications
public boolean hasNotifications()Returns whether the result contains notifications.
-