Package tenapull.data.entity.scan
Class ScanRemediationsSummary
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.NaturalIdPojo
tenapull.data.entity.response.NessusResponse.SingleChildTemplate<POJO,ScanResponse>
tenapull.data.entity.response.ScanResponse.SingleChild<ScanRemediationsSummary>
tenapull.data.entity.scan.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 Summary
Fields Modifier and Type Field Description static Dao<ScanRemediationsSummary>
dao
The dao for ScanRemediationsSummary -
Constructor Summary
Constructors Constructor Description ScanRemediationsSummary()
-
Method Summary
Modifier and Type Method Description void
_prepare()
Perform any operations necessary to prepare this pojo for insertion or updating in the databasejava.lang.Integer
getNumCves()
Gets num cves.java.lang.Integer
getNumHosts()
Gets num hosts.java.lang.Integer
getNumImpactedHosts()
Gets num impacted hosts.java.lang.Integer
getNumRemediatedCves()
Gets num remediated cves.java.util.List<ScanRemediation>
getRemediations()
Gets the list of remediations.void
setNumCves(java.lang.Integer numCves)
Sets num cves.void
setNumHosts(java.lang.Integer numHosts)
Sets num hosts.void
setNumImpactedHosts(java.lang.Integer numImpactedHosts)
Sets num impacted hosts.void
setNumRemediatedCves(java.lang.Integer numRemediatedCves)
Sets num remediated cves.void
setRemediations(java.util.List<ScanRemediation> remediations)
Sets the list of remediations in both this entity and the parent (if a parent is set).void
setResponse(ScanResponse response)
Sets the ScanResponse parent, and sets the parent's remediations list if it is a new parent.Methods inherited from class tenapull.data.entity.response.NessusResponse.SingleChildTemplate
__set, equals, getResponse
Methods inherited from class tenapull.data.entity.template.NaturalIdPojo
__set, getId, hashCode, setId
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tenapull.data.entity.template.DbPojo
getId, setId, toJsonNode, toJsonString
Methods inherited from interface tenapull.data.entity.response.NessusResponse.ResponseChild
getResponse
-
Field Details
-
dao
The dao for ScanRemediationsSummary
-
-
Constructor Details
-
ScanRemediationsSummary
public ScanRemediationsSummary()
-
-
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
Sets the ScanResponse parent, and sets the parent's remediations list if it is a new parent.- Specified by:
setResponse
in interfaceNessusResponse.ResponseChild<ScanRemediationsSummary,ScanResponse>
- Overrides:
setResponse
in classNessusResponse.SingleChildTemplate<ScanRemediationsSummary,ScanResponse>
- Parameters:
response
-
-
getRemediations
Gets the list of remediations.- Returns:
- the remediations
-
setRemediations
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
-