Interface ContentService.ContentFinder

All Superinterfaces:
ContentService.ContentFetcher, ContentService.ParameterContentFinder, ContentService.SingleContentFetcher, SingleFetcher<Content>
All Known Implementing Classes:
AbstractContentFinder, ContentFinderImpl, NoopContentFinder
Enclosing interface:
ContentService

public static interface ContentService.ContentFinder extends ContentService.ParameterContentFinder
A finder for locating content
  • Method Details

    • canExpand

      boolean canExpand(String expansion)
      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

      ContentService.SingleContentFetcher withIdAndVersion(ContentId contentId, int version)
      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