Interface ContentService.ContentFinder
- All Superinterfaces:
ContentService.ContentFetcher
,ContentService.ParameterContentFinder
,ContentService.SingleContentFetcher
,SingleFetcher<Content>
- All Known Implementing Classes:
AbstractContentFinder
,ContentFinderImpl
,NoopContentFinder
- Enclosing interface:
ContentService
A finder for locating content
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Restrict the fetched content to that with the given ContentIdwithIdAndVersion
(ContentId contentId, int version) Restrict the fetched content to that matching the given versionwithLocator
(ContentLocator locator) Restrict the fetched content to that matching the given ContentLocator, a ContentLocator identifies a single piece of content.Methods inherited from interface com.atlassian.confluence.api.service.content.ContentService.ContentFetcher
fetchMany, fetchManyWithAnyType, fetchManyWithoutCaching, fetchMappedByContentType
Methods inherited from interface com.atlassian.confluence.api.service.content.ContentService.ParameterContentFinder
withAnyStatus, withContainer, withCreatedDate, withId, withId, withSpace, withStatus, withStatus, withTitle, withType
Methods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher
fetch, fetchOneOrNull, fetchOrNull
-
Method Details
-
canExpand
- Parameters:
expansion
- the expansion to check- Returns:
- true if the finder can expand the property
- Since:
- 9.2.5
-
withId
Restrict the fetched content to that with the given ContentId- Parameters:
contentId
- the id of the content to fetch- Returns:
- a SingleContentFetcher that will fetch a single piece of content if it exists
-
withIdAndVersion
Restrict the fetched content to that matching the given version- Returns:
- a finder with the version restrictions applied
-
withLocator
Restrict the fetched content to that matching the given ContentLocator, a ContentLocator identifies a single piece of content.- Parameters:
locator
- the content locator to use to find the content- Returns:
- a single content fetcher that fetches the content matched by the content locator
-