Interface ContactFacet
- All Superinterfaces:
org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,Serializable
- All Known Implementing Classes:
ContactFacetImpl
@TypeMetadata(name="ContactFacet",
description="ContactFacet captures information on a point of contact for the resource, i.e., a person or a department serving as the coordinator or focal point of information concerning the resource.",
version="1.1.0")
@Change(version="1.1.0",description="Added id property and removed the mandatory constraint on the email property to provide more flexibility and comply with privacy regulations (e.g., GDPR).") @Change(version="1.0.0",description="First Version")
public interface ContactFacet
extends org.gcube.informationsystem.model.reference.entities.Facet
ContactFacet captures information on a point of contact for the resource,
i.e., a person or a department serving as the coordinator or focal point
of information concerning the resource.
https://wiki.gcube-system.org/gcube/GCube_Model#Contact_Facet
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe pattern for email validationstatic final StringThe name of 'eMail' propertystatic final StringThe name associated with this facetstatic final StringThe version associated with this facetFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionstatic ContactFacetReturns a default instance of ContactFacetgetEMail()The email address of the point of contact.getId()An identifier for the point of contact.The middle name of the point of contact.getName()The first name of the point of contact.The surname of the point of contact.getTitle()A name describing the profession or marital status of the point of contact. e.g., Dr, Mrs, Mr.voidSets the email address of the point of contact.voidSets the id of the point of contact.voidsetMiddleName(String middleName) Sets the middle name of the point of contact.voidSets the first name of the point of contact.voidsetSurname(String surname) Sets the surname of the point of contact.voidSets the title of the point of contact.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
NAME
The name associated with this facet- See Also:
-
VERSION
The version associated with this facet- See Also:
-
EMAIL_PROPERTY
The name of 'eMail' property- See Also:
-
EMAIL_PATTERN
The pattern for email validation- See Also:
-
-
Method Details
-
getDefaultInstance
Returns a default instance of ContactFacet- Returns:
- a default instance of ContactFacet
-
getId
An identifier for the point of contact.- Returns:
- the id
-
setId
Sets the id of the point of contact.- Parameters:
id- the id
-
getTitle
@ISProperty(description="A name describing the profession or marital status of the point of contact. e.g., Dr, Mrs, Mr.") String getTitle()A name describing the profession or marital status of the point of contact. e.g., Dr, Mrs, Mr.- Returns:
- the title
-
setTitle
Sets the title of the point of contact.- Parameters:
title- the title
-
getName
The first name of the point of contact.- Returns:
- the name
-
setName
Sets the first name of the point of contact.- Parameters:
name- the name
-
getMiddleName
The middle name of the point of contact.- Returns:
- the middle name
-
setMiddleName
Sets the middle name of the point of contact.- Parameters:
middleName- the middle name
-
getSurname
The surname of the point of contact.- Returns:
- the surname
-
setSurname
Sets the surname of the point of contact.- Parameters:
surname- the surname
-
getEMail
@ISProperty(description="Email address", name="eMail", nullable=false, regexpr="^[a-z0-9._%+-]{1,128}@[a-z0-9.-]{1,128}$") String getEMail()The email address of the point of contact.- Returns:
- the email
-
setEMail
Sets the email address of the point of contact.- Parameters:
eMail- the email
-