|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.confluence.core.ConfluenceEntityObject com.atlassian.confluence.core.AbstractVersionedEntityObject com.atlassian.confluence.core.AbstractLabelableEntityObject com.atlassian.confluence.core.ContentEntityObject com.atlassian.confluence.core.SpaceContentEntityObject com.atlassian.confluence.mail.Mail
@Deprecated public class Mail
I used to be a Mail content object, then I took an arrow in the knee.
This object needs to remain in the codebase so long as we continue to support upgrading from versions of Confluence prior to 4.2
Field Summary | |
---|---|
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. |
Fields inherited from class com.atlassian.confluence.core.ContentEntityObject |
---|
CREATED, CURRENT, DELETED, MODIFIED |
Fields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
INITIAL_VERSION |
Constructor Summary | |
---|---|
Mail()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.atlassian.confluence.core.SpaceContentEntityObject |
---|
addTrackbackLink, convertToHistoricalVersion, getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace |
Methods inherited from class com.atlassian.confluence.core.AbstractLabelableEntityObject |
---|
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings |
Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion |
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject |
---|
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName |
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 |
Methods inherited from interface com.atlassian.confluence.labels.EditableLabelable |
---|
getId, isPersistent |
Field Detail |
---|
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
Constructor Detail |
---|
public Mail()
Method Detail |
---|
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 attachments
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |