Package org.gbif.api.model.registry
Class Node
- java.lang.Object
-
- org.gbif.api.model.registry.Node
-
- All Implemented Interfaces:
Serializable,Address,Commentable,Contactable,Endpointable,Identifiable,LenientEquals<Node>,MachineTaggable,NetworkEntity,Taggable
public class Node extends Object implements NetworkEntity, Contactable, Taggable, MachineTaggable, Commentable, Identifiable, Endpointable, LenientEquals<Node>, Address
A GBIF participant node. Primarily managed in the GBIF Directory.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Node()
-
Method Summary
-
-
-
Constructor Detail
-
Node
public Node()
-
-
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
-
getParticipantTitle
public String getParticipantTitle()
-
setParticipantTitle
public void setParticipantTitle(String participantTitle)
-
getAbbreviation
@Nullable @Size(min=1, max=10) public @Size(min=1,max=10) String getAbbreviation()
-
setAbbreviation
public void setAbbreviation(String abbreviation)
-
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
-
getParticipationStatus
@NotNull public @NotNull ParticipationStatus getParticipationStatus()
-
setParticipationStatus
public void setParticipationStatus(ParticipationStatus participationStatus)
-
getParticipantSince
@Nullable public Integer getParticipantSince()
4 digit year since the node participant first joined GBIF.
-
setParticipantSince
public void setParticipantSince(Integer participantSince)
-
getDateSignedMOU
public Date getDateSignedMOU()
-
setDateSignedMOU
public void setDateSignedMOU(Date dateSignedMOU)
-
getGbifRegion
@Nullable public GbifRegion getGbifRegion()
-
setGbifRegion
public void setGbifRegion(GbifRegion gbifRegion)
-
getContinent
@Nullable public Continent getContinent()
-
setContinent
public void setContinent(Continent continent)
-
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)
-
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
-
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
-
getCity
@Nullable @Size(min=1) public @Size(min=1) String getCity()
Description copied from interface:Addresscity in EML
-
getProvince
@Nullable @Size(min=1) public @Size(min=1) String getProvince()
Description copied from interface:AddressadministrativeArea in EML- Specified by:
getProvincein interfaceAddress
-
setProvince
public void setProvince(String province)
- Specified by:
setProvincein interfaceAddress
-
getCountry
@Nullable public 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 @Size(min=1) public @Size(min=1) String getPostalCode()
Description copied from interface:AddresspostalCode in EML- Specified by:
getPostalCodein interfaceAddress
-
setPostalCode
public void setPostalCode(String postalCode)
- Specified by:
setPostalCodein interfaceAddress
-
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(Node other)
Compares the entities for business logic equality using a very lenient approach. Only fields persisted in the registry database are used in the comparison, excluding any nested properties and supplementary information which can be added from external databases such as the IMS. Server controlled values such as key and createdBy are omitted.- Specified by:
lenientEqualsin interfaceLenientEquals<Node>- Parameters:
other- To compare against- Returns:
- true if...
-
-