Package tenapull.data.entity.scan
Class ScanHistory
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.response.NessusResponse.MultiChildTemplate<POJO,ScanResponse>
tenapull.data.entity.response.ScanResponse.MultiChild<POJO>
tenapull.data.entity.response.ScanResponse.MultiChildLookup<ScanHistory>
tenapull.data.entity.scan.ScanHistory
- All Implemented Interfaces:
NessusResponse.ResponseChild<ScanHistory,ScanResponse>
,ScanResponse.ScanResponseChild<ScanHistory>
,DbPojo
,MapLookupPojo<ScanHistory>
@Entity(name="ScanHistory") public class ScanHistory extends ScanResponse.MultiChildLookup<ScanHistory> implements MapLookupPojo<ScanHistory>
Represents an object from the history array returned by the Nessus API in /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<ScanHistory>
dao
The dao for ScanHistory -
Constructor Summary
Constructors Constructor Description ScanHistory()
-
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(ScanHistory 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(ScanHistory o)
Set the values in this POJO to be identical to another POJO representing the same DB recordjava.lang.Boolean
getAltTargetsUsed()
Gets alt targets used.java.sql.Timestamp
getCreationDate()
Gets creation date.java.lang.Integer
getHistoryId()
Gets history id.java.sql.Timestamp
getLastModificationDate()
Gets last modification date.java.lang.String
getNodeHost()
Gets node host.java.lang.Integer
getNodeId()
Gets node id.java.lang.String
getNodeName()
Gets node name.java.lang.Integer
getOwnerId()
Gets owner id.java.lang.Integer
getScanGroup()
Gets scan group.java.lang.Integer
getScheduler()
Gets scheduler.ScanScheduleType
getScheduleType()
Gets schedule type.ScanStatus
getStatus()
Gets status.ScanType
getType()
Gets type.ScanUuid
getUuid()
Gets uuid.void
setAltTargetsUsed(java.lang.Boolean altTargetsUsed)
Sets alt targets used.void
setCreationDate(java.sql.Timestamp creationDate)
Sets creation date.void
setHistoryId(java.lang.Integer historyId)
Sets history id.void
setLastModificationDate(java.sql.Timestamp lastModificationDate)
Sets last modification date.void
setNodeHost(java.lang.String nodeHost)
Sets node host.void
setNodeId(java.lang.Integer nodeId)
Sets node id.void
setNodeName(java.lang.String nodeName)
Sets node name.void
setOwnerId(java.lang.Integer ownerId)
Sets owner id.void
setScanGroup(java.lang.Integer scanGroup)
Sets scan group.void
setScheduler(java.lang.Integer scheduler)
Sets scheduler.void
setScheduleType(ScanScheduleType scheduleType)
Sets schedule type.void
setStatus(ScanStatus status)
Sets status.void
setType(ScanType type)
Sets type.void
setUuid(ScanUuid uuid)
Sets uuid.Methods inherited from class tenapull.data.entity.response.NessusResponse.MultiChildTemplate
__match, __set, equals, getResponse, setResponse
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
Methods inherited from interface tenapull.data.entity.response.NessusResponse.ResponseChild
getResponse, setResponse
-
Field Details
-
dao
The dao for ScanHistory
-
-
Constructor Details
-
ScanHistory
public ScanHistory()
-
-
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:MapLookupPojo
Set the values in this POJO to be identical to another POJO representing the same DB record- Specified by:
_set
in interfaceMapLookupPojo<ScanHistory>
-
_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<ScanHistory>
- 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<ScanHistory>
- Returns:
-
getAltTargetsUsed
public java.lang.Boolean getAltTargetsUsed()Gets alt targets used.- Returns:
- the alt targets used
-
setAltTargetsUsed
public void setAltTargetsUsed(java.lang.Boolean altTargetsUsed)Sets alt targets used.- Parameters:
altTargetsUsed
- the alt targets used
-
getScheduler
public java.lang.Integer getScheduler()Gets scheduler.- Returns:
- the scheduler
-
setScheduler
public void setScheduler(java.lang.Integer scheduler)Sets scheduler.- Parameters:
scheduler
- the scheduler
-
getNodeName
public java.lang.String getNodeName()Gets node name.- Returns:
- the node name
-
setNodeName
public void setNodeName(java.lang.String nodeName)Sets node name.- Parameters:
nodeName
- the node name
-
getNodeHost
public java.lang.String getNodeHost()Gets node host.- Returns:
- the node host
-
setNodeHost
public void setNodeHost(java.lang.String nodeHost)Sets node host.- Parameters:
nodeHost
- the node host
-
getScanGroup
public java.lang.Integer getScanGroup()Gets scan group.- Returns:
- the scan group
-
setScanGroup
public void setScanGroup(java.lang.Integer scanGroup)Sets scan group.- Parameters:
scanGroup
- the scan group
-
getNodeId
public java.lang.Integer getNodeId()Gets node id.- Returns:
- the node id
-
setNodeId
public void setNodeId(java.lang.Integer nodeId)Sets node id.- Parameters:
nodeId
- the node id
-
getScheduleType
Gets schedule type.- Returns:
- the schedule type
-
setScheduleType
Sets schedule type.- Parameters:
scheduleType
- the schedule type
-
getStatus
Gets status.- Returns:
- the status
-
setStatus
Sets status.- Parameters:
status
- the status
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type
-
getUuid
Gets uuid.- Returns:
- the uuid
-
setUuid
Sets uuid.- Parameters:
uuid
- the uuid
-
getLastModificationDate
public java.sql.Timestamp getLastModificationDate()Gets last modification date.- Returns:
- the last modification date
-
setLastModificationDate
public void setLastModificationDate(java.sql.Timestamp lastModificationDate)Sets last modification date.- Parameters:
lastModificationDate
- the last modification date
-
getCreationDate
public java.sql.Timestamp getCreationDate()Gets creation date.- Returns:
- the creation date
-
setCreationDate
public void setCreationDate(java.sql.Timestamp creationDate)Sets creation date.- Parameters:
creationDate
- the creation date
-
getOwnerId
public java.lang.Integer getOwnerId()Gets owner id.- Returns:
- the owner id
-
setOwnerId
public void setOwnerId(java.lang.Integer ownerId)Sets owner id.- Parameters:
ownerId
- the owner id
-
getHistoryId
public java.lang.Integer getHistoryId()Gets history id.- Returns:
- the history id
-
setHistoryId
public void setHistoryId(java.lang.Integer historyId)Sets history id.- Parameters:
historyId
- the history id
-