@Deprecated public class Mail extends SpaceContentEntityObject
This object needs to remain in the codebase so long as we continue to support upgrading from versions of Confluence prior to 4.2
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE
Deprecated.
|
static java.lang.String |
DEFAULT_NO_SUBJECT
Deprecated.
|
static int |
MESSAGE_ID_SIZE
Deprecated.
|
static int |
MESSAGE_SUBJECT_SIZE
Deprecated.
|
CREATED, CURRENT, DELETED, MODIFIED
INITIAL_VERSION
Constructor and Description |
---|
Mail()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttachmentsUrlPath()
Deprecated.
|
java.lang.String |
getAttachmentUrlPath(Attachment attachment)
Deprecated.
Gets the path relative to Confluence's base URL to view the given attachment in the context of this content
(for example, highlighted in the content's list of attachments).
|
java.lang.String |
getBodyAsString()
Deprecated.
Overrides super method to remove leading blank lines.
|
java.lang.String |
getCanonicalSubject()
Deprecated.
Get the canonical subject of this mail.
|
java.util.Date |
getCreationDate()
Deprecated.
|
BodyType |
getDefaultBodyType()
Deprecated.
|
java.lang.String |
getDisplayableCanonicalSubject()
Deprecated.
Get the displayable version of the mails canonical subject string.
|
java.lang.String |
getDisplayableSubject()
Deprecated.
Get the displayable version of the mails subject string.
|
java.lang.String |
getExcerpt()
Deprecated.
|
ConfluenceMailAddress[] |
getFrom()
Deprecated.
|
java.util.List |
getFromForSearch()
Deprecated.
|
java.lang.String |
getInReplyTo()
Deprecated.
|
java.lang.String |
getMessageBody()
Deprecated.
|
java.lang.String |
getMessageId()
Deprecated.
|
javax.mail.internet.MimeMessage |
getMimeMessage()
Deprecated.
|
ConfluenceMailAddress[] |
getRecipients()
Deprecated.
|
java.util.List |
getRecipientsForSearch()
Deprecated.
|
java.util.List |
getReferences()
Deprecated.
|
java.util.Date |
getSentDate()
Deprecated.
|
java.lang.String |
getSubject()
Deprecated.
Get the mail subject string.
|
java.lang.String |
getTitle()
Deprecated.
|
java.lang.String |
getType()
Deprecated.
An easy name for the type of this content: makes it easy for
things like the #contentLink macro to work out what to draw.
|
java.lang.String |
getUnquotedTextForSummary()
Deprecated.
|
java.lang.String |
getUrlPath()
Deprecated.
|
boolean |
hasSubject()
Deprecated.
|
void |
loadContent(java.io.InputStream in)
Deprecated.
|
void |
setBodyAsString(java.lang.String content)
Deprecated.
Convenience method that sets the content of this ContentEntityObject.
|
void |
setMessageId(java.lang.String messageId)
Deprecated.
|
void |
setMimeMessage(javax.mail.internet.MimeMessage message)
Deprecated.
|
addTrackbackLink, convertToHistoricalVersion, getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace
addAttachment, addComment, addCustomContent, addOutgoingLink, addPermission, addReferralLink, clone, compareTo, ensureAttachmentBelongsToContent, equals, getAttachmentNamed, getAttachments, getBodyAsStringWithoutMarkup, getBodyContent, getBodyContent, getBodyContents, getComments, getContentId, getContentPermission, getContentPermissionSet, getContentStatus, getDisplayTitle, getEntity, getIdAsString, getLatestVersionsOfAttachments, getOutgoingLinks, getPermissions, getProperties, getReferralLinks, getRenderedVersionComment, getSearchableDependants, getTrackbackLinks, getTypeEnum, getUserAccessor, getVersionComment, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeComment, removeContentPermissionSet, removeCustomContent, removeOutgoingLink, removeReferralLink, removeTrackbackLink, replaceContentProperties, restore, restoreDependents, setAttachments, setBodyContent, setBodyContents, setComments, setContent, setContentStatus, setOutgoingLinks, setReferralLinks, setTitle, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, toString, trash, trashDependents
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings
getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
getId
getId, isPersistent
public static final int MESSAGE_ID_SIZE
public static final int MESSAGE_SUBJECT_SIZE
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String DEFAULT_NO_SUBJECT
public java.lang.String getType()
ContentEntityObject
getType
in interface ContentTypeAware
getType
in class ContentEntityObject
public java.lang.String getUrlPath()
getUrlPath
in interface Addressable
getUrlPath
in class ContentEntityObject
public java.lang.String getAttachmentUrlPath(Attachment attachment)
ContentEntityObject
Attachment.getUrlPath()
instead of this method: if we ever implement
view pages for individual attachments, that's the method that will be changed to point to them.
The default implementation just returns the view page for this content.getAttachmentUrlPath
in class ContentEntityObject
attachment
- one of this content's attachmentspublic java.lang.String getAttachmentsUrlPath()
getAttachmentsUrlPath
in class ContentEntityObject
public javax.mail.internet.MimeMessage getMimeMessage() throws javax.mail.MessagingException
javax.mail.MessagingException
public void loadContent(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public BodyType getDefaultBodyType()
getDefaultBodyType
in class ContentEntityObject
public java.lang.String getBodyAsString()
getBodyAsString
in class ContentEntityObject
public void setBodyAsString(java.lang.String content)
ContentEntityObject
setBodyAsString
in class ContentEntityObject
content
- the String representation of the mail.public java.lang.String getTitle()
getTitle
in interface EditableLabelable
getTitle
in class ContentEntityObject
public boolean hasSubject()
public java.lang.String getSubject()
getDisplayableSubject()
public java.lang.String getDisplayableSubject()
hasSubject()
,
getSubject()
public java.lang.String getCanonicalSubject()
getSubject()
public java.lang.String getDisplayableCanonicalSubject()
getCanonicalSubject()
,
hasSubject()
public java.lang.String getMessageId()
public void setMessageId(java.lang.String messageId)
public java.lang.String getMessageBody()
public void setMimeMessage(javax.mail.internet.MimeMessage message)
public java.lang.String getInReplyTo()
public java.util.List getReferences()
public ConfluenceMailAddress[] getFrom()
public java.util.List getFromForSearch()
public java.util.List getRecipientsForSearch()
public ConfluenceMailAddress[] getRecipients()
public java.util.Date getSentDate()
public java.util.Date getCreationDate()
getCreationDate
in class com.atlassian.core.bean.EntityObject
public java.lang.String getExcerpt()
getExcerpt
in class ContentEntityObject
public java.lang.String getUnquotedTextForSummary()
Copyright © 2003-2014 Atlassian. All Rights Reserved.