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<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.RemoteContentFinder withAnyStatus()
           
 RemoteContentService.RemoteParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
           
 RemoteContentService.RemoteSingleContentFetcher withId(ContentId contentId)
           
 RemoteContentService.RemoteSingleContentFetcher withId(ContentId first, ContentId... tail)
          Note : currently unsupported Restrict the fetched content to those with the given ids, requires at least two ContentIds.
 RemoteContentService.RemoteSingleContentFetcher withId(Iterable<ContentId> contentIds)
          Note : currently unsupported Restrict the fetched content to those with the given ids
 RemoteContentService.RemoteSingleContentFetcher withIdAndVersion(ContentId contentId, int version)
           
 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.RemoteContentFinder withStatus(ContentStatus... status)
           
 RemoteContentService.RemoteParameterContentFinder withTitle(String title)
           
 RemoteContentService.RemoteParameterContentFinder withType(ContentType... types)
           
 
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
 

Method Detail

withId

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

withIdAndVersion

public RemoteContentService.RemoteSingleContentFetcher withIdAndVersion(ContentId contentId,
                                                                        int version)
Specified by:
withIdAndVersion in interface RemoteContentService.RemoteContentFinder

withId

public RemoteContentService.RemoteSingleContentFetcher withId(ContentId first,
                                                              ContentId... tail)
Description copied from interface: RemoteContentService.RemoteContentFinder
Note : currently unsupported Restrict the fetched content to those with the given ids, requires at least two ContentIds.

Specified by:
withId in interface RemoteContentService.RemoteContentFinder
Returns:
this ContentFinder with the restrictions applied

withId

public RemoteContentService.RemoteSingleContentFetcher withId(Iterable<ContentId> contentIds)
Description copied from interface: RemoteContentService.RemoteContentFinder
Note : currently unsupported Restrict the fetched content to those with the given ids

Specified by:
withId in interface RemoteContentService.RemoteContentFinder
Parameters:
contentIds - - the list of contentIds to restrict to
Returns:
this ContentFinder with the restrictions applied

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(String title)
Specified by:
withTitle in interface RemoteContentService.RemoteParameterContentFinder

withStatus

public RemoteContentService.RemoteContentFinder withStatus(ContentStatus... status)
Specified by:
withStatus in interface RemoteContentService.RemoteContentFinder

withAnyStatus

public RemoteContentService.RemoteContentFinder withAnyStatus()
Specified by:
withAnyStatus in interface RemoteContentService.RemoteContentFinder

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<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–2015 Atlassian. All rights reserved.