public class InboundUnsupportedMessageServiceImpl extends Object implements InboundUnsupportedMessageService
Modifier and Type | Field and Description |
---|---|
protected ExternalConversationService |
externalConversationService |
static String |
FALLBACK_LANGUAGE |
protected PlatformIdentityService |
identityService |
protected InboundMessageRoutingService |
inboundMessageRoutingService |
protected org.slf4j.Logger |
logger |
protected MessageService |
messageService |
protected TemplateService |
templateService |
Constructor and Description |
---|
InboundUnsupportedMessageServiceImpl(InboundMessageRoutingService inboundMessageRoutingService,
MessageService messageService,
ExternalConversationService externalConversationService,
TemplateService templateService,
PlatformIdentityService identityService) |
public static final String FALLBACK_LANGUAGE
protected final org.slf4j.Logger logger
protected final InboundMessageRoutingService inboundMessageRoutingService
protected final MessageService messageService
protected final ExternalConversationService externalConversationService
protected final TemplateService templateService
protected final PlatformIdentityService identityService
public InboundUnsupportedMessageServiceImpl(InboundMessageRoutingService inboundMessageRoutingService, MessageService messageService, ExternalConversationService externalConversationService, TemplateService templateService, PlatformIdentityService identityService)
public void unsupportedMessageReceived(InboundMessage inboundMessage, UserAccount userAccount)
InboundUnsupportedMessageService
UserAccount
for the receive message is known it would
be sent in the requestunsupportedMessageReceived
in interface InboundUnsupportedMessageService
inboundMessage
- the received inbound messageuserAccount
- the optional user account (if there is one for the user account)protected void unsupportedMessageReceivedNoAccount(InboundMessage inboundMessage)
protected void unsupportedMessageReceivedInactiveAccount(InboundMessage inboundMessage, UserAccount userAccount)
protected void unsupportedMessageReceivedActiveAccount(InboundMessage inboundMessage, UserAccount userAccount)
protected void sendInternalUnsupportedMessageInConversation(String conversationIdForUserAccount, InboundMessage inboundMessage, UserAccount userAccount)
protected void sendPrivateUnsupportedMessageInConversation(String conversationIdForUserAccount, InboundMessage inboundMessage, UserAccount userAccount)
protected void sendUnsupportedMessageDirectlyToUser(InboundMessage inboundMessage, UserAccount userAccount)
protected String getExternalUnsupportedMessage(InboundMessage inboundMessage, UserAccount userAccount)
protected String getMessageExternalId(InboundMessage inboundMessage)
protected boolean isDuplicateMessage(String externalId)
protected String getLanguageForAccount(UserAccount userAccount)
protected String getTenantForAccount(UserAccount userAccount)