public static class RemoteChildContentServiceImpl.RemoteChildContentFinderImpl extends AbstractRemoteService<ChildContentService.ChildContentFinder> implements RemoteChildContentService.RemoteChildContentFinder
Constructor and Description |
---|
RemoteChildContentFinderImpl(AbstractRemoteService other,
ContentId parentId,
Expansion[] expansion) |
Modifier and Type | Method and Description |
---|---|
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
|
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
public RemoteChildContentFinderImpl(AbstractRemoteService other, ContentId parentId, Expansion[] expansion)
public 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 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–2016 Atlassian. All rights reserved.