Interface Contact
- All Superinterfaces:
Comparable<com.novomind.ecom.common.api.persistence.Entity>,com.novomind.ecom.common.api.persistence.Entity,com.novomind.ecom.common.api.attribute.Named,StorageProvider
public interface Contact
extends com.novomind.ecom.common.api.persistence.Entity, com.novomind.ecom.common.api.attribute.Named, StorageProvider
Represents a contact object associated with an
Issue- Since:
- 11.26
-
Method Summary
Modifier and TypeMethodDescriptionSet<jakarta.mail.internet.InternetAddress> Returns an unmodifiable cached view of the assigned email addresses.Returns an unmodifiable cached view of the assigned phone numbers as Fully Qualified Telephone Numbers according to ITU-T standard E.164 (e.g.Returns an unmodifiable cached view of attributes which can be used to identify the contact (seeContactIdentifierfor further information).The external id of aContactmay be used to associate the novomind iAGENT contact object with external customer data.Returns theTenantthat is currently assigned to theContact.Methods inherited from interface com.novomind.ecom.common.api.persistence.Entity
compareTo, getId, isDeleted, isNotDeletedMethods inherited from interface com.novomind.ecom.common.api.attribute.Named
getNameMethods inherited from interface com.novomind.ecom.api.iagent.provider.StorageProvider
getStorage
-
Method Details
-
getAssignedAddresses
Set<jakarta.mail.internet.InternetAddress> getAssignedAddresses()Returns an unmodifiable cached view of the assigned email addresses. The returned set is not updated when assignments change.- Returns:
- the set of currently assigned email addresses
- Since:
- 11.26
-
getAssignedPhoneNumbers
Returns an unmodifiable cached view of the assigned phone numbers as Fully Qualified Telephone Numbers according to ITU-T standard E.164 (e.g. +49401234567). The returned set is not updated when assignments change.- Returns:
- the set of currently assigned phone numbers
- Since:
- 12.14
-
getAttributes
Returns an unmodifiable cached view of attributes which can be used to identify the contact (seeContactIdentifierfor further information). The key is the name of the attribute which maps to the associated attribute values. An example of a contact attribute would be an id which identifies the contact in an external service. The returned map is not updated when the contact attributes change.- Returns:
- the map of attributes which can be used to identify the contact
- Since:
- 12.14
-
getExternalId
The external id of aContactmay be used to associate the novomind iAGENT contact object with external customer data. The external id is not used by the novomind iAGENT system internally.- Returns:
- the optional external id as string, or an empty optional if not set.
- Since:
- 11.26
-
getTenant
Returns theTenantthat is currently assigned to theContact. If theContactis not assigned to anyTenantan empty optional is returned.- Returns:
- the optionally assigned
Tenantor an empty optional, if noTenantis assigned to theContact - Since:
- 11.26
-