public class Collection extends Object implements CollectionEntity, LenientEquals<Collection>
Constructor and Description |
---|
Collection() |
Modifier and Type | Method and Description |
---|---|
void |
addMachineTag(MachineTag machineTag) |
@Valid Address |
getAddress()
Address where this collection is situated.
|
List<AlternativeCode> |
getAlternativeCodes()
Alternative codes for a collection.
|
List<URI> |
getApiUrls()
Machine consumable endpoint of information about a collection.
|
List<URI> |
getCatalogUrls()
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.
|
@NotNull List<Comment> |
getComments() |
@Valid List<Contact> |
getContactPersons()
List of associated contacts.
|
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.
|
@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.
|
List<String> |
getEmail()
Emails of the entity
|
String |
getFeaturedImageAttribution() |
License |
getFeaturedImageLicense() |
URI |
getFeaturedImageUrl() |
URI |
getHomepage()
URL containing information about a collection.
|
List<Identifier> |
getIdentifiers()
List of alternative identifiers: UUIDs, external system identifiers, LSIDs, etc..
|
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.
|
@NotNull List<OccurrenceMapping> |
getOccurrenceMappings() |
List<String> |
getPhone()
Phones of the entity
|
String |
getProvince() |
UUID |
getReplacedBy()
Replacement of the entity (if applies).
|
@Valid List<Tag> |
getTags()
(Meta)Tags or labels.
|
String |
getTemporalCoverage() |
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 |
setCode(String code) |
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 |
setEmail(List<String> email) |
void |
setFeaturedImageAttribution(String featuredImageAttribution) |
void |
setFeaturedImageLicense(License featuredImageLicense) |
void |
setFeaturedImageUrl(URI featuredImageUrl) |
void |
setIdentifiers(List<Identifier> identifiers) |
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 |
setOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings) |
void |
setPhone(List<String> phone) |
void |
setReplacedBy(UUID replacedBy) |
void |
setTags(List<Tag> tags) |
public Collection()
public List<Identifier> getIdentifiers()
getIdentifiers
in interface Identifiable
public void setIdentifiers(List<Identifier> identifiers)
setIdentifiers
in interface Identifiable
public UUID getKey()
getKey
in interface CollectionEntity
public void setKey(UUID key)
setKey
in interface CollectionEntity
@NotNull(groups=PrePersist.class) public @NotNull(groups=PrePersist.class) String getCode()
getCode
in interface CollectionEntity
public void setCode(String code)
setCode
in interface CollectionEntity
@NotNull public @NotNull String getName()
getName
in interface CollectionEntity
public void setName(String name)
setName
in interface CollectionEntity
@Size(min=1) public @Size(min=1) String getDescription()
getDescription
in interface CollectionEntity
public void setDescription(String description)
setDescription
in interface CollectionEntity
public boolean isActive()
isActive
in interface CollectionEntity
public void setActive(boolean active)
setActive
in interface CollectionEntity
public List<String> getEmail()
CollectionEntity
getEmail
in interface CollectionEntity
public void setEmail(List<String> email)
setEmail
in interface CollectionEntity
public List<String> getPhone()
CollectionEntity
getPhone
in interface CollectionEntity
public void setPhone(List<String> phone)
setPhone
in interface CollectionEntity
@Nullable public URI getHomepage()
@Nullable public List<URI> getCatalogUrls()
@Nullable public List<URI> getApiUrls()
@Nullable @Valid public @Valid Address getMailingAddress()
getMailingAddress
in interface Contactable
public void setMailingAddress(Address mailingAddress)
setMailingAddress
in interface Contactable
@Nullable @Valid public @Valid Address getAddress()
getAddress
in interface Contactable
public void setAddress(Address address)
setAddress
in interface Contactable
public String getCreatedBy()
CollectionEntity
getCreatedBy
in interface CollectionEntity
public void setCreatedBy(String createdBy)
setCreatedBy
in interface CollectionEntity
public String getModifiedBy()
CollectionEntity
getModifiedBy
in interface CollectionEntity
public void setModifiedBy(String modifiedBy)
setModifiedBy
in interface CollectionEntity
public Date getCreated()
CollectionEntity
getCreated
in interface CollectionEntity
public void setCreated(Date created)
setCreated
in interface CollectionEntity
public Date getModified()
CollectionEntity
getModified
in interface CollectionEntity
public void setModified(Date modified)
setModified
in interface CollectionEntity
public Date getDeleted()
CollectionEntity
getDeleted
in interface CollectionEntity
public void setDeleted(Date deleted)
setDeleted
in interface CollectionEntity
@Valid public @Valid List<Contact> getContactPersons()
Contactable
getContactPersons
in interface Contactable
public void setContactPersons(List<Contact> contactPersons)
setContactPersons
in interface Contactable
@Valid @NotNull public @Valid @NotNull 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<AlternativeCode> getAlternativeCodes()
getAlternativeCodes
in interface CollectionEntity
public void setAlternativeCodes(List<AlternativeCode> alternativeCodes)
setAlternativeCodes
in interface CollectionEntity
@NotNull public @NotNull List<Comment> getComments()
getComments
in interface Commentable
public void setComments(List<Comment> comments)
setComments
in interface Commentable
@NotNull public @NotNull List<OccurrenceMapping> getOccurrenceMappings()
getOccurrenceMappings
in interface OccurrenceMappeable
public void setOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings)
setOccurrenceMappings
in interface OccurrenceMappeable
public UUID getReplacedBy()
CollectionEntity
getReplacedBy
in interface CollectionEntity
public void setReplacedBy(UUID replacedBy)
setReplacedBy
in interface CollectionEntity
public MasterSourceType getMasterSource()
CollectionEntity
getMasterSource
in interface CollectionEntity
public void setMasterSource(MasterSourceType masterSource)
setMasterSource
in interface CollectionEntity
public MasterSourceMetadata getMasterSourceMetadata()
CollectionEntity
getMasterSourceMetadata
in interface CollectionEntity
public void setMasterSourceMetadata(MasterSourceMetadata masterSourceMetadata)
setMasterSourceMetadata
in interface CollectionEntity
public Boolean getDisplayOnNHCPortal()
CollectionEntity
getDisplayOnNHCPortal
in interface CollectionEntity
public void setDisplayOnNHCPortal(Boolean displayOnNHCPortal)
setDisplayOnNHCPortal
in interface CollectionEntity
@Nullable public URI getFeaturedImageUrl()
getFeaturedImageUrl
in interface CollectionEntity
public void setFeaturedImageUrl(URI featuredImageUrl)
setFeaturedImageUrl
in interface CollectionEntity
@Nullable public License getFeaturedImageLicense()
getFeaturedImageLicense
in interface CollectionEntity
public void setFeaturedImageLicense(License featuredImageLicense)
setFeaturedImageLicense
in interface CollectionEntity
@Nullable public String getTemporalCoverage()
public String getCountry()
public String getProvince()
@Nullable public String getFeaturedImageAttribution()
getFeaturedImageAttribution
in interface CollectionEntity
public void setFeaturedImageAttribution(String featuredImageAttribution)
setFeaturedImageAttribution
in interface CollectionEntity
public boolean lenientEquals(Collection other)
LenientEquals
lenientEquals
in interface LenientEquals<Collection>
other
- To compare againstCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.