protected abstract static class AbstractRemoteChildContentService.AbstractRemoteChildContentFinder extends AbstractRemoteService<ChildContentService.ChildContentFinder> implements RemoteChildContentService.RemoteChildContentFinder
Modifier and Type | Field and Description |
---|---|
protected Depth |
depth |
protected Collection<String> |
location |
protected int |
parentVersion |
provider
Modifier | Constructor and Description |
---|---|
protected |
AbstractRemoteChildContentFinder(AbstractRemoteService other) |
Modifier and Type | Method and Description |
---|---|
abstract com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
fetchMany(ContentType type,
PageRequest request)
Retrieve a paged list of content of the given type contained in this parent
|
abstract com.atlassian.util.concurrent.Promise<Map<ContentType,PageResponse<Content>>> |
fetchMappedByType(PageRequest request)
Retrieve the content contained in this parent.
|
RemoteChildContentService.RemoteChildContentFinder |
withDepth(Depth depth)
Set the depth to retrieve content on the ChildContentFinder
|
RemoteChildContentService.RemoteChildContentFinder |
withLocation(Collection<String> location)
Set the location(s) to retrieve the content from
|
RemoteChildContentService.RemoteChildContentFinder |
withParentVersion(int parentVersion)
Specifies the which version of the parent content to use when looking for children.
|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
protected Depth depth
protected int parentVersion
protected Collection<String> location
protected AbstractRemoteChildContentFinder(AbstractRemoteService other)
public abstract com.atlassian.util.concurrent.Promise<Map<ContentType,PageResponse<Content>>> fetchMappedByType(@Nullable PageRequest request)
RemoteChildContentService.RemoteChildContentFinder
The pageRequest limit is restricted to a maximum page size.
fetchMappedByType
in interface RemoteChildContentService.RemoteChildContentFinder
public abstract com.atlassian.util.concurrent.Promise<PageResponse<Content>> fetchMany(ContentType type, @Nullable PageRequest request)
RemoteChildContentService.RemoteChildContentFinder
fetchMany
in interface RemoteChildContentService.RemoteChildContentFinder
type
- - the type of content to retrieverequest
- - a page request indicating the start and limit of items to returnpublic RemoteChildContentService.RemoteChildContentFinder withDepth(Depth depth)
RemoteChildContentService.RemoteChildContentFinder
withDepth
in interface RemoteChildContentService.RemoteChildContentFinder
depth
- - the depth in the page hierarchy of Content descendants to retrievepublic RemoteChildContentService.RemoteChildContentFinder withParentVersion(int parentVersion)
RemoteChildContentService.RemoteChildContentFinder
withParentVersion
in interface RemoteChildContentService.RemoteChildContentFinder
parentVersion
- - the version of the parent content to usepublic RemoteChildContentService.RemoteChildContentFinder withLocation(Collection<String> location)
RemoteChildContentService.RemoteChildContentFinder
withLocation
in interface RemoteChildContentService.RemoteChildContentFinder
Copyright © 2003–2019 Atlassian. All rights reserved.