diff --git a/wss-agent-api/src/main/java/org/whitesource/agent/api/model/ResourceInfo.java b/wss-agent-api/src/main/java/org/whitesource/agent/api/model/ResourceInfo.java index 8bbf7b16..7821cf18 100644 --- a/wss-agent-api/src/main/java/org/whitesource/agent/api/model/ResourceInfo.java +++ b/wss-agent-api/src/main/java/org/whitesource/agent/api/model/ResourceInfo.java @@ -20,6 +20,7 @@ import java.io.Serializable; import java.util.Collection; +import java.util.HashSet; import java.util.LinkedList; /** @@ -46,6 +47,12 @@ public class ResourceInfo implements Serializable { */ private String sha1; private Collection vulnerabilities; + /** + * + * @since 2.9.9.87 + */ + private Collection ignoredVulnerabilities; + private String homepageUrl; private String description; /** @@ -68,6 +75,7 @@ public class ResourceInfo implements Serializable { public ResourceInfo() { licenses = new LinkedList<>(); vulnerabilities = new LinkedList<>(); + ignoredVulnerabilities = new HashSet<>(); } /** @@ -158,6 +166,14 @@ public void setVulnerabilities(Collection vulnerabilities) { this.vulnerabilities = vulnerabilities; } + public Collection getIgnoredVulnerabilities() { + return ignoredVulnerabilities; + } + + public void setIgnoredVulnerabilities(Collection ignoredVulnerabilities) { + this.ignoredVulnerabilities = ignoredVulnerabilities; + } + public String getHomepageUrl() { return homepageUrl; }