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 ContentIdprotected List<ContentType>protected LocalDateprotected final Expansion[]protected Stringprotected List<ContentStatus>Deprecated.since 8.7.0.protected Stringprotected intFields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRemoteContentFinder(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, putVoidCompletionStageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.rest.client.RemoteContentService.RemoteContentFetcher
fetchManyCompletionStageMethods 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:
withIdin interfaceRemoteContentService.RemoteContentFinder
-
withIdAndVersion
public RemoteContentService.RemoteSingleContentFetcher withIdAndVersion(ContentId contentId, int version) - Specified by:
withIdAndVersionin interfaceRemoteContentService.RemoteContentFinder
-
withId
Description copied from interface:RemoteContentService.RemoteContentFinderNote : currently unsupported Restrict the fetched content to those with the given ids, requires at least two ContentIds.- Specified by:
withIdin interfaceRemoteContentService.RemoteContentFinder- Returns:
- this ContentFinder with the restrictions applied
-
withId
Description copied from interface:RemoteContentService.RemoteContentFinderNote : currently unsupported Restrict the fetched content to those with the given ids- Specified by:
withIdin interfaceRemoteContentService.RemoteContentFinder- Parameters:
contentIds- - the list of contentIds to restrict to- Returns:
- this ContentFinder with the restrictions applied
-
withLocator
Description copied from interface:RemoteContentService.RemoteContentFinderRetrieve a piece of content by some more complex criteria (defined by the ContentLocator).- Specified by:
withLocatorin 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:
withSpacein interfaceRemoteContentService.RemoteParameterContentFinder
-
withType
- Specified by:
withTypein interfaceRemoteContentService.RemoteParameterContentFinder
-
withCreatedDate
- Specified by:
withCreatedDatein interfaceRemoteContentService.RemoteParameterContentFinder
-
withTitle
- Specified by:
withTitlein interfaceRemoteContentService.RemoteParameterContentFinder
-
withStatus
- Specified by:
withStatusin interfaceRemoteContentService.RemoteContentFinder
-
withAnyStatus
- Specified by:
withAnyStatusin interfaceRemoteContentService.RemoteContentFinder
-
getStatuses
-
fetchMappedByContentTypeCompletionStage
public CompletionStage<Map<ContentType,PageResponse<Content>>> fetchMappedByContentTypeCompletionStage(PageRequest request) - Specified by:
fetchMappedByContentTypeCompletionStagein interfaceRemoteContentService.RemoteContentFetcher
-
fetchCompletionStage
- Specified by:
fetchCompletionStagein interfaceRemoteSingleFetcher<Content>- See Also:
-
fetchByIdCompletionStage
- Since:
- 9.0
-