com.atlassian.confluence.api.impl.service.content.factory
Class ChildSupport

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.content.factory.ChildSupport

public class ChildSupport
extends java.lang.Object

Provides child Content items. Internal counterpart to ChildContentService.


Field Summary
static int CHILDREN_MAP_LIMIT
           
 
Constructor Summary
ChildSupport(ContentTypeBindingProvider bindingProvider, NavigationService navigationService)
           
 
Method Summary
 PageResponse<Content> getChildrenList(Content parent, ContentType childType, LimitedRequest limitedRequest, Expansions expansions, Depth depth)
           
 java.util.Map<ContentType,PageResponse<Content>> getChildrenMap(Content parent, LimitedRequest limitedRequest, Expansions childExpansions, Depth depth)
          Called from the ContentFactory when expanding "children" on a Content item being built.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHILDREN_MAP_LIMIT

public static final int CHILDREN_MAP_LIMIT
See Also:
Constant Field Values
Constructor Detail

ChildSupport

public ChildSupport(ContentTypeBindingProvider bindingProvider,
                    NavigationService navigationService)
Method Detail

getChildrenMap

public java.util.Map<ContentType,PageResponse<Content>> getChildrenMap(Content parent,
                                                                       LimitedRequest limitedRequest,
                                                                       Expansions childExpansions,
                                                                       Depth depth)
Called from the ContentFactory when expanding "children" on a Content item being built.

Note that in this usage, no LimitedRequest for the offset and number of children is supplied, so this method will return Children starting at offset 0 with default length.

Parameters:
parent - the content to find children of
limitedRequest - the number and offset of the children to return
childExpansions - the types of children to expand, and their sub-expansions (if any)
depth - the depth of children to return

getChildrenList

public PageResponse<Content> getChildrenList(Content parent,
                                             ContentType childType,
                                             LimitedRequest limitedRequest,
                                             Expansions expansions,
                                             Depth depth)


Copyright © 2003-2014 Atlassian. All Rights Reserved.