public class DefaultAuditManager extends Object implements AuditManager
Constructor and Description |
---|
DefaultAuditManager(AuditRecordDao auditRecordDao) |
Modifier and Type | Method and Description |
---|---|
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.Copyright © 2003–2017 Atlassian. All rights reserved.