Class JsonPropertyEntityAdapter
java.lang.Object
com.atlassian.confluence.content.ContentEntityAdapterParent
com.atlassian.confluence.plugins.contentproperty.JsonPropertyEntityAdapter
- All Implemented Interfaces:
 ContentEntityAdapter
Adapter for content properties.
- Since:
 - 5.6
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllowedContainer(ContentEntityObject child, ContentEntityObject container) Determine if a particular content is an acceptable container for a particular child.static booleanstatic booleanbooleanisIndexable(CustomContentEntityObject pluginContentEntityObject, boolean isDefaultIndexable) Determine if a particular content should be indexed.Methods inherited from class com.atlassian.confluence.content.ContentEntityAdapterParent
attachmentsUrlPath, attachmentUrlPath, displayTitle, excerpt, getDefaultBodyType, getVersionChildPolicy, isAllowedParent, nameForComparison, shouldConvertToContent, urlPath 
- 
Constructor Details
- 
JsonPropertyEntityAdapter
public JsonPropertyEntityAdapter() 
 - 
 - 
Method Details
- 
isContentProperty
 - 
isContentProperty
 - 
isAllowedContainer
Description copied from interface:ContentEntityAdapterDetermine 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
CustomContentEntityObjects. If both types areCustomContentEntityObjects, this must only be used ifCustomContentEntityObject.getPluginModuleKey()also returns distinct values for both objects.- Specified by:
 isAllowedContainerin interfaceContentEntityAdapter- Overrides:
 isAllowedContainerin classContentEntityAdapterParent- See Also:
 
 - 
isIndexable
public boolean isIndexable(CustomContentEntityObject pluginContentEntityObject, boolean isDefaultIndexable) Description copied from interface:ContentEntityAdapterDetermine if a particular content should be indexed. The isDefaultIndexable parameter will contain the value of super.isIndexable(), so the plugin may choose to follow or override the standard reasons not to index SpaceContentEntityObject (trashed content, content that is not in a space, content that is an old version are all not indexed by default)- Specified by:
 isIndexablein interfaceContentEntityAdapter- Overrides:
 isIndexablein classContentEntityAdapterParent- Parameters:
 pluginContentEntityObject- the entity to checkisDefaultIndexable- if the entity would be indexed absent of this check.
 
 -