Class ExtendedMessage
- java.lang.Object
-
- com.novomind.ecom.api.imail.core.connector.ExtendedMessage
-
public final class ExtendedMessage extends java.lang.Object
Wraps aMessage
and provides additional information during messages retrieval by theExtendedMessageConnector
.- Since:
- 11.32
-
-
Constructor Summary
Constructors Constructor Description ExtendedMessage(javax.mail.Message message)
Constructs aExtendedMessage
with the specified message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ContactIdentifier>
getContactIdentifier()
This method returns the additional contact information used as secondary search criteria while searching an existing contact.javax.mail.Message
getMessage()
Returns the message retrieved by theExtendedMessageConnector
.ExtendedMessage
setContactIdentifier(ContactIdentifier contactIdentifier)
This method allows to set the ContactIdentifier used as secondary search criteria while searching an existing contact for theTicket
that may be created due to the message.
-
-
-
Method Detail
-
getMessage
public javax.mail.Message getMessage()
Returns the message retrieved by theExtendedMessageConnector
.- Returns:
- the message retrieved by the
ExtendedMessageConnector
. - Since:
- 11.32
-
getContactIdentifier
public java.util.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 theTicket
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
-
-