Interface FastContentRetentionDao
- All Known Implementing Classes:
DefaultFastContentRetentionDao
public interface FastContentRetentionDao
- Since:
- 9.1.0
-
Method Summary
Modifier and TypeMethodDescriptiongetHistoricalVersionsByMaxModifiedDate(ContentType contentType, List<Long> originalIds, int limit, ZonedDateTime maxModifiedDate, @Nullable Long startVersionId) Get a list of historical contents filter by max modified date.getHistoricalVersionsByMaxVersion(ContentType contentType, List<Long> originalIds, int limit, int maxVersionToKeep, @Nullable Long startVersionId) Get a list of historical contents filter by max version.getOriginalVersions(ContentType contentType, long startOriginalId, int limit) Get a list of original contents whose content id greater or equal to .getOriginalVersions(ContentType contentType, long startOriginalId, long spaceId, int limit) Get a list of original contents in target space whose content id greater or equal to .getTrashContents(long startContentId, int limit) Get a list of content with deleted status and content id is id greater or equal to .getTrashContents(long startContentId, int limit, Long spaceId) Get a list of content with deleted status and content id is id greater or equal to and space id is .
-
Method Details
-
getOriginalVersions
Get a list of original contents whose content id greater or equal to .- Parameters:
contentType- only entries with this type will be returnedstartOriginalId- only entries with contentId greater or equal to this will be returnedlimit- the maximum number of original versions to retrieve.- Returns:
- the list of
OriginalVersionfound within the requested range
-
getOriginalVersions
List<OriginalVersion> getOriginalVersions(ContentType contentType, long startOriginalId, long spaceId, int limit) Get a list of original contents in target space whose content id greater or equal to .- Parameters:
contentType- only entries with this type will be returnedstartOriginalId- only entries with contentId greater or equal to this will be returnedspaceId- the space id to filterlimit- the maximum number of original versions to retrieve.- Returns:
- the list of
OriginalVersionfound within the requested range
-
getHistoricalVersionsByMaxVersion
List<SimpleHistoricalVersion> getHistoricalVersionsByMaxVersion(ContentType contentType, List<Long> originalIds, int limit, int maxVersionToKeep, @Nullable Long startVersionId) Get a list of historical contents filter by max version.- Parameters:
contentType- only entries with this type will be returnedoriginalIds- the ids of original contents to filter historical versions fromlimit- the maximum number of historical versions to retrieve.maxVersionToKeep- the maximum number of historical versions to keep for each original content, so only versions with row numbers (partition by original content) greater than this will be returned.startVersionId- only entries with contentId greater or equal to this will be returned- Returns:
- the list of
SimpleHistoricalVersionfound within the requested range
-
getHistoricalVersionsByMaxModifiedDate
List<SimpleHistoricalVersion> getHistoricalVersionsByMaxModifiedDate(ContentType contentType, List<Long> originalIds, int limit, ZonedDateTime maxModifiedDate, @Nullable Long startVersionId) Get a list of historical contents filter by max modified date.- Parameters:
contentType- only entries with this type will be returnedoriginalIds- the ids of original contents to filter historical versions fromlimit- the maximum number of historical versions to retrieve.maxModifiedDate- only versions modified before this date will be returned.startVersionId- only entries with contentId greater or equal to this will be returned- Returns:
- the list of
SimpleHistoricalVersionfound within the requested range
-
getTrashContents
Get a list of content with deleted status and content id is id greater or equal to .- Parameters:
startContentId- only return content with id greater or equal to this value.limit- the maximum number of trash contents to retrieve.- Returns:
- the list of
SpaceContentEntityObjectfound within the requested range
-
getTrashContents
Get a list of content with deleted status and content id is id greater or equal to and space id is .- Parameters:
startContentId- only return content with id greater or equal to this value.limit- the maximum number of trash contents to retrieve.spaceId- only return content with space id equals to this value.- Returns:
- the list of
SpaceContentEntityObjectfound within the requested range
-