test.plugin.versionchildpolicy
Class DummyOriginalVersionContentTypeApiSupport

java.lang.Object
  extended by com.atlassian.confluence.content.apisupport.BaseContentTypeApiSupport<CustomContentEntityObject>
      extended by test.plugin.versionchildpolicy.DummyOriginalVersionContentTypeApiSupport
All Implemented Interfaces:
ContentTypeApiSupport<CustomContentEntityObject>

public class DummyOriginalVersionContentTypeApiSupport
extends BaseContentTypeApiSupport<CustomContentEntityObject>


Field Summary
static ContentType CONTENT_TYPE
           
static String CONTENT_TYPE_KEY
           
 
Constructor Summary
protected DummyOriginalVersionContentTypeApiSupport(ApiSupportProvider provider)
           
 
Method Summary
protected  PageResponse<Content> getChildrenForThisType(CustomContentEntityObject content, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
           
protected  PageResponse<Content> getChildrenOfThisTypeForOtherType(ContentConvertible otherTypeParent, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
           
 Class<CustomContentEntityObject> getEntityClass()
          Get the class of the hibernate object used to persist the content type handled by this api support
 ContentType getHandledType()
           
 boolean supportsChildrenForParentType(ContentType parentType)
           
 boolean supportsChildrenOfType(ContentType otherType)
          A check that to allow other ContentTypeApiSupports to provide children for this type
 
Methods inherited from class com.atlassian.confluence.content.apisupport.BaseContentTypeApiSupport
create, getChildren, getChildrenForThisType, getChildrenOfThisTypeForOtherType, getContainer, getExtensions, getLinks, update, validateCreate, validateUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE_KEY

public static final String CONTENT_TYPE_KEY
See Also:
Constant Field Values

CONTENT_TYPE

public static final ContentType CONTENT_TYPE
Constructor Detail

DummyOriginalVersionContentTypeApiSupport

protected DummyOriginalVersionContentTypeApiSupport(ApiSupportProvider provider)
Method Detail

getChildrenForThisType

protected PageResponse<Content> getChildrenForThisType(CustomContentEntityObject content,
                                                       LimitedRequest limitedRequest,
                                                       Expansions expansions,
                                                       Depth depth)
Specified by:
getChildrenForThisType in class BaseContentTypeApiSupport<CustomContentEntityObject>

getChildrenOfThisTypeForOtherType

protected PageResponse<Content> getChildrenOfThisTypeForOtherType(ContentConvertible otherTypeParent,
                                                                  LimitedRequest limitedRequest,
                                                                  Expansions expansions,
                                                                  Depth depth)
Specified by:
getChildrenOfThisTypeForOtherType in class BaseContentTypeApiSupport<CustomContentEntityObject>

getHandledType

public ContentType getHandledType()
Returns:
the ContentType of the Content that this service provides.

supportsChildrenOfType

public boolean supportsChildrenOfType(ContentType otherType)
Description copied from class: BaseContentTypeApiSupport
A check that to allow other ContentTypeApiSupports to provide children for this type

Specified by:
supportsChildrenOfType in interface ContentTypeApiSupport<CustomContentEntityObject>
Specified by:
supportsChildrenOfType in class BaseContentTypeApiSupport<CustomContentEntityObject>
Parameters:
otherType - - the other Content type that wants to offer children of our type
Returns:
true if the children should be allowed

supportsChildrenForParentType

public boolean supportsChildrenForParentType(ContentType parentType)
Specified by:
supportsChildrenForParentType in interface ContentTypeApiSupport<CustomContentEntityObject>
Specified by:
supportsChildrenForParentType in class BaseContentTypeApiSupport<CustomContentEntityObject>
Returns:
true if Content of this binding's ContentType can be a child of contentEntity of the given type

getEntityClass

public Class<CustomContentEntityObject> getEntityClass()
Description copied from interface: ContentTypeApiSupport
Get the class of the hibernate object used to persist the content type handled by this api support

Returns:
the class of the entity used to persist changes


Copyright © 2003–2015 Atlassian. All rights reserved.