public class JsonPropertyEntityAdapter extends ContentEntityAdapterParent
Constructor and Description |
---|
JsonPropertyEntityAdapter() |
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.
|
static boolean |
isContentProperty(ContentEntityObject o) |
static boolean |
isContentProperty(CustomContentEntityObject o) |
boolean |
isIndexable(CustomContentEntityObject pluginContentEntityObject,
boolean isDefaultIndexable)
Determine if a particular content should be indexed.
|
getAttachmentsUrlPath, getAttachmentUrlPath, getDisplayTitle, getExcerpt, getNameForComparison, getUrlPath, getVersionChildPolicy, isAllowedParent, shouldConvertToContent
public static boolean isContentProperty(ContentEntityObject o)
public static boolean isContentProperty(CustomContentEntityObject o)
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)
public boolean isIndexable(CustomContentEntityObject pluginContentEntityObject, boolean isDefaultIndexable)
ContentEntityAdapter
isIndexable
in interface ContentEntityAdapter
isIndexable
in class ContentEntityAdapterParent
pluginContentEntityObject
- the entity to checkisDefaultIndexable
- if the entity would be indexed absent of this check.Copyright © 2003–2018 Atlassian. All rights reserved.