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 classMailInboundChannelModel.AuthenticationPropertiesstatic classMailInboundChannelModel.CustomProperty
-
Field Summary
Fields Modifier and Type Field Description protected MailInboundChannelModel.AuthenticationPropertiesauthenticationThe authentication configuration.protected java.util.List<MailInboundChannelModel.CustomProperty>customPropertiesThe custom properties that should be passed to the mail receiver.protected java.lang.StringdeleteMessagesWhether messages should be deleted after they've been received.protected java.lang.StringmarkMessagesAsReadWhether messages should be marked as read once they've been received.protected java.lang.StringmaxMessagesPerPollThe maximum number of messages that should be polled in one polling iteration.protected java.lang.StringpollingRateThe duration at which the messages from the mail server should be polled.protected java.util.regex.PatternsubjectCorrelationPatternA pattern that can be used to extract groups from the subject that should be used for creating the subject correlation payload.protected java.lang.StringsupportsIdleWhether the IMAP server support IMAP IDLE.protected java.lang.StringurlThe IMAP url for the inbound mailprotected java.lang.StringuserFlagThe 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 voidaddCustomProperty(java.lang.String name, java.lang.String value)MailInboundChannelModel.AuthenticationPropertiesgetAuthentication()java.util.List<MailInboundChannelModel.CustomProperty>getCustomProperties()java.lang.StringgetDeleteMessages()java.lang.StringgetMarkMessagesAsRead()java.lang.StringgetMaxMessagesPerPoll()java.lang.StringgetPollingRate()java.util.regex.PatterngetSubjectCorrelationPattern()java.lang.StringgetSubjectCorrelationPatternString()java.lang.StringgetSupportsIdle()java.lang.StringgetUrl()java.lang.StringgetUserFlag()voidsetAuthentication(MailInboundChannelModel.AuthenticationProperties authentication)voidsetCustomProperties(java.util.List<MailInboundChannelModel.CustomProperty> customProperties)voidsetDeleteMessages(java.lang.String deleteMessages)voidsetMarkMessagesAsRead(java.lang.String markMessagesAsRead)voidsetMaxMessagesPerPoll(java.lang.String maxMessagesPerPoll)voidsetPollingRate(java.lang.String pollingRate)voidsetSubjectCorrelationPattern(java.lang.String subjectCorrelationPattern)voidsetSubjectCorrelationPattern(java.util.regex.Pattern subjectCorrelationPattern)voidsetSupportsIdle(java.lang.String supportsIdle)voidsetUrl(java.lang.String url)voidsetUserFlag(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 totruethen 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)
-
-