@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 String |
CONTENT_TYPE
Deprecated.
|
static String |
DEFAULT_NO_SUBJECT
Deprecated.
|
static int |
MESSAGE_ID_SIZE
Deprecated.
|
static int |
MESSAGE_SUBJECT_SIZE
Deprecated.
|
COLLABORATIVE_EDITING_UUID, CONFLUENCE_RECOVERY, CONFLUENCE_RECOVERY_WITH_EXTERNAL_CHANGE, CONTENT_RESTORED_SYNC_REV_SOURCE, CREATED, CURRENT, DELETED, DRAFT, DUMMY_SYNC_REV, LIMITED_MODE_SYNC_REV_SOURCE, MODIFIED, SHARE_ID, SYNC_REV, SYNC_REV_SOURCE, SYNCHRONY_ACK_SYNC_REV_SOURCE, SYNCHRONY_RECOVERY, SYNCHRONY_RECOVERY_WITH_EXTERNAL_CHANGE, SYNCHRONY_SYNC_REV_SOURCE
INITIAL_VERSION
Constructor and Description |
---|
Mail()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttachmentsUrlPath()
Deprecated.
|
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).
|
String |
getBodyAsString()
Deprecated.
Overrides super method to remove leading blank lines.
|
String |
getCanonicalSubject()
Deprecated.
Get the canonical subject of this mail.
|
Date |
getCreationDate()
Deprecated.
|
BodyType |
getDefaultBodyType()
Deprecated.
|
String |
getDisplayableCanonicalSubject()
Deprecated.
Get the displayable version of the mails canonical subject string.
|
String |
getDisplayableSubject()
Deprecated.
Get the displayable version of the mails subject string.
|
String |
getExcerpt()
Deprecated.
|
ConfluenceMailAddress[] |
getFrom()
Deprecated.
|
List |
getFromForSearch()
Deprecated.
|
String |
getInReplyTo()
Deprecated.
|
String |
getMessageBody()
Deprecated.
|
String |
getMessageId()
Deprecated.
|
javax.mail.internet.MimeMessage |
getMimeMessage()
Deprecated.
|
ConfluenceMailAddress[] |
getRecipients()
Deprecated.
|
List |
getRecipientsForSearch()
Deprecated.
|
List |
getReferences()
Deprecated.
|
Date |
getSentDate()
Deprecated.
|
String |
getSubject()
Deprecated.
Get the mail subject string.
|
String |
getTitle()
Deprecated.
|
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.
|
String |
getUnquotedTextForSummary()
Deprecated.
|
String |
getUrlPath()
Deprecated.
|
boolean |
hasSubject()
Deprecated.
|
void |
loadContent(InputStream in)
Deprecated.
|
void |
setBodyAsString(String content)
Deprecated.
Convenience method that sets the content of this ContentEntityObject.
|
void |
setMessageId(String messageId)
Deprecated.
|
void |
setMimeMessage(javax.mail.internet.MimeMessage message)
Deprecated.
|
convertToHistoricalVersion, getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace
addAttachment, addComment, addCustomContent, addOutgoingLink, addPermission, addReferralLink, addTrackbackLink, applyChildVersioningPolicy, clone, compareTo, ensureAttachmentBelongsToContent, equals, getAttachmentNamed, getAttachments, getBodyAsStringWithoutMarkup, getBodyContent, getBodyContent, getBodyContents, getCollaborativeEditingUuid, getComments, getContainerContent, getContentEntityObject, getContentId, getContentPermission, getContentPermissionSet, getContentStatus, getContentStatusObject, getDisplayTitle, getEntity, getIdAsString, getLatestVersionId, getLatestVersionsOfAttachments, getLowerTitle, getOriginalVersionId, getOutgoingLinks, getPermissions, getProperties, getReferralLinks, getRenderedVersionComment, getSearchableDependants, getSelector, getShareId, getSynchronyRevision, getSynchronyRevisionSource, getTrackbackLinks, getTypeEnum, getUserAccessor, getVersionComment, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isDraft, isRecentlyUpdatedFor, isUnpublished, isVersionCommentAvailable, removeAttachment, removeComment, removeContentPermissionSet, removeCustomContent, removeOutgoingLink, removeReferralLink, removeTrackbackLink, replaceContentProperties, restore, restoreDependents, setAttachments, setBodyContent, setBodyContents, setCollaborativeEditingUuid, setComments, setContainerContent, setContentPropertiesFrom, setContentStatus, setOriginalVersion, setOriginalVersionId, setOutgoingLinks, setReferralLinks, setShareId, setSynchronyRevision, setSynchronyRevisionSource, setTitle, setTrackbackLinks, setUserAccessor, setVersionComment, sharedAccessAllowed, sharedAccessAllowed, toPageContext, toString, trash, trashDependents, wasCreatedBy
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings
getConfluenceRevision, getLatestVersion, getOriginalVersion, getVersion, getVersionChildPolicy, isLatestVersion, isNew, 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 String CONTENT_TYPE
public static final String DEFAULT_NO_SUBJECT
public String getType()
ContentEntityObject
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.
getType
in interface ContentTypeAware
getType
in class ContentEntityObject
public String getUrlPath()
getUrlPath
in interface Addressable
getUrlPath
in class ContentEntityObject
public 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 String getAttachmentsUrlPath()
getAttachmentsUrlPath
in class ContentEntityObject
public javax.mail.internet.MimeMessage getMimeMessage() throws javax.mail.MessagingException
javax.mail.MessagingException
public void loadContent(InputStream in) throws IOException
IOException
public BodyType getDefaultBodyType()
getDefaultBodyType
in class ContentEntityObject
public String getBodyAsString()
getBodyAsString
in class ContentEntityObject
public void setBodyAsString(String content)
ContentEntityObject
setBodyAsString
in class ContentEntityObject
content
- the String representation of the mail.public String getTitle()
getTitle
in interface EditableLabelable
getTitle
in class ContentEntityObject
public boolean hasSubject()
public String getSubject()
getDisplayableSubject()
public String getDisplayableSubject()
hasSubject()
,
getSubject()
public String getCanonicalSubject()
getSubject()
public String getDisplayableCanonicalSubject()
getCanonicalSubject()
,
hasSubject()
public String getMessageId()
public void setMessageId(String messageId)
public String getMessageBody()
public void setMimeMessage(javax.mail.internet.MimeMessage message)
public String getInReplyTo()
public List getReferences()
public ConfluenceMailAddress[] getFrom()
public List getFromForSearch()
public List getRecipientsForSearch()
public ConfluenceMailAddress[] getRecipients()
public Date getSentDate()
public Date getCreationDate()
getCreationDate
in class com.atlassian.core.bean.EntityObject
public String getExcerpt()
getExcerpt
in class ContentEntityObject
public String getUnquotedTextForSummary()
Copyright © 2003–2017 Atlassian. All rights reserved.