com.atlassian.confluence.mail
Class Mail
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.core.AbstractVersionedEntityObject
com.atlassian.confluence.core.ContentEntityObject
com.atlassian.confluence.core.SpaceContentEntityObject
com.atlassian.confluence.mail.Mail
- All Implemented Interfaces:
- com.atlassian.bonnie.Searchable, Addressable, Versioned, Labelable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class Mail
- extends SpaceContentEntityObject
- See Also:
- Serialized Form
Constructor Summary |
Mail()
|
Methods inherited from class com.atlassian.confluence.core.ContentEntityObject |
addAttachment, addLabelling, addOutgoingLink, addPermission, addReferralLink, clone, compareTo, equals, getAttachmentNamed, getAttachments, getAttachmentsUrlPath, getBodyContents, getContentPermission, getContentPermissionSet, getContentStatus, getDisplayTitle, getGlobalLabels, getIdAsString, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getLatestVersionsOfAttachments, getOutgoingLinks, getPermissions, getPersonalLabels, getRealTitle, getReferralLinks, getRenderedVersionComment, getSearchableDependants, getTrackbackLinks, getUserAccessor, getVersionComment, getVisibleLabels, hasPermissions, isCurrent, isDeleted, isFavourite, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeContentPermissionSet, removeLabelling, removeOutgoingLink, removeReferralLink, removeTrackbackLink, setAttachments, setBodyContents, setContentStatus, setOutgoingLinks, setReferralLinks, setTitle, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, toString, trash |
Methods inherited from class com.atlassian.core.bean.EntityObject |
getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.bonnie.Searchable |
getId |
Methods inherited from interface com.atlassian.confluence.core.Addressable |
getId |
MESSAGE_ID_SIZE
public static final int MESSAGE_ID_SIZE
- See Also:
- Constant Field Values
MESSAGE_SUBJECT_SIZE
public static final int MESSAGE_SUBJECT_SIZE
- See Also:
- Constant Field Values
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
DEFAULT_NO_SUBJECT
public static final java.lang.String DEFAULT_NO_SUBJECT
- See Also:
- Constant Field Values
Mail
public Mail()
getType
public java.lang.String getType()
- Description copied from class:
ContentEntityObject
- An easy name for the type of this content: makes it easy for
things like the #contentLink macro to work out what to draw.
This is a bit of a hack, but it saves heaps of code elsewhere,
especially since we tend to get back these objects wrapped in
all sorts of Hibernate CGLIB stuff.
- Specified by:
getType
in interface Addressable
- Specified by:
getType
in class ContentEntityObject
getContent
public java.lang.String getContent()
- Overrides:
getContent
in class ContentEntityObject
getUrlPath
public java.lang.String getUrlPath()
- Specified by:
getUrlPath
in interface Addressable
- Specified by:
getUrlPath
in class ContentEntityObject
getMimeMessage
public javax.mail.internet.MimeMessage getMimeMessage()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
loadContent
public void loadContent(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
setContent
public void setContent(java.lang.String content)
- Overrides:
setContent
in class ContentEntityObject
getTitle
public java.lang.String getTitle()
- Overrides:
getTitle
in class ContentEntityObject
hasSubject
public boolean hasSubject()
- Returns:
- True if this mail item contains a subject string, false otherwise. If we can not determine
the presence of the subject in the mime-message, we assume that one does not exist.
getSubject
public java.lang.String getSubject()
- Get the mail subject string.
- See Also:
getDisplayableSubject()
getDisplayableSubject
public java.lang.String getDisplayableSubject()
- Get the displayable version of the mails subject string. If the mail does not have a subject, then
this returns the default subject.
- See Also:
hasSubject()
,
getSubject()
getCanonicalSubject
public java.lang.String getCanonicalSubject()
- 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.
- See Also:
getSubject()
getDisplayableCanonicalSubject
public java.lang.String getDisplayableCanonicalSubject()
- Get the displayable version of the mails canonical subject string. That is, if the mail does not have a
canonical subject, return the default.
- See Also:
getCanonicalSubject()
,
hasSubject()
getMessageId
public java.lang.String getMessageId()
setMessageId
public void setMessageId(java.lang.String messageId)
getMessageBody
public java.lang.String getMessageBody()
setMimeMessage
public void setMimeMessage(javax.mail.internet.MimeMessage message)
getInReplyTo
public java.lang.String getInReplyTo()
getReferences
public java.util.List getReferences()
getFrom
public javax.mail.Address[] getFrom()
getFromForSearch
public java.util.List getFromForSearch()
getRecipientsForSearch
public java.util.List getRecipientsForSearch()
getRecipients
public javax.mail.Address[] getRecipients()
getSentDate
public java.util.Date getSentDate()
getCreationDate
public java.util.Date getCreationDate()
- Overrides:
getCreationDate
in class com.atlassian.core.bean.EntityObject
getExcerpt
public java.lang.String getExcerpt()
- Overrides:
getExcerpt
in class ContentEntityObject
getUnquotedTextForSummary
public java.lang.String getUnquotedTextForSummary()
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.