Interface ContentVersionService.VersionFinder

All Superinterfaces:
ContentVersionService.ParameterVersionFinder, ManyFetcher<Version>, SingleFetcher<Version>
Enclosing interface:
ContentVersionService

public static interface ContentVersionService.VersionFinder extends ContentVersionService.ParameterVersionFinder, SingleFetcher<Version>
Finder interface that allows to fetchOne() to find A versioned content.
  • Method Details

    • withIdAndVersion

      SingleFetcher<Version> withIdAndVersion(ContentId contentId, int versionNumber)
      When Version is set, search will find the particular version and return a single version. ContentId could be the id of any historical version's, the method will try to find the latest contentId first, then use it to locate the given version. When version is not found, NotFoundException will be thrown.
      Parameters:
      contentId - ContentId
      versionNumber - Version to fetch, it starts from 1.
      Returns:
      A SingleFetcher user can do FetchOne on.