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 void
addEndpoint(Endpoint endpoint)
void
addMachineTag(MachineTag machineTag)
boolean
equals(Object o)
List<String>
getAddress()
deliveryPoint in EML@Size(min=1) String
getCity()
city in EMLList<Comment>
getComments()
List<Contact>
getContacts()
Country
getCountry()
country in EMLDate
getCreated()
String
getCreatedBy()
Date
getDeleted()
String
getDescription()
List<String>
getEmail()
electronicMailAddress in EMLList<Endpoint>
getEndpoints()
List<URI>
getHomepage()
List of homepage websites.List<Identifier>
getIdentifiers()
UUID
getKey()
@NotNull Language
getLanguage()
URI
getLogoUrl()
List<MachineTag>
getMachineTags()
Date
getModified()
String
getModifiedBy()
@javax.validation.constraints.Min(0L) int
getNumConstituents()
String
getOrganization()
Alias for the network titleList<String>
getPhone()
phone in EML@Size(min=1) String
getPostalCode()
postalCode in EML@Size(min=1) String
getProvince()
administrativeArea in EMLList<Tag>
getTags()
String
getTitle()
int
hashCode()
boolean
lenientEquals(Network other)
Tests persisted fields, excluding the server controlled values such as key and createdBy.void
setAddress(List<String> address)
void
setCity(String city)
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
setEmail(List<String> email)
void
setEndpoints(List<Endpoint> endpoints)
void
setHomepage(List<URI> homepage)
void
setIdentifiers(List<Identifier> identifiers)
void
setKey(UUID key)
void
setLanguage(Language language)
void
setLogoUrl(URI logoUrl)
void
setMachineTags(List<MachineTag> machineTags)
void
setModified(Date modified)
void
setModifiedBy(String modifiedBy)
void
setNumConstituents(int numConstituents)
void
setOrganization(String organization)
Alias for the network titlevoid
setPhone(List<String> phone)
void
setPostalCode(String postalCode)
void
setProvince(String province)
void
setTags(List<Tag> tags)
void
setTitle(String title)
String
toString()
-
-
-
Constructor Detail
-
Network
public Network()
-
-
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
-
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
-
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
-
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:
getOrganization
in interfaceAddress
-
setOrganization
public void setOrganization(String organization)
Alias for the network title- Specified by:
setOrganization
in 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:
lenientEquals
in interfaceLenientEquals<Network>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-