Class ExtendedMessage

java.lang.Object
com.novomind.ecom.api.imail.core.connector.ExtendedMessage

public final class ExtendedMessage extends Object
Wraps a Message and provides additional information during messages retrieval by the ExtendedMessageConnector.
Since:
11.32
  • Constructor Details

    • ExtendedMessage

      public ExtendedMessage(jakarta.mail.Message message)
      Constructs a ExtendedMessage with the specified message.
      Parameters:
      message - the Message contained in this ExtendedMessage
      Since:
      11.32
  • Method Details

    • getMessage

      public jakarta.mail.Message getMessage()
      Returns the message retrieved by the ExtendedMessageConnector.
      Returns:
      the message retrieved by the ExtendedMessageConnector.
      Since:
      11.32
    • getContactIdentifier

      public Optional<ContactIdentifier> getContactIdentifier()
      This method returns the additional contact information used as secondary search criteria while searching an existing contact. The attributes will be assigned to the existing or newly created contact.
      Returns:
      the optional contact identifier or an empty optional if no contact identifier is set
      Since:
      11.32
    • setContactIdentifier

      public ExtendedMessage setContactIdentifier(ContactIdentifier contactIdentifier)
      This method allows to set the ContactIdentifier used as secondary search criteria while searching an existing contact for the Ticket that may be created due to the message. The attributes will be assigned to the existing or newly created contact.
      Parameters:
      contactIdentifier - the contact identifier to be used as secondary search criteria
      Returns:
      the instance for fluent usage
      Since:
      11.32