com.atlassian.confluence.api.impl.service.content.typebinding
Class CommentContentTypeBinding

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.content.typebinding.CommentContentTypeBinding
All Implemented Interfaces:
ContentTypeBinding

public class CommentContentTypeBinding
extends java.lang.Object
implements ContentTypeBinding

Performs API operations for Comments.


Constructor Summary
CommentContentTypeBinding(CommentManagerInternal commentManager, PaginationService paginationService, ContentFactory contentFactory, PermissionManager permissionManager, ContentEntityManager contentEntityManager)
           
 
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 type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentContentTypeBinding

public CommentContentTypeBinding(CommentManagerInternal commentManager,
                                 PaginationService paginationService,
                                 ContentFactory contentFactory,
                                 PermissionManager permissionManager,
                                 ContentEntityManager contentEntityManager)
Method Detail

getHandledType

public ContentType getHandledType()
Specified by:
getHandledType in interface ContentTypeBinding
Returns:
the ContentType of the Content that this service provides.

handlesParentType

public boolean handlesParentType(ContentType type)
Specified by:
handlesParentType in interface ContentTypeBinding
Returns:
true if Content of this binding's ContentType can be a child of content of the given type

getChildren

public PageResponse<Content> getChildren(Content parent,
                                         LimitedRequest limitedRequest,
                                         Expansions expansions,
                                         Depth depth)
Description copied from interface: ContentTypeBinding
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.

Specified by:
getChildren in interface ContentTypeBinding
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.


Copyright © 2003-2014 Atlassian. All Rights Reserved.