Class ScanRemediationsSummary

All Implemented Interfaces:
NessusResponse.ResponseChild<ScanRemediationsSummary,​ScanResponse>, ScanResponse.ScanResponseChild<ScanRemediationsSummary>, DbPojo

@Entity(name="ScanRemediationsSummary")
public class ScanRemediationsSummary
extends ScanResponse.SingleChild<ScanRemediationsSummary>
Represents the scan-specific fields for the remediations object returned by the Nessus API in /scans/<scan-id>. The array of remediations belongs to the ScanResponse parent in the DB/ORM, but are deserialized/serialized into this entity and shared with the parent
  • Field Details

  • Constructor Details

  • Method Details

    • _prepare

      public void _prepare()
      Description copied from interface: DbPojo
      Perform any operations necessary to prepare this pojo for insertion or updating in the database
    • setResponse

      public void setResponse​(ScanResponse response)
      Sets the ScanResponse parent, and sets the parent's remediations list if it is a new parent.
      Specified by:
      setResponse in interface NessusResponse.ResponseChild<ScanRemediationsSummary,​ScanResponse>
      Overrides:
      setResponse in class NessusResponse.SingleChildTemplate<ScanRemediationsSummary,​ScanResponse>
      Parameters:
      response -
    • getRemediations

      public java.util.List<ScanRemediation> getRemediations()
      Gets the list of remediations.
      Returns:
      the remediations
    • setRemediations

      public void setRemediations​(java.util.List<ScanRemediation> remediations)
      Sets the list of remediations in both this entity and the parent (if a parent is set). Includes a check to prevent infinite recursion between this and the parent setting each other's remediations list.
      Parameters:
      remediations - the remediations list
    • getNumHosts

      public java.lang.Integer getNumHosts()
      Gets num hosts.
      Returns:
      the num hosts
    • setNumHosts

      public void setNumHosts​(java.lang.Integer numHosts)
      Sets num hosts.
      Parameters:
      numHosts - the num hosts
    • getNumCves

      public java.lang.Integer getNumCves()
      Gets num cves.
      Returns:
      the num cves
    • setNumCves

      public void setNumCves​(java.lang.Integer numCves)
      Sets num cves.
      Parameters:
      numCves - the num cves
    • getNumImpactedHosts

      public java.lang.Integer getNumImpactedHosts()
      Gets num impacted hosts.
      Returns:
      the num impacted hosts
    • setNumImpactedHosts

      public void setNumImpactedHosts​(java.lang.Integer numImpactedHosts)
      Sets num impacted hosts.
      Parameters:
      numImpactedHosts - the num impacted hosts
    • getNumRemediatedCves

      public java.lang.Integer getNumRemediatedCves()
      Gets num remediated cves.
      Returns:
      the num remediated cves
    • setNumRemediatedCves

      public void setNumRemediatedCves​(java.lang.Integer numRemediatedCves)
      Sets num remediated cves.
      Parameters:
      numRemediatedCves - the num remediated cves