Interface Contact
-
- All Superinterfaces:
java.lang.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 anIssue
- Since:
- 11.26
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<javax.mail.internet.InternetAddress>
getAssignedAddresses()
Returns an unmodifiable cached view of the assigned email addresses.java.util.Optional<java.lang.String>
getExternalId()
The external id of aContact
may be used to associate the novomind iAGENT contact object with external customer data.java.util.Optional<Tenant>
getTenant()
Returns theTenant
that is currently assigned to theContact
.-
Methods inherited from interface com.novomind.ecom.common.api.persistence.Entity
compareTo, getId, isDeleted, isNotDeleted
-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.StorageProvider
getStorage
-
-
-
-
Method Detail
-
getAssignedAddresses
java.util.Set<javax.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
-
getExternalId
java.util.Optional<java.lang.String> getExternalId()
The external id of aContact
may 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
java.util.Optional<Tenant> getTenant()
Returns theTenant
that is currently assigned to theContact
. If theContact
is not assigned to anyTenant
an empty optional is returned.- Returns:
- the optionally assigned
Tenant
or an empty optional, if noTenant
is assigned to theContact
- Since:
- 11.26
-
-