public class Collection extends Object implements CollectionEntity, LenientEquals<Collection>
| Constructor and Description |
|---|
Collection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMachineTag(MachineTag machineTag) |
AccessionStatus |
getAccessionStatus()
Defines how a collection as been added or joined.
|
@Valid Address |
getAddress()
Address where this collection is situated.
|
List<AlternativeCode> |
getAlternativeCodes()
Alternative codes for a collection.
|
URI |
getApiUrl()
Machine consumable endpoint of information about a collection.
|
URI |
getCatalogUrl()
URI that exposes data about the catalog associated to a collection.
|
String |
getCity() |
@NotNull(groups=PrePersist.class) String |
getCode()
Collection code: identifies a collection at the owner's location.
|
Map<String,Integer> |
getCollectionSummary() |
@NotNull List<Comment> |
getComments() |
@Valid List<Contact> |
getContactPersons()
List of associated contacts.
|
List<CollectionContentType> |
getContentTypes()
Content type of the elements found in a collection.
|
String |
getCountry() |
Date |
getCreated()
Date when the records as created.
|
String |
getCreatedBy()
Creator of the database record.
|
Date |
getDeleted()
Date when the records was (logically) deleted.
|
String |
getDepartment() |
@Size(min=1) String |
getDescription()
Textual description/summary of the contents of a collection.
|
Boolean |
getDisplayOnNHCPortal()
Flag to display the entity in the NHC portal.
|
String |
getDivision() |
DOI |
getDoi()
Digital Object Identifier assigned to this collection.
|
List<String> |
getEmail()
Emails of the entity
|
String |
getGeography() |
URI |
getHomepage()
URL containing information about a collection.
|
List<Identifier> |
getIdentifiers()
List of alternative identifiers: UUIDs, external system identifiers, LSIDs, etc..
|
List<String> |
getImportantCollectors() |
List<String> |
getIncorporatedCollections() |
UUID |
getInstitutionKey()
Institution that owns or hosts this collection.
|
UUID |
getKey()
GBIF Unique identifier of this collection.
|
@Valid @NotNull List<MachineTag> |
getMachineTags() |
@Valid Address |
getMailingAddress()
Address used to send/receive physical mail.
|
MasterSourceType |
getMasterSource()
Master source of the entity.
|
MasterSourceMetadata |
getMasterSourceMetadata()
Master source metadata
|
Date |
getModified()
Date when the records was last modified.
|
String |
getModifiedBy()
Person or agent that modified the database record.
|
@NotNull String |
getName()
Descriptive name of a collection.
|
String |
getNotes() |
Integer |
getNumberSpecimens() |
Integer |
getOccurrenceCount() |
@NotNull List<OccurrenceMapping> |
getOccurrenceMappings() |
List<String> |
getPhone()
Phones of the entity
|
List<PreservationType> |
getPreservationTypes()
Types of preservation mechanisms used for this collections.
|
String |
getProvince() |
UUID |
getReplacedBy()
Replacement of the entity (if applies).
|
@Valid List<Tag> |
getTags()
(Meta)Tags or labels.
|
String |
getTaxonomicCoverage() |
Integer |
getTypeSpecimenCount() |
boolean |
isActive()
Is this collection currently active/maintained.
|
boolean |
isIndexHerbariorumRecord() |
boolean |
isPersonalCollection()
Does this collections belong to an individual?.
|
boolean |
lenientEquals(Collection other)
Leniently tests if the objects are the same.
|
void |
setAccessionStatus(AccessionStatus accessionStatus) |
void |
setActive(boolean active) |
void |
setAddress(Address address) |
void |
setAlternativeCodes(List<AlternativeCode> alternativeCodes) |
void |
setApiUrl(URI apiUrl) |
void |
setCatalogUrl(URI catalogUrl) |
void |
setCode(String code) |
void |
setCollectionSummary(Map<String,Integer> collectionSummary) |
void |
setComments(List<Comment> comments) |
void |
setContactPersons(List<Contact> contactPersons) |
void |
setContentTypes(List<CollectionContentType> contentTypes) |
void |
setCreated(Date created) |
void |
setCreatedBy(String createdBy) |
void |
setDeleted(Date deleted) |
void |
setDepartment(String department) |
void |
setDescription(String description) |
void |
setDisplayOnNHCPortal(Boolean displayOnNHCPortal) |
void |
setDivision(String division) |
void |
setDoi(DOI doi) |
void |
setEmail(List<String> email) |
void |
setGeography(String geography) |
void |
setHomepage(URI homepage) |
void |
setIdentifiers(List<Identifier> identifiers) |
void |
setImportantCollectors(List<String> importantCollectors) |
void |
setIncorporatedCollections(List<String> incorporatedCollections) |
void |
setIndexHerbariorumRecord(boolean indexHerbariorumRecord) |
void |
setInstitutionKey(UUID institutionKey) |
void |
setKey(UUID key) |
void |
setMachineTags(List<MachineTag> machineTags) |
void |
setMailingAddress(Address mailingAddress) |
void |
setMasterSource(MasterSourceType masterSource) |
void |
setMasterSourceMetadata(MasterSourceMetadata masterSourceMetadata) |
void |
setModified(Date modified) |
void |
setModifiedBy(String modifiedBy) |
void |
setName(String name) |
void |
setNotes(String notes) |
void |
setNumberSpecimens(Integer numberSpecimens) |
void |
setOccurrenceCount(Integer occurrenceCount) |
void |
setOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings) |
void |
setPersonalCollection(boolean personalCollection) |
void |
setPhone(List<String> phone) |
void |
setPreservationTypes(List<PreservationType> preservationTypes) |
void |
setReplacedBy(UUID replacedBy) |
void |
setTags(List<Tag> tags) |
void |
setTaxonomicCoverage(String taxonomicCoverage) |
void |
setTypeSpecimenCount(Integer typeSpecimenCount) |
public Collection()
public List<Identifier> getIdentifiers()
getIdentifiers in interface Identifiablepublic void setIdentifiers(List<Identifier> identifiers)
setIdentifiers in interface Identifiablepublic UUID getKey()
getKey in interface CollectionEntitypublic void setKey(UUID key)
setKey in interface CollectionEntity@NotNull(groups=PrePersist.class) public @NotNull(groups=PrePersist.class) String getCode()
getCode in interface CollectionEntitypublic void setCode(String code)
setCode in interface CollectionEntity@NotNull public @NotNull String getName()
getName in interface CollectionEntitypublic void setName(String name)
setName in interface CollectionEntity@Size(min=1) public @Size(min=1) String getDescription()
getDescription in interface CollectionEntitypublic void setDescription(String description)
setDescription in interface CollectionEntitypublic List<CollectionContentType> getContentTypes()
public void setContentTypes(List<CollectionContentType> contentTypes)
public boolean isActive()
isActive in interface CollectionEntitypublic void setActive(boolean active)
setActive in interface CollectionEntitypublic boolean isPersonalCollection()
public void setPersonalCollection(boolean personalCollection)
public List<String> getEmail()
CollectionEntitygetEmail in interface CollectionEntitypublic void setEmail(List<String> email)
setEmail in interface CollectionEntitypublic List<String> getPhone()
CollectionEntitygetPhone in interface CollectionEntitypublic void setPhone(List<String> phone)
setPhone in interface CollectionEntity@Nullable public URI getHomepage()
public void setHomepage(URI homepage)
@Nullable public URI getCatalogUrl()
public void setCatalogUrl(URI catalogUrl)
@Nullable public URI getApiUrl()
public List<PreservationType> getPreservationTypes()
public void setPreservationTypes(List<PreservationType> preservationTypes)
public AccessionStatus getAccessionStatus()
public void setAccessionStatus(AccessionStatus accessionStatus)
public UUID getInstitutionKey()
public void setInstitutionKey(UUID institutionKey)
@Nullable @Valid public @Valid Address getMailingAddress()
getMailingAddress in interface Contactablepublic void setMailingAddress(Address mailingAddress)
setMailingAddress in interface Contactable@Nullable @Valid public @Valid Address getAddress()
getAddress in interface Contactablepublic void setAddress(Address address)
setAddress in interface Contactablepublic String getCreatedBy()
CollectionEntitygetCreatedBy in interface CollectionEntitypublic void setCreatedBy(String createdBy)
setCreatedBy in interface CollectionEntitypublic String getModifiedBy()
CollectionEntitygetModifiedBy in interface CollectionEntitypublic void setModifiedBy(String modifiedBy)
setModifiedBy in interface CollectionEntitypublic Date getCreated()
CollectionEntitygetCreated in interface CollectionEntitypublic void setCreated(Date created)
setCreated in interface CollectionEntitypublic Date getModified()
CollectionEntitygetModified in interface CollectionEntitypublic void setModified(Date modified)
setModified in interface CollectionEntitypublic Date getDeleted()
CollectionEntitygetDeleted in interface CollectionEntitypublic void setDeleted(Date deleted)
setDeleted in interface CollectionEntity@Valid public @Valid List<Contact> getContactPersons()
ContactablegetContactPersons in interface Contactablepublic void setContactPersons(List<Contact> contactPersons)
setContactPersons in interface Contactablepublic boolean isIndexHerbariorumRecord()
public void setIndexHerbariorumRecord(boolean indexHerbariorumRecord)
public Integer getNumberSpecimens()
public void setNumberSpecimens(Integer numberSpecimens)
@Valid @NotNull public @Valid @NotNull List<MachineTag> getMachineTags()
getMachineTags in interface MachineTaggablepublic void setMachineTags(List<MachineTag> machineTags)
setMachineTags in interface MachineTaggablepublic void addMachineTag(MachineTag machineTag)
addMachineTag in interface MachineTaggablepublic String getTaxonomicCoverage()
public void setTaxonomicCoverage(String taxonomicCoverage)
public String getGeography()
public void setGeography(String geography)
public List<String> getIncorporatedCollections()
public void setIncorporatedCollections(List<String> incorporatedCollections)
public List<String> getImportantCollectors()
public void setImportantCollectors(List<String> importantCollectors)
public Map<String,Integer> getCollectionSummary()
public void setCollectionSummary(Map<String,Integer> collectionSummary)
public List<AlternativeCode> getAlternativeCodes()
getAlternativeCodes in interface CollectionEntitypublic void setAlternativeCodes(List<AlternativeCode> alternativeCodes)
setAlternativeCodes in interface CollectionEntity@NotNull public @NotNull List<Comment> getComments()
getComments in interface Commentablepublic void setComments(List<Comment> comments)
setComments in interface Commentable@NotNull public @NotNull List<OccurrenceMapping> getOccurrenceMappings()
getOccurrenceMappings in interface OccurrenceMappeablepublic void setOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings)
setOccurrenceMappings in interface OccurrenceMappeablepublic UUID getReplacedBy()
CollectionEntitygetReplacedBy in interface CollectionEntitypublic void setReplacedBy(UUID replacedBy)
setReplacedBy in interface CollectionEntitypublic MasterSourceType getMasterSource()
CollectionEntitygetMasterSource in interface CollectionEntitypublic void setMasterSource(MasterSourceType masterSource)
setMasterSource in interface CollectionEntitypublic MasterSourceMetadata getMasterSourceMetadata()
CollectionEntitygetMasterSourceMetadata in interface CollectionEntitypublic void setMasterSourceMetadata(MasterSourceMetadata masterSourceMetadata)
setMasterSourceMetadata in interface CollectionEntitypublic String getDepartment()
public void setDepartment(String department)
public String getDivision()
public void setDivision(String division)
public Boolean getDisplayOnNHCPortal()
CollectionEntitygetDisplayOnNHCPortal in interface CollectionEntitypublic void setDisplayOnNHCPortal(Boolean displayOnNHCPortal)
setDisplayOnNHCPortal in interface CollectionEntitypublic String getCountry()
public String getProvince()
public Integer getOccurrenceCount()
public void setOccurrenceCount(Integer occurrenceCount)
public Integer getTypeSpecimenCount()
public void setTypeSpecimenCount(Integer typeSpecimenCount)
public boolean lenientEquals(Collection other)
LenientEqualslenientEquals in interface LenientEquals<Collection>other - To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.