com.atlassian.confluence.rest.client
Class RemoteChildContentServiceImpl.RemoteChildContentFinderImpl

java.lang.Object
  extended by com.atlassian.confluence.rest.client.AbstractRemoteService<ChildContentService.ChildContentFinder>
      extended by com.atlassian.confluence.rest.client.RemoteChildContentServiceImpl.RemoteChildContentFinderImpl
All Implemented Interfaces:
RemoteChildContentService.RemoteChildContentFinder
Enclosing class:
RemoteChildContentServiceImpl

public static class RemoteChildContentServiceImpl.RemoteChildContentFinderImpl
extends AbstractRemoteService<ChildContentService.ChildContentFinder>
implements RemoteChildContentService.RemoteChildContentFinder


Constructor Summary
RemoteChildContentServiceImpl.RemoteChildContentFinderImpl(AbstractRemoteService other, ContentId parentId, Expansion[] expansion)
           
 
Method Summary
 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.
 
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteChildContentServiceImpl.RemoteChildContentFinderImpl

public RemoteChildContentServiceImpl.RemoteChildContentFinderImpl(AbstractRemoteService other,
                                                                  ContentId parentId,
                                                                  Expansion[] expansion)
Method Detail

fetchMappedByType

public com.atlassian.util.concurrent.Promise<Map<ContentType,PageResponse<Content>>> fetchMappedByType(@Nullable
                                                                                                       PageRequest request)
Description copied from interface: RemoteChildContentService.RemoteChildContentFinder
Retrieve the content contained in this parent.

The pageRequest limit is restricted to a maximum page size.

Specified by:
fetchMappedByType in interface RemoteChildContentService.RemoteChildContentFinder
Returns:
a map of the content in this parent by contentType

fetchMany

public com.atlassian.util.concurrent.Promise<PageResponse<Content>> fetchMany(ContentType type,
                                                                              @Nullable
                                                                              PageRequest request)
Description copied from interface: RemoteChildContentService.RemoteChildContentFinder
Retrieve a paged list of content of the given type contained in this parent

Specified by:
fetchMany in interface RemoteChildContentService.RemoteChildContentFinder
Parameters:
type - - the type of content to retrieve
request - - 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

withDepth

public RemoteChildContentService.RemoteChildContentFinder withDepth(Depth depth)
Description copied from interface: RemoteChildContentService.RemoteChildContentFinder
Set the depth to retrieve content on the ChildContentFinder

Specified by:
withDepth in interface RemoteChildContentService.RemoteChildContentFinder
Parameters:
depth - - the depth in the page hierarchy of Content descendants to retrieve
Returns:
a child content finder with the depth parameter set

withParentVersion

public RemoteChildContentService.RemoteChildContentFinder withParentVersion(int parentVersion)
Description copied from interface: RemoteChildContentService.RemoteChildContentFinder
Specifies the which version of the parent content to use when looking for children.

Specified by:
withParentVersion in interface RemoteChildContentService.RemoteChildContentFinder
Parameters:
parentVersion - - the version of the parent content to use
Returns:
child content found under the particular version of parent content.

withLocation

public RemoteChildContentService.RemoteChildContentFinder withLocation(Collection<String> location)
Description copied from interface: RemoteChildContentService.RemoteChildContentFinder
Set the location(s) to retrieve the content from

Specified by:
withLocation in interface RemoteChildContentService.RemoteChildContentFinder
Returns:
a child content finder with the location parameter set


Copyright © 2003–2015 Atlassian. All rights reserved.