Class ContentFinderImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder<Content>
com.atlassian.confluence.api.impl.service.content.finder.AbstractContentFinder
com.atlassian.confluence.api.impl.service.content.finder.ContentFinderImpl
- All Implemented Interfaces:
ContentService.ContentFetcher
,ContentService.ContentFinder
,ContentService.ParameterContentFinder
,ContentService.SingleContentFetcher
,SingleFetcher<Content>
This finder will fetch one or many contents based on different criteria,
for example by their IDs or content types (PAGE, BLOG_POST, COMMENT, etc.)
or by their content status
- Since:
- 9.2.5
-
Field Summary
Fields inherited from class com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder
expansions
-
Method Summary
Modifier and TypeMethodDescriptionfetch()
fetchMany
(ContentType type, PageRequest request) fetchManyWithAnyType
(PageRequest request) fetchManyWithoutCaching
(ContentType type, PageRequest request) fetchMappedByContentType
(PageRequest request) getTotalContentCountIfExpand
(Supplier<Long> countSupplier) withLocator
(ContentLocator locator) Restrict the fetched content to that matching the given ContentLocator, a ContentLocator identifies a single piece of content.Methods inherited from class com.atlassian.confluence.api.impl.service.content.finder.AbstractContentFinder
asPredicate, asPredicateWithContentType, asPredicateWithContentTypes, canExpand, getContentContainerId, getContentId, getContentIds, getContentTypes, getCreatedDate, getSpaces, getStatuses, getTitle, getVersion, withAnyStatus, withContainer, withCreatedDate, withId, withId, withId, withIdAndVersion, withSpace, withStatus, withStatus, withTitle, withType
Methods inherited from class com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder
getExpansions
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.api.service.finder.SingleFetcher
fetchOneOrNull, fetchOrNull
-
Method Details
-
withLocator
Description copied from interface:ContentService.ContentFinder
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
-
fetch
-
fetchManyWithoutCaching
public PageResponse<Content> fetchManyWithoutCaching(ContentType type, PageRequest request) throws ServiceException - Throws:
ServiceException
-
fetchMany
public PageResponse<Content> fetchMany(ContentType type, PageRequest request) throws ServiceException - Throws:
ServiceException
-
fetchManyWithAnyType
- Throws:
ServiceException
-
fetchMappedByContentType
public Map<ContentType,PageResponse<Content>> fetchMappedByContentType(PageRequest request) throws ServiceException - Throws:
ServiceException
-
getTotalContentCountIfExpand
-