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:
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
-
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:
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
-
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: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)
-
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
-
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
-
getCity
@Nullable @Size(min=1) public @Size(min=1) String getCity()
Description copied from interface:Address
city in EML
-
getProvince
@Nullable @Size(min=1) public @Size(min=1) 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
@Nullable public 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 @Size(min=1) public @Size(min=1) 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
-
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(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:
lenientEquals
in interfaceLenientEquals<Node>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-