public class DummyOriginalVersionContentTypeApiSupport extends BaseContentTypeApiSupport<CustomContentEntityObject>
Modifier and Type | Field and Description |
---|---|
static ContentType |
CONTENT_TYPE |
static String |
CONTENT_TYPE_KEY |
Modifier | Constructor and Description |
---|---|
protected |
DummyOriginalVersionContentTypeApiSupport(ApiSupportProvider provider) |
Modifier and Type | Method and Description |
---|---|
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
|
create, getChildren, getChildrenForThisType, getChildrenOfThisTypeForOtherType, getContainer, getExtensions, getLinks, update, validateCreate, validateUpdate
public static final String CONTENT_TYPE_KEY
public static final ContentType CONTENT_TYPE
protected DummyOriginalVersionContentTypeApiSupport(ApiSupportProvider provider)
protected PageResponse<Content> getChildrenForThisType(CustomContentEntityObject content, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
getChildrenForThisType
in class BaseContentTypeApiSupport<CustomContentEntityObject>
protected PageResponse<Content> getChildrenOfThisTypeForOtherType(ContentConvertible otherTypeParent, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
getChildrenOfThisTypeForOtherType
in class BaseContentTypeApiSupport<CustomContentEntityObject>
public ContentType getHandledType()
ContentType
of the Content
that this service provides.public boolean supportsChildrenOfType(ContentType otherType)
BaseContentTypeApiSupport
supportsChildrenOfType
in interface ContentTypeApiSupport<CustomContentEntityObject>
supportsChildrenOfType
in class BaseContentTypeApiSupport<CustomContentEntityObject>
otherType
- - the other Content type that wants to offer children of our typepublic boolean supportsChildrenForParentType(ContentType parentType)
supportsChildrenForParentType
in interface ContentTypeApiSupport<CustomContentEntityObject>
supportsChildrenForParentType
in class BaseContentTypeApiSupport<CustomContentEntityObject>
Content
of this binding's ContentType
can be a child of contentEntity of the given typepublic Class<CustomContentEntityObject> getEntityClass()
ContentTypeApiSupport
Copyright © 2003–2015 Atlassian. All rights reserved.