com.atlassian.confluence.rest.client
Class RemoteContentServiceImpl.RemoteContentFinderImpl

java.lang.Object
  extended by com.atlassian.confluence.rest.client.AbstractRemoteService<ContentService.ContentFinder>
      extended by com.atlassian.confluence.rest.client.RemoteContentServiceImpl.RemoteContentFinderImpl
All Implemented Interfaces:
RemoteContentService.RemoteContentFetcher, RemoteContentService.RemoteContentFinder, RemoteContentService.RemoteParameterContentFinder, RemoteContentService.RemoteSingleContentFetcher
Enclosing class:
RemoteContentServiceImpl

public class RemoteContentServiceImpl.RemoteContentFinderImpl
extends AbstractRemoteService<ContentService.ContentFinder>
implements RemoteContentService.RemoteContentFinder


Method Summary
 com.atlassian.util.concurrent.Promise<PageResponse<Content>> fetchMany(ContentType type, PageRequest request)
           
 com.atlassian.util.concurrent.Promise<java.util.Map<ContentType,PageResponse<Content>>> fetchMappedByContentType(PageRequest request)
           
 com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Content>> fetchOne()
           
 com.atlassian.util.concurrent.Promise<Content> fetchOneOrNull()
           
 RemoteContentService.RemoteParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
           
 RemoteContentService.RemoteSingleContentFetcher withId(ContentId contentId)
           
 RemoteContentService.RemoteSingleContentFetcher withLocator(ContentLocator locator)
          Retrieve a piece of content by some more complex criteria (defined by the ContentLocator).
 RemoteContentService.RemoteParameterContentFinder withSpace(Space... spaces)
           
 RemoteContentService.RemoteParameterContentFinder withTitle(java.lang.String title)
           
 RemoteContentService.RemoteParameterContentFinder withType(ContentType... types)
           
 
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, getFutureGenericCollection, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

withId

public RemoteContentService.RemoteSingleContentFetcher withId(ContentId contentId)
Specified by:
withId in interface RemoteContentService.RemoteContentFinder

withLocator

public RemoteContentService.RemoteSingleContentFetcher withLocator(ContentLocator locator)
Description copied from interface: RemoteContentService.RemoteContentFinder
Retrieve a piece of content by some more complex criteria (defined by the ContentLocator).

Specified by:
withLocator in interface RemoteContentService.RemoteContentFinder
Parameters:
locator - the locator containing the criteria for the content you are looking for
Returns:
the content, if one exists matching the criteria, or none otherwise.

withSpace

public RemoteContentService.RemoteParameterContentFinder withSpace(Space... spaces)
Specified by:
withSpace in interface RemoteContentService.RemoteParameterContentFinder

withType

public RemoteContentService.RemoteParameterContentFinder withType(ContentType... types)
Specified by:
withType in interface RemoteContentService.RemoteParameterContentFinder

withCreatedDate

public RemoteContentService.RemoteParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
Specified by:
withCreatedDate in interface RemoteContentService.RemoteParameterContentFinder

withTitle

public RemoteContentService.RemoteParameterContentFinder withTitle(java.lang.String title)
Specified by:
withTitle in interface RemoteContentService.RemoteParameterContentFinder

fetchMany

public com.atlassian.util.concurrent.Promise<PageResponse<Content>> fetchMany(ContentType type,
                                                                              PageRequest request)
Specified by:
fetchMany in interface RemoteContentService.RemoteContentFetcher

fetchMappedByContentType

public com.atlassian.util.concurrent.Promise<java.util.Map<ContentType,PageResponse<Content>>> fetchMappedByContentType(PageRequest request)
Specified by:
fetchMappedByContentType in interface RemoteContentService.RemoteContentFetcher

fetchOne

public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Content>> fetchOne()
Specified by:
fetchOne in interface RemoteContentService.RemoteSingleContentFetcher

fetchOneOrNull

public com.atlassian.util.concurrent.Promise<Content> fetchOneOrNull()
Specified by:
fetchOneOrNull in interface RemoteContentService.RemoteSingleContentFetcher


Copyright © 2003-2014 Atlassian. All Rights Reserved.