public class DummyAvailableContentEntityAdapter extends ContentEntityAdapterParent
Constructor and Description |
---|
DummyAvailableContentEntityAdapter() |
Modifier and Type | Method and Description |
---|---|
BodyType |
getDefaultBodyType(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.
|
getAttachmentsUrlPath, getAttachmentUrlPath, getDisplayTitle, getExcerpt, getNameForComparison, getUrlPath, getVersionChildPolicy, isAllowedParent, isIndexable, shouldConvertToContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachmentsUrlPath, attachmentUrlPath, displayTitle, excerpt, nameForComparison, urlPath
public BodyType getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getDefaultBodyType
in interface ContentEntityAdapter
getDefaultBodyType
in class ContentEntityAdapterParent
pluginContentEntityObject
- the content to get the body type ofpublic boolean isAllowedContainer(ContentEntityObject child, ContentEntityObject container)
ContentEntityAdapter
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 are
CustomContentEntityObject
s, this must only be used if CustomContentEntityObject.getPluginModuleKey()
also returns distinct values for both objects.
isAllowedContainer
in interface ContentEntityAdapter
isAllowedContainer
in class ContentEntityAdapterParent
ContentEntityAdapter.isAllowedParent(CustomContentEntityObject, CustomContentEntityObject)
Copyright © 2003–2019 Atlassian. All rights reserved.