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
FieldsModifier and TypeFieldDescriptionprotected ContentId
protected List<ContentType>
protected LocalDate
protected final Expansion[]
protected String
protected List<ContentStatus>
Deprecated.since 8.7.0.protected String
protected int
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractRemoteContentFinder
(AbstractRemoteContentService otherService, Expansion... expansions) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CompletionStage<Optional<Content>>
protected List<ContentStatus>
withCreatedDate
(LocalDate time) Note : currently unsupported Restrict the fetched content to those with the given ids, requires at least two ContentIds.Note : currently unsupported Restrict the fetched content to those with the given idswithIdAndVersion
(ContentId contentId, int version) withLocator
(ContentLocator locator) Retrieve a piece of content by some more complex criteria (defined by the ContentLocator).withStatus
(ContentStatus... status) withType
(ContentType... types) Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStage
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
fetchManyCompletionStage
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteSingleFetcher
fetchOneOrNullCompletionStage, fetchOrNullCompletionStage
-
Field Details
-
expansions
-
contentId
-
version
protected int version -
spaceKey
-
contentTypes
-
createdDate
-
title
-
statuses
Deprecated.since 8.7.0. UsegetStatuses()
instead.
-
-
Constructor Details
-
AbstractRemoteContentFinder
protected AbstractRemoteContentFinder(AbstractRemoteContentService otherService, Expansion... expansions)
-
-
Method Details
-
withId
- Specified by:
withId
in interfaceRemoteContentService.RemoteContentFinder
-
withIdAndVersion
public RemoteContentService.RemoteSingleContentFetcher withIdAndVersion(ContentId contentId, int version) - Specified by:
withIdAndVersion
in interfaceRemoteContentService.RemoteContentFinder
-
withId
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
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
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
- Specified by:
withSpace
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withType
- Specified by:
withType
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withCreatedDate
- Specified by:
withCreatedDate
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withTitle
- Specified by:
withTitle
in interfaceRemoteContentService.RemoteParameterContentFinder
-
withStatus
- Specified by:
withStatus
in interfaceRemoteContentService.RemoteContentFinder
-
withAnyStatus
- Specified by:
withAnyStatus
in interfaceRemoteContentService.RemoteContentFinder
-
getStatuses
-
fetchMappedByContentTypeCompletionStage
public CompletionStage<Map<ContentType,PageResponse<Content>>> fetchMappedByContentTypeCompletionStage(PageRequest request) - Specified by:
fetchMappedByContentTypeCompletionStage
in interfaceRemoteContentService.RemoteContentFetcher
-
fetchCompletionStage
- Specified by:
fetchCompletionStage
in interfaceRemoteSingleFetcher<Content>
- See Also:
-
fetchByIdCompletionStage
- Since:
- 9.0
-