|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentEntityAdapter
Class provided by a content type plugin to allow the resulting CustomContentEntityObject to return the right responses to various methods.
In case of change to this interface, plugins should extend ContentEntityAdapterParent
which will
get default implementations of any new methods as they are created
Methods that return Option represent an optional feature. If an adapter returns None from these methods, some default value will be used instead.
Method Summary | |
---|---|
com.atlassian.fugue.Option<java.lang.String> |
getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
Return the URL path to view the list of attachments on the content |
com.atlassian.fugue.Option<java.lang.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<java.lang.String> |
getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
Gets the display-friendly title for the content. |
com.atlassian.fugue.Option<java.lang.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<java.lang.String> |
getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
Return the sorting-friendly title for the content, if the content is to be sorted in alphabetical order. |
com.atlassian.fugue.Option<java.lang.String> |
getUrlPath(CustomContentEntityObject pluginContentEntityObject)
Gets the URL string (relative to the Confluence application context) at which this content can be viewed. |
boolean |
isAllowedParent(CustomContentEntityObject child,
CustomContentEntityObject parent)
Determine if a particular content is an acceptable parent for this content. |
boolean |
isIndexable(CustomContentEntityObject pluginContentEntityObject,
boolean isDefaultIndexable)
Determine if a particular content should be indexed. |
Method Detail |
---|
com.atlassian.fugue.Option<java.lang.String> getUrlPath(CustomContentEntityObject pluginContentEntityObject)
pluginContentEntityObject
- the content to be viewed
com.atlassian.fugue.Option<java.lang.String> getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
pluginContentEntityObject
- the content to calculate the display title for
com.atlassian.fugue.Option<java.lang.String> getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
pluginContentEntityObject
- the content to calculate the sorting title for
com.atlassian.fugue.Option<java.lang.String> getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
pluginContentEntityObject
- the content to view attachments for
com.atlassian.fugue.Option<java.lang.String> getAttachmentUrlPath(CustomContentEntityObject pluginContentEntityObject, Attachment attachment)
pluginContentEntityObject
- the content to view attachments forattachment
- the attachment to link to
BodyType getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
pluginContentEntityObject
- the content to get the body type of
com.atlassian.fugue.Option<java.lang.String> getExcerpt(CustomContentEntityObject pluginContentEntityObject)
pluginContentEntityObject
- the content to excerpt
boolean isAllowedParent(CustomContentEntityObject child, CustomContentEntityObject parent)
boolean isIndexable(CustomContentEntityObject pluginContentEntityObject, boolean isDefaultIndexable)
pluginContentEntityObject
- the entity to checkisDefaultIndexable
- if the entity would be indexed absent of this check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |