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, shouldConvertToContentpublic static final String PLUGIN_CONTENT_KEY
public com.atlassian.fugue.Option<String> getUrlPath(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdaptergetUrlPath in interface ContentEntityAdaptergetUrlPath in class ContentEntityAdapterParentpluginContentEntityObject - the content to be viewedpublic com.atlassian.fugue.Option<String> getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdaptergetDisplayTitle in interface ContentEntityAdaptergetDisplayTitle in class ContentEntityAdapterParentpluginContentEntityObject - the content to calculate the display title forpublic com.atlassian.fugue.Option<String> getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdaptergetNameForComparison in interface ContentEntityAdaptergetNameForComparison in class ContentEntityAdapterParentpluginContentEntityObject - the content to calculate the sorting title forpublic com.atlassian.fugue.Option<String> getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdaptergetAttachmentsUrlPath in interface ContentEntityAdaptergetAttachmentsUrlPath in class ContentEntityAdapterParentpluginContentEntityObject - the content to view attachments forpublic com.atlassian.fugue.Option<String> getAttachmentUrlPath(CustomContentEntityObject pluginContentEntityObject, Attachment attachment)
ContentEntityAdaptergetAttachmentUrlPath in interface ContentEntityAdaptergetAttachmentUrlPath in class ContentEntityAdapterParentpluginContentEntityObject - the content to view attachments forattachment - the attachment to link topublic BodyType getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdaptergetDefaultBodyType in interface ContentEntityAdaptergetDefaultBodyType in class ContentEntityAdapterParentpluginContentEntityObject - the content to get the body type ofpublic com.atlassian.fugue.Option<String> getExcerpt(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdaptergetExcerpt in interface ContentEntityAdaptergetExcerpt in class ContentEntityAdapterParentpluginContentEntityObject - the content to excerptpublic String getUnquotedTextForSummary(CustomContentEntityObject pluginContentEntityObject)
Copyright © 2003–2016 Atlassian. All rights reserved.