com.atlassian.confluence.mail.archive.content
Class ContentBackedMail

java.lang.Object
  extended by com.atlassian.confluence.mail.archive.content.ContentBackedMail
All Implemented Interfaces:
Content, Mail

public class ContentBackedMail
extends Object
implements Mail


Field Summary
 
Fields inherited from interface com.atlassian.confluence.mail.archive.Mail
CONTENT_TYPE, DEFAULT_NO_SUBJECT, MESSAGE_ID_SIZE, MESSAGE_SUBJECT_SIZE
 
Method Summary
 String getCanonicalSubject()
          Get the canonical subject of this mail.
 CustomContentEntityObject getEntity()
          Gets the ContentEntityObject that backs this piece of content.
 ConfluenceMailAddress getFrom()
           
 String getInReplyTo()
          If this mail has an In-Reply-To header, get the message ID of the email that this message is a response to.
 String getMessageBody()
           
 String getMessageId()
           
 Collection<ConfluenceMailAddress> getRecipients()
           
 Collection<String> getReferences()
           
 Date getSentDate()
          Gets the date this mail was sent;
 Space getSpace()
          Get the space this mail belongs to
 String getSpaceKey()
           
 String getSubject()
          Get the subject line of this mail.
static boolean isMailContentEntity(CustomContentEntityObject contentEntityObject)
           
static ContentBackedMail newInstance(CustomContentEntityObject content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isMailContentEntity

public static boolean isMailContentEntity(CustomContentEntityObject contentEntityObject)

newInstance

public static ContentBackedMail newInstance(CustomContentEntityObject content)

getEntity

public CustomContentEntityObject getEntity()
Description copied from interface: Content
Gets the ContentEntityObject that backs this piece of content.

Specified by:
getEntity in interface Content
Specified by:
getEntity in interface Mail
Returns:
the persistent object behind this content

getMessageId

public String getMessageId()
Specified by:
getMessageId in interface Mail

getMessageBody

public String getMessageBody()
Specified by:
getMessageBody in interface Mail

getSpaceKey

public String getSpaceKey()
Specified by:
getSpaceKey in interface Mail

getSentDate

public Date getSentDate()
Description copied from interface: Mail
Gets the date this mail was sent;

Specified by:
getSentDate in interface Mail
Returns:
the date this mail was sent.

getFrom

public ConfluenceMailAddress getFrom()
Specified by:
getFrom in interface Mail

getRecipients

public Collection<ConfluenceMailAddress> getRecipients()
Specified by:
getRecipients in interface Mail

getCanonicalSubject

public String getCanonicalSubject()
Description copied from interface: Mail
Get the canonical subject of this mail. The canonical form removes all Re: and Fwd: style prefixes on the email, returning what should be the original emails subject. All emails within a thread will have the same canonical subject.

Specified by:
getCanonicalSubject in interface Mail
See Also:
Mail.getSubject()

getSubject

public String getSubject()
Description copied from interface: Mail
Get the subject line of this mail.

Specified by:
getSubject in interface Mail
Returns:
the mail's subject line

getInReplyTo

public String getInReplyTo()
Description copied from interface: Mail
If this mail has an In-Reply-To header, get the message ID of the email that this message is a response to.

Specified by:
getInReplyTo in interface Mail
Returns:
the message ID of the email this message is a response to, if available.

getSpace

public Space getSpace()
Description copied from interface: Mail
Get the space this mail belongs to

Specified by:
getSpace in interface Mail
Returns:
the space this mail belongs to

getReferences

public Collection<String> getReferences()
Specified by:
getReferences in interface Mail


Copyright © 2003-2013 Atlassian. All Rights Reserved.