Package org.gbif.api.model.registry
Class Organization
- java.lang.Object
-
- org.gbif.api.model.registry.Organization
-
- All Implemented Interfaces:
Serializable,Address,Commentable,Contactable,Endpointable,Identifiable,LenientEquals<Organization>,MachineTaggable,NetworkEntity,Taggable
public class Organization extends Object implements NetworkEntity, Contactable, Endpointable, MachineTaggable, Taggable, Identifiable, Commentable, LenientEquals<Organization>, Address
A GBIF data publisher.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Organization()
-
Method Summary
-
-
-
Constructor Detail
-
Organization
public Organization()
-
-
Method Detail
-
getKey
public UUID getKey()
- Specified by:
getKeyin interfaceNetworkEntity
-
setKey
public void setKey(UUID key)
- Specified by:
setKeyin interfaceNetworkEntity
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceNetworkEntity
-
setTitle
public void setTitle(String title)
- Specified by:
setTitlein interfaceNetworkEntity
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceNetworkEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceNetworkEntity
-
getCreated
public Date getCreated()
- Specified by:
getCreatedin interfaceNetworkEntity
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceNetworkEntity
-
getModified
public Date getModified()
- Specified by:
getModifiedin interfaceNetworkEntity
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceNetworkEntity
-
getDeleted
public Date getDeleted()
- Specified by:
getDeletedin interfaceNetworkEntity
-
setDeleted
public void setDeleted(Date deleted)
- Specified by:
setDeletedin interfaceNetworkEntity
-
getEndorsed
public Date getEndorsed()
-
setEndorsed
public void setEndorsed(Date endorsed)
-
getEndorsingNodeKey
@NotNull public @NotNull UUID getEndorsingNodeKey()
-
setEndorsingNodeKey
public void setEndorsingNodeKey(UUID endorsingNodeKey)
-
isEndorsementApproved
public boolean isEndorsementApproved()
-
setEndorsementApproved
public void setEndorsementApproved(boolean endorsementApproved)
-
getEndorsementStatus
public EndorsementStatus getEndorsementStatus()
-
setEndorsementStatus
public void setEndorsementStatus(EndorsementStatus endorsementStatus)
-
getPassword
@Nullable public String getPassword()
Get the organization password. This method is to be ignored on serialization, so that the password is not revealed in the web service response.- Returns:
- organization password
-
setPassword
public void setPassword(String password)
-
getAbbreviation
@Nullable @Size(min=1, max=30) public @Size(min=1,max=30) String getAbbreviation()
-
setAbbreviation
public void setAbbreviation(String abbreviation)
-
getLanguage
@NotNull public @NotNull Language getLanguage()
-
setLanguage
public void setLanguage(Language language)
-
getEmail
@Nullable public List<String> getEmail()
Description copied from interface:AddresselectronicMailAddress in EML
-
getPhone
@Nullable public List<String> getPhone()
Description copied from interface:Addressphone in EML
-
getHomepage
@Nullable public List<URI> getHomepage()
Description copied from interface:AddressList of homepage websites.- Specified by:
getHomepagein interfaceAddress
-
setHomepage
public void setHomepage(List<URI> homepage)
- Specified by:
setHomepagein interfaceAddress
-
getLogoUrl
@Nullable public URI getLogoUrl()
-
setLogoUrl
public void setLogoUrl(URI logoUrl)
-
getAddress
@Nullable public List<String> getAddress()
Description copied from interface:AddressdeliveryPoint in EML- Specified by:
getAddressin interfaceAddress
-
setAddress
public void setAddress(List<String> address)
- Specified by:
setAddressin interfaceAddress
-
getProvince
@Nullable public String getProvince()
Description copied from interface:AddressadministrativeArea in EML- Specified by:
getProvincein interfaceAddress
-
setProvince
public void setProvince(String province)
- Specified by:
setProvincein interfaceAddress
-
getCountry
@NotNull public @NotNull Country getCountry()
Description copied from interface:Addresscountry in EML- Specified by:
getCountryin interfaceAddress
-
setCountry
public void setCountry(Country country)
- Specified by:
setCountryin interfaceAddress
-
getPostalCode
@Nullable public String getPostalCode()
Description copied from interface:AddresspostalCode in EML- Specified by:
getPostalCodein interfaceAddress
-
setPostalCode
public void setPostalCode(String postalCode)
- Specified by:
setPostalCodein interfaceAddress
-
getOrganization
@Nullable public String getOrganization()
Description copied from interface:AddressInstitution name as part of the address- Specified by:
getOrganizationin interfaceAddress
-
setOrganization
public void setOrganization(String organization)
- Specified by:
setOrganizationin interfaceAddress
-
getLatitude
@Nullable @Min(-90L) @Max(90L) public @Min(-90L) @Max(90L) BigDecimal getLatitude()
-
setLatitude
public void setLatitude(BigDecimal latitude)
-
getLongitude
@Nullable @Min(-180L) @Max(180L) public @Min(-180L) @Max(180L) BigDecimal getLongitude()
-
setLongitude
public void setLongitude(BigDecimal longitude)
-
getNumPublishedDatasets
@Min(0L) public @javax.validation.constraints.Min(0L) int getNumPublishedDatasets()
-
setNumPublishedDatasets
public void setNumPublishedDatasets(int numPublishedDatasets)
-
getCreatedBy
public String getCreatedBy()
- Specified by:
getCreatedByin interfaceNetworkEntity
-
setCreatedBy
public void setCreatedBy(String createdBy)
- Specified by:
setCreatedByin interfaceNetworkEntity
-
getModifiedBy
public String getModifiedBy()
- Specified by:
getModifiedByin interfaceNetworkEntity
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
- Specified by:
setModifiedByin interfaceNetworkEntity
-
getContacts
public List<Contact> getContacts()
- Specified by:
getContactsin interfaceContactable
-
setContacts
public void setContacts(List<Contact> contacts)
- Specified by:
setContactsin interfaceContactable
-
getEndpoints
public List<Endpoint> getEndpoints()
- Specified by:
getEndpointsin interfaceEndpointable
-
setEndpoints
public void setEndpoints(List<Endpoint> endpoints)
- Specified by:
setEndpointsin interfaceEndpointable
-
addEndpoint
public void addEndpoint(Endpoint endpoint)
- Specified by:
addEndpointin interfaceEndpointable
-
getMachineTags
public 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
-
getIdentifiers
public List<Identifier> getIdentifiers()
- Specified by:
getIdentifiersin interfaceIdentifiable
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
- Specified by:
setIdentifiersin interfaceIdentifiable
-
getComments
public List<Comment> getComments()
- Specified by:
getCommentsin interfaceCommentable
-
setComments
public void setComments(List<Comment> comments)
- Specified by:
setCommentsin interfaceCommentable
-
lenientEquals
public boolean lenientEquals(Organization other)
A lenient equality check for business logic uniqueness. Does not include server side controlled fields such as key and createdBy, nested objects and does not include password for security reasons.- Specified by:
lenientEqualsin interfaceLenientEquals<Organization>- Parameters:
other- To compare against- Returns:
- true if...
-
-