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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleFetcher<Version>
withIdAndVersion(ContentId contentId, int versionNumber)
When Version is set, search will find the particular version and return a single version.-
Methods inherited from interface com.atlassian.confluence.api.service.content.ContentVersionService.ParameterVersionFinder
withId
-
Methods inherited from interface com.atlassian.confluence.api.service.finder.ManyFetcher
fetchMany
-
Methods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher
fetch, fetchOne, fetchOneOrNull, fetchOrNull
-
-
-
-
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.- Parameters:
contentId
- ContentIdversionNumber
- Version to fetch, it starts from 1.- Returns:
- A SingleFetcher user can do FetchOne on.
-
-