Class Vulnerability
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.objectLookup.Vulnerability
- All Implemented Interfaces:
DbPojo,MapLookupPojo<Vulnerability>
@Entity(name="Vulnerability") public class Vulnerability extends GeneratedIdPojo implements MapLookupPojo<Vulnerability>
Represents a reusable "object lookup", for the objects in the "vulnerabilities" array
returned from the Nessus API at both /scans/<scan-id> AND /scans/<scan-id>/hosts/<host-d>
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<Vulnerability>daoThe dao for Vulnerability -
Constructor Summary
Constructors Constructor Description Vulnerability() -
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(Vulnerability 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(Vulnerability o)Set the values in this POJO to be identical to another POJO representing the same DB recordbooleanequals(java.lang.Object o)java.lang.IntegergetCount()Gets count.CpegetCpe()Gets cpe.java.lang.BooleangetOffline()Gets offline.PluginFamilygetPluginFamily()Gets plugin family.java.lang.IntegergetPluginId()Gets plugin id.PluginNamegetPluginName()Gets plugin name.VulnerabilityScoregetScore()Gets score.java.lang.IntegergetSeverity()Gets severity.java.lang.IntegergetSeverityIndex()Gets severity index.java.lang.IntegergetSnoozed()Gets snoozed.java.lang.IntegergetVulnIndex()Gets vuln index.voidsetCount(java.lang.Integer count)Sets count.voidsetCpe(Cpe cpe)Sets cpe.voidsetOffline(java.lang.Boolean offline)Sets offline.voidsetPluginFamily(PluginFamily pluginFamily)Sets plugin family.voidsetPluginId(java.lang.Integer pluginId)Sets plugin id.voidsetPluginName(PluginName pluginName)Sets plugin name.voidsetScore(VulnerabilityScore score)Sets score.voidsetSeverity(java.lang.Integer severity)Sets severity.voidsetSeverityIndex(java.lang.Integer severityIndex)Sets severity index.voidsetSnoozed(java.lang.Integer snoozed)Sets snoozed.voidsetVulnIndex(java.lang.Integer vulnIndex)Sets vuln index.Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__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, toJsonString
-
Field Details
-
dao
The dao for Vulnerability
-
-
Constructor Details
-
Vulnerability
public Vulnerability()
-
-
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 -
getCount
public java.lang.Integer getCount()Gets count.- Returns:
- the count
-
setCount
public void setCount(java.lang.Integer count)Sets count.- Parameters:
count- the count
-
getCpe
Gets cpe.- Returns:
- the cpe
-
setCpe
Sets cpe.- Parameters:
cpe- the cpe
-
getOffline
public java.lang.Boolean getOffline()Gets offline.- Returns:
- the offline
-
setOffline
public void setOffline(java.lang.Boolean offline)Sets offline.- Parameters:
offline- the offline
-
getPluginFamily
Gets plugin family.- Returns:
- the plugin family
-
setPluginFamily
Sets plugin family.- Parameters:
pluginFamily- the plugin family
-
getPluginId
public java.lang.Integer getPluginId()Gets plugin id.- Returns:
- the plugin id
-
setPluginId
public void setPluginId(java.lang.Integer pluginId)Sets plugin id.- Parameters:
pluginId- the plugin id
-
getPluginName
Gets plugin name.- Returns:
- the plugin name
-
setPluginName
Sets plugin name.- Parameters:
pluginName- the plugin name
-
getScore
Gets score.- Returns:
- the score
-
setScore
Sets score.- Parameters:
score- the score
-
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
-
getSeverityIndex
public java.lang.Integer getSeverityIndex()Gets severity index.- Returns:
- the severity index
-
setSeverityIndex
public void setSeverityIndex(java.lang.Integer severityIndex)Sets severity index.- Parameters:
severityIndex- the severity index
-
getSnoozed
public java.lang.Integer getSnoozed()Gets snoozed.- Returns:
- the snoozed
-
setSnoozed
public void setSnoozed(java.lang.Integer snoozed)Sets snoozed.- Parameters:
snoozed- the snoozed
-
getVulnIndex
public java.lang.Integer getVulnIndex()Gets vuln index.- Returns:
- the vuln index
-
setVulnIndex
public void setVulnIndex(java.lang.Integer vulnIndex)Sets vuln index.- Parameters:
vulnIndex- the vuln index
-
_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<Vulnerability>
-
_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<Vulnerability>- Parameters:
o- the other pojo to match- Returns:
- true if the two pojos represent the same DB record, false if not
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classGeneratedIdPojo
-
_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<Vulnerability>- Returns:
-