Package org.gbif.api.model.registry
Class Network
- java.lang.Object
-
- org.gbif.api.model.registry.Network
-
- All Implemented Interfaces:
Serializable,Address,Commentable,Contactable,Endpointable,Identifiable,LenientEquals<Network>,MachineTaggable,NetworkEntity,Taggable
public class Network extends Object implements NetworkEntity, Contactable, Endpointable, MachineTaggable, Taggable, Commentable, Identifiable, LenientEquals<Network>, Address
A GBIF network. Networks are collections of datasets, organized outside the Node-Organization model to serve some purpose.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Network()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEndpoint(Endpoint endpoint)voidaddMachineTag(MachineTag machineTag)booleanequals(Object o)List<String>getAddress()deliveryPoint in EML@Size(min=1) StringgetCity()city in EMLList<Comment>getComments()List<Contact>getContacts()CountrygetCountry()country in EMLDategetCreated()StringgetCreatedBy()DategetDeleted()StringgetDescription()List<String>getEmail()electronicMailAddress in EMLList<Endpoint>getEndpoints()List<URI>getHomepage()List of homepage websites.List<Identifier>getIdentifiers()UUIDgetKey()@NotNull LanguagegetLanguage()URIgetLogoUrl()List<MachineTag>getMachineTags()DategetModified()StringgetModifiedBy()@javax.validation.constraints.Min(0L) intgetNumConstituents()StringgetOrganization()Alias for the network titleList<String>getPhone()phone in EML@Size(min=1) StringgetPostalCode()postalCode in EML@Size(min=1) StringgetProvince()administrativeArea in EMLList<Tag>getTags()StringgetTitle()inthashCode()booleanlenientEquals(Network other)Tests persisted fields, excluding the server controlled values such as key and createdBy.voidsetAddress(List<String> address)voidsetCity(String city)voidsetComments(List<Comment> comments)voidsetContacts(List<Contact> contacts)voidsetCountry(Country country)voidsetCreated(Date created)voidsetCreatedBy(String createdBy)voidsetDeleted(Date deleted)voidsetDescription(String description)voidsetEmail(List<String> email)voidsetEndpoints(List<Endpoint> endpoints)voidsetHomepage(List<URI> homepage)voidsetIdentifiers(List<Identifier> identifiers)voidsetKey(UUID key)voidsetLanguage(Language language)voidsetLogoUrl(URI logoUrl)voidsetMachineTags(List<MachineTag> machineTags)voidsetModified(Date modified)voidsetModifiedBy(String modifiedBy)voidsetNumConstituents(int numConstituents)voidsetOrganization(String organization)Alias for the network titlevoidsetPhone(List<String> phone)voidsetPostalCode(String postalCode)voidsetProvince(String province)voidsetTags(List<Tag> tags)voidsetTitle(String title)StringtoString()
-
-
-
Constructor Detail
-
Network
public Network()
-
-
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
-
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
-
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
-
getNumConstituents
@Min(0L) public @javax.validation.constraints.Min(0L) int getNumConstituents()
-
setNumConstituents
public void setNumConstituents(int numConstituents)
-
getOrganization
@Nullable public String getOrganization()
Alias for the network title- Specified by:
getOrganizationin interfaceAddress
-
setOrganization
public void setOrganization(String organization)
Alias for the network title- Specified by:
setOrganizationin interfaceAddress
-
lenientEquals
public boolean lenientEquals(Network other)
Tests persisted fields, excluding the server controlled values such as key and createdBy. Does not included nested properties in the test.- Specified by:
lenientEqualsin interfaceLenientEquals<Network>- Parameters:
other- To compare against- Returns:
- true if...
-
-