Class Curation

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

@Entity @VoDml(id="VOResource:Curation", role=objectType) public class Curation extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Information regarding the general curation of a resource . objectType: Curation
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • publisher

      @VoDml(id="VOResource:Curation.publisher", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected ResourceName publisher
      Entity (e.g. person or organisation) responsible for making the resource available . : Attribute publisher : multiplicity 1
    • creator

      @VoDml(id="VOResource:Curation.creator", role=composition, type="VOResource:Creator", typeRole=objectType) protected List<Creator> creator
      The entity/ies (e.g. person(s) or organisation) primarily responsible for creating the content or constitution of the resource. This is the equivalent of the author of a publication. composition creator : ( Multiplicity : 0..* )
    • contributor

      @VoDml(id="VOResource:Curation.contributor", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> contributor
      Entity responsible for contributions to the content of the resource . : Attribute contributor : multiplicity 0..*
    • date

      @VoDml(id="VOResource:Curation.date", role=attribute, type="VOResource:Date", typeRole=dataType) protected List<Date> date
      Date associated with an event in the life cycle of the resource. This will typically be associated with the creation or availability (i.e., most recent release or version) of the resource. Use the role attribute to clarify. : Attribute date : multiplicity 0..*
    • version

      @VoDml(id="VOResource:Curation.version", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String version
      Label associated with creation or availablilty of a version of a resource. : Attribute version : multiplicity 0..1
    • contact

      @VoDml(id="VOResource:Curation.contact", role=composition, type="VOResource:Contact", typeRole=objectType) protected List<Contact> contact
      Information that can be used for contacting someone with regard to this resource. composition contact : ( Multiplicity : 1..* )
  • Constructor Details

    • Curation

      public Curation()
      Creates a new Curation
    • Curation

      public Curation(ResourceName publisher, List<Creator> creator, List<ResourceName> contributor, List<Date> date, String version, List<Contact> contact)
      full parameter constructor.
      Parameters:
      publisher - Entity (e.g. person or organisation) responsible for making the resource available .
      creator - The entity/ies (e.g. person(s) or organisation) primarily responsible for creating the content or constitution of the resource. This is the equivalent of the author of a publication.
      contributor - Entity responsible for contributions to the content of the resource .
      date - Date associated with an event in the life cycle of the resource. This will typically be associated with the creation or availability (i.e., most recent release or version) of the resource. Use the role attribute to clarify.
      version - Label associated with creation or availablilty of a version of a resource.
      contact - Information that can be used for contacting someone with regard to this resource.
    • Curation

      public Curation(Curation 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(Curation 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.
    • getPublisher

      public ResourceName getPublisher()
      Returns publisher Attribute.
      Returns:
      publisher Attribute
    • setPublisher

      public void setPublisher(ResourceName pPublisher)
      Set publisher Attribute.
      Parameters:
      pPublisher - value to set
    • withPublisher

      public Curation withPublisher(ResourceName pPublisher)
      fluent setter for publisher Attribute.
      Parameters:
      pPublisher - value to set
      Returns:
      Curation
    • getCreator

      public List<Creator> getCreator()
      Returns creator composition as an immutable list.
      Returns:
      creator composition.
    • setCreator

      public void setCreator(List<Creator> pCreator)
      Defines whole creator composition.
      Parameters:
      pCreator - composition to set.
    • addToCreator

      public void addToCreator(Creator p)
      Add a org.ivoa.dm.registry.voresource.Creator to the composition.
      Parameters:
      p - org.ivoa.dm.registry.voresource.Creator to add
    • removeFromCreator

      public void removeFromCreator(Creator p)
      Remove a org.ivoa.dm.registry.voresource.Creator from the composition.
      Parameters:
      p - org.ivoa.dm.registry.voresource.Creator to remove
    • replaceInCreator

      public void replaceInCreator(Creator _p)
      update a org.ivoa.dm.registry.voresource.Creator in the composition.
      Parameters:
      _p - org.ivoa.dm.registry.voresource.Creator to update the match is done via the database key
    • getContributor

      public List<ResourceName> getContributor()
      Returns contributor Attribute.
      Returns:
      contributor Attribute
    • setContributor

      public void setContributor(List<ResourceName> pContributor)
      Set contributor Attribute.
      Parameters:
      pContributor - value to set
    • withContributor

      public Curation withContributor(List<ResourceName> pContributor)
      fluent setter for contributor Attribute.
      Parameters:
      pContributor - value to set
      Returns:
      Curation
    • getDate

      public List<Date> getDate()
      Returns date Attribute.
      Returns:
      date Attribute
    • setDate

      public void setDate(List<Date> pDate)
      Set date Attribute.
      Parameters:
      pDate - value to set
    • withDate

      public Curation withDate(List<Date> pDate)
      fluent setter for date Attribute.
      Parameters:
      pDate - value to set
      Returns:
      Curation
    • getVersion

      public String getVersion()
      Returns version Attribute.
      Returns:
      version Attribute
    • setVersion

      public void setVersion(String pVersion)
      Set version Attribute.
      Parameters:
      pVersion - value to set
    • withVersion

      public Curation withVersion(String pVersion)
      fluent setter for version Attribute.
      Parameters:
      pVersion - value to set
      Returns:
      Curation
    • getContact

      public List<Contact> getContact()
      Returns contact composition as an immutable list.
      Returns:
      contact composition.
    • setContact

      public void setContact(List<Contact> pContact)
      Defines whole contact composition.
      Parameters:
      pContact - composition to set.
    • addToContact

      public void addToContact(Contact p)
      Add a org.ivoa.dm.registry.voresource.Contact to the composition.
      Parameters:
      p - org.ivoa.dm.registry.voresource.Contact to add
    • removeFromContact

      public void removeFromContact(Contact p)
      Remove a org.ivoa.dm.registry.voresource.Contact from the composition.
      Parameters:
      p - org.ivoa.dm.registry.voresource.Contact to remove
    • replaceInContact

      public void replaceInContact(Contact _p)
      update a org.ivoa.dm.registry.voresource.Contact in the composition.
      Parameters:
      _p - org.ivoa.dm.registry.voresource.Contact to update the match is done via the database key
    • createCuration

      public static Curation createCuration(Consumer<Curation.CurationBuilder> f)
      create a Curation 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>