Class Plugin
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.objectLookup.Plugin
- All Implemented Interfaces:
DbPojo
,MapLookupPojo<Plugin>
@Entity(name="Plugin") public class Plugin extends GeneratedIdPojo implements MapLookupPojo<Plugin>
Represents a reusable "object lookup", for the plugin objects (except the scan-specific fields, represented
by ScanPlugin) returned from the Nessus API at /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<Plugin>
dao
The dao for Plugin -
Constructor Summary
Constructors Constructor Description Plugin()
-
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(Plugin 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(Plugin o)
Set the values in this POJO to be identical to another POJO representing the same DB recordboolean
equals(java.lang.Object o)
PluginAttributes
getPluginAttributes()
Gets plugin attributes.PluginFamily
getPluginFamily()
Gets plugin family.java.lang.String
getPluginId()
Gets plugin id.PluginName
getPluginName()
Gets plugin name.java.lang.Integer
getSeverity()
Gets severity.void
setPluginAttributes(PluginAttributes pluginAttributes)
Sets plugin attributes.void
setPluginFamily(PluginFamily pluginFamily)
Sets plugin family.void
setPluginId(java.lang.String pluginId)
Sets plugin id.void
setPluginName(PluginName pluginName)
Sets plugin name.void
setSeverity(java.lang.Integer severity)
Sets severity.Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, getId, hashCode, setId
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, 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 Plugin
-
-
Constructor Details
-
Plugin
public Plugin()
-
-
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 -
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
-
getPluginName
Gets plugin name.- Returns:
- the plugin name
-
setPluginName
Sets plugin name.- Parameters:
pluginName
- the plugin name
-
getPluginAttributes
Gets plugin attributes.- Returns:
- the plugin attributes
-
setPluginAttributes
Sets plugin attributes.- Parameters:
pluginAttributes
- the plugin attributes
-
getPluginFamily
Gets plugin family.- Returns:
- the plugin family
-
setPluginFamily
Sets plugin family.- Parameters:
pluginFamily
- the plugin family
-
getPluginId
public java.lang.String getPluginId()Gets plugin id.- Returns:
- the plugin id
-
setPluginId
public void setPluginId(java.lang.String pluginId)Sets plugin id.- Parameters:
pluginId
- the plugin id
-
_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<Plugin>
-
_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<Plugin>
- 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:
equals
in classGeneratedIdPojo
-
_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<Plugin>
- Returns:
-