Interface ContentVersionService.VersionFinder

    • Method Detail

      • 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.
        contentId - ContentId
        versionNumber - Version to fetch, it starts from 1.
        A SingleFetcher user can do FetchOne on.