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)
HistoricalVersionService
find
in interface HistoricalVersionService
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 returnedpublic DeletedHistoricalVersionSummary delete(List<HistoricalVersion> historicalVersionList)
HistoricalVersionService
delete
in interface HistoricalVersionService
historicalVersionList
- The content to delete.Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences