Class MailChannelModelProcessor
java.lang.Object
com.flowable.platform.engine.impl.eventregistry.mail.MailChannelModelProcessor
- All Implemented Interfaces:
ChannelModelProcessor
,Aware
,BeanFactoryAware
public class MailChannelModelProcessor
extends Object
implements ChannelModelProcessor, BeanFactoryAware
- Author:
- Filip Hrisafov
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected BeanFactory
static final String
protected MailListenerContainerFactory
protected String
protected StringValueResolver
protected BeanExpressionContext
protected org.springframework.integration.dsl.context.IntegrationFlowContext
protected MessagePayloadExtractor
protected com.fasterxml.jackson.databind.ObjectMapper
protected BeanExpressionResolver
protected static final InboundEventProcessingPipeline
-
Constructor Summary
ConstructorDescriptionMailChannelModelProcessor
(org.springframework.integration.dsl.context.IntegrationFlowContext integrationFlowContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, MessagePayloadExtractor messagePayloadExtractor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canProcess
(ChannelModel channelModel) boolean
canProcessIfChannelModelAlreadyRegistered
(ChannelModel channelModel) protected MailListenerEndpoint
createListenerEndpoint
(MailInboundChannelModel model, String tenantId) protected MessageHandler
createMessageHandler
(EventRegistry eventRegistry, MailInboundChannelModel channelModel, String tenantId) protected String
getEndpointId
(ChannelModel channelModel, String tenantId) org.springframework.integration.dsl.context.IntegrationFlowContext
com.fasterxml.jackson.databind.ObjectMapper
protected void
processInboundModel
(MailInboundChannelModel channelModel, String tenantId, EventRegistry eventRegistry) void
registerChannelModel
(ChannelModel channelModel, String tenantId, EventRegistry eventRegistry, EventRepositoryService eventRepositoryService, boolean fallbackToDefaultTenant) protected void
registerEndpoint
(MailListenerEndpoint endpoint, MessageHandler messageHandler) protected String
protected jakarta.mail.Authenticator
protected MailListenerContainerFactory
resolveContainerFactory
(MailListenerEndpoint endpoint) protected Duration
resolveDurationExpression
(String value, String attribute) protected InboundEventTenantDetector<jakarta.mail.internet.MimeMessage>
resolveEventTenantDetector
(MailInboundChannelModel channelModel, String defaultTenantId) protected Object
resolveExpression
(String value) protected jakarta.mail.Authenticator
resolveExpressionAsAuthenticator
(String delegatingAuthenticator, String modelKey) protected Boolean
resolveExpressionAsBoolean
(String value, String attribute) protected Long
resolveExpressionAsLong
(String value, String attribute) protected String
resolveExpressionAsString
(String value, String attribute) protected <T> T
resolveFlowableExpression
(String expression, Class<T> type, String modelKey) protected Properties
resolveProperties
(List<MailInboundChannelModel.CustomProperty> mailProperties) protected String
resolveUrl
(MailInboundChannelModel channelModel) void
setBeanFactory
(BeanFactory beanFactory) void
setChannelOverrideConfigurations
(Map<String, MailChannelModelProcessor.ChannelOverrideConfiguration> channelOverrideConfigurations) void
setContainerFactory
(MailListenerContainerFactory containerFactory) void
setContainerFactoryBeanName
(String containerFactoryBeanName) void
setIntegrationFlowContext
(org.springframework.integration.dsl.context.IntegrationFlowContext integrationFlowContext) void
setMessagePayloadExtractor
(MessagePayloadExtractor messagePayloadExtractor) void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) void
unregisterChannelModel
(ChannelModel channelModel, String tenantId, EventRepositoryService eventRepositoryService)
-
Field Details
-
CHANNEL_ID_PREFIX
- See Also:
-
UNSUPPORTED_EVENT_PROCESSING_PIPELINE
-
integrationFlowContext
protected org.springframework.integration.dsl.context.IntegrationFlowContext integrationFlowContext -
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
messagePayloadExtractor
-
containerFactoryBeanName
-
containerFactory
-
channelOverrideConfigurations
protected Map<String,MailChannelModelProcessor.ChannelOverrideConfiguration> channelOverrideConfigurations -
beanFactory
-
resolver
-
embeddedValueResolver
-
expressionContext
-
-
Constructor Details
-
MailChannelModelProcessor
public MailChannelModelProcessor(org.springframework.integration.dsl.context.IntegrationFlowContext integrationFlowContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, MessagePayloadExtractor messagePayloadExtractor)
-
-
Method Details
-
canProcess
- Specified by:
canProcess
in interfaceChannelModelProcessor
-
canProcessIfChannelModelAlreadyRegistered
- Specified by:
canProcessIfChannelModelAlreadyRegistered
in interfaceChannelModelProcessor
-
registerChannelModel
public void registerChannelModel(ChannelModel channelModel, String tenantId, EventRegistry eventRegistry, EventRepositoryService eventRepositoryService, boolean fallbackToDefaultTenant) - Specified by:
registerChannelModel
in interfaceChannelModelProcessor
-
processInboundModel
protected void processInboundModel(MailInboundChannelModel channelModel, String tenantId, EventRegistry eventRegistry) -
registerEndpoint
-
createListenerEndpoint
protected MailListenerEndpoint createListenerEndpoint(MailInboundChannelModel model, String tenantId) -
createMessageHandler
protected MessageHandler createMessageHandler(EventRegistry eventRegistry, MailInboundChannelModel channelModel, String tenantId) -
resolveEventTenantDetector
protected InboundEventTenantDetector<jakarta.mail.internet.MimeMessage> resolveEventTenantDetector(MailInboundChannelModel channelModel, String defaultTenantId) -
resolveContainerFactory
-
getEndpointId
-
resolveAuthenticator
-
resolveExpressionAsAuthenticator
-
resolveDurationExpression
-
resolveExpressionAsBoolean
-
resolveExpressionAsLong
-
resolveUrl
-
resolveExpressionAsString
-
resolveExpression
-
resolve
-
resolveFlowableExpression
-
resolveProperties
-
unregisterChannelModel
public void unregisterChannelModel(ChannelModel channelModel, String tenantId, EventRepositoryService eventRepositoryService) - Specified by:
unregisterChannelModel
in interfaceChannelModelProcessor
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
getIntegrationFlowContext
public org.springframework.integration.dsl.context.IntegrationFlowContext getIntegrationFlowContext() -
setIntegrationFlowContext
public void setIntegrationFlowContext(org.springframework.integration.dsl.context.IntegrationFlowContext integrationFlowContext) -
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getMessagePayloadExtractor
-
setMessagePayloadExtractor
-
getContainerFactoryBeanName
-
setContainerFactoryBeanName
-
getContainerFactory
-
setContainerFactory
-
getChannelOverrideConfigurations
public Map<String,MailChannelModelProcessor.ChannelOverrideConfiguration> getChannelOverrideConfigurations() -
setChannelOverrideConfigurations
public void setChannelOverrideConfigurations(Map<String, MailChannelModelProcessor.ChannelOverrideConfiguration> channelOverrideConfigurations)
-