Class DenormalisedSpaceChangeLogDaoImpl
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.space.dao.DenormalisedSpaceChangeLogDaoImpl
-
- All Implemented Interfaces:
DenormalisedSpaceChangeLogDao
public class DenormalisedSpaceChangeLogDaoImpl extends Object implements DenormalisedSpaceChangeLogDao
- Since:
- 7.10.0
-
-
Constructor Summary
Constructors Constructor Description DenormalisedSpaceChangeLogDaoImpl(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DenormalisedSpaceChangeLog>
findSpaceChangeLogRecords(int limit)
Retrieves a list of space change log records sorted by id.List<Long>
getAllChangedSpaceIds()
void
removeAllSpaceChangeLogRecords()
Removes all space change log records.void
removeSpaceChangeLogRecords(List<DenormalisedSpaceChangeLog> processedRecords)
Removed space change log recordsvoid
saveRecord(DenormalisedSpaceChangeLog log)
Saves a record for testing purpose.
-
-
-
Method Detail
-
findSpaceChangeLogRecords
public List<DenormalisedSpaceChangeLog> findSpaceChangeLogRecords(int limit)
Retrieves a list of space change log records sorted by id.- Specified by:
findSpaceChangeLogRecords
in interfaceDenormalisedSpaceChangeLogDao
- Parameters:
limit
- - limit of records- Returns:
- list of change log records
-
removeSpaceChangeLogRecords
public void removeSpaceChangeLogRecords(List<DenormalisedSpaceChangeLog> processedRecords)
Removed space change log records- Specified by:
removeSpaceChangeLogRecords
in interfaceDenormalisedSpaceChangeLogDao
- Parameters:
processedRecords
- log records to remove
-
saveRecord
public void saveRecord(DenormalisedSpaceChangeLog log)
Saves a record for testing purpose.- Specified by:
saveRecord
in interfaceDenormalisedSpaceChangeLogDao
- Parameters:
log
- space change log
-
getAllChangedSpaceIds
public List<Long> getAllChangedSpaceIds()
- Specified by:
getAllChangedSpaceIds
in interfaceDenormalisedSpaceChangeLogDao
- Returns:
- all changed space ids from space change log
- Since:
- 7.12.1
-
removeAllSpaceChangeLogRecords
public void removeAllSpaceChangeLogRecords()
Removes all space change log records. It must not call truncate because it lock the entire table.- Specified by:
removeAllSpaceChangeLogRecords
in interfaceDenormalisedSpaceChangeLogDao
-
-