public class DefaultAuditManager extends Object implements AuditManager
Constructor and Description |
---|
DefaultAuditManager(AuditRecordDao auditRecordDao) |
Modifier and Type | Method and Description |
---|---|
void |
cleanOldRecords(Instant before)
Remove all old audit records from before a certain time
|
PageResponse<AuditRecordEntity> |
getRecords(LimitedRequest limitedRequest,
Instant startDate,
Instant endDate,
boolean isSysAdmin,
String searchString)
Fetch AuditRecordEntities from the database according to some search criteria
|
com.atlassian.fugue.Option<AuditRecordEntity> |
storeRecord(AuditRecordEntity auditRecord)
Persist an
AuditRecordEntity to the database. |
public DefaultAuditManager(AuditRecordDao auditRecordDao)
public com.atlassian.fugue.Option<AuditRecordEntity> storeRecord(AuditRecordEntity auditRecord)
AuditManager
AuditRecordEntity
to the database.storeRecord
in interface AuditManager
auditRecord
- the record to storepublic PageResponse<AuditRecordEntity> getRecords(LimitedRequest limitedRequest, Instant startDate, Instant endDate, boolean isSysAdmin, String searchString)
AuditManager
getRecords
in interface AuditManager
limitedRequest
- The pagination limits on this requeststartDate
- The earliest date to look back toendDate
- The latest date to look up toisSysAdmin
- Whether or not to include audit entries that were trigger by sysadmin userssearchString
- Filter audit entries based on this search string. Empty string or null indicates no filtering.public void cleanOldRecords(Instant before)
AuditManager
cleanOldRecords
in interface AuditManager
Copyright © 2003–2020 Atlassian. All rights reserved.