com.atlassian.confluence.content.ContentEntityAdapter |
Known Indirect Subclasses |
Class provided by a content type plugin to allow the resulting CustomContentEntityObject to return the right responses to various methods.
Methods that return Option represent an optional feature. If an adapter returns None from these methods, some default value will be used instead.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the URL path to view the a particular attachment of the content
| |||||||||||
Return the URL path to view the list of attachments on the content
| |||||||||||
Get the default type for BodyContent objects attached to this content.
| |||||||||||
Gets the display-friendly title for the content.
| |||||||||||
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.
| |||||||||||
Return the sorting-friendly title for the content, if the content is to be sorted in alphabetical order.
| |||||||||||
Gets the URL string (relative to the Confluence application context) at which this content can be viewed.
|
Return the URL path to view the a particular attachment of the content
pluginContentEntityObject | the content to view attachments for |
---|---|
attachment | the attachment to link to |
Return the URL path to view the list of attachments on the content
pluginContentEntityObject | the content to view attachments for |
---|
Get the default type for BodyContent objects attached to this content.
pluginContentEntityObject | the content to get the body type of |
---|
Gets the display-friendly title for the content. For example, a Comment does not have a title of its own, but where the UI needs to display the title of a comment, it uses "Re: Title Of Page Being Commented On".
pluginContentEntityObject | the content to calculate the display title for |
---|
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. The default implementation takes the first 255 characters of the content's main body with most markup characters removed.
pluginContentEntityObject | the content to excerpt |
---|
Return the sorting-friendly title for the content, if the content is to be sorted in alphabetical order.
pluginContentEntityObject | the content to calculate the sorting title for |
---|
Gets the URL string (relative to the Confluence application context) at which this content can be viewed.
pluginContentEntityObject | the content to be viewed |
---|