Package org.ivoa.dm.registry.voresource
Class Organisation
java.lang.Object
org.ivoa.dm.registry.voresource.Resource
org.ivoa.dm.registry.voresource.Organisation
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOResource:Organisation",
       role=objectType)
public class Organisation
extends Resource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A named group of one or more persons brought together to pursue
                          participation in VO applications.  
                         
                          According to the Resource Metadata Recommendation, organisations 
                          “can be hierarchical and range in size and scope.  At a high level, 
                          an organisation could be a university, observatory, or government
                          agency.  At a finer level, it could be a specific scientific 
                          project, mission, or individual researcher.”
                         
                          The main purpose of an organisation as a registered resource is 
                          to serve as a publisher of other resources.   
 objectType:  Organisation
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Organisation, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.registry.voresource.Resource
Resource.ResourceBuilder - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ResourceName>the observatory or facility used to collect the data contained or managed by this resource.protected List<ResourceName>the Instrument used to collect the data contain or managed by a resource.Fields inherited from class org.ivoa.dm.registry.voresource.Resource
_id, altIdentifier, content, created, curation, identifier, shortName, status, title, updated, validationLevel, version - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OrganisationOrganisation(List<ResourceName> facility, List<ResourceName> instrument, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.Organisation(Organisation other) Copy Constructor.Organisation(Resource superinstance, List<ResourceName> facility, List<ResourceName> instrument) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Organisationcreate a Organisation in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns facility Attribute.Returns instrument Attribute.voidsetFacility(List<ResourceName> pFacility) Set facility Attribute.voidsetInstrument(List<ResourceName> pInstrument) Set instrument Attribute.voidupdateUsing(Organisation other) Update this object with the content of the given object.withFacility(List<ResourceName> pFacility) fluent setter for facility Attribute.withInstrument(List<ResourceName> pInstrument) fluent setter for instrument Attribute.Methods inherited from class org.ivoa.dm.registry.voresource.Resource
createResource, getAltIdentifier, getContent, getCreated, getCuration, getId, getIdentifier, getShortName, getStatus, getTitle, getUpdated, getValidationLevel, getVersion, setAltIdentifier, setContent, setCreated, setCuration, setIdentifier, setShortName, setStatus, setTitle, setUpdated, setValidationLevel, setVersion, updateUsing, withAltIdentifier, withContent, withCreated, withCuration, withIdentifier, withShortName, withStatus, withTitle, withUpdated, withValidationLevel, withVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId 
- 
Field Details
- 
facility
@VoDml(id="VOResource:Organisation.facility", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> facilitythe observatory or facility used to collect the data contained or managed by this resource. : Attribute facility : multiplicity 0..* - 
instrument
@VoDml(id="VOResource:Organisation.instrument", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> instrumentthe Instrument used to collect the data contain or managed by a resource. : Attribute instrument : multiplicity 0..* 
 - 
 - 
Constructor Details
- 
Organisation
public Organisation()Creates a new Organisation - 
Organisation
public Organisation(List<ResourceName> facility, List<ResourceName> instrument, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.- Parameters:
 facility- the observatory or facility used to collect the data contained or managed by this resource.instrument- the Instrument used to collect the data contain or managed by a resource.validationLevel- A numeric grade describing the quality of the resource description, when applicable, to be used to indicate the confidence an end-user can put in the resource as part of a VO application or research study. See VOResource:Validation for an explanation of the allowed levels. Note that when this resource is a Service, this grade applies to the core set of metadata. Capability and interface metadata, as well as the compliance of the service with the interface standard, is rated by validationLevel tag in the capability element (see the VOResource:Service complex type).title- the full name given to the resource .shortName- A short name or abbreviation given to the resource. This name will be used where brief annotations for the resource name are required. Applications may use to refer to this resource in a compact display. One word or a few letters is recommended. No more than sixteen characters are allowed.identifier- Unambiguous reference to the resource conforming to the IVOA standard for identifiers .altIdentifier- A reference to this resource in a non-IVOA identifier scheme, e.g., DOI or bibcode. Always use the an URI scheme here, e.g., doi:10.1016/j.epsl.2011.11.037. For bibcodes, use a form like bibcode:2008ivoa.spec.0222P.curation- Information regarding the general curation of the resource .content- Information regarding the general content of the resource .created- The UTC date and time this resource metadata description was created. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.updated- The UTC date this resource metadata description was last updated. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.status- a tag indicating whether this resource is believed to be still actively maintained.version- The VOResource XML schema version against which this instance was written. Implementors should set this to the value of the version attribute of their schema's root (xs:schema) element. Clients may assume version 1.0 if this attribute is missing.
 - 
Organisation
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
Organisation
public Organisation(Resource superinstance, List<ResourceName> facility, List<ResourceName> instrument) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.facility- the observatory or facility used to collect the data contained or managed by this resource.instrument- the Instrument used to collect the data contain or managed by a resource.
 
 - 
 - 
Method Details
- 
copyMe
make a clone of the object taking into account current polymorhic type. - 
updateUsing
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.
 - 
getFacility
Returns facility Attribute.- Returns:
 - facility Attribute
 
 - 
setFacility
Set facility Attribute.- Parameters:
 pFacility- value to set
 - 
withFacility
fluent setter for facility Attribute.- Parameters:
 pFacility- value to set- Returns:
 - Organisation
 
 - 
getInstrument
Returns instrument Attribute.- Returns:
 - instrument Attribute
 
 - 
setInstrument
Set instrument Attribute.- Parameters:
 pInstrument- value to set
 - 
withInstrument
fluent setter for instrument Attribute.- Parameters:
 pInstrument- value to set- Returns:
 - Organisation
 
 - 
createOrganisation
create a Organisation in functional builder style.- Parameters:
 f- the functional builder.- Returns:
 - an object initialized from the builder.
 
 - 
forceLoad
public void forceLoad() - 
delete
public void delete(jakarta.persistence.EntityManager em)  
 -