public class AuditReaper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuditService<? extends AuditModel> |
auditService
Audit Service implementation.
|
protected int |
maxAuditAllowedDays
Maximum days to keep in the log.
|
| Constructor and Description |
|---|
AuditReaper() |
| Modifier and Type | Method and Description |
|---|---|
void |
scythe()
Search all logs to be deleted and send there id's to the audit service to be deleted.
|
void |
setAuditService(AuditService<?> auditService) |
void |
setMaxAuditAllowedDays(int maxAuditAllowedDays) |
protected AuditService<? extends AuditModel> auditService
protected int maxAuditAllowedDays
public void scythe()
Search all logs to be deleted and send there id's to the audit service to be deleted.
If maximum days is set to -1 nothing will deleted, 0 it delete all audits daily.
public void setAuditService(AuditService<?> auditService)
public void setMaxAuditAllowedDays(int maxAuditAllowedDays)
Copyright © 2017 CrafterCMS. All Rights Reserved.