Class SecurityMethod

java.lang.Object
org.ivoa.dm.registry.voresource.SecurityMethod
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="VOResource:SecurityMethod", role=objectType) public class SecurityMethod extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a description of a security mechanism. This type only allows one to refer to the mechanism via a URI. Derived types would allow for more metadata. objectType: SecurityMethod
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • standardID

      @VoDml(id="VOResource:SecurityMethod.standardID", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String standardID
      A URI identifier for a standard security mechanism. This provides a unique way to refer to a security specification standard. The use of an IVOA identifier here implies that a VOResource description of the standard is registered and accessible. : Attribute standardID : multiplicity 1
  • Constructor Details

    • SecurityMethod

      public SecurityMethod()
      Creates a new SecurityMethod
    • SecurityMethod

      public SecurityMethod(String standardID)
      full parameter constructor.
      Parameters:
      standardID - A URI identifier for a standard security mechanism. This provides a unique way to refer to a security specification standard. The use of an IVOA identifier here implies that a VOResource description of the standard is registered and accessible.
    • SecurityMethod

      public SecurityMethod(SecurityMethod 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(SecurityMethod 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.
    • getStandardID

      public String getStandardID()
      Returns standardID Attribute.
      Returns:
      standardID Attribute
    • setStandardID

      public void setStandardID(String pStandardID)
      Set standardID Attribute.
      Parameters:
      pStandardID - value to set
    • withStandardID

      public SecurityMethod withStandardID(String pStandardID)
      fluent setter for standardID Attribute.
      Parameters:
      pStandardID - value to set
      Returns:
      SecurityMethod
    • createSecurityMethod

      public static SecurityMethod createSecurityMethod(Consumer<SecurityMethod.SecurityMethodBuilder> f)
      create a SecurityMethod 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>