@ExperimentalSpi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskEmailAttachmentMatcher
Implementations of this, will be invoked when attachments are included in any email that creates a new issue or comments on an existing issue.
How to determine if an attachment should be stripped, and therefore not added to the issue is left up to the implementations to determine.
Modifier and Type | Interface and Description |
---|---|
static interface |
ServiceDeskEmailAttachmentMatcher.Attachment
A simple representation of a mail attachment after it has been extracted from a message.
|
static interface |
ServiceDeskEmailAttachmentMatcher.AttachmentContent
A simple representation of a mail attachment's actual content, after it has been extracted from a message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldStripAttachment(ServiceDeskEmailAttachmentMatcher.Attachment attachment)
Given an
ServiceDeskEmailAttachmentMatcher.Attachment return whether it should be stripped (ie. |
boolean shouldStripAttachment(ServiceDeskEmailAttachmentMatcher.Attachment attachment)
ServiceDeskEmailAttachmentMatcher.Attachment
return whether it should be stripped (ie. removed) from further processing, and therefore
not added to the issue.
If there are multiple implementations of this interface, than when True is returned from one, additional implementations will no longer be invoked.
attachment
- The attachment to check whether should be stripped from the issue.Copyright © 2023 Atlassian. All rights reserved.