Class PluginRiskInformation
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.template.HashLookupTemplate<PluginRiskInformation>
tenapull.data.entity.objectLookup.PluginRiskInformation
- All Implemented Interfaces:
java.lang.Comparable<PluginRiskInformation>
,DbPojo
,HashLookupPojo<PluginRiskInformation>
@Entity(name="PluginRiskInformation") public class PluginRiskInformation extends HashLookupTemplate<PluginRiskInformation>
Represents a reusable "object lookup", for the "risk_information" object included
in the plugin attributes returned from the Nessus API at /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static HashLookupDao<PluginRiskInformation>
dao
The dao for PluginRiskInformation -
Constructor Summary
Constructors Constructor Description PluginRiskInformation()
-
Method Summary
Modifier and Type Method Description boolean
_match(PluginRiskInformation 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(PluginRiskInformation o)
Synchronize the values of two matching POJOs which represent the same DB recordVulnerabilityScore
getCvss3BaseScore()
Gets cvss 3 base score.VulnerabilityScore
getCvss3TemporalScore()
Gets cvss 3 temporal score.CvssTemporalVector
getCvss3TemporalVector()
Gets cvss 3 temporal vector.CvssVector
getCvss3Vector()
Gets cvss 3 vector.VulnerabilityScore
getCvssBaseScore()
Gets cvss base score.VulnerabilityScore
getCvssTemporalScore()
Gets cvss temporal score.CvssTemporalVector
getCvssTemporalVector()
Gets cvss temporal vector.CvssVector
getCvssVector()
Gets cvss vector.PluginRiskFactor
getRiskFactor()
Gets risk factor.void
setCvss3BaseScore(VulnerabilityScore cvss3BaseScore)
Sets cvss 3 base score.void
setCvss3TemporalScore(VulnerabilityScore cvss3TemporalScore)
Sets cvss 3 temporal score.void
setCvss3TemporalVector(CvssTemporalVector cvss3TemporalVector)
Sets cvss 3 temporal vector.void
setCvss3Vector(CvssVector cvss3Vector)
Sets cvss 3 vector.void
setCvssBaseScore(VulnerabilityScore cvssBaseScore)
Sets cvss base score.void
setCvssTemporalScore(VulnerabilityScore cvssTemporalScore)
Sets cvss temporal score.void
setCvssTemporalVector(CvssTemporalVector cvssTemporalVector)
Sets cvss temporal vector.void
setCvssVector(CvssVector cvssVector)
Sets cvss vector.void
setRiskFactor(PluginRiskFactor riskFactor)
Sets risk factor.Methods inherited from class tenapull.data.entity.template.HashLookupTemplate
__prepare, __set, _isHashCalculated, get_hash, hashCode, set_hash
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, 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
-
Field Details
-
dao
The dao for PluginRiskInformation
-
-
Constructor Details
-
PluginRiskInformation
public PluginRiskInformation()
-
-
Method Details
-
_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:HashLookupPojo
Synchronize the values of two matching POJOs which represent the same DB record- Parameters:
o
- the other pojo representing the same DB record, which the values should be taken from
-
_match
Description copied from interface:HashLookupPojo
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.- Parameters:
o
- other pojo to match- Returns:
- true if the two pojos represent the same DB record, false if not
-
getRiskFactor
Gets risk factor.- Returns:
- the risk factor
-
setRiskFactor
Sets risk factor.- Parameters:
riskFactor
- the risk factor
-
getCvssBaseScore
Gets cvss base score.- Returns:
- the cvss base score
-
setCvssBaseScore
Sets cvss base score.- Parameters:
cvssBaseScore
- the cvss base score
-
getCvssVector
Gets cvss vector.- Returns:
- the cvss vector
-
setCvssVector
Sets cvss vector.- Parameters:
cvssVector
- the cvss vector
-
getCvssTemporalScore
Gets cvss temporal score.- Returns:
- the cvss temporal score
-
setCvssTemporalScore
Sets cvss temporal score.- Parameters:
cvssTemporalScore
- the cvss temporal score
-
getCvssTemporalVector
Gets cvss temporal vector.- Returns:
- the cvss temporal vector
-
setCvssTemporalVector
Sets cvss temporal vector.- Parameters:
cvssTemporalVector
- the cvss temporal vector
-
getCvss3BaseScore
Gets cvss 3 base score.- Returns:
- the cvss 3 base score
-
setCvss3BaseScore
Sets cvss 3 base score.- Parameters:
cvss3BaseScore
- the cvss 3 base score
-
getCvss3Vector
Gets cvss 3 vector.- Returns:
- the cvss 3 vector
-
setCvss3Vector
Sets cvss 3 vector.- Parameters:
cvss3Vector
- the cvss 3 vector
-
getCvss3TemporalScore
Gets cvss 3 temporal score.- Returns:
- the cvss 3 temporal score
-
setCvss3TemporalScore
Sets cvss 3 temporal score.- Parameters:
cvss3TemporalScore
- the cvss 3 temporal score
-
getCvss3TemporalVector
Gets cvss 3 temporal vector.- Returns:
- the cvss 3 temporal vector
-
setCvss3TemporalVector
Sets cvss 3 temporal vector.- Parameters:
cvss3TemporalVector
- the cvss 3 temporal vector
-