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>daoThe 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.IntegergetNumCves()Gets num cves.java.lang.IntegergetNumHosts()Gets num hosts.java.lang.IntegergetNumImpactedHosts()Gets num impacted hosts.java.lang.IntegergetNumRemediatedCves()Gets num remediated cves.java.util.List<ScanRemediation>getRemediations()Gets the list of remediations.voidsetNumCves(java.lang.Integer numCves)Sets num cves.voidsetNumHosts(java.lang.Integer numHosts)Sets num hosts.voidsetNumImpactedHosts(java.lang.Integer numImpactedHosts)Sets num impacted hosts.voidsetNumRemediatedCves(java.lang.Integer numRemediatedCves)Sets num remediated cves.voidsetRemediations(java.util.List<ScanRemediation> remediations)Sets the list of remediations in both this entity and the parent (if a parent is set).voidsetResponse(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, getResponseMethods inherited from class tenapull.data.entity.template.NaturalIdPojo
__set, getId, hashCode, setIdMethods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tenapull.data.entity.template.DbPojo
getId, setId, toJsonNode, toJsonStringMethods 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:DbPojoPerform 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:
setResponsein interfaceNessusResponse.ResponseChild<ScanRemediationsSummary,ScanResponse>- Overrides:
setResponsein 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
-