public class ExternalConversationServiceImpl extends CommonEngineServiceImpl<EngageEngineConfiguration> implements ExternalConversationService
commandExecutorconfiguration| Constructor and Description |
|---|
ExternalConversationServiceImpl(EngageEngineConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected ExternalConversationSystemAdapter |
getAdapter(CommandContext commandContext,
String externalSystemId) |
ExternalConversationSystemAdapter |
getExternalSystemAdapter(String externalSystemId) |
void |
sendMessage(String recipientAccountId,
String messageId)
Invoked by the engagement system to send a message to an external user account.
|
void |
validateMessage(UserAccount recipientAccount,
Message message)
Invoked byb the engagement system to validate the message that should be sent to the external user account.
|
getCommandExecutor, setCommandExecutorgetConfigurationpublic ExternalConversationServiceImpl(EngageEngineConfiguration configuration)
public void sendMessage(String recipientAccountId, String messageId)
ExternalConversationServicesendMessage in interface ExternalConversationServicerecipientAccountId - the recipient account id that needs to receive the messagemessageId - the id of the message that needs to be sendpublic void validateMessage(UserAccount recipientAccount, Message message)
ExternalConversationServicevalidateMessage in interface ExternalConversationServicerecipientAccount - the recipient account that should received the messagemessage - the message that should be validatedpublic ExternalConversationSystemAdapter getExternalSystemAdapter(String externalSystemId)
getExternalSystemAdapter in interface ExternalConversationServiceprotected ExternalConversationSystemAdapter getAdapter(CommandContext commandContext, String externalSystemId)