public class DefaultHistoricalVersionService extends Object implements HistoricalVersionService
| Constructor and Description |
|---|
DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate,
ContentEntityManagerInternal contentEntityManagerInternal) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(List<HistoricalVersion> historicalVersionList)
Delete the content for the historical versions.
|
List<HistoricalVersion> |
find(long startOriginalId,
int limit)
Get a list of content which has a current version with an id greater or equal to .
|
public DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, ContentEntityManagerInternal contentEntityManagerInternal)
public List<HistoricalVersion> find(long startOriginalId, int limit)
HistoricalVersionServicefind in interface HistoricalVersionServicestartOriginalId - only entries with original id equal to or higher than this will be returnedlimit - the maximum number of historical versions to retrieve.public void delete(List<HistoricalVersion> historicalVersionList)
HistoricalVersionServicedelete in interface HistoricalVersionServicehistoricalVersionList - The content to delete.Copyright © 2003–2021 Atlassian. All rights reserved.