public class ConfiguredInboundMessageTenantExtractor extends Object implements InboundMessageTenantExtractor
Modifier and Type | Field and Description |
---|---|
protected String |
noAccountTenantId
The tenant id to be used to send the no account system event to if no user account yet mapped on a new inbound message.
|
Constructor and Description |
---|
ConfiguredInboundMessageTenantExtractor(String noAccountTenantId) |
Modifier and Type | Method and Description |
---|---|
String |
extractTenantId(InboundMessage inboundMessage)
Extracts the tenant id out of the provided new inbound message which is not yet mapped to a user account object and hence no direct tenant is yet
available.
|
String |
getNoAccountTenantId() |
void |
setNoAccountTenantId(String noAccountTenantId) |
protected String noAccountTenantId
public ConfiguredInboundMessageTenantExtractor(String noAccountTenantId)
public String extractTenantId(InboundMessage inboundMessage)
InboundMessageTenantExtractor
extractTenantId
in interface InboundMessageTenantExtractor
inboundMessage
- the inbound message to extract the tenant id from (most likely encoded within the message content or a default one)public String getNoAccountTenantId()
public void setNoAccountTenantId(String noAccountTenantId)