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:
getKey
in interfaceNetworkEntity
-
setKey
public void setKey(UUID key)
- Specified by:
setKey
in interfaceNetworkEntity
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceNetworkEntity
-
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interfaceNetworkEntity
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceNetworkEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceNetworkEntity
-
getCreated
public Date getCreated()
- Specified by:
getCreated
in interfaceNetworkEntity
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreated
in interfaceNetworkEntity
-
getModified
public Date getModified()
- Specified by:
getModified
in interfaceNetworkEntity
-
setModified
public void setModified(Date modified)
- Specified by:
setModified
in interfaceNetworkEntity
-
getDeleted
public Date getDeleted()
- Specified by:
getDeleted
in interfaceNetworkEntity
-
setDeleted
public void setDeleted(Date deleted)
- Specified by:
setDeleted
in 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:Address
electronicMailAddress in EML
-
getPhone
@Nullable public List<String> getPhone()
Description copied from interface:Address
phone in EML
-
getHomepage
@Nullable public List<URI> getHomepage()
Description copied from interface:Address
List of homepage websites.- Specified by:
getHomepage
in interfaceAddress
-
setHomepage
public void setHomepage(List<URI> homepage)
- Specified by:
setHomepage
in interfaceAddress
-
getLogoUrl
@Nullable public URI getLogoUrl()
-
setLogoUrl
public void setLogoUrl(URI logoUrl)
-
getAddress
@Nullable public List<String> getAddress()
Description copied from interface:Address
deliveryPoint in EML- Specified by:
getAddress
in interfaceAddress
-
setAddress
public void setAddress(List<String> address)
- Specified by:
setAddress
in interfaceAddress
-
getProvince
@Nullable public String getProvince()
Description copied from interface:Address
administrativeArea in EML- Specified by:
getProvince
in interfaceAddress
-
setProvince
public void setProvince(String province)
- Specified by:
setProvince
in interfaceAddress
-
getCountry
@NotNull public @NotNull Country getCountry()
Description copied from interface:Address
country in EML- Specified by:
getCountry
in interfaceAddress
-
setCountry
public void setCountry(Country country)
- Specified by:
setCountry
in interfaceAddress
-
getPostalCode
@Nullable public String getPostalCode()
Description copied from interface:Address
postalCode in EML- Specified by:
getPostalCode
in interfaceAddress
-
setPostalCode
public void setPostalCode(String postalCode)
- Specified by:
setPostalCode
in interfaceAddress
-
getOrganization
@Nullable public String getOrganization()
Description copied from interface:Address
Institution name as part of the address- Specified by:
getOrganization
in interfaceAddress
-
setOrganization
public void setOrganization(String organization)
- Specified by:
setOrganization
in 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:
getCreatedBy
in interfaceNetworkEntity
-
setCreatedBy
public void setCreatedBy(String createdBy)
- Specified by:
setCreatedBy
in interfaceNetworkEntity
-
getModifiedBy
public String getModifiedBy()
- Specified by:
getModifiedBy
in interfaceNetworkEntity
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
- Specified by:
setModifiedBy
in interfaceNetworkEntity
-
getContacts
public List<Contact> getContacts()
- Specified by:
getContacts
in interfaceContactable
-
setContacts
public void setContacts(List<Contact> contacts)
- Specified by:
setContacts
in interfaceContactable
-
getEndpoints
public List<Endpoint> getEndpoints()
- Specified by:
getEndpoints
in interfaceEndpointable
-
setEndpoints
public void setEndpoints(List<Endpoint> endpoints)
- Specified by:
setEndpoints
in interfaceEndpointable
-
addEndpoint
public void addEndpoint(Endpoint endpoint)
- Specified by:
addEndpoint
in interfaceEndpointable
-
getMachineTags
public List<MachineTag> getMachineTags()
- Specified by:
getMachineTags
in interfaceMachineTaggable
-
setMachineTags
public void setMachineTags(List<MachineTag> machineTags)
- Specified by:
setMachineTags
in interfaceMachineTaggable
-
addMachineTag
public void addMachineTag(MachineTag machineTag)
- Specified by:
addMachineTag
in interfaceMachineTaggable
-
getIdentifiers
public List<Identifier> getIdentifiers()
- Specified by:
getIdentifiers
in interfaceIdentifiable
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
- Specified by:
setIdentifiers
in interfaceIdentifiable
-
getComments
public List<Comment> getComments()
- Specified by:
getComments
in interfaceCommentable
-
setComments
public void setComments(List<Comment> comments)
- Specified by:
setComments
in 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:
lenientEquals
in interfaceLenientEquals<Organization>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-