Class 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 Details

  • Constructor Details

  • 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
      Specified by:
      _prepare in interface DbPojo
    • _set

      public void _set​(ScanHistory o)
      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 interface MapLookupPojo<ScanHistory>
    • _match

      public boolean _match​(ScanHistory o)
      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 interface MapLookupPojo<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 interface MapLookupPojo<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

      public ScanScheduleType getScheduleType()
      Gets schedule type.
      Returns:
      the schedule type
    • setScheduleType

      public void setScheduleType​(ScanScheduleType scheduleType)
      Sets schedule type.
      Parameters:
      scheduleType - the schedule type
    • getStatus

      public ScanStatus getStatus()
      Gets status.
      Returns:
      the status
    • setStatus

      public void setStatus​(ScanStatus status)
      Sets status.
      Parameters:
      status - the status
    • getType

      public ScanType getType()
      Gets type.
      Returns:
      the type
    • setType

      public void setType​(ScanType type)
      Sets type.
      Parameters:
      type - the type
    • getUuid

      public ScanUuid getUuid()
      Gets uuid.
      Returns:
      the uuid
    • setUuid

      public void setUuid​(ScanUuid uuid)
      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