public class NotificationEmailHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
NotificationEmailHelper.ContentFinder
Finder for content ids.
|
| Constructor and Description |
|---|
NotificationEmailHelper(com.atlassian.mail.server.MailServerManager mailServerManager) |
| Modifier and Type | Method and Description |
|---|---|
ContentEntityObject |
extractTargetContentFromEmailReply(Map<String,List<String>> headers,
NotificationEmailHelper.ContentFinder contentFinder)
Retrieves the relevant content object from the given (reply) email headers.
|
static ContentEntityObject |
extractTargetContentFromNotificationEmailReply(Map<String,List<String>> headers,
NotificationEmailHelper.ContentFinder contentFinder)
|
static NotificationEmailHelper |
newNotificationEmailHelper()
Deprecated.
|
void |
populateTrackingHeaders(com.atlassian.mail.Email mail,
Long contentId)
Adds a message id and reply address derived from the given content id
|
static void |
populateWithTrackingHeaders(com.atlassian.mail.Email mail,
Long contentId)
Deprecated.
since 5.8 Use
populateTrackingHeaders(com.atlassian.mail.Email, Long) |
public NotificationEmailHelper(com.atlassian.mail.server.MailServerManager mailServerManager)
@Deprecated public static ContentEntityObject extractTargetContentFromNotificationEmailReply(Map<String,List<String>> headers, NotificationEmailHelper.ContentFinder contentFinder)
extractTargetContentFromEmailReply(java.util.Map, com.atlassian.confluence.mail.notification.NotificationEmailHelper.ContentFinder)headers - the headers from an email replycontentFinder - function to resolve ContentEntityObjects from a content id.ContentEntityObject resolved.public ContentEntityObject extractTargetContentFromEmailReply(Map<String,List<String>> headers, NotificationEmailHelper.ContentFinder contentFinder)
headers - the headers from an email replycontentFinder - function to resolve ContentEntityObjects from a content id.ContentEntityObject resolved.@Deprecated public static void populateWithTrackingHeaders(com.atlassian.mail.Email mail, Long contentId)
populateTrackingHeaders(com.atlassian.mail.Email, Long)mail - the mail to modifycontentId - the content idpublic void populateTrackingHeaders(com.atlassian.mail.Email mail,
Long contentId)
mail - the mail to modifycontentId - the content id@Deprecated public static NotificationEmailHelper newNotificationEmailHelper()
Copyright © 2003–2017 Atlassian. All rights reserved.