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>daoThe 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.BooleangetAltTargetsUsed()Gets alt targets used.java.sql.TimestampgetCreationDate()Gets creation date.java.lang.IntegergetHistoryId()Gets history id.java.sql.TimestampgetLastModificationDate()Gets last modification date.java.lang.StringgetNodeHost()Gets node host.java.lang.IntegergetNodeId()Gets node id.java.lang.StringgetNodeName()Gets node name.java.lang.IntegergetOwnerId()Gets owner id.java.lang.IntegergetScanGroup()Gets scan group.java.lang.IntegergetScheduler()Gets scheduler.ScanScheduleTypegetScheduleType()Gets schedule type.ScanStatusgetStatus()Gets status.ScanTypegetType()Gets type.ScanUuidgetUuid()Gets uuid.voidsetAltTargetsUsed(java.lang.Boolean altTargetsUsed)Sets alt targets used.voidsetCreationDate(java.sql.Timestamp creationDate)Sets creation date.voidsetHistoryId(java.lang.Integer historyId)Sets history id.voidsetLastModificationDate(java.sql.Timestamp lastModificationDate)Sets last modification date.voidsetNodeHost(java.lang.String nodeHost)Sets node host.voidsetNodeId(java.lang.Integer nodeId)Sets node id.voidsetNodeName(java.lang.String nodeName)Sets node name.voidsetOwnerId(java.lang.Integer ownerId)Sets owner id.voidsetScanGroup(java.lang.Integer scanGroup)Sets scan group.voidsetScheduler(java.lang.Integer scheduler)Sets scheduler.voidsetScheduleType(ScanScheduleType scheduleType)Sets schedule type.voidsetStatus(ScanStatus status)Sets status.voidsetType(ScanType type)Sets type.voidsetUuid(ScanUuid uuid)Sets uuid.Methods inherited from class tenapull.data.entity.response.NessusResponse.MultiChildTemplate
__match, __set, equals, getResponse, setResponseMethods 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, toJsonStringMethods 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:DbPojoPerform any operations necessary to prepare this pojo for insertion or updating in the database -
_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<ScanHistory>
-
_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<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: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<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
-