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 an Issue
    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.Set<java.lang.String> 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.
      java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getAttributes()
      Returns an unmodifiable cached view of attributes which can be used to identify the contact (see ContactIdentifier for further information).
      java.util.Optional<java.lang.String> getExternalId()
      The external id of a Contact may be used to associate the novomind iAGENT contact object with external customer data.
      java.util.Optional<Tenant> getTenant()
      Returns the Tenant that is currently assigned to the Contact.
      • Methods inherited from interface com.novomind.ecom.common.api.persistence.Entity

        compareTo, getId, isDeleted, isNotDeleted
      • Methods inherited from interface com.novomind.ecom.common.api.attribute.Named

        getName
    • 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
      • getAssignedPhoneNumbers

        java.util.Set<java.lang.String> 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

        java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getAttributes()
        Returns an unmodifiable cached view of attributes which can be used to identify the contact (see ContactIdentifier for 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

        java.util.Optional<java.lang.String> getExternalId()
        The external id of a Contact 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 the Tenant that is currently assigned to the Contact. If the Contact is not assigned to any Tenant an empty optional is returned.
        Returns:
        the optionally assigned Tenant or an empty optional, if no Tenant is assigned to the Contact
        Since:
        11.26