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

    • dao

      public static final Dao<Scan> dao
      The dao for Scan
    • logger

      public static final org.apache.logging.log4j.Logger logger
      The logger for Scan
  • Constructor Details

    • Scan

      public Scan()
      Instantiates a new Scan.
  • Method Details

    • getScanResponse

      public ScanResponse getScanResponse()
      Standard getters/setters below
      Returns:
      the scan response
    • setScanResponse

      public void setScanResponse​(ScanResponse scanResponse)
      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

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

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

      public ScanOwner getOwner()
      Gets owner.
      Returns:
      the owner
    • setOwner

      public void setOwner​(ScanOwner owner)
      Sets owner.
      Parameters:
      owner - the owner
    • getType

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

      public void setType​(ScanType type)
      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

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

      public void setStatus​(ScanStatus status)
      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

      public Timezone getTimezone()
      Gets timezone.
      Returns:
      the timezone
    • setTimezone

      public void setTimezone​(Timezone timezone)
      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