Class DenormalisedContentChangeLogDao
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.content.dao.DenormalisedContentChangeLogDao
-
public class DenormalisedContentChangeLogDao extends Object
DAO for retrieving and updating content change log records- Since:
- 7.10.0
-
-
Constructor Summary
Constructors Constructor Description DenormalisedContentChangeLogDao(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DenormalisedContentChangeLog>
findContentChangeLogRecords(int limit)
Retrieves a list of space change log records sorted by id.void
removeAllContentChangeLogRecords()
Removes all space change log records.void
removeContentChangeLogRecords(List<DenormalisedContentChangeLog> processedRecords)
Remove space change log records.void
saveRecord(DenormalisedContentChangeLog log)
Saves a record for testing purpose.
-
-
-
Method Detail
-
findContentChangeLogRecords
public List<DenormalisedContentChangeLog> findContentChangeLogRecords(int limit)
Retrieves a list of space change log records sorted by id.- Parameters:
limit
- - limit of records- Returns:
- list of change log records
-
removeContentChangeLogRecords
public void removeContentChangeLogRecords(List<DenormalisedContentChangeLog> processedRecords)
Remove space change log records.- Parameters:
processedRecords
- log records to remove
-
removeAllContentChangeLogRecords
public void removeAllContentChangeLogRecords()
Removes all space change log records. Truncate operation is not used it locks the entire table.
-
saveRecord
public void saveRecord(DenormalisedContentChangeLog log)
Saves a record for testing purpose.- Parameters:
log
- content change log
-
-