Package tenapull.data.entity.splunk
Class HostVulnerabilityOutput
java.lang.Object
tenapull.data.entity.splunk.HostVulnerabilityOutput
- All Implemented Interfaces:
DbPojo
,MapLookupPojo<HostVulnerabilityOutput>
@Entity(name="HostVulnerabilityOutput") public class HostVulnerabilityOutput extends java.lang.Object implements MapLookupPojo<HostVulnerabilityOutput>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostVulnerabilityOutput.ScanHostSummary
static class
HostVulnerabilityOutput.ScanSummary
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<HostVulnerabilityOutput>
dao
static java.lang.String
OUTPUT_SCANNER
-
Constructor Summary
Constructors Constructor Description HostVulnerabilityOutput()
HostVulnerabilityOutput(ScanResponse scanResponse, ScanHost scanHost, ScanHostResponse scanHostResponse, Vulnerability vulnerability, HostOutput hostOutput)
-
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(HostVulnerabilityOutput 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(HostVulnerabilityOutput o)
Set the values in this POJO to be identical to another POJO representing the same DB recordboolean
equals(java.lang.Object o)
void
findHostAndResponses()
boolean
findPlugin()
HostVulnerabilityOutput.ScanHostSummary
getHost()
HostOutput
getHostOutput()
int
getId()
Get the surrogate or natural primary key id for the lookupScanPlugin
getPlugin()
Plugin
getPluginBestGuess()
HostVulnerabilityOutput.ScanSummary
getScan()
ScanHost
getScanHost()
ScanHostResponse
getScanHostResponse()
java.lang.String
getScanner()
ScanResponse
getScanResponse()
java.sql.Timestamp
getScanTimestamp()
Vulnerability
getVulnerability()
int
hashCode()
void
setHostOutput(HostOutput hostOutput)
void
setId(int id)
Set the surrogate or natural primary key id for the lookupvoid
setPlugin(ScanPlugin plugin)
void
setPluginBestGuess(Plugin pluginBestGuess)
void
setScanHost(ScanHost scanHost)
void
setScanHostResponse(ScanHostResponse scanHostResponse)
void
setScanResponse(ScanResponse scanResponse)
void
setScanTimestamp(java.sql.Timestamp scanTimestamp)
void
setVulnerability(Vulnerability vulnerability)
com.fasterxml.jackson.databind.JsonNode
toJsonNode()
Convert the pojo into a JsonNodejava.lang.String
toJsonString()
Convert the pojo into a Json stringjava.lang.String
toString()
-
Field Details
-
dao
-
OUTPUT_SCANNER
public static final java.lang.String OUTPUT_SCANNER
-
-
Constructor Details
-
HostVulnerabilityOutput
public HostVulnerabilityOutput() -
HostVulnerabilityOutput
public HostVulnerabilityOutput(ScanResponse scanResponse, ScanHost scanHost, ScanHostResponse scanHostResponse, Vulnerability vulnerability, HostOutput hostOutput)
-
-
Method Details
-
getScanner
public java.lang.String getScanner() -
_prepare
public void _prepare()Description copied from interface:DbPojo
Perform any operations necessary to prepare this pojo for insertion or updating in the database -
findHostAndResponses
public void findHostAndResponses() -
findPlugin
public boolean findPlugin() throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
_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<HostVulnerabilityOutput>
-
_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<HostVulnerabilityOutput>
- 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<HostVulnerabilityOutput>
- Returns:
-
getId
public int getId()Description copied from interface:DbPojo
Get the surrogate or natural primary key id for the lookup -
setId
public void setId(int id)Description copied from interface:DbPojo
Set the surrogate or natural primary key id for the lookup -
getScanTimestamp
public java.sql.Timestamp getScanTimestamp() -
setScanTimestamp
public void setScanTimestamp(java.sql.Timestamp scanTimestamp) -
getHostOutput
-
setHostOutput
-
getScanHostResponse
-
setScanHostResponse
-
getScanHost
-
setScanHost
-
getScanResponse
-
setScanResponse
-
getHost
-
getVulnerability
-
setVulnerability
-
getPlugin
-
setPlugin
-
getPluginBestGuess
-
setPluginBestGuess
-
getScan
-
toJsonNode
public com.fasterxml.jackson.databind.JsonNode toJsonNode()Description copied from interface:DbPojo
Convert the pojo into a JsonNode- Specified by:
toJsonNode
in interfaceDbPojo
- Returns:
- a JsonNode representing the serialization of this pojo
-
toJsonString
public java.lang.String toJsonString() throws com.fasterxml.jackson.core.JsonProcessingExceptionDescription copied from interface:DbPojo
Convert the pojo into a Json string- Specified by:
toJsonString
in interfaceDbPojo
- Returns:
- a string representing the Json serialization of this pojo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-