com.atlassian.confluence.plugins.contentproperty
Class ContentPropertyEntityAdapter

java.lang.Object
  extended by com.atlassian.confluence.content.ContentEntityAdapterParent
      extended by com.atlassian.confluence.plugins.contentproperty.ContentPropertyEntityAdapter
All Implemented Interfaces:
ContentEntityAdapter

public class ContentPropertyEntityAdapter
extends ContentEntityAdapterParent

Adapter for content properties.

Since:
5.6

Constructor Summary
ContentPropertyEntityAdapter()
           
 
Method Summary
 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)
           
 
Methods inherited from class com.atlassian.confluence.content.ContentEntityAdapterParent
getAttachmentsUrlPath, getAttachmentUrlPath, getDisplayTitle, getExcerpt, getNameForComparison, getUrlPath, isAllowedParent, isIndexable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPropertyEntityAdapter

public ContentPropertyEntityAdapter()
Method Detail

isContentProperty

public static boolean isContentProperty(ContentEntityObject o)

isContentProperty

public static boolean isContentProperty(CustomContentEntityObject o)

getDefaultBodyType

public BodyType getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
Description copied from interface: ContentEntityAdapter
Get the default type for BodyContent objects attached to this content.

Specified by:
getDefaultBodyType in interface ContentEntityAdapter
Overrides:
getDefaultBodyType in class ContentEntityAdapterParent
Parameters:
pluginContentEntityObject - the content to get the body type of
Returns:
the default BodyType for that content

isAllowedContainer

public boolean isAllowedContainer(ContentEntityObject child,
                                  ContentEntityObject container)
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 CustomContentEntityObjects. If both types are CustomContentEntityObjects, this must only be used if CustomContentEntityObject.getPluginModuleKey() also returns distinct values for both objects.

Specified by:
isAllowedContainer in interface ContentEntityAdapter
Overrides:
isAllowedContainer in class ContentEntityAdapterParent
See Also:
ContentEntityAdapter.isAllowedParent(CustomContentEntityObject, CustomContentEntityObject)


Copyright © 2003-2014 Atlassian. All Rights Reserved.