com.atlassian.confluence.api.extension.typebinding
Interface ContentTypeBinding

All Known Implementing Classes:
AbstractContentTypeBinding, AttachmentContentTypeBinding, CommentContentTypeBinding, PageContentTypeBinding

@PublicSpi
public interface ContentTypeBinding

Provides Content items for certain ContentTypes.


Method Summary
 PageResponse<Content> getChildren(Content parent, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
          Retrieve the children of an item of Content.
 ContentType getHandledType()
           
 boolean handlesParentType(ContentType parentType)
           
 

Method Detail

getHandledType

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

getChildren

PageResponse<Content> getChildren(Content parent,
                                  LimitedRequest limitedRequest,
                                  Expansions expansions,
                                  Depth depth)
Retrieve the children of an item of Content. The result is ordered by implicit child order.

Children will be Content items of the same ContentType as the parent.

The pageRequest limit is restricted to a maximum page size.

Parameters:
parent - the content to retrieve the children for
expansions - the expansions to apply to the Children returned
depth - the depth to return children to
Returns:
a partial list of the top level content in this space.

handlesParentType

boolean handlesParentType(ContentType parentType)
Returns:
true if Content of this binding's ContentType can be a child of content of the given type


Copyright © 2003-2014 Atlassian. All Rights Reserved.