Class PluginRefInformation
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.template.HashLookupTemplate<PluginRefInformation>
tenapull.data.entity.objectLookup.PluginRefInformation
- All Implemented Interfaces:
java.lang.Comparable<PluginRefInformation>
,DbPojo
,HashLookupPojo<PluginRefInformation>
@Entity(name="PluginRefInformation") public class PluginRefInformation extends HashLookupTemplate<PluginRefInformation>
Represents a reusable "object lookup", for the "ref" 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<PluginRefInformation>
dao
The dao for PluginRefInformation -
Constructor Summary
Constructors Constructor Description PluginRefInformation()
-
Method Summary
Modifier and Type Method Description boolean
_match(PluginRefInformation 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(PluginRefInformation o)
Synchronize the values of two matching POJOs which represent the same DB recordjava.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>
getExtraJsonMap()
Gets extra json map for serializationjava.lang.String
getName()
Gets name.Url
getUrl()
Gets url.java.util.List<PluginRefValue>
getValues()
Gets values.RefValues
getValuesJson()
Gets values json.void
putExtraJson(java.lang.String key, java.lang.Object value)
Puts extra json during deserializationvoid
setName(java.lang.String name)
Sets name.void
setUrl(Url url)
Sets url.void
setValues(java.util.List<PluginRefValue> values)
Sets values.void
setValuesJson(RefValues values)
Sets values json.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, 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 PluginRefInformation
-
-
Constructor Details
-
PluginRefInformation
public PluginRefInformation()
-
-
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
-
getName
public java.lang.String getName()Gets name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)Sets name.- Parameters:
name
- the name
-
getValues
Gets values.- Returns:
- the values
-
setValues
Sets values.- Parameters:
values
- the values
-
getValuesJson
Gets values json.- Returns:
- the values json
-
setValuesJson
Sets values json.- Parameters:
values
- the values
-
getUrl
Gets url.- Returns:
- the url
-
setUrl
Sets url.- Parameters:
url
- the url
-
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
-