com.atlassian.confluence.mail.notification
Class NotificationEmailHelper

java.lang.Object
  extended by com.atlassian.confluence.mail.notification.NotificationEmailHelper

public class NotificationEmailHelper
extends java.lang.Object

Helper methods for generating and parsing message ids.

Since:
5.3

Nested Class Summary
static interface NotificationEmailHelper.ContentFinder
          Finder for content ids.
 
Constructor Summary
NotificationEmailHelper()
           
 
Method Summary
static ContentEntityObject extractTargetContentFromNotificationEmailReply(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, NotificationEmailHelper.ContentFinder contentFinder)
          Retrieves the relevant content object from the given (reply) email headers.
static void populateWithTrackingHeaders(com.atlassian.mail.Email mail, java.lang.Long contentId)
          Adds a message id and reply address derived from the given content id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationEmailHelper

public NotificationEmailHelper()
Method Detail

extractTargetContentFromNotificationEmailReply

public static ContentEntityObject extractTargetContentFromNotificationEmailReply(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers,
                                                                                 NotificationEmailHelper.ContentFinder contentFinder)
Retrieves the relevant content object from the given (reply) email headers.

Parameters:
headers - the headers from an email reply
contentFinder - function to resolve ContentEntityObjects from a content id.
Returns:
the ContentEntityObject resolved.

populateWithTrackingHeaders

public static void populateWithTrackingHeaders(com.atlassian.mail.Email mail,
                                               java.lang.Long contentId)
Adds a message id and reply address derived from the given content id

Parameters:
mail - the mail to modify
contentId - the content id


Copyright © 2003-2013 Atlassian. All Rights Reserved.