Package tenapull.data.entity.scan
Class ScanHost
java.lang.Object
- All Implemented Interfaces:
NessusResponse.ResponseChild<ScanHost,ScanResponse>
,ScanResponse.ScanResponseChild<ScanHost>
,DbPojo
,MapLookupPojo<ScanHost>
@Entity(name="ScanHost") public class ScanHost extends ScanResponse.MultiChildLookup<ScanHost> implements MapLookupPojo<ScanHost>
Represents an object from the hosts array returned by the Nessus API in /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<ScanHost>
dao
The dao for ScanHost -
Constructor Summary
Constructors Constructor Description ScanHost()
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
_getSearchMap()
Return a map to be used by the POJO type's dao, to find the database record matching the same record that this pojo representsboolean
_match(ScanHost o)
Determine if this pojo represents the same DB record as another POJO of the same type.void
_prepare()
Perform any operations necessary to prepare this pojo for insertion or updating in the databasevoid
_set(ScanHost o)
Set the values in this POJO to be identical to another POJO representing the same DB recordjava.lang.Integer
getCritical()
Gets critical.java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>
getExtraJsonMap()
Gets extra json map for serializationjava.lang.Integer
getHigh()
Gets high.java.lang.Integer
getHostId()
Gets host id.java.lang.Integer
getHostIndex()
Gets host index.Hostname
getHostname()
Gets hostname.java.lang.Integer
getInfo()
Gets info.java.lang.Integer
getLow()
Gets low.java.lang.Integer
getMedium()
Gets medium.java.lang.Integer
getNumChecksConsidered()
Gets num checks considered.java.lang.Integer
getOfflineCritical()
Gets offline critical.java.lang.Integer
getOfflineHigh()
Gets offline high.java.lang.Integer
getOfflineInfo()
Gets offline info.java.lang.Integer
getOfflineLow()
Gets offline low.java.lang.Integer
getOfflineMedium()
Gets offline medium.java.lang.String
getProgress()
Gets progress.java.lang.Integer
getScanProgressCurrent()
Gets scan progress current.java.lang.Integer
getScanProgressTotal()
Gets scan progress total.java.lang.Integer
getScore()
Gets score.java.lang.Integer
getSeverity()
Gets severity.SeverityCount
getSeveritycount()
Gets severitycount.java.util.List<SeverityLevelCount>
getSeverityCounts()
Gets severity counts.java.lang.Integer
getTotalChecksConsidered()
Gets total checks considered.void
putExtraJson(java.lang.String key, java.lang.Object value)
Puts extra json during deserializationvoid
setCritical(java.lang.Integer critical)
Sets critical.void
setHigh(java.lang.Integer high)
Sets high.void
setHostId(java.lang.Integer hostId)
Sets host id.void
setHostIndex(java.lang.Integer hostIndex)
Sets host index.void
setHostname(Hostname hostname)
Sets hostname.void
setInfo(java.lang.Integer info)
Sets info.void
setLow(java.lang.Integer low)
Sets low.void
setMedium(java.lang.Integer medium)
Sets medium.void
setNumChecksConsidered(java.lang.Integer numChecksConsidered)
Sets num checks considered.void
setOfflineCritical(java.lang.Integer offlineCritical)
Sets offline critical.void
setOfflineHigh(java.lang.Integer offlineHigh)
Sets offline high.void
setOfflineInfo(java.lang.Integer offlineInfo)
Sets offline info.void
setOfflineLow(java.lang.Integer offlineLow)
Sets offline low.void
setOfflineMedium(java.lang.Integer offlineMedium)
Sets offline medium.void
setProgress(java.lang.String progress)
Sets progress.void
setScanProgressCurrent(java.lang.Integer scanProgressCurrent)
Sets scan progress current.void
setScanProgressTotal(java.lang.Integer scanProgressTotal)
Sets scan progress total.void
setScore(java.lang.Integer score)
Sets score.void
setSeverity(java.lang.Integer severity)
Sets severity.void
setSeveritycount(SeverityCount severitycount)
Sets severitycount.void
setSeverityCounts(java.util.List<SeverityLevelCount> severityCounts)
Sets severity counts.void
setTotalChecksConsidered(java.lang.Integer totalChecksConsidered)
Sets total checks considered.Methods inherited from class tenapull.data.entity.response.NessusResponse.MultiChildTemplate
__match, __set, equals, getResponse, setResponse
Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, getId, hashCode, setId
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, 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, setResponse
-
Field Details
-
dao
The dao for ScanHost
-
-
Constructor Details
-
ScanHost
public ScanHost()
-
-
Method Details
-
getSeveritycount
Gets severitycount.- Returns:
- the severitycount
-
setSeveritycount
Sets severitycount.- Parameters:
severitycount
- the severitycount
-
getSeverityCounts
Gets severity counts.- Returns:
- the severity counts
-
setSeverityCounts
Sets severity counts.- Parameters:
severityCounts
- the severity counts
-
_prepare
public void _prepare()Description copied from interface:DbPojo
Perform any operations necessary to prepare this pojo for insertion or updating in the database -
_set
Description copied from interface:MapLookupPojo
Set the values in this POJO to be identical to another POJO representing the same DB record- Specified by:
_set
in interfaceMapLookupPojo<ScanHost>
-
_match
Description copied from interface:MapLookupPojo
Determine if this pojo represents the same DB record as another POJO of the same type. Note that this is NOT the same as the equals() method (though it may be in certain cases). Equals may be used to determine if two pojos of the same type contain all of the same values, regardless of whether they represent the same DB record (depending on implementation) while _match determines only if they represent the same DB record even if some of the values may not be equivalent. In many cases the two methods may be the same, but their purpose is different.- Specified by:
_match
in interfaceMapLookupPojo<ScanHost>
- Parameters:
o
- the other pojo to match- Returns:
- true if the two pojos represent the same DB record, false if not
-
_getSearchMap
public java.util.Map<java.lang.String,java.lang.Object> _getSearchMap()Description copied from interface:MapLookupPojo
Return a map to be used by the POJO type's dao, to find the database record matching the same record that this pojo represents- Specified by:
_getSearchMap
in interfaceMapLookupPojo<ScanHost>
- Returns:
-
getExtraJsonMap
public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getExtraJsonMap()Description copied from class:ExtensibleJsonPojo
Gets extra json map for serialization- Overrides:
getExtraJsonMap
in classExtensibleJsonPojo
- Returns:
- the extra json map
-
putExtraJson
public void putExtraJson(java.lang.String key, java.lang.Object value)Description copied from class:ExtensibleJsonPojo
Puts extra json during deserialization- Overrides:
putExtraJson
in classExtensibleJsonPojo
- Parameters:
key
- the keyvalue
- the value
-
getHostId
public java.lang.Integer getHostId()Gets host id.- Returns:
- the host id
-
setHostId
public void setHostId(java.lang.Integer hostId)Sets host id.- Parameters:
hostId
- the host id
-
getTotalChecksConsidered
public java.lang.Integer getTotalChecksConsidered()Gets total checks considered.- Returns:
- the total checks considered
-
setTotalChecksConsidered
public void setTotalChecksConsidered(java.lang.Integer totalChecksConsidered)Sets total checks considered.- Parameters:
totalChecksConsidered
- the total checks considered
-
getNumChecksConsidered
public java.lang.Integer getNumChecksConsidered()Gets num checks considered.- Returns:
- the num checks considered
-
setNumChecksConsidered
public void setNumChecksConsidered(java.lang.Integer numChecksConsidered)Sets num checks considered.- Parameters:
numChecksConsidered
- the num checks considered
-
getScanProgressTotal
public java.lang.Integer getScanProgressTotal()Gets scan progress total.- Returns:
- the scan progress total
-
setScanProgressTotal
public void setScanProgressTotal(java.lang.Integer scanProgressTotal)Sets scan progress total.- Parameters:
scanProgressTotal
- the scan progress total
-
getScanProgressCurrent
public java.lang.Integer getScanProgressCurrent()Gets scan progress current.- Returns:
- the scan progress current
-
setScanProgressCurrent
public void setScanProgressCurrent(java.lang.Integer scanProgressCurrent)Sets scan progress current.- Parameters:
scanProgressCurrent
- the scan progress current
-
getHostIndex
public java.lang.Integer getHostIndex()Gets host index.- Returns:
- the host index
-
setHostIndex
public void setHostIndex(java.lang.Integer hostIndex)Sets host index.- Parameters:
hostIndex
- the host index
-
getScore
public java.lang.Integer getScore()Gets score.- Returns:
- the score
-
setScore
public void setScore(java.lang.Integer score)Sets score.- Parameters:
score
- the score
-
getProgress
public java.lang.String getProgress()Gets progress.- Returns:
- the progress
-
setProgress
public void setProgress(java.lang.String progress)Sets progress.- Parameters:
progress
- the progress
-
getOfflineCritical
public java.lang.Integer getOfflineCritical()Gets offline critical.- Returns:
- the offline critical
-
setOfflineCritical
public void setOfflineCritical(java.lang.Integer offlineCritical)Sets offline critical.- Parameters:
offlineCritical
- the offline critical
-
getOfflineHigh
public java.lang.Integer getOfflineHigh()Gets offline high.- Returns:
- the offline high
-
setOfflineHigh
public void setOfflineHigh(java.lang.Integer offlineHigh)Sets offline high.- Parameters:
offlineHigh
- the offline high
-
getOfflineMedium
public java.lang.Integer getOfflineMedium()Gets offline medium.- Returns:
- the offline medium
-
setOfflineMedium
public void setOfflineMedium(java.lang.Integer offlineMedium)Sets offline medium.- Parameters:
offlineMedium
- the offline medium
-
getOfflineLow
public java.lang.Integer getOfflineLow()Gets offline low.- Returns:
- the offline low
-
setOfflineLow
public void setOfflineLow(java.lang.Integer offlineLow)Sets offline low.- Parameters:
offlineLow
- the offline low
-
getOfflineInfo
public java.lang.Integer getOfflineInfo()Gets offline info.- Returns:
- the offline info
-
setOfflineInfo
public void setOfflineInfo(java.lang.Integer offlineInfo)Sets offline info.- Parameters:
offlineInfo
- the offline info
-
getCritical
public java.lang.Integer getCritical()Gets critical.- Returns:
- the critical
-
setCritical
public void setCritical(java.lang.Integer critical)Sets critical.- Parameters:
critical
- the critical
-
getHigh
public java.lang.Integer getHigh()Gets high.- Returns:
- the high
-
setHigh
public void setHigh(java.lang.Integer high)Sets high.- Parameters:
high
- the high
-
getMedium
public java.lang.Integer getMedium()Gets medium.- Returns:
- the medium
-
setMedium
public void setMedium(java.lang.Integer medium)Sets medium.- Parameters:
medium
- the medium
-
getLow
public java.lang.Integer getLow()Gets low.- Returns:
- the low
-
setLow
public void setLow(java.lang.Integer low)Sets low.- Parameters:
low
- the low
-
getInfo
public java.lang.Integer getInfo()Gets info.- Returns:
- the info
-
setInfo
public void setInfo(java.lang.Integer info)Sets info.- Parameters:
info
- the info
-
getSeverity
public java.lang.Integer getSeverity()Gets severity.- Returns:
- the severity
-
setSeverity
public void setSeverity(java.lang.Integer severity)Sets severity.- Parameters:
severity
- the severity
-
getHostname
Gets hostname.- Returns:
- the hostname
-
setHostname
Sets hostname.- Parameters:
hostname
- the hostname
-