Class DefaultHistoricalVersionService
java.lang.Object
com.atlassian.confluence.impl.retention.DefaultHistoricalVersionService
- All Implemented Interfaces:
HistoricalVersionService
Provides methods for finding and deleting Confluence Historical Content
- Since:
- 7.12
-
Constructor Summary
ConstructorDescriptionDefaultHistoricalVersionService
(ContentRetentionDao contentRetentionDao, ContentEntityManagerInternal contentEntityManagerInternal, AttachmentManagerInternal attachmentManagerInternal) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(List<HistoricalVersion> historicalVersionList) Delete the content for the historical versions.find
(long startOriginalId, int limit, ContentType contentType) Get a list of content which has a current version with an id greater or equal to .
-
Constructor Details
-
DefaultHistoricalVersionService
public DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao, ContentEntityManagerInternal contentEntityManagerInternal, AttachmentManagerInternal attachmentManagerInternal)
-
-
Method Details
-
find
Description copied from interface:HistoricalVersionService
Get a list of content which has a current version with an id greater or equal to .- Specified by:
find
in interfaceHistoricalVersionService
- Parameters:
startOriginalId
- only entries with original id equal to or higher than this will be returnedlimit
- the maximum number of historical versions to retrieve.contentType
- only entries with this type will be returned- Returns:
- Historical versions with a current(original) which meet the search criteria
-
delete
Description copied from interface:HistoricalVersionService
Delete the content for the historical versions.- Specified by:
delete
in interfaceHistoricalVersionService
- Parameters:
historicalVersionList
- The content to delete.
-