Class PluginHost

java.lang.Object
All Implemented Interfaces:
DbPojo, MapLookupPojo<PluginHost>

@Entity(name="PluginHost")
public class PluginHost
extends GeneratedIdPojo
implements MapLookupPojo<PluginHost>
Represents a reusable "object lookup", for an object in the hosts list within each plugin returned from the Nessus API at /scans/<scan-id>
  • Field Details

  • Constructor Details

  • Method Details

    • getHostIp

      public HostIp getHostIp()
      Gets host ip.
      Returns:
      the host ip
    • setHostIp

      public void setHostIp​(HostIp hostIp)
      Sets host ip.
      Parameters:
      hostIp - the host ip
    • getHostId

      public java.lang.Integer getHostId()
      Gets host id.
      Returns:
      the host id
    • setHostId

      public void setHostId​(java.lang.Integer hostId)
      Sets host id.
      Parameters:
      hostId - the host id
    • getHostFqdn

      public HostFqdn getHostFqdn()
      Gets host fqdn.
      Returns:
      the host fqdn
    • setHostFqdn

      public void setHostFqdn​(HostFqdn hostFqdn)
      Sets host fqdn.
      Parameters:
      hostFqdn - the host fqdn
    • getHostname

      public Hostname getHostname()
      Gets hostname.
      Returns:
      the hostname
    • setHostname

      public void setHostname​(Hostname hostname)
      Sets hostname.
      Parameters:
      hostname - the hostname
    • _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​(PluginHost 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<PluginHost>
    • _match

      public boolean _match​(PluginHost 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<PluginHost>
      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<PluginHost>
      Returns: