Class MailInboundChannelModel
- java.lang.Object
-
- org.flowable.eventregistry.model.ChannelModel
-
- org.flowable.eventregistry.model.InboundChannelModel
-
- com.flowable.platform.engine.impl.eventregistry.mail.MailInboundChannelModel
-
public class MailInboundChannelModel extends org.flowable.eventregistry.model.InboundChannelModel
- Author:
- Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MailInboundChannelModel.AuthenticationProperties
static class
MailInboundChannelModel.CustomProperty
-
Field Summary
Fields Modifier and Type Field Description protected MailInboundChannelModel.AuthenticationProperties
authentication
The authentication configuration.protected java.util.List<MailInboundChannelModel.CustomProperty>
customProperties
The custom properties that should be passed to the mail receiver.protected java.lang.String
deleteMessages
Whether messages should be deleted after they've been received.protected java.lang.String
markMessagesAsRead
Whether messages should be marked as read once they've been received.protected java.lang.String
maxMessagesPerPoll
The maximum number of messages that should be polled in one polling iteration.protected java.lang.String
pollingRate
The duration at which the messages from the mail server should be polled.protected java.util.regex.Pattern
subjectCorrelationPattern
A pattern that can be used to extract groups from the subject that should be used for creating the subject correlation payload.protected java.lang.String
supportsIdle
Whether the IMAP server support IMAP IDLE.protected java.lang.String
url
The IMAP url for the inbound mailprotected java.lang.String
userFlag
The name of the flag to use to flag messages when the server does not support \Recent, but supports user flags.-
Fields inherited from class org.flowable.eventregistry.model.InboundChannelModel
channelEventKeyDetection, channelEventTenantIdDetection, deserializerDelegateExpression, deserializerType, eventTransformerDelegateExpression, inboundEventChannelAdapter, inboundEventProcessingPipeline, payloadExtractorDelegateExpression, pipelineDelegateExpression
-
-
Constructor Summary
Constructors Constructor Description MailInboundChannelModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomProperty(java.lang.String name, java.lang.String value)
MailInboundChannelModel.AuthenticationProperties
getAuthentication()
java.util.List<MailInboundChannelModel.CustomProperty>
getCustomProperties()
java.lang.String
getDeleteMessages()
java.lang.String
getMarkMessagesAsRead()
java.lang.String
getMaxMessagesPerPoll()
java.lang.String
getPollingRate()
java.util.regex.Pattern
getSubjectCorrelationPattern()
java.lang.String
getSubjectCorrelationPatternString()
java.lang.String
getSupportsIdle()
java.lang.String
getUrl()
java.lang.String
getUserFlag()
void
setAuthentication(MailInboundChannelModel.AuthenticationProperties authentication)
void
setCustomProperties(java.util.List<MailInboundChannelModel.CustomProperty> customProperties)
void
setDeleteMessages(java.lang.String deleteMessages)
void
setMarkMessagesAsRead(java.lang.String markMessagesAsRead)
void
setMaxMessagesPerPoll(java.lang.String maxMessagesPerPoll)
void
setPollingRate(java.lang.String pollingRate)
void
setSubjectCorrelationPattern(java.lang.String subjectCorrelationPattern)
void
setSubjectCorrelationPattern(java.util.regex.Pattern subjectCorrelationPattern)
void
setSupportsIdle(java.lang.String supportsIdle)
void
setUrl(java.lang.String url)
void
setUserFlag(java.lang.String userFlag)
-
Methods inherited from class org.flowable.eventregistry.model.InboundChannelModel
getChannelEventKeyDetection, getChannelEventTenantIdDetection, getDeserializerDelegateExpression, getDeserializerType, getEventTransformerDelegateExpression, getInboundEventChannelAdapter, getInboundEventProcessingPipeline, getPayloadExtractorDelegateExpression, getPipelineDelegateExpression, setChannelEventKeyDetection, setChannelEventTenantIdDetection, setDeserializerDelegateExpression, setDeserializerType, setEventTransformerDelegateExpression, setInboundEventChannelAdapter, setInboundEventProcessingPipeline, setPayloadExtractorDelegateExpression, setPipelineDelegateExpression
-
-
-
-
Field Detail
-
url
protected java.lang.String url
The IMAP url for the inbound mail
-
deleteMessages
protected java.lang.String deleteMessages
Whether messages should be deleted after they've been received. If not set the global default will be used.
-
markMessagesAsRead
protected java.lang.String markMessagesAsRead
Whether messages should be marked as read once they've been received. If not set the global default will be used.
-
userFlag
protected java.lang.String userFlag
The name of the flag to use to flag messages when the server does not support \Recent, but supports user flags. If not set the global default will be used.
-
supportsIdle
protected java.lang.String supportsIdle
Whether the IMAP server support IMAP IDLE. When this is set totrue
then IMAP IDLE will be used to receive messages.
-
pollingRate
protected java.lang.String pollingRate
The duration at which the messages from the mail server should be polled.
-
maxMessagesPerPoll
protected java.lang.String maxMessagesPerPoll
The maximum number of messages that should be polled in one polling iteration.
-
subjectCorrelationPattern
protected java.util.regex.Pattern subjectCorrelationPattern
A pattern that can be used to extract groups from the subject that should be used for creating the subject correlation payload.
-
authentication
protected MailInboundChannelModel.AuthenticationProperties authentication
The authentication configuration.
-
customProperties
protected java.util.List<MailInboundChannelModel.CustomProperty> customProperties
The custom properties that should be passed to the mail receiver.
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
getDeleteMessages
public java.lang.String getDeleteMessages()
-
setDeleteMessages
public void setDeleteMessages(java.lang.String deleteMessages)
-
getMarkMessagesAsRead
public java.lang.String getMarkMessagesAsRead()
-
setMarkMessagesAsRead
public void setMarkMessagesAsRead(java.lang.String markMessagesAsRead)
-
getUserFlag
public java.lang.String getUserFlag()
-
setUserFlag
public void setUserFlag(java.lang.String userFlag)
-
getSupportsIdle
public java.lang.String getSupportsIdle()
-
setSupportsIdle
public void setSupportsIdle(java.lang.String supportsIdle)
-
getPollingRate
public java.lang.String getPollingRate()
-
getMaxMessagesPerPoll
public java.lang.String getMaxMessagesPerPoll()
-
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(java.lang.String maxMessagesPerPoll)
-
setPollingRate
public void setPollingRate(java.lang.String pollingRate)
-
getSubjectCorrelationPattern
public java.util.regex.Pattern getSubjectCorrelationPattern()
-
setSubjectCorrelationPattern
public void setSubjectCorrelationPattern(java.util.regex.Pattern subjectCorrelationPattern)
-
getSubjectCorrelationPatternString
public java.lang.String getSubjectCorrelationPatternString()
-
setSubjectCorrelationPattern
public void setSubjectCorrelationPattern(java.lang.String subjectCorrelationPattern)
-
getAuthentication
public MailInboundChannelModel.AuthenticationProperties getAuthentication()
-
setAuthentication
public void setAuthentication(MailInboundChannelModel.AuthenticationProperties authentication)
-
getCustomProperties
public java.util.List<MailInboundChannelModel.CustomProperty> getCustomProperties()
-
addCustomProperty
public void addCustomProperty(java.lang.String name, java.lang.String value)
-
setCustomProperties
public void setCustomProperties(java.util.List<MailInboundChannelModel.CustomProperty> customProperties)
-
-