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)
Determines whether this ContentTypeApiSupport will provide children for other types.
|
boolean |
supportsChildrenOfType(ContentType otherType)
Determines whether other ContentTypeApiSupports can 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)
ContentTypeApiSupport
For children of type childType
to be allowed as children of this type,
this type needs to return true
for
supportsChildrenOfType(childType)
,
and childType
needs to return true
for
supportsChildrenForParentType(thisType)
.
otherType
- the other Content type that wants to offer children below an instance of our typeContent
of otherType
's ContentType
should be allowed
as children of this type (as far as this type is concerned:
childType
also gets a say via ContentTypeApiSupport.supportsChildrenForParentType(ContentType)
)ContentTypeApiSupport.supportsChildrenForParentType(ContentType)
public boolean supportsChildrenForParentType(ContentType parentType)
ContentTypeApiSupport
For children of this type to be allowed as children of parentType
,
this type needs to return true
for
supportsChildrenForParentType(parentType)
,
and parentType
needs to return true
for
supportsChildrenOfType(thisType)
.
parentType
- the other Content type that our type is offering children toContent
of this type's ContentType
should be allowed to be a child of
parentType
(as far as this type is concerned:
parentType
also gets a say via ContentTypeApiSupport.supportsChildrenOfType(ContentType)
)ContentTypeApiSupport.supportsChildrenOfType(ContentType)
public Class<CustomContentEntityObject> getEntityClass()
ContentTypeApiSupport
Copyright © 2003–2015 Atlassian. All rights reserved.