Class DummyAvailableContentEntityAdapter
java.lang.Object
com.atlassian.confluence.content.ContentEntityAdapterParent
com.atlassian.confluence.it.api.test.plugin.apiavailable.DummyAvailableContentEntityAdapter
- All Implemented Interfaces:
ContentEntityAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultBodyType
(CustomContentEntityObject pluginContentEntityObject) Get the default type for BodyContent objects attached to this content.boolean
isAllowedContainer
(ContentEntityObject child, ContentEntityObject container) Determine if a particular content is an acceptable container for a particular child.Methods inherited from class com.atlassian.confluence.content.ContentEntityAdapterParent
attachmentsUrlPath, attachmentUrlPath, displayTitle, excerpt, getVersionChildPolicy, isAllowedParent, isIndexable, nameForComparison, shouldConvertToContent, urlPath
-
Constructor Details
-
DummyAvailableContentEntityAdapter
public DummyAvailableContentEntityAdapter()
-
-
Method Details
-
getDefaultBodyType
Description copied from interface:ContentEntityAdapter
Get the default type for BodyContent objects attached to this content.- Specified by:
getDefaultBodyType
in interfaceContentEntityAdapter
- Overrides:
getDefaultBodyType
in classContentEntityAdapterParent
- Parameters:
pluginContentEntityObject
- the content to get the body type of- Returns:
- the default BodyType for that content
-
isAllowedContainer
Description copied from interface:ContentEntityAdapter
Determine if a particular content is an acceptable container for a particular child. The content object will ensure that there are no loops in the container/child chain, and that the container is in the same space as the child (if any), so implementations do not need to check that.Will be invoked for the child adapter and the container adapter, if applicable.
Only one of container or child are required to be
CustomContentEntityObject
s. If both types areCustomContentEntityObject
s, this must only be used ifCustomContentEntityObject.getPluginModuleKey()
also returns distinct values for both objects.- Specified by:
isAllowedContainer
in interfaceContentEntityAdapter
- Overrides:
isAllowedContainer
in classContentEntityAdapterParent
- See Also:
-