Package org.gbif.api.model.collections
Class Collection
java.lang.Object
org.gbif.api.model.collections.Collection
- All Implemented Interfaces:
Serializable,CollectionEntity,Contactable,OccurrenceMappeable,Commentable,Identifiable,LenientEquals<Collection>,MachineTaggable,Taggable
A group of specimens or other natural history objects. Types of collections can be: specimens,
original artwork, archives, observations, library materials, datasets, photographs or mixed
collections such as those that result from expeditions and voyages of discovery.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMachineTag(MachineTag machineTag) @Valid AddressAddress where this collection is situated.Alternative codes for a collection.Machine consumable endpoint of information about a collection.URI that exposes data about the catalog associated to a collection.getCity()@NotNull(groups=PrePersist.class) StringgetCode()Collection code: identifies a collection at the owner's location.List of associated contacts.Date when the records as created.Creator of the database record.Date when the records was (logically) deleted.@Size(min=1) StringTextual description/summary of the contents of a collection.Flag to display the entity in the NHC portal.getEmail()Emails of the entityURL containing information about a collection.List of alternative identifiers: UUIDs, external system identifiers, LSIDs, etc..getKey()GBIF Unique identifier of this collection.@Valid @NotNull List<MachineTag>@Valid AddressAddress used to send/receive physical mail.Master source of the entity.Master source metadataDate when the records was last modified.Person or agent that modified the database record.@NotNull StringgetName()Descriptive name of a collection.@NotNull List<OccurrenceMapping>getPhone()Phones of the entityReplacement of the entity (if applies).getTags()(Meta)Tags or labels.booleanisActive()Is this collection currently active/maintained.booleanlenientEquals(Collection other) Leniently tests if the objects are the same.voidsetActive(boolean active) voidsetAddress(Address address) voidsetAlternativeCodes(List<AlternativeCode> alternativeCodes) voidvoidsetComments(List<Comment> comments) voidsetContactPersons(List<Contact> contactPersons) voidsetCreated(Date created) voidsetCreatedBy(String createdBy) voidsetDeleted(Date deleted) voidsetDescription(String description) voidsetDisplayOnNHCPortal(Boolean displayOnNHCPortal) voidvoidsetFeaturedImageAttribution(String featuredImageAttribution) voidsetFeaturedImageLicense(License featuredImageLicense) voidsetFeaturedImageUrl(URI featuredImageUrl) voidsetIdentifiers(List<Identifier> identifiers) voidvoidsetMachineTags(List<MachineTag> machineTags) voidsetMailingAddress(Address mailingAddress) voidsetMasterSource(MasterSourceType masterSource) voidsetMasterSourceMetadata(MasterSourceMetadata masterSourceMetadata) voidsetModified(Date modified) voidsetModifiedBy(String modifiedBy) voidvoidsetOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings) voidvoidsetReplacedBy(UUID replacedBy) void
-
Constructor Details
-
Collection
public Collection()
-
-
Method Details
-
getIdentifiers
List of alternative identifiers: UUIDs, external system identifiers, LSIDs, etc..- Specified by:
getIdentifiersin interfaceIdentifiable
-
setIdentifiers
- Specified by:
setIdentifiersin interfaceIdentifiable
-
getTags
(Meta)Tags or labels. -
setTags
-
getKey
GBIF Unique identifier of this collection.- Specified by:
getKeyin interfaceCollectionEntity
-
setKey
- Specified by:
setKeyin interfaceCollectionEntity
-
getCode
Collection code: identifies a collection at the owner's location.- Specified by:
getCodein interfaceCollectionEntity
-
setCode
- Specified by:
setCodein interfaceCollectionEntity
-
getName
Descriptive name of a collection.- Specified by:
getNamein interfaceCollectionEntity
-
setName
- Specified by:
setNamein interfaceCollectionEntity
-
getDescription
Textual description/summary of the contents of a collection.- Specified by:
getDescriptionin interfaceCollectionEntity
-
setDescription
- Specified by:
setDescriptionin interfaceCollectionEntity
-
isActive
Is this collection currently active/maintained.- Specified by:
isActivein interfaceCollectionEntity
-
setActive
- Specified by:
setActivein interfaceCollectionEntity
-
getEmail
Description copied from interface:CollectionEntityEmails of the entity- Specified by:
getEmailin interfaceCollectionEntity
-
setEmail
- Specified by:
setEmailin interfaceCollectionEntity
-
getPhone
Description copied from interface:CollectionEntityPhones of the entity- Specified by:
getPhonein interfaceCollectionEntity
-
setPhone
- Specified by:
setPhonein interfaceCollectionEntity
-
getHomepage
URL containing information about a collection. -
getCatalogUrls
URI that exposes data about the catalog associated to a collection. -
getApiUrls
Machine consumable endpoint of information about a collection. -
getMailingAddress
Address used to send/receive physical mail.- Specified by:
getMailingAddressin interfaceContactable
-
setMailingAddress
- Specified by:
setMailingAddressin interfaceContactable
-
getAddress
Address where this collection is situated.- Specified by:
getAddressin interfaceContactable
-
setAddress
- Specified by:
setAddressin interfaceContactable
-
getCreatedBy
Description copied from interface:CollectionEntityCreator of the database record.- Specified by:
getCreatedByin interfaceCollectionEntity
-
setCreatedBy
- Specified by:
setCreatedByin interfaceCollectionEntity
-
getModifiedBy
Description copied from interface:CollectionEntityPerson or agent that modified the database record.- Specified by:
getModifiedByin interfaceCollectionEntity
-
setModifiedBy
- Specified by:
setModifiedByin interfaceCollectionEntity
-
getCreated
Description copied from interface:CollectionEntityDate when the records as created.- Specified by:
getCreatedin interfaceCollectionEntity
-
setCreated
- Specified by:
setCreatedin interfaceCollectionEntity
-
getModified
Description copied from interface:CollectionEntityDate when the records was last modified.- Specified by:
getModifiedin interfaceCollectionEntity
-
setModified
- Specified by:
setModifiedin interfaceCollectionEntity
-
getDeleted
Description copied from interface:CollectionEntityDate when the records was (logically) deleted.- Specified by:
getDeletedin interfaceCollectionEntity
-
setDeleted
- Specified by:
setDeletedin interfaceCollectionEntity
-
getContactPersons
Description copied from interface:ContactableList of associated contacts.- Specified by:
getContactPersonsin interfaceContactable
-
setContactPersons
- Specified by:
setContactPersonsin interfaceContactable
-
getMachineTags
- Specified by:
getMachineTagsin interfaceMachineTaggable
-
setMachineTags
- Specified by:
setMachineTagsin interfaceMachineTaggable
-
addMachineTag
- Specified by:
addMachineTagin interfaceMachineTaggable
-
getAlternativeCodes
Alternative codes for a collection.- Specified by:
getAlternativeCodesin interfaceCollectionEntity
-
setAlternativeCodes
- Specified by:
setAlternativeCodesin interfaceCollectionEntity
-
getComments
- Specified by:
getCommentsin interfaceCommentable
-
setComments
- Specified by:
setCommentsin interfaceCommentable
-
getOccurrenceMappings
- Specified by:
getOccurrenceMappingsin interfaceOccurrenceMappeable
-
setOccurrenceMappings
- Specified by:
setOccurrenceMappingsin interfaceOccurrenceMappeable
-
getReplacedBy
Description copied from interface:CollectionEntityReplacement of the entity (if applies).- Specified by:
getReplacedByin interfaceCollectionEntity
-
setReplacedBy
- Specified by:
setReplacedByin interfaceCollectionEntity
-
getMasterSource
Description copied from interface:CollectionEntityMaster source of the entity.- Specified by:
getMasterSourcein interfaceCollectionEntity
-
setMasterSource
- Specified by:
setMasterSourcein interfaceCollectionEntity
-
getMasterSourceMetadata
Description copied from interface:CollectionEntityMaster source metadata- Specified by:
getMasterSourceMetadatain interfaceCollectionEntity
-
setMasterSourceMetadata
- Specified by:
setMasterSourceMetadatain interfaceCollectionEntity
-
getDisplayOnNHCPortal
Description copied from interface:CollectionEntityFlag to display the entity in the NHC portal.- Specified by:
getDisplayOnNHCPortalin interfaceCollectionEntity
-
setDisplayOnNHCPortal
- Specified by:
setDisplayOnNHCPortalin interfaceCollectionEntity
-
getFeaturedImageUrl
- Specified by:
getFeaturedImageUrlin interfaceCollectionEntity
-
setFeaturedImageUrl
- Specified by:
setFeaturedImageUrlin interfaceCollectionEntity
-
getFeaturedImageLicense
- Specified by:
getFeaturedImageLicensein interfaceCollectionEntity
-
setFeaturedImageLicense
- Specified by:
setFeaturedImageLicensein interfaceCollectionEntity
-
getTemporalCoverage
-
getCountry
-
getCity
-
getProvince
-
getFeaturedImageAttribution
- Specified by:
getFeaturedImageAttributionin interfaceCollectionEntity
-
setFeaturedImageAttribution
- Specified by:
setFeaturedImageAttributionin interfaceCollectionEntity
-
lenientEquals
Description copied from interface:LenientEqualsLeniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEqualsin interfaceLenientEquals<Collection>- Parameters:
other- To compare against- Returns:
- true if...
-