Interface RemoteChildContentService.RemoteChildContentFinder
-
- All Known Implementing Classes:
AbstractRemoteChildContentService.AbstractRemoteChildContentFinder
,GraphQLRemoteChildContentServiceImpl.RemoteChildContentFinderImpl
,RemoteChildContentServiceImpl.RemoteChildContentFinderImpl
- Enclosing interface:
- RemoteChildContentService
public static interface RemoteChildContentService.RemoteChildContentFinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<PageResponse<Content>>
fetchMany(ContentType type, PageRequest request)
Deprecated.since 7.0.1.CompletionStage<PageResponse<Content>>
fetchManyCompletionStage(ContentType type, PageRequest request)
Retrieve a paged list of content of the given type contained in this parentcom.atlassian.util.concurrent.Promise<Map<ContentType,PageResponse<Content>>>
fetchMappedByType(PageRequest request)
Deprecated.since 7.0.1.CompletionStage<Map<ContentType,PageResponse<Content>>>
fetchMappedByTypeCompletionStage(PageRequest request)
Retrieve the content contained in this parent.RemoteChildContentService.RemoteChildContentFinder
withDepth(Depth depth)
Set the depth to retrieve content on the ChildContentFinderRemoteChildContentService.RemoteChildContentFinder
withLocation(Collection<String> location)
Set the location(s) to retrieve the content fromRemoteChildContentService.RemoteChildContentFinder
withParentVersion(int versionNumber)
Specifies the which version of the parent content to use when looking for children.
-
-
-
Method Detail
-
fetchMappedByType
@Deprecated com.atlassian.util.concurrent.Promise<Map<ContentType,PageResponse<Content>>> fetchMappedByType(PageRequest request)
Deprecated.since 7.0.1. UsefetchMappedByTypeCompletionStage(PageRequest)
instead.Retrieve the content contained in this parent.The pageRequest limit is restricted to a maximum page size.
- Returns:
- a map of the content in this parent by contentType
-
fetchMappedByTypeCompletionStage
CompletionStage<Map<ContentType,PageResponse<Content>>> fetchMappedByTypeCompletionStage(PageRequest request)
Retrieve the content contained in this parent.The pageRequest limit is restricted to a maximum page size.
- Returns:
- a map of the content in this parent by contentType
- Since:
- 7.0.1
-
fetchMany
@Deprecated com.atlassian.util.concurrent.Promise<PageResponse<Content>> fetchMany(ContentType type, PageRequest request)
Deprecated.since 7.0.1. UsefetchManyCompletionStage(ContentType, PageRequest)
instead.Retrieve a paged list of content of the given type contained in this parent- Parameters:
type
- - the type of content to retrieverequest
- - a page request indicating the start and limit of items to return- Returns:
- a paged list of content of the given type contained in this parent
-
fetchManyCompletionStage
CompletionStage<PageResponse<Content>> fetchManyCompletionStage(ContentType type, PageRequest request)
Retrieve a paged list of content of the given type contained in this parent- Parameters:
type
- - the type of content to retrieverequest
- - a page request indicating the start and limit of items to return- Returns:
- a paged list of content of the given type contained in this parent
- Since:
- 7.0.1
-
withDepth
RemoteChildContentService.RemoteChildContentFinder withDepth(Depth depth)
Set the depth to retrieve content on the ChildContentFinder- Parameters:
depth
- - the depth in the page hierarchy of Content descendants to retrieve- Returns:
- a child content finder with the depth parameter set
-
withParentVersion
RemoteChildContentService.RemoteChildContentFinder withParentVersion(int versionNumber)
Specifies the which version of the parent content to use when looking for children.- Parameters:
versionNumber
- - the version of the parent content to use- Returns:
- child content found under the particular version of parent content.
- Throws:
BadRequestException
- if the version is not valid
-
withLocation
RemoteChildContentService.RemoteChildContentFinder withLocation(Collection<String> location)
Set the location(s) to retrieve the content from- Parameters:
location
-- Returns:
- a child content finder with the location parameter set
-
-