public class Dataset extends Object implements NetworkEntity, Contactable, Endpointable, MachineTaggable, Taggable, Identifiable, Commentable, LenientEquals<Dataset>
Constructor and Description |
---|
Dataset() |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(Endpoint endpoint) |
void |
addMachineTag(MachineTag machineTag) |
boolean |
equals(Object o) |
@Size(min=1,max=50) String |
getAbbreviation()
TODO: Document what this is
TODO: are both alias & abbreviation needed?
|
String |
getAdditionalInfo() |
@Size(min=2,max=50) String |
getAlias()
TODO: Document what this is
|
List<Citation> |
getBibliographicCitations() |
@Valid Citation |
getCitation()
The exact form of how to cite this dataset.
|
List<Collection> |
getCollections() |
List<Comment> |
getComments() |
List<Contact> |
getContacts() |
List<CitationContact> |
getContactsCitation()
A generated list of contacts used in the citation text when it is generated by the GBIF API.
|
Set<Country> |
getCountryCoverage() |
Date |
getCreated() |
String |
getCreatedBy() |
List<CuratorialUnitComposite> |
getCuratorialUnits() |
List<DataDescription> |
getDataDescriptions() |
Language |
getDataLanguage() |
Date |
getDeleted() |
String |
getDescription() |
DOI |
getDoi() |
UUID |
getDuplicateOfDatasetKey()
If a dataset is registered with GBIF through more than one place we'll mark all but one as a duplicate by pointing
it to the canonical dataset.
|
List<Endpoint> |
getEndpoints() |
String |
getGeographicCoverageDescription() |
List<GeospatialCoverage> |
getGeographicCoverages() |
URI |
getHomepage() |
List<Identifier> |
getIdentifiers() |
@NotNull UUID |
getInstallationKey() |
UUID |
getKey() |
List<KeywordCollection> |
getKeywordCollections() |
@NotNull Language |
getLanguage() |
License |
getLicense()
Persisted in the database table.
|
URI |
getLogoUrl() |
List<MachineTag> |
getMachineTags() |
String |
getMaintenanceDescription()
A description of the maintenance frequency of this resource.
|
MaintenanceUpdateFrequency |
getMaintenanceUpdateFrequency()
Persisted in the database table.
|
Date |
getModified() |
String |
getModifiedBy() |
List<UUID> |
getNetworkKeys()
Networks in which this dataset is a constituent.
|
@Min(value=0L) int |
getNumConstituents() |
UUID |
getParentDatasetKey() |
Project |
getProject() |
Date |
getPubDate() |
@NotNull UUID |
getPublishingOrganizationKey() |
String |
getPurpose() |
@Size(min=1) String |
getRights()
Any kind of (copy)rights/IPR statements that apply to the datasets data.
|
SamplingDescription |
getSamplingDescription() |
DatasetSubtype |
getSubtype() |
List<Tag> |
getTags() |
List<TaxonomicCoverages> |
getTaxonomicCoverages() |
List<TemporalCoverage> |
getTemporalCoverages() |
String |
getTitle() |
@NotNull DatasetType |
getType() |
String |
getVersion() |
int |
hashCode() |
boolean |
isExternal() |
boolean |
isLockedForAutoUpdate() |
boolean |
lenientEquals(Dataset other)
Only checks the persisted properties, excluding the server controlled fields (key, created, license etc).
|
void |
setAbbreviation(String abbreviation)
Persisted in the database table.
|
void |
setAdditionalInfo(String additionalInfo) |
void |
setAlias(String alias)
Persisted in the database table.
|
void |
setBibliographicCitations(List<Citation> bibliographicCitations) |
void |
setCitation(Citation citation)
Persisted in the database table.
|
void |
setCollections(List<Collection> collections) |
void |
setComments(List<Comment> comments) |
void |
setContacts(List<Contact> contacts) |
void |
setContactsCitation(List<CitationContact> contactsCitation) |
void |
setCountryCoverage(Set<Country> countryCoverage) |
void |
setCreated(Date created)
Autoassigned in the database table, ignored when persisted.
|
void |
setCreatedBy(String createdBy)
Persisted in the database table.
|
void |
setCuratorialUnits(List<CuratorialUnitComposite> curatorialUnits) |
void |
setDataDescriptions(List<DataDescription> dataDescriptions) |
void |
setDataLanguage(Language dataLanguage) |
void |
setDeleted(Date deleted)
Persisted in the database table.
|
void |
setDescription(String description)
Persisted in the database table.
|
void |
setDoi(DOI doi) |
void |
setDuplicateOfDatasetKey(UUID duplicateOfDatasetKey)
Persisted in the database table.
|
void |
setEndpoints(List<Endpoint> endpoints) |
void |
setExternal(boolean external)
Persisted in the database table.
|
void |
setGeographicCoverageDescription(String geographicCoverageDescription) |
void |
setGeographicCoverages(List<GeospatialCoverage> geographicCoverages) |
void |
setHomepage(URI homepage)
Persisted in the database table.
|
void |
setIdentifiers(List<Identifier> identifiers) |
void |
setInstallationKey(UUID installationKey)
Persisted in the database table.
|
void |
setKey(UUID key)
Persisted in the database table.
|
void |
setKeywordCollections(List<KeywordCollection> keywordCollections) |
void |
setLanguage(Language language)
Persisted in the database table.
|
void |
setLicense(License license)
Persisted in the database table.
|
void |
setLockedForAutoUpdate(boolean lockedForAutoUpdate)
Persisted in the database table.
|
void |
setLogoUrl(URI logoUrl)
Persisted in the database table.
|
void |
setMachineTags(List<MachineTag> machineTags) |
void |
setMaintenanceDescription(String maintenanceDescription) |
void |
setMaintenanceUpdateFrequency(MaintenanceUpdateFrequency maintenanceUpdateFrequency)
Persisted in the database table.
|
void |
setModified(Date modified)
Persisted in the database table.
|
void |
setModifiedBy(String modifiedBy)
Persisted in the database table.
|
void |
setNetworkKeys(List<UUID> networkKeys) |
void |
setNumConstituents(int numConstituents)
Not persisted in the database table, but calculated on the fly.
|
void |
setParentDatasetKey(UUID parentDatasetKey)
Persisted in the database table.
|
void |
setProject(Project project) |
void |
setPubDate(Date pubDate) |
void |
setPublishingOrganizationKey(UUID publishingOrganizationKey)
Persisted in the database table.
|
void |
setPurpose(String purpose) |
void |
setRights(String rights)
Persisted in the database table.
|
void |
setSamplingDescription(SamplingDescription samplingDescription) |
void |
setSubtype(DatasetSubtype subtype)
Persisted in the database table.
|
void |
setTags(List<Tag> tags) |
void |
setTaxonomicCoverages(List<TaxonomicCoverages> taxonomicCoverages) |
void |
setTemporalCoverages(List<TemporalCoverage> temporalCoverages) |
void |
setTitle(String title)
Persisted in the database table.
|
void |
setType(DatasetType type)
Persisted in the database table.
|
void |
setVersion(String version) |
String |
toString() |
public Dataset()
public UUID getKey()
getKey
in interface NetworkEntity
public void setKey(UUID key)
setKey
in interface NetworkEntity
@Nullable public String getVersion()
public void setVersion(String version)
public String getTitle()
getTitle
in interface NetworkEntity
public void setTitle(String title)
setTitle
in interface NetworkEntity
@Nullable public String getDescription()
getDescription
in interface NetworkEntity
public void setDescription(String description)
setDescription
in interface NetworkEntity
public Date getCreated()
getCreated
in interface NetworkEntity
public void setCreated(Date created)
setCreated
in interface NetworkEntity
public Date getModified()
getModified
in interface NetworkEntity
public void setModified(Date modified)
setModified
in interface NetworkEntity
@Nullable public Date getDeleted()
getDeleted
in interface NetworkEntity
public void setDeleted(Date deleted)
setDeleted
in interface NetworkEntity
@Nullable public UUID getParentDatasetKey()
public void setParentDatasetKey(UUID parentDatasetKey)
@Nullable public UUID getDuplicateOfDatasetKey()
null
then this is not a known
duplicate.public void setDuplicateOfDatasetKey(UUID duplicateOfDatasetKey)
@NotNull public @NotNull UUID getInstallationKey()
public void setInstallationKey(UUID installationKey)
@NotNull public @NotNull UUID getPublishingOrganizationKey()
public void setPublishingOrganizationKey(UUID publishingOrganizationKey)
public List<UUID> getNetworkKeys()
public void setNetworkKeys(List<UUID> networkKeys)
@Nullable public MaintenanceUpdateFrequency getMaintenanceUpdateFrequency()
public void setMaintenanceUpdateFrequency(MaintenanceUpdateFrequency maintenanceUpdateFrequency)
public String getMaintenanceDescription()
public void setMaintenanceDescription(String maintenanceDescription)
public License getLicense()
public void setLicense(License license)
<intellectualRights>
<para>This work is licensed under a <ulink url="http://creativecommons.org/licenses/by/4.0/legalcode"><citetitle>Creative Commons Attribution (CC-BY) 4.0 License</citetitle></ulink>.</para>
</intellectualRights>
public DOI getDoi()
public boolean isExternal()
public void setExternal(boolean external)
@Min(value=0L) public @Min(value=0L) int getNumConstituents()
public void setNumConstituents(int numConstituents)
@NotNull public @NotNull DatasetType getType()
public void setType(DatasetType type)
@Nullable public DatasetSubtype getSubtype()
public void setSubtype(DatasetSubtype subtype)
@Nullable @Size(min=2, max=50) public @Size(min=2,max=50) String getAlias()
@Nullable @Size(min=1, max=50) public @Size(min=1,max=50) String getAbbreviation()
public void setAbbreviation(String abbreviation)
@NotNull public @NotNull Language getLanguage()
public void setLanguage(Language language)
@Nullable public URI getHomepage()
public void setHomepage(URI homepage)
@Nullable public URI getLogoUrl()
public void setLogoUrl(URI logoUrl)
@Nullable @Valid public @Valid Citation getCitation()
public void setCitation(Citation citation)
@Nullable public List<CitationContact> getContactsCitation()
public void setContactsCitation(List<CitationContact> contactsCitation)
@Nullable @Size(min=1) public @Size(min=1) String getRights()
public boolean isLockedForAutoUpdate()
public void setLockedForAutoUpdate(boolean lockedForAutoUpdate)
public String getCreatedBy()
getCreatedBy
in interface NetworkEntity
public void setCreatedBy(String createdBy)
setCreatedBy
in interface NetworkEntity
public String getModifiedBy()
getModifiedBy
in interface NetworkEntity
public void setModifiedBy(String modifiedBy)
setModifiedBy
in interface NetworkEntity
public List<Contact> getContacts()
getContacts
in interface Contactable
public void setContacts(List<Contact> contacts)
setContacts
in interface Contactable
public List<Endpoint> getEndpoints()
getEndpoints
in interface Endpointable
public void setEndpoints(List<Endpoint> endpoints)
setEndpoints
in interface Endpointable
public void addEndpoint(Endpoint endpoint)
addEndpoint
in interface Endpointable
public List<MachineTag> getMachineTags()
getMachineTags
in interface MachineTaggable
public void setMachineTags(List<MachineTag> machineTags)
setMachineTags
in interface MachineTaggable
public void addMachineTag(MachineTag machineTag)
addMachineTag
in interface MachineTaggable
public List<Identifier> getIdentifiers()
getIdentifiers
in interface Identifiable
public void setIdentifiers(List<Identifier> identifiers)
setIdentifiers
in interface Identifiable
public List<Comment> getComments()
getComments
in interface Commentable
public void setComments(List<Comment> comments)
setComments
in interface Commentable
public List<Citation> getBibliographicCitations()
public void setBibliographicCitations(List<Citation> bibliographicCitations)
public List<CuratorialUnitComposite> getCuratorialUnits()
public void setCuratorialUnits(List<CuratorialUnitComposite> curatorialUnits)
public List<TaxonomicCoverages> getTaxonomicCoverages()
public void setTaxonomicCoverages(List<TaxonomicCoverages> taxonomicCoverages)
public String getGeographicCoverageDescription()
public void setGeographicCoverageDescription(String geographicCoverageDescription)
public List<GeospatialCoverage> getGeographicCoverages()
public void setGeographicCoverages(List<GeospatialCoverage> geographicCoverages)
public List<TemporalCoverage> getTemporalCoverages()
public void setTemporalCoverages(List<TemporalCoverage> temporalCoverages)
public List<KeywordCollection> getKeywordCollections()
public void setKeywordCollections(List<KeywordCollection> keywordCollections)
public Project getProject()
public void setProject(Project project)
public SamplingDescription getSamplingDescription()
public void setSamplingDescription(SamplingDescription samplingDescription)
public Set<Country> getCountryCoverage()
public void setCountryCoverage(Set<Country> countryCoverage)
public List<Collection> getCollections()
public void setCollections(List<Collection> collections)
public List<DataDescription> getDataDescriptions()
public void setDataDescriptions(List<DataDescription> dataDescriptions)
public Language getDataLanguage()
public void setDataLanguage(Language dataLanguage)
public String getPurpose()
public void setPurpose(String purpose)
public String getAdditionalInfo()
public void setAdditionalInfo(String additionalInfo)
public Date getPubDate()
public void setPubDate(Date pubDate)
public boolean lenientEquals(Dataset other)
lenientEquals
in interface LenientEquals<Dataset>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.