public static interface ChildContentService.ChildContentFinder
Modifier and Type | Method and Description |
---|---|
PageResponse<Content> |
fetchMany(ContentType type,
PageRequest request)
Retrieve all content of the particular type contained in this parent.
|
Map<ContentType,PageResponse<Content>> |
fetchMappedByType(PageRequest request)
Retrieve all content contained in this parent mapped by ContentType.
|
ChildContentService.ChildContentFinder |
withDepth(Depth depth)
Applies a depth filter to the content found under this parent and retrieved by the finder.
|
ChildContentService.ChildContentFinder |
withLocation(Collection<String> location)
Apply a content filter to the content found under this parent and retrieved by the finder.
|
ChildContentService.ChildContentFinder |
withParentVersion(int versionNumber)
Specifies the which version of the parent content to use when looking for children.
|
ChildContentService.ChildContentFinder withDepth(Depth depth)
Presently only pages participate in the child content hierarchy, the depth filter has no effect on other content types.
depth
- - the depth to retrieve content atBadRequestException
- if the requested depth is deeper than what can be providedChildContentService.ChildContentFinder withParentVersion(int versionNumber)
versionNumber
- - the version of the parent content to useBadRequestException
- if the version is not validMap<ContentType,PageResponse<Content>> fetchMappedByType(PageRequest request) throws BadRequestException
The pageRequest limit is restricted to a maximum page size, and applied to each value in the map
BadRequestException
- if parameters to the finder are not recognizedPageResponse<Content> fetchMany(ContentType type, PageRequest request) throws BadRequestException
request
- the page request indicating the starting offset and limit for the number of pieces of content to returnBadRequestException
- if parameters to the finder are not recognizedChildContentService.ChildContentFinder withLocation(Collection<String> location)
location
- for filtering the content by a collection of string value. Possible values are: "", "footer", "inline" and "resolved"Copyright © 2003–2021 Atlassian. All rights reserved.