Class AbstractRemoteContentService.AbstractRemoteContentFinder
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentService.ContentFinder>
-
- com.atlassian.confluence.rest.client.AbstractRemoteContentService.AbstractRemoteContentFinder
-
- All Implemented Interfaces:
RemoteContentService.RemoteContentFetcher
,RemoteContentService.RemoteContentFinder
,RemoteContentService.RemoteParameterContentFinder
,RemoteContentService.RemoteSingleContentFetcher
,RemoteSingleFetcher<Content>
- Direct Known Subclasses:
GraphQLRemoteContentServiceImpl.RemoteContentFinderImpl
,RemoteContentServiceImpl.RemoteContentFinderImpl
- Enclosing class:
- AbstractRemoteContentService
protected abstract class AbstractRemoteContentService.AbstractRemoteContentFinder extends AbstractRemoteService<ContentService.ContentFinder> implements RemoteContentService.RemoteContentFinder
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentId
contentId
protected List<ContentType>
contentTypes
protected org.joda.time.LocalDate
createdDate
protected Expansion[]
expansions
protected String
spaceKey
protected com.google.common.collect.ImmutableList<ContentStatus>
statuses
protected String
title
protected int
version
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRemoteContentFinder(AbstractRemoteContentService otherService, Expansion... expansions)
-
Method Summary
-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteContentService.RemoteContentFetcher
fetchMany, fetchManyCompletionStage
-
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteSingleFetcher
fetch, fetchOrNull
-
-
-
-
Field Detail
-
expansions
protected final Expansion[] expansions
-
contentId
protected ContentId contentId
-
version
protected int version
-
spaceKey
protected String spaceKey
-
contentTypes
protected List<ContentType> contentTypes
-
createdDate
protected org.joda.time.LocalDate createdDate
-
title
protected String title
-
statuses
protected com.google.common.collect.ImmutableList<ContentStatus> statuses
-
-
Constructor Detail
-
AbstractRemoteContentFinder
protected AbstractRemoteContentFinder(AbstractRemoteContentService otherService, Expansion... expansions)
-
-
Method Detail
-
withId
public RemoteContentService.RemoteSingleContentFetcher withId(ContentId contentId)
- Specified by:
withId
in interfaceRemoteContentService.RemoteContentFinder
-
withIdAndVersion
public RemoteContentService.RemoteSingleContentFetcher withIdAndVersion(ContentId contentId, int version)
- Specified by:
withIdAndVersion
in interfaceRemoteContentService.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 interfaceRemoteContentService.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 interfaceRemoteContentService.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 interfaceRemoteContentService.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 interfaceRemoteContentService.RemoteParameterContentFinder
-
withType
public RemoteContentService.RemoteParameterContentFinder withType(ContentType... types)
- Specified by:
withType
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withCreatedDate
public RemoteContentService.RemoteParameterContentFinder withCreatedDate(org.joda.time.LocalDate time)
- Specified by:
withCreatedDate
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withTitle
public RemoteContentService.RemoteParameterContentFinder withTitle(String title)
- Specified by:
withTitle
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withStatus
public RemoteContentService.RemoteContentFinder withStatus(ContentStatus... status)
- Specified by:
withStatus
in interfaceRemoteContentService.RemoteContentFinder
-
withAnyStatus
public RemoteContentService.RemoteContentFinder withAnyStatus()
- Specified by:
withAnyStatus
in interfaceRemoteContentService.RemoteContentFinder
-
fetchMappedByContentType
public com.atlassian.util.concurrent.Promise<Map<ContentType,PageResponse<Content>>> fetchMappedByContentType(PageRequest request)
- Specified by:
fetchMappedByContentType
in interfaceRemoteContentService.RemoteContentFetcher
-
fetchMappedByContentTypeCompletionStage
public CompletionStage<Map<ContentType,PageResponse<Content>>> fetchMappedByContentTypeCompletionStage(PageRequest request)
- Specified by:
fetchMappedByContentTypeCompletionStage
in interfaceRemoteContentService.RemoteContentFetcher
-
fetchOne
public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Content>> fetchOne()
- Specified by:
fetchOne
in interfaceRemoteSingleFetcher<Content>
-
fetchOneOrNull
public com.atlassian.util.concurrent.Promise<Content> fetchOneOrNull()
- Specified by:
fetchOneOrNull
in interfaceRemoteSingleFetcher<Content>
-
fetchCompletionStage
public CompletionStage<Optional<Content>> fetchCompletionStage()
- Specified by:
fetchCompletionStage
in interfaceRemoteSingleFetcher<Content>
-
fetchOrNullCompletionStage
public CompletionStage<Content> fetchOrNullCompletionStage()
- Specified by:
fetchOrNullCompletionStage
in interfaceRemoteSingleFetcher<Content>
-
fetchOneById
@Deprecated protected abstract com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Content>> fetchOneById()
Deprecated.since 7.0.1. UsefetchByIdCompletionStage()
instead.
-
fetchByIdCompletionStage
protected abstract CompletionStage<Optional<Content>> fetchByIdCompletionStage()
- Since:
- 7.0.1
-
-