Class DefaultHistoricalVersionService
- java.lang.Object
-
- com.atlassian.confluence.impl.retention.DefaultHistoricalVersionService
-
- All Implemented Interfaces:
HistoricalVersionService
public class DefaultHistoricalVersionService extends Object implements HistoricalVersionService
Provides methods for finding and deleting Confluence Historical Content- Since:
- 7.12
-
-
Constructor Summary
Constructors Constructor Description DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao, ContentEntityManagerInternal contentEntityManagerInternal, AttachmentManagerInternal attachmentManagerInternal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeletedHistoricalVersionSummary
delete(List<HistoricalVersion> historicalVersionList)
Delete the content for the historical versions.List<HistoricalVersion>
find(long startOriginalId, int limit, ContentType contentType)
Get a list of content which has a current version with an id greater or equal to {@param startOriginalId}.
-
-
-
Constructor Detail
-
DefaultHistoricalVersionService
public DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao, ContentEntityManagerInternal contentEntityManagerInternal, AttachmentManagerInternal attachmentManagerInternal)
-
-
Method Detail
-
find
public List<HistoricalVersion> find(long startOriginalId, int limit, ContentType contentType)
Description copied from interface:HistoricalVersionService
Get a list of content which has a current version with an id greater or equal to {@param startOriginalId}.- 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
public DeletedHistoricalVersionSummary delete(List<HistoricalVersion> historicalVersionList)
Description copied from interface:HistoricalVersionService
Delete the content for the historical versions.- Specified by:
delete
in interfaceHistoricalVersionService
- Parameters:
historicalVersionList
- The content to delete.
-
-