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>daoThe 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.IntegergetCritical()Gets critical.java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>getExtraJsonMap()Gets extra json map for serializationjava.lang.IntegergetHigh()Gets high.java.lang.IntegergetHostId()Gets host id.java.lang.IntegergetHostIndex()Gets host index.HostnamegetHostname()Gets hostname.java.lang.IntegergetInfo()Gets info.java.lang.IntegergetLow()Gets low.java.lang.IntegergetMedium()Gets medium.java.lang.IntegergetNumChecksConsidered()Gets num checks considered.java.lang.IntegergetOfflineCritical()Gets offline critical.java.lang.IntegergetOfflineHigh()Gets offline high.java.lang.IntegergetOfflineInfo()Gets offline info.java.lang.IntegergetOfflineLow()Gets offline low.java.lang.IntegergetOfflineMedium()Gets offline medium.java.lang.StringgetProgress()Gets progress.java.lang.IntegergetScanProgressCurrent()Gets scan progress current.java.lang.IntegergetScanProgressTotal()Gets scan progress total.java.lang.IntegergetScore()Gets score.java.lang.IntegergetSeverity()Gets severity.SeverityCountgetSeveritycount()Gets severitycount.java.util.List<SeverityLevelCount>getSeverityCounts()Gets severity counts.java.lang.IntegergetTotalChecksConsidered()Gets total checks considered.voidputExtraJson(java.lang.String key, java.lang.Object value)Puts extra json during deserializationvoidsetCritical(java.lang.Integer critical)Sets critical.voidsetHigh(java.lang.Integer high)Sets high.voidsetHostId(java.lang.Integer hostId)Sets host id.voidsetHostIndex(java.lang.Integer hostIndex)Sets host index.voidsetHostname(Hostname hostname)Sets hostname.voidsetInfo(java.lang.Integer info)Sets info.voidsetLow(java.lang.Integer low)Sets low.voidsetMedium(java.lang.Integer medium)Sets medium.voidsetNumChecksConsidered(java.lang.Integer numChecksConsidered)Sets num checks considered.voidsetOfflineCritical(java.lang.Integer offlineCritical)Sets offline critical.voidsetOfflineHigh(java.lang.Integer offlineHigh)Sets offline high.voidsetOfflineInfo(java.lang.Integer offlineInfo)Sets offline info.voidsetOfflineLow(java.lang.Integer offlineLow)Sets offline low.voidsetOfflineMedium(java.lang.Integer offlineMedium)Sets offline medium.voidsetProgress(java.lang.String progress)Sets progress.voidsetScanProgressCurrent(java.lang.Integer scanProgressCurrent)Sets scan progress current.voidsetScanProgressTotal(java.lang.Integer scanProgressTotal)Sets scan progress total.voidsetScore(java.lang.Integer score)Sets score.voidsetSeverity(java.lang.Integer severity)Sets severity.voidsetSeveritycount(SeverityCount severitycount)Sets severitycount.voidsetSeverityCounts(java.util.List<SeverityLevelCount> severityCounts)Sets severity counts.voidsetTotalChecksConsidered(java.lang.Integer totalChecksConsidered)Sets total checks considered.Methods inherited from class tenapull.data.entity.response.NessusResponse.MultiChildTemplate
__match, __set, equals, getResponse, setResponseMethods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, getId, hashCode, setIdMethods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, 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, 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:DbPojoPerform any operations necessary to prepare this pojo for insertion or updating in the database -
_set
Description copied from interface:MapLookupPojoSet the values in this POJO to be identical to another POJO representing the same DB record- Specified by:
_setin interfaceMapLookupPojo<ScanHost>
-
_match
Description copied from interface:MapLookupPojoDetermine 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:
_matchin 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:MapLookupPojoReturn 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:
_getSearchMapin interfaceMapLookupPojo<ScanHost>- Returns:
-
getExtraJsonMap
public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getExtraJsonMap()Description copied from class:ExtensibleJsonPojoGets extra json map for serialization- Overrides:
getExtraJsonMapin classExtensibleJsonPojo- Returns:
- the extra json map
-
putExtraJson
public void putExtraJson(java.lang.String key, java.lang.Object value)Description copied from class:ExtensibleJsonPojoPuts extra json during deserialization- Overrides:
putExtraJsonin 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
-