test.plugin.versionchildpolicy
Class DummyCurrentVersionContentTypeApiSupport
java.lang.Object
com.atlassian.confluence.content.apisupport.BaseContentTypeApiSupport<CustomContentEntityObject>
test.plugin.versionchildpolicy.DummyCurrentVersionContentTypeApiSupport
- All Implemented Interfaces:
- ContentTypeApiSupport<CustomContentEntityObject>
public class DummyCurrentVersionContentTypeApiSupport
- extends BaseContentTypeApiSupport<CustomContentEntityObject>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE_KEY
public static final String CONTENT_TYPE_KEY
- See Also:
- Constant Field Values
CONTENT_TYPE
public static final ContentType CONTENT_TYPE
DummyCurrentVersionContentTypeApiSupport
protected DummyCurrentVersionContentTypeApiSupport(ApiSupportProvider provider)
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.