Class Vulnerability

java.lang.Object
org.ivoa.dm.tool.Vulnerability
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="tool:Vulnerability", role=objectType) public class Vulnerability extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a known security vulnerability. objectType: Vulnerability
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • cve

      @VoDml(id="tool:Vulnerability.cve", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cve
      the identifier for the vulnerability. : Attribute cve type ivoa:string : multiplicity 1
  • Constructor Details

    • Vulnerability

      public Vulnerability()
      Creates a new Vulnerability
    • Vulnerability

      public Vulnerability(String cve)
      full parameter constructor.
      Parameters:
      cve - the identifier for the vulnerability.
    • Vulnerability

      public Vulnerability(Vulnerability other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(Vulnerability other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getCve

      public String getCve()
      Returns cve Attribute.
      Returns:
      cve Attribute
    • setCve

      public void setCve(String pCve)
      Set cve Attribute.
      Parameters:
      pCve - value to set
    • withCve

      public Vulnerability withCve(String pCve)
      fluent setter for cve Attribute.
      Parameters:
      pCve - value to set
      Returns:
      Vulnerability
    • createVulnerability

      public static Vulnerability createVulnerability(Consumer<Vulnerability.VulnerabilityBuilder> f)
      create a Vulnerability in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>