java.lang.Object
com.vaadin.appsec.backend.model.osv.response.Affected

public class Affected extends Object
DTO for information on dependencies affected by vulnerabilities.
  • Constructor Details

    • Affected

      public Affected()
      No args constructor for use in serialization.
    • Affected

      public Affected(Package aPackage, List<Severity> severity, List<Range> ranges, List<String> versions, EcosystemSpecific ecosystemSpecific, DatabaseSpecific databaseSpecific)
      Creates a new instance.
      Parameters:
      aPackage - the a package
      severity - the severity
      ranges - the ranges
      versions - the versions
      ecosystemSpecific - the ecosystem specific
      databaseSpecific - the database specific
  • Method Details

    • getPackage

      public Package getPackage()
      Gets the package.
      Returns:
      the package
    • setPackage

      public void setPackage(Package aPackage)
      Sets the package.
      Parameters:
      aPackage - the new package
    • getSeverity

      public List<Severity> getSeverity()
      Gets the severity.
      Returns:
      the severity
    • setSeverity

      public void setSeverity(List<Severity> severity)
      Sets the severity.
      Parameters:
      severity - the new severity
    • getRanges

      public List<Range> getRanges()
      Gets the ranges.
      Returns:
      the ranges
    • setRanges

      public void setRanges(List<Range> ranges)
      Sets the ranges.
      Parameters:
      ranges - the new ranges
    • getVersions

      public List<String> getVersions()
      Gets the versions.
      Returns:
      the versions
    • setVersions

      public void setVersions(List<String> versions)
      Sets the versions.
      Parameters:
      versions - the new versions
    • getEcosystemSpecific

      public EcosystemSpecific getEcosystemSpecific()
      Gets the ecosystem specific.
      Returns:
      the ecosystem specific
    • setEcosystemSpecific

      public void setEcosystemSpecific(EcosystemSpecific ecosystemSpecific)
      Sets the ecosystem specific.
      Parameters:
      ecosystemSpecific - the new ecosystem specific
    • getDatabaseSpecific

      public DatabaseSpecific getDatabaseSpecific()
      Gets the database specific.
      Returns:
      the database specific
    • setDatabaseSpecific

      public void setDatabaseSpecific(DatabaseSpecific databaseSpecific)
      Sets the database specific.
      Parameters:
      databaseSpecific - the new database specific
    • toString

      public String toString()
      Overrides:
      toString in class Object