Package org.gbif.api.model.collections
Class Institution
- java.lang.Object
-
- org.gbif.api.model.collections.Institution
-
- All Implemented Interfaces:
Serializable,CollectionEntity,Contactable,OccurrenceMappeable,Commentable,Identifiable,LenientEquals<Institution>,MachineTaggable,Taggable
public class Institution extends Object implements CollectionEntity, LenientEquals<Institution>
The owner or location of collection. Usually an established organization or foundation, especially one dedicated to education, public service, or culture.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Institution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMachineTag(MachineTag machineTag)@Valid AddressgetAddress()Physical or associated address.List<AlternativeCode>getAlternativeCodes()Alternative codes for an institution.List<URI>getApiUrls()Machine-consumable endpoint of an institution and probably its collections.List<URI>getCatalogUrls()URL to the main catalogue of an institution.StringgetCity()@NotNull(groups=PrePersist.class) StringgetCode()Code used to identify the collection.List<Comment>getComments()@Valid List<Contact>getContactPersons()List of associated contacts.StringgetCountry()DategetCreated()Date when the records as created.StringgetCreatedBy()Creator of the database record.DategetDeleted()Date when the records was (logically) deleted.@Size(min=1) StringgetDescription()Textual description of institution.BooleangetDisplayOnNHCPortal()Flag to display the entity in the NHC portal.List<String>getEmail()Emails of the entityStringgetFeaturedImageAttribution()LicensegetFeaturedImageLicense()URIgetFeaturedImageUrl()URIgetHomepage()URL to the home page of an institution.List<Identifier>getIdentifiers()UUIDgetKey()GBIF unique identifier.URIgetLogoUrl()Logo/Image that identifies the institution.@NotNull List<MachineTag>getMachineTags()@Valid AddressgetMailingAddress()Address used to send and receive mail.MasterSourceTypegetMasterSource()Master source of the entity.MasterSourceMetadatagetMasterSourceMetadata()Master source metadataDategetModified()Date when the records was last modified.StringgetModifiedBy()Person or agent that modified the database record.@NotNull StringgetName()Name or title of an institution.List<OccurrenceMapping>getOccurrenceMappings()List<String>getPhone()Phones of the entityStringgetProvince()UUIDgetReplacedBy()Replacement of the entity (if applies).List<Tag>getTags()booleanisActive()Is the institution active/operational?.booleanlenientEquals(Institution other)Leniently tests if the objects are the same.voidsetActive(boolean active)voidsetAddress(Address address)voidsetAlternativeCodes(List<AlternativeCode> alternativeCodes)voidsetCode(String code)voidsetComments(List<Comment> comments)voidsetContactPersons(List<Contact> contactPersons)voidsetCreated(Date created)voidsetCreatedBy(String createdBy)voidsetDeleted(Date deleted)voidsetDescription(String description)voidsetDisplayOnNHCPortal(Boolean displayOnNHCPortal)voidsetEmail(List<String> email)voidsetFeaturedImageAttribution(String featuredImageAttribution)voidsetFeaturedImageLicense(License featuredImageLicense)voidsetFeaturedImageUrl(URI featuredImageUrl)voidsetIdentifiers(List<Identifier> identifiers)voidsetKey(UUID key)voidsetMachineTags(List<MachineTag> machineTags)voidsetMailingAddress(Address mailingAddress)voidsetMasterSource(MasterSourceType masterSource)voidsetMasterSourceMetadata(MasterSourceMetadata masterSourceMetadata)voidsetModified(Date modified)voidsetModifiedBy(String modifiedBy)voidsetName(String name)voidsetOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings)voidsetPhone(List<String> phone)voidsetReplacedBy(UUID replacedBy)voidsetTags(List<Tag> tags)
-
-
-
Constructor Detail
-
Institution
public Institution()
-
-
Method Detail
-
getKey
public UUID getKey()
GBIF unique identifier.- Specified by:
getKeyin interfaceCollectionEntity
-
setKey
public void setKey(UUID key)
- Specified by:
setKeyin interfaceCollectionEntity
-
getCode
@NotNull(groups=PrePersist.class) public @NotNull(groups=PrePersist.class) String getCode()
Code used to identify the collection.- Specified by:
getCodein interfaceCollectionEntity
-
setCode
public void setCode(String code)
- Specified by:
setCodein interfaceCollectionEntity
-
getName
@NotNull public @NotNull String getName()
Name or title of an institution.- Specified by:
getNamein interfaceCollectionEntity
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceCollectionEntity
-
getDescription
@Nullable @Size(min=1) public @Size(min=1) String getDescription()
Textual description of institution.- Specified by:
getDescriptionin interfaceCollectionEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceCollectionEntity
-
isActive
public boolean isActive()
Is the institution active/operational?.- Specified by:
isActivein interfaceCollectionEntity
-
setActive
public void setActive(boolean active)
- Specified by:
setActivein interfaceCollectionEntity
-
getEmail
public List<String> getEmail()
Description copied from interface:CollectionEntityEmails of the entity- Specified by:
getEmailin interfaceCollectionEntity
-
setEmail
public void setEmail(List<String> email)
- Specified by:
setEmailin interfaceCollectionEntity
-
getPhone
public List<String> getPhone()
Description copied from interface:CollectionEntityPhones of the entity- Specified by:
getPhonein interfaceCollectionEntity
-
setPhone
public void setPhone(List<String> phone)
- Specified by:
setPhonein interfaceCollectionEntity
-
getHomepage
@Nullable public URI getHomepage()
URL to the home page of an institution.
-
getCatalogUrls
@Nullable public List<URI> getCatalogUrls()
URL to the main catalogue of an institution.
-
getApiUrls
@Nullable public List<URI> getApiUrls()
Machine-consumable endpoint of an institution and probably its collections.
-
getMailingAddress
@Nullable @Valid public @Valid Address getMailingAddress()
Description copied from interface:ContactableAddress used to send and receive mail.- Specified by:
getMailingAddressin interfaceContactable
-
setMailingAddress
public void setMailingAddress(Address mailingAddress)
- Specified by:
setMailingAddressin interfaceContactable
-
getAddress
@Nullable @Valid public @Valid Address getAddress()
Description copied from interface:ContactablePhysical or associated address.- Specified by:
getAddressin interfaceContactable
-
setAddress
public void setAddress(Address address)
- Specified by:
setAddressin interfaceContactable
-
getLogoUrl
@Nullable public URI getLogoUrl()
Logo/Image that identifies the institution.
-
getCreatedBy
public String getCreatedBy()
Description copied from interface:CollectionEntityCreator of the database record.- Specified by:
getCreatedByin interfaceCollectionEntity
-
setCreatedBy
public void setCreatedBy(String createdBy)
- Specified by:
setCreatedByin interfaceCollectionEntity
-
getModifiedBy
public String getModifiedBy()
Description copied from interface:CollectionEntityPerson or agent that modified the database record.- Specified by:
getModifiedByin interfaceCollectionEntity
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
- Specified by:
setModifiedByin interfaceCollectionEntity
-
getCreated
public Date getCreated()
Description copied from interface:CollectionEntityDate when the records as created.- Specified by:
getCreatedin interfaceCollectionEntity
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceCollectionEntity
-
getModified
public Date getModified()
Description copied from interface:CollectionEntityDate when the records was last modified.- Specified by:
getModifiedin interfaceCollectionEntity
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceCollectionEntity
-
getDeleted
public Date getDeleted()
Description copied from interface:CollectionEntityDate when the records was (logically) deleted.- Specified by:
getDeletedin interfaceCollectionEntity
-
setDeleted
public void setDeleted(Date deleted)
- Specified by:
setDeletedin interfaceCollectionEntity
-
getIdentifiers
public List<Identifier> getIdentifiers()
- Specified by:
getIdentifiersin interfaceIdentifiable
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
- Specified by:
setIdentifiersin interfaceIdentifiable
-
getContactPersons
@Valid public @Valid List<Contact> getContactPersons()
Description copied from interface:ContactableList of associated contacts.- Specified by:
getContactPersonsin interfaceContactable
-
setContactPersons
public void setContactPersons(List<Contact> contactPersons)
- Specified by:
setContactPersonsin interfaceContactable
-
getMachineTags
@NotNull public @NotNull List<MachineTag> getMachineTags()
- Specified by:
getMachineTagsin interfaceMachineTaggable
-
setMachineTags
public void setMachineTags(List<MachineTag> machineTags)
- Specified by:
setMachineTagsin interfaceMachineTaggable
-
addMachineTag
public void addMachineTag(MachineTag machineTag)
- Specified by:
addMachineTagin interfaceMachineTaggable
-
getAlternativeCodes
public List<AlternativeCode> getAlternativeCodes()
Alternative codes for an institution.- Specified by:
getAlternativeCodesin interfaceCollectionEntity
-
setAlternativeCodes
public void setAlternativeCodes(List<AlternativeCode> alternativeCodes)
- Specified by:
setAlternativeCodesin interfaceCollectionEntity
-
getComments
public List<Comment> getComments()
- Specified by:
getCommentsin interfaceCommentable
-
setComments
public void setComments(List<Comment> comments)
- Specified by:
setCommentsin interfaceCommentable
-
getOccurrenceMappings
public List<OccurrenceMapping> getOccurrenceMappings()
- Specified by:
getOccurrenceMappingsin interfaceOccurrenceMappeable
-
setOccurrenceMappings
public void setOccurrenceMappings(List<OccurrenceMapping> occurrenceMappings)
- Specified by:
setOccurrenceMappingsin interfaceOccurrenceMappeable
-
getReplacedBy
public UUID getReplacedBy()
Description copied from interface:CollectionEntityReplacement of the entity (if applies).- Specified by:
getReplacedByin interfaceCollectionEntity
-
setReplacedBy
public void setReplacedBy(UUID replacedBy)
- Specified by:
setReplacedByin interfaceCollectionEntity
-
getMasterSource
public MasterSourceType getMasterSource()
Description copied from interface:CollectionEntityMaster source of the entity.- Specified by:
getMasterSourcein interfaceCollectionEntity
-
setMasterSource
public void setMasterSource(MasterSourceType masterSource)
- Specified by:
setMasterSourcein interfaceCollectionEntity
-
getMasterSourceMetadata
public MasterSourceMetadata getMasterSourceMetadata()
Description copied from interface:CollectionEntityMaster source metadata- Specified by:
getMasterSourceMetadatain interfaceCollectionEntity
-
setMasterSourceMetadata
public void setMasterSourceMetadata(MasterSourceMetadata masterSourceMetadata)
- Specified by:
setMasterSourceMetadatain interfaceCollectionEntity
-
getDisplayOnNHCPortal
public Boolean getDisplayOnNHCPortal()
Description copied from interface:CollectionEntityFlag to display the entity in the NHC portal.- Specified by:
getDisplayOnNHCPortalin interfaceCollectionEntity
-
setDisplayOnNHCPortal
public void setDisplayOnNHCPortal(Boolean displayOnNHCPortal)
- Specified by:
setDisplayOnNHCPortalin interfaceCollectionEntity
-
getFeaturedImageUrl
@Nullable public URI getFeaturedImageUrl()
- Specified by:
getFeaturedImageUrlin interfaceCollectionEntity
-
setFeaturedImageUrl
public void setFeaturedImageUrl(URI featuredImageUrl)
- Specified by:
setFeaturedImageUrlin interfaceCollectionEntity
-
getFeaturedImageLicense
@Nullable public License getFeaturedImageLicense()
- Specified by:
getFeaturedImageLicensein interfaceCollectionEntity
-
setFeaturedImageLicense
public void setFeaturedImageLicense(License featuredImageLicense)
- Specified by:
setFeaturedImageLicensein interfaceCollectionEntity
-
getFeaturedImageAttribution
@Nullable public String getFeaturedImageAttribution()
- Specified by:
getFeaturedImageAttributionin interfaceCollectionEntity
-
setFeaturedImageAttribution
public void setFeaturedImageAttribution(String featuredImageAttribution)
- Specified by:
setFeaturedImageAttributionin interfaceCollectionEntity
-
getCountry
public String getCountry()
-
getProvince
public String getProvince()
-
lenientEquals
public boolean lenientEquals(Institution other)
Description copied from interface:LenientEqualsLeniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEqualsin interfaceLenientEquals<Institution>- Parameters:
other- To compare against- Returns:
- true if...
-
-