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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEndpoint
(Endpoint endpoint) void
addMachineTag
(MachineTag machineTag) boolean
@Size(min=1,max=30) String
deliveryPoint in EMLgetCity()
city in EML@NotNull Country
country in EMLgetEmail()
electronicMailAddress in EML@NotNull UUID
List of homepage websites.getKey()
@NotNull Language
@Min(-90L) @Max(90L) BigDecimal
@Min(-180L) @Max(180L) BigDecimal
@javax.validation.constraints.Min(0L) int
Institution name as part of the addressGet the organization password.getPhone()
phone in EMLpostalCode in EMLadministrativeArea in EMLgetTags()
getTitle()
int
hashCode()
boolean
boolean
lenientEquals
(Organization other) A lenient equality check for business logic uniqueness.void
setAbbreviation
(String abbreviation) void
setAddress
(List<String> address) void
void
setComments
(List<Comment> comments) void
setContacts
(List<Contact> contacts) void
setCountry
(Country country) void
setCreated
(Date created) void
setCreatedBy
(String createdBy) void
setDeleted
(Date deleted) void
setDescription
(String description) void
void
setEndorsed
(Date endorsed) void
setEndorsementApproved
(boolean endorsementApproved) void
setEndorsementStatus
(EndorsementStatus endorsementStatus) void
setEndorsingNodeKey
(UUID endorsingNodeKey) void
setEndpoints
(List<Endpoint> endpoints) void
setHomepage
(List<URI> homepage) void
setIdentifiers
(List<Identifier> identifiers) void
void
setLanguage
(Language language) void
setLatitude
(BigDecimal latitude) void
setLogoUrl
(URI logoUrl) void
setLongitude
(BigDecimal longitude) void
setMachineTags
(List<MachineTag> machineTags) void
setModified
(Date modified) void
setModifiedBy
(String modifiedBy) void
setNumPublishedDatasets
(int numPublishedDatasets) void
setOrganization
(String organization) void
setPassword
(String password) void
void
setPostalCode
(String postalCode) void
setProvince
(String province) void
void
toString()
-
Constructor Details
-
Organization
public Organization()
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceNetworkEntity
-
setKey
- Specified by:
setKey
in interfaceNetworkEntity
-
getTitle
- Specified by:
getTitle
in interfaceNetworkEntity
-
setTitle
- Specified by:
setTitle
in interfaceNetworkEntity
-
getDescription
- Specified by:
getDescription
in interfaceNetworkEntity
-
setDescription
- Specified by:
setDescription
in interfaceNetworkEntity
-
getCreated
- Specified by:
getCreated
in interfaceNetworkEntity
-
setCreated
- Specified by:
setCreated
in interfaceNetworkEntity
-
getModified
- Specified by:
getModified
in interfaceNetworkEntity
-
setModified
- Specified by:
setModified
in interfaceNetworkEntity
-
getDeleted
- Specified by:
getDeleted
in interfaceNetworkEntity
-
setDeleted
- Specified by:
setDeleted
in interfaceNetworkEntity
-
getEndorsed
-
setEndorsed
-
getEndorsingNodeKey
-
setEndorsingNodeKey
-
isEndorsementApproved
-
setEndorsementApproved
-
getEndorsementStatus
-
setEndorsementStatus
-
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
-
getAbbreviation
-
setAbbreviation
-
getLanguage
-
setLanguage
-
getEmail
Description copied from interface:Address
electronicMailAddress in EML -
setEmail
-
getPhone
Description copied from interface:Address
phone in EML -
setPhone
-
getHomepage
Description copied from interface:Address
List of homepage websites.- Specified by:
getHomepage
in interfaceAddress
-
setHomepage
- Specified by:
setHomepage
in interfaceAddress
-
getLogoUrl
-
setLogoUrl
-
getAddress
Description copied from interface:Address
deliveryPoint in EML- Specified by:
getAddress
in interfaceAddress
-
setAddress
- Specified by:
setAddress
in interfaceAddress
-
getCity
Description copied from interface:Address
city in EML -
setCity
-
getProvince
Description copied from interface:Address
administrativeArea in EML- Specified by:
getProvince
in interfaceAddress
-
setProvince
- Specified by:
setProvince
in interfaceAddress
-
getCountry
Description copied from interface:Address
country in EML- Specified by:
getCountry
in interfaceAddress
-
setCountry
- Specified by:
setCountry
in interfaceAddress
-
getPostalCode
Description copied from interface:Address
postalCode in EML- Specified by:
getPostalCode
in interfaceAddress
-
setPostalCode
- Specified by:
setPostalCode
in interfaceAddress
-
getOrganization
Description copied from interface:Address
Institution name as part of the address- Specified by:
getOrganization
in interfaceAddress
-
setOrganization
- Specified by:
setOrganization
in interfaceAddress
-
getLatitude
-
setLatitude
-
getLongitude
-
setLongitude
-
getNumPublishedDatasets
-
setNumPublishedDatasets
-
getCreatedBy
- Specified by:
getCreatedBy
in interfaceNetworkEntity
-
setCreatedBy
- Specified by:
setCreatedBy
in interfaceNetworkEntity
-
getModifiedBy
- Specified by:
getModifiedBy
in interfaceNetworkEntity
-
setModifiedBy
- Specified by:
setModifiedBy
in interfaceNetworkEntity
-
getContacts
- Specified by:
getContacts
in interfaceContactable
-
setContacts
- Specified by:
setContacts
in interfaceContactable
-
getEndpoints
- Specified by:
getEndpoints
in interfaceEndpointable
-
setEndpoints
- Specified by:
setEndpoints
in interfaceEndpointable
-
addEndpoint
- Specified by:
addEndpoint
in interfaceEndpointable
-
getMachineTags
- Specified by:
getMachineTags
in interfaceMachineTaggable
-
setMachineTags
- Specified by:
setMachineTags
in interfaceMachineTaggable
-
addMachineTag
- Specified by:
addMachineTag
in interfaceMachineTaggable
-
getTags
-
setTags
-
getIdentifiers
- Specified by:
getIdentifiers
in interfaceIdentifiable
-
setIdentifiers
- Specified by:
setIdentifiers
in interfaceIdentifiable
-
getComments
- Specified by:
getComments
in interfaceCommentable
-
setComments
- Specified by:
setComments
in interfaceCommentable
-
equals
-
hashCode
-
toString
-
lenientEquals
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...
-