@Deprecated @ExperimentalApi public interface AuditService
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
AuditService.AuditCSVWriter
Deprecated. 
 
since 7.5.0. Use AuditCsvExportService from atlassian-audit-plugin 
 | 
static interface  | 
AuditService.AuditRecordFinder
Deprecated. 
 
since 7.5.0. Use AuditSearchService from atlassian-audit-api 
 | 
static interface  | 
AuditService.Validator
Deprecated. 
 
since 7.5.0. Validation happens inside atlassian-audit-plugin 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
deleteRecords(Instant before)
Deprecated. 
 
since 7.5.0. Cleanup of audit logs should be performed only by retention scheduled job, which lives inside
  
atlassian-audit-plugin. | 
AuditService.AuditCSVWriter | 
exportCSV()
Deprecated.  
  | 
AuditService.AuditRecordFinder | 
getRecords(@Nullable Instant startDate,
          @Nullable Instant endDate)
Deprecated.  
Retrieve audit records from the system via an  
AuditService.AuditRecordFinder instance. | 
RetentionPeriod | 
getRetentionPeriod()
Deprecated.  
  | 
RetentionPeriod | 
setRetentionPeriod(RetentionPeriod retentionPeriod)
Deprecated.  
Set the configured retention period for audit records. 
 | 
AuditRecord | 
storeRecord(AuditRecord record)
Deprecated.  
Persist the given  
AuditRecord. | 
AuditService.Validator | 
validator()
Deprecated.  
  | 
AuditRecord storeRecord(AuditRecord record) throws ServiceException
AuditRecord. The sysadmin field will be set based on the current user's privileges
 before storing the record. Records will be validated using AuditService.Validator.validateCreate(AuditRecord)record - The record to storeServiceException - if the record is invalidAuditService.AuditRecordFinder getRecords(@Nullable Instant startDate, @Nullable Instant endDate)
AuditService.AuditRecordFinder instance.startDate - The earliest date to fetch records from. Null indicates no limit.endDate - The latest date to fetch records from. Null indicates no limit.RetentionPeriod getRetentionPeriod()
RetentionPeriod setRetentionPeriod(RetentionPeriod retentionPeriod) throws ServiceException
A hard system limit is imposed by the sysprop: confluence.audit.retention.limit.months
retentionPeriod - the period to setServiceException - if the retention period is longer than the system limit.@Deprecated void deleteRecords(Instant before)
atlassian-audit-plugin.before - AuditService.Validator validator()
AuditService.AuditCSVWriter exportCSV()
Copyright © 2003–2022 Atlassian. All rights reserved.