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 TypeMethodDescriptionvoid
addMachineTag
(MachineTag machineTag) @Valid Address
Address 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) String
getCode()
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) String
Textual 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 Address
Address 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 String
getName()
Descriptive name of a collection.@NotNull List<OccurrenceMapping>
getPhone()
Phones of the entityReplacement of the entity (if applies).getTags()
(Meta)Tags or labels.boolean
isActive()
Is this collection currently active/maintained.boolean
lenientEquals
(Collection other) Leniently tests if the objects are the same.void
setActive
(boolean active) void
setAddress
(Address address) void
setAlternativeCodes
(List<AlternativeCode> alternativeCodes) void
void
setComments
(List<Comment> comments) void
setContactPersons
(List<Contact> contactPersons) void
setCreated
(Date created) void
setCreatedBy
(String createdBy) void
setDeleted
(Date deleted) void
setDescription
(String description) void
setDisplayOnNHCPortal
(Boolean displayOnNHCPortal) void
void
setFeaturedImageAttribution
(String featuredImageAttribution) void
setFeaturedImageLicense
(License featuredImageLicense) void
setFeaturedImageUrl
(URI featuredImageUrl) void
setIdentifiers
(List<Identifier> identifiers) void
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
void
setOccurrenceMappings
(List<OccurrenceMapping> occurrenceMappings) void
void
setReplacedBy
(UUID replacedBy) void
-
Constructor Details
-
Collection
public Collection()
-
-
Method Details
-
getIdentifiers
List of alternative identifiers: UUIDs, external system identifiers, LSIDs, etc..- Specified by:
getIdentifiers
in interfaceIdentifiable
-
setIdentifiers
- Specified by:
setIdentifiers
in interfaceIdentifiable
-
getTags
(Meta)Tags or labels. -
setTags
-
getKey
GBIF Unique identifier of this collection.- Specified by:
getKey
in interfaceCollectionEntity
-
setKey
- Specified by:
setKey
in interfaceCollectionEntity
-
getCode
Collection code: identifies a collection at the owner's location.- Specified by:
getCode
in interfaceCollectionEntity
-
setCode
- Specified by:
setCode
in interfaceCollectionEntity
-
getName
Descriptive name of a collection.- Specified by:
getName
in interfaceCollectionEntity
-
setName
- Specified by:
setName
in interfaceCollectionEntity
-
getDescription
Textual description/summary of the contents of a collection.- Specified by:
getDescription
in interfaceCollectionEntity
-
setDescription
- Specified by:
setDescription
in interfaceCollectionEntity
-
isActive
Is this collection currently active/maintained.- Specified by:
isActive
in interfaceCollectionEntity
-
setActive
- Specified by:
setActive
in interfaceCollectionEntity
-
getEmail
Description copied from interface:CollectionEntity
Emails of the entity- Specified by:
getEmail
in interfaceCollectionEntity
-
setEmail
- Specified by:
setEmail
in interfaceCollectionEntity
-
getPhone
Description copied from interface:CollectionEntity
Phones of the entity- Specified by:
getPhone
in interfaceCollectionEntity
-
setPhone
- Specified by:
setPhone
in 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:
getMailingAddress
in interfaceContactable
-
setMailingAddress
- Specified by:
setMailingAddress
in interfaceContactable
-
getAddress
Address where this collection is situated.- Specified by:
getAddress
in interfaceContactable
-
setAddress
- Specified by:
setAddress
in interfaceContactable
-
getCreatedBy
Description copied from interface:CollectionEntity
Creator of the database record.- Specified by:
getCreatedBy
in interfaceCollectionEntity
-
setCreatedBy
- Specified by:
setCreatedBy
in interfaceCollectionEntity
-
getModifiedBy
Description copied from interface:CollectionEntity
Person or agent that modified the database record.- Specified by:
getModifiedBy
in interfaceCollectionEntity
-
setModifiedBy
- Specified by:
setModifiedBy
in interfaceCollectionEntity
-
getCreated
Description copied from interface:CollectionEntity
Date when the records as created.- Specified by:
getCreated
in interfaceCollectionEntity
-
setCreated
- Specified by:
setCreated
in interfaceCollectionEntity
-
getModified
Description copied from interface:CollectionEntity
Date when the records was last modified.- Specified by:
getModified
in interfaceCollectionEntity
-
setModified
- Specified by:
setModified
in interfaceCollectionEntity
-
getDeleted
Description copied from interface:CollectionEntity
Date when the records was (logically) deleted.- Specified by:
getDeleted
in interfaceCollectionEntity
-
setDeleted
- Specified by:
setDeleted
in interfaceCollectionEntity
-
getContactPersons
Description copied from interface:Contactable
List of associated contacts.- Specified by:
getContactPersons
in interfaceContactable
-
setContactPersons
- Specified by:
setContactPersons
in interfaceContactable
-
getMachineTags
- Specified by:
getMachineTags
in interfaceMachineTaggable
-
setMachineTags
- Specified by:
setMachineTags
in interfaceMachineTaggable
-
addMachineTag
- Specified by:
addMachineTag
in interfaceMachineTaggable
-
getAlternativeCodes
Alternative codes for a collection.- Specified by:
getAlternativeCodes
in interfaceCollectionEntity
-
setAlternativeCodes
- Specified by:
setAlternativeCodes
in interfaceCollectionEntity
-
getComments
- Specified by:
getComments
in interfaceCommentable
-
setComments
- Specified by:
setComments
in interfaceCommentable
-
getOccurrenceMappings
- Specified by:
getOccurrenceMappings
in interfaceOccurrenceMappeable
-
setOccurrenceMappings
- Specified by:
setOccurrenceMappings
in interfaceOccurrenceMappeable
-
getReplacedBy
Description copied from interface:CollectionEntity
Replacement of the entity (if applies).- Specified by:
getReplacedBy
in interfaceCollectionEntity
-
setReplacedBy
- Specified by:
setReplacedBy
in interfaceCollectionEntity
-
getMasterSource
Description copied from interface:CollectionEntity
Master source of the entity.- Specified by:
getMasterSource
in interfaceCollectionEntity
-
setMasterSource
- Specified by:
setMasterSource
in interfaceCollectionEntity
-
getMasterSourceMetadata
Description copied from interface:CollectionEntity
Master source metadata- Specified by:
getMasterSourceMetadata
in interfaceCollectionEntity
-
setMasterSourceMetadata
- Specified by:
setMasterSourceMetadata
in interfaceCollectionEntity
-
getDisplayOnNHCPortal
Description copied from interface:CollectionEntity
Flag to display the entity in the NHC portal.- Specified by:
getDisplayOnNHCPortal
in interfaceCollectionEntity
-
setDisplayOnNHCPortal
- Specified by:
setDisplayOnNHCPortal
in interfaceCollectionEntity
-
getFeaturedImageUrl
- Specified by:
getFeaturedImageUrl
in interfaceCollectionEntity
-
setFeaturedImageUrl
- Specified by:
setFeaturedImageUrl
in interfaceCollectionEntity
-
getFeaturedImageLicense
- Specified by:
getFeaturedImageLicense
in interfaceCollectionEntity
-
setFeaturedImageLicense
- Specified by:
setFeaturedImageLicense
in interfaceCollectionEntity
-
getTemporalCoverage
-
getCountry
-
getCity
-
getProvince
-
getFeaturedImageAttribution
- Specified by:
getFeaturedImageAttribution
in interfaceCollectionEntity
-
setFeaturedImageAttribution
- Specified by:
setFeaturedImageAttribution
in interfaceCollectionEntity
-
lenientEquals
Description copied from interface:LenientEquals
Leniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEquals
in interfaceLenientEquals<Collection>
- Parameters:
other
- To compare against- Returns:
- true if...
-