Class DefaultContentRetentionDao
- java.lang.Object
-
- com.atlassian.confluence.impl.retention.DefaultContentRetentionDao
-
- All Implemented Interfaces:
ContentRetentionDao
public class DefaultContentRetentionDao extends Object implements ContentRetentionDao
- Since:
- 7.12
-
-
Constructor Summary
Constructors Constructor Description DefaultContentRetentionDao(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HistoricalVersion>
findHistoricalAttachmentVersions(long startOriginalId, int limit)
List<HistoricalVersion>
findHistoricalPageVersions(long startOriginalId, int limit)
Get a list of content which has a current version with an id greater or equal to {@param startOriginalId} and less than {@param endOriginalId}.
-
-
-
Method Detail
-
findHistoricalPageVersions
public List<HistoricalVersion> findHistoricalPageVersions(long startOriginalId, int limit)
Description copied from interface:ContentRetentionDao
Get a list of content which has a current version with an id greater or equal to {@param startOriginalId} and less than {@param endOriginalId}.- Specified by:
findHistoricalPageVersions
in interfaceContentRetentionDao
- Parameters:
startOriginalId
- the start of the range to selectlimit
- the maximum number of historical versions to retrieve.- Returns:
- the list of
HistoricalVersion
found within the requested range
-
findHistoricalAttachmentVersions
public List<HistoricalVersion> findHistoricalAttachmentVersions(long startOriginalId, int limit)
- Specified by:
findHistoricalAttachmentVersions
in interfaceContentRetentionDao
-
-