Package tenapull.data.entity.scan
Class Scan
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.NaturalIdPojo
tenapull.data.entity.scan.Scan
- All Implemented Interfaces:
DbPojo
@Entity(name="Scan") public class Scan extends NaturalIdPojo
Represents a scan object returned by the Nessus API in /scans
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Scan()
Instantiates a new Scan. -
Method Summary
Modifier and Type Method Description void
_prepare()
Perform any operations necessary to prepare this pojo for insertion or updating in the databasejava.sql.Timestamp
getCreationDate()
Gets creation date.java.lang.Integer
getFolderId()
Gets folder id.java.sql.Timestamp
getLastModificationDate()
Gets last modification date.java.lang.Integer
getLiveResults()
Gets live results.java.lang.String
getName()
Gets name.ScanOwner
getOwner()
Gets owner.java.lang.String
getRrules()
Gets rrules.ScanResponse
getScanResponse()
Standard getters/setters belowjava.lang.String
getStartTime()
Gets start time.ScanStatus
getStatus()
Gets status.Timezone
getTimezone()
Gets timezone.ScanType
getType()
Gets type.java.lang.Integer
getUserPermissions()
Gets user permissions.ScanUuid
getUuid()
Gets uuid.boolean
isControl()
Is control boolean.boolean
isEnabled()
Is enabled boolean.boolean
isRead()
Is read boolean.boolean
isShared()
Is shared boolean.void
setControl(boolean control)
Sets control.void
setCreationDate(java.sql.Timestamp creationDate)
Sets creation date.void
setEnabled(boolean enabled)
Sets enabled.void
setFolderId(java.lang.Integer folderId)
Sets folder id.void
setLastModificationDate(java.sql.Timestamp lastModificationDate)
Sets last modification date.void
setLiveResults(java.lang.Integer liveResults)
Sets live results.void
setName(java.lang.String name)
Sets name.void
setOwner(ScanOwner owner)
Sets owner.void
setRead(boolean read)
Sets read.void
setRrules(java.lang.String rrules)
Sets rrules.void
setScanResponse(ScanResponse scanResponse)
Sets scan response.void
setShared(boolean shared)
Sets shared.void
setStartTime(java.lang.String startTime)
Sets start time.void
setStatus(ScanStatus status)
Sets status.void
setTimezone(Timezone timezone)
Sets timezone.void
setType(ScanType type)
Sets type.void
setUserPermissions(java.lang.Integer userPermissions)
Sets user permissions.void
setUuid(ScanUuid uuid)
Sets uuid.Methods inherited from class tenapull.data.entity.template.NaturalIdPojo
__set, equals, getId, hashCode, setId
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toString
-
Field Details
-
Constructor Details
-
Scan
public Scan()Instantiates a new Scan.
-
-
Method Details
-
getScanResponse
Standard getters/setters below- Returns:
- the scan response
-
setScanResponse
Sets scan response.- Parameters:
scanResponse
- the scan response
-
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
-
getUuid
Gets uuid.- Returns:
- the uuid
-
setUuid
Sets uuid.- Parameters:
uuid
- the uuid
-
getFolderId
public java.lang.Integer getFolderId()Gets folder id.- Returns:
- the folder id
-
setFolderId
public void setFolderId(java.lang.Integer folderId)Sets folder id.- Parameters:
folderId
- the folder id
-
getOwner
Gets owner.- Returns:
- the owner
-
setOwner
Sets owner.- Parameters:
owner
- the owner
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type
-
getRrules
public java.lang.String getRrules()Gets rrules.- Returns:
- the rrules
-
setRrules
public void setRrules(java.lang.String rrules)Sets rrules.- Parameters:
rrules
- the rrules
-
isRead
public boolean isRead()Is read boolean.- Returns:
- the boolean
-
setRead
public void setRead(boolean read)Sets read.- Parameters:
read
- the read
-
isShared
public boolean isShared()Is shared boolean.- Returns:
- the boolean
-
setShared
public void setShared(boolean shared)Sets shared.- Parameters:
shared
- the shared
-
isEnabled
public boolean isEnabled()Is enabled boolean.- Returns:
- the boolean
-
setEnabled
public void setEnabled(boolean enabled)Sets enabled.- Parameters:
enabled
- the enabled
-
isControl
public boolean isControl()Is control boolean.- Returns:
- the boolean
-
setControl
public void setControl(boolean control)Sets control.- Parameters:
control
- the control
-
getUserPermissions
public java.lang.Integer getUserPermissions()Gets user permissions.- Returns:
- the user permissions
-
setUserPermissions
public void setUserPermissions(java.lang.Integer userPermissions)Sets user permissions.- Parameters:
userPermissions
- the user permissions
-
getStatus
Gets status.- Returns:
- the status
-
setStatus
Sets status.- Parameters:
status
- the status
-
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
-
getStartTime
public java.lang.String getStartTime()Gets start time.- Returns:
- the start time
-
setStartTime
public void setStartTime(java.lang.String startTime)Sets start time.- Parameters:
startTime
- the start time
-
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
-
getTimezone
Gets timezone.- Returns:
- the timezone
-
setTimezone
Sets timezone.- Parameters:
timezone
- the timezone
-
getLiveResults
public java.lang.Integer getLiveResults()Gets live results.- Returns:
- the live results
-
setLiveResults
public void setLiveResults(java.lang.Integer liveResults)Sets live results.- Parameters:
liveResults
- the live results
-
_prepare
public void _prepare()Description copied from interface:DbPojo
Perform any operations necessary to prepare this pojo for insertion or updating in the database
-