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)
AuditManagerAuditRecordEntity to the database.storeRecord in interface AuditManagerauditRecord - the record to storepublic PageResponse<AuditRecordEntity> getRecords(LimitedRequest limitedRequest, Instant startDate, Instant endDate, boolean isSysAdmin, String searchString)
AuditManagergetRecords in interface AuditManagerlimitedRequest - 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)
AuditManagercleanOldRecords in interface AuditManagerCopyright © 2003–2019 Atlassian. All rights reserved.