public class DefaultHistoricalVersionService extends Object implements HistoricalVersionService
| Constructor and Description |
|---|
DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao,
ContentEntityManagerInternal contentEntityManagerInternal,
AttachmentManagerInternal attachmentManagerInternal) |
| Modifier and Type | Method and 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 .
|
public DefaultHistoricalVersionService(ContentRetentionDao contentRetentionDao, ContentEntityManagerInternal contentEntityManagerInternal, AttachmentManagerInternal attachmentManagerInternal)
public List<HistoricalVersion> find(long startOriginalId, int limit, ContentType contentType)
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.contentType - only entries with this type will be returnedpublic DeletedHistoricalVersionSummary delete(List<HistoricalVersion> historicalVersionList)
HistoricalVersionServicedelete in interface HistoricalVersionServicehistoricalVersionList - The content to delete.Copyright © 2003–2022 Atlassian. All rights reserved.