public interface AuditManager
| 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. |
com.atlassian.fugue.Option<AuditRecordEntity> storeRecord(AuditRecordEntity auditRecord)
AuditRecordEntity to the database.auditRecord - the record to storePageResponse<AuditRecordEntity> getRecords(LimitedRequest limitedRequest, Instant startDate, Instant endDate, boolean isSysAdmin, String searchString)
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.void cleanOldRecords(Instant before)
before - Copyright © 2003–2021 Atlassian. All rights reserved.