public class MailContentEntityAdapter extends ContentEntityAdapterParent
Modifier and Type | Class and Description |
---|---|
static class |
MailContentEntityAdapter.State |
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_CONTENT_KEY |
Constructor and Description |
---|
MailContentEntityAdapter() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Option<String> |
getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
Return the URL path to view the list of attachments on the content
|
com.atlassian.fugue.Option<String> |
getAttachmentUrlPath(CustomContentEntityObject pluginContentEntityObject,
Attachment attachment)
Return the URL path to view the a particular attachment of the content
|
BodyType |
getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
Get the default type for BodyContent objects attached to this content.
|
com.atlassian.fugue.Option<String> |
getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
Gets the display-friendly title for the content.
|
com.atlassian.fugue.Option<String> |
getExcerpt(CustomContentEntityObject pluginContentEntityObject)
Get a text-only summary of the content that is suitable for use in activity streams, search results and other
places where a short placeholder for the content is necessary.
|
com.atlassian.fugue.Option<String> |
getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
Return the sorting-friendly title for the content, if the content is to be sorted in alphabetical order.
|
String |
getUnquotedTextForSummary(CustomContentEntityObject pluginContentEntityObject) |
com.atlassian.fugue.Option<String> |
getUrlPath(CustomContentEntityObject pluginContentEntityObject)
Gets the URL string (relative to the Confluence application context) at which this content can be viewed.
|
getVersionChildPolicy, isAllowedContainer, isAllowedParent, isIndexable, shouldConvertToContent
public static final String PLUGIN_CONTENT_KEY
public com.atlassian.fugue.Option<String> getUrlPath(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getUrlPath
in interface ContentEntityAdapter
getUrlPath
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to be viewedpublic com.atlassian.fugue.Option<String> getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getDisplayTitle
in interface ContentEntityAdapter
getDisplayTitle
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to calculate the display title forpublic com.atlassian.fugue.Option<String> getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getNameForComparison
in interface ContentEntityAdapter
getNameForComparison
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to calculate the sorting title forpublic com.atlassian.fugue.Option<String> getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getAttachmentsUrlPath
in interface ContentEntityAdapter
getAttachmentsUrlPath
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to view attachments forpublic com.atlassian.fugue.Option<String> getAttachmentUrlPath(CustomContentEntityObject pluginContentEntityObject, Attachment attachment)
ContentEntityAdapter
getAttachmentUrlPath
in interface ContentEntityAdapter
getAttachmentUrlPath
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to view attachments forattachment
- the attachment to link topublic BodyType getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getDefaultBodyType
in interface ContentEntityAdapter
getDefaultBodyType
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to get the body type ofpublic com.atlassian.fugue.Option<String> getExcerpt(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getExcerpt
in interface ContentEntityAdapter
getExcerpt
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to excerptpublic String getUnquotedTextForSummary(CustomContentEntityObject pluginContentEntityObject)
Copyright © 2003–2015 Atlassian. All rights reserved.