Class Contact

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

@Entity @VoDml(id="VOResource:Contact", role=objectType) public class Contact extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Information allowing establishing contact, e.g., for purposes of support. objectType: Contact
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="VOResource:Contact.name", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected ResourceName name
      the name or title of the contact person. This can be a person's name, e.g. “John P. Jones” or a group, “Archive Support Team”. : Attribute name : multiplicity 1
    • address

      @VoDml(id="VOResource:Contact.address", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String address
      the contact mailing address All components of the mailing address are given in one string, e.g. “3700 San Martin Drive, Baltimore, MD 21218 USA”. : Attribute address : multiplicity 0..1
    • email

      @VoDml(id="VOResource:Contact.email", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String email
      the contact email address. : Attribute email : multiplicity 0..1
    • telephone

      @VoDml(id="VOResource:Contact.telephone", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String telephone
      the contact telephone number Complete international dialing codes should be given, e.g. “+1-410-338-1234”. : Attribute telephone : multiplicity 0..1
    • altIdentifier

      @VoDml(id="VOResource:Contact.altIdentifier", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected List<String> altIdentifier
      A reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid. Always use a URI form including a scheme here. : Attribute altIdentifier : multiplicity 0..*
    • ivoid

      @VoDml(id="VOResource:Contact.ivoid", role=attribute, type="VOResource:IdentifierURI", typeRole=primitiveType) protected IdentifierURI ivoid
      An IVOA identifier for the contact (typically when it is an organization). : Attribute ivoid : multiplicity 1
  • Constructor Details

    • Contact

      public Contact()
      Creates a new Contact
    • Contact

      public Contact(ResourceName name, String address, String email, String telephone, List<String> altIdentifier, IdentifierURI ivoid)
      full parameter constructor.
      Parameters:
      name - the name or title of the contact person. This can be a person's name, e.g. “John P. Jones” or a group, “Archive Support Team”.
      address - the contact mailing address All components of the mailing address are given in one string, e.g. “3700 San Martin Drive, Baltimore, MD 21218 USA”.
      email - the contact email address.
      telephone - the contact telephone number Complete international dialing codes should be given, e.g. “+1-410-338-1234”.
      altIdentifier - A reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid. Always use a URI form including a scheme here.
      ivoid - An IVOA identifier for the contact (typically when it is an organization).
    • Contact

      public Contact(Contact 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(Contact 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.
    • getName

      public ResourceName getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(ResourceName pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Contact withName(ResourceName pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Contact
    • getAddress

      public String getAddress()
      Returns address Attribute.
      Returns:
      address Attribute
    • setAddress

      public void setAddress(String pAddress)
      Set address Attribute.
      Parameters:
      pAddress - value to set
    • withAddress

      public Contact withAddress(String pAddress)
      fluent setter for address Attribute.
      Parameters:
      pAddress - value to set
      Returns:
      Contact
    • getEmail

      public String getEmail()
      Returns email Attribute.
      Returns:
      email Attribute
    • setEmail

      public void setEmail(String pEmail)
      Set email Attribute.
      Parameters:
      pEmail - value to set
    • withEmail

      public Contact withEmail(String pEmail)
      fluent setter for email Attribute.
      Parameters:
      pEmail - value to set
      Returns:
      Contact
    • getTelephone

      public String getTelephone()
      Returns telephone Attribute.
      Returns:
      telephone Attribute
    • setTelephone

      public void setTelephone(String pTelephone)
      Set telephone Attribute.
      Parameters:
      pTelephone - value to set
    • withTelephone

      public Contact withTelephone(String pTelephone)
      fluent setter for telephone Attribute.
      Parameters:
      pTelephone - value to set
      Returns:
      Contact
    • getAltIdentifier

      public List<String> getAltIdentifier()
      Returns altIdentifier Attribute.
      Returns:
      altIdentifier Attribute
    • setAltIdentifier

      public void setAltIdentifier(List<String> pAltIdentifier)
      Set altIdentifier Attribute.
      Parameters:
      pAltIdentifier - value to set
    • withAltIdentifier

      public Contact withAltIdentifier(List<String> pAltIdentifier)
      fluent setter for altIdentifier Attribute.
      Parameters:
      pAltIdentifier - value to set
      Returns:
      Contact
    • getIvoid

      public IdentifierURI getIvoid()
      Returns ivoid Attribute.
      Returns:
      ivoid Attribute
    • setIvoid

      public void setIvoid(IdentifierURI pIvoid)
      Set ivoid Attribute.
      Parameters:
      pIvoid - value to set
    • withIvoid

      public Contact withIvoid(IdentifierURI pIvoid)
      fluent setter for ivoid Attribute.
      Parameters:
      pIvoid - value to set
      Returns:
      Contact
    • createContact

      public static Contact createContact(Consumer<Contact.ContactBuilder> f)
      create a Contact 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>