Package org.apereo.inspektr.audit
Interface AuditTrailManager
-
- All Superinterfaces:
org.apereo.inspektr.common.Cleanable
- All Known Implementing Classes:
AbstractStringAuditTrailManager,ConsoleAuditTrailManager,Slf4jLoggingAuditTrailManager
public interface AuditTrailManager extends org.apereo.inspektr.common.CleanableAn interface used to make an audit trail record.- Since:
- 1.0
- Author:
- Dmitriy Kopylenko
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAuditTrailManager.AuditFormats
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclean()java.util.Set<? extends AuditActionContext>getAuditRecordsSince(java.time.LocalDate sinceDate)Gets audit records since.voidrecord(AuditActionContext auditActionContext)Make an audit trail record.voidremoveAll()Remove all.default voidsetAuditFormat(AuditTrailManager.AuditFormats auditFormat)static java.lang.StringtoJson(java.lang.Object arg)
-
-
-
Method Detail
-
toJson
static java.lang.String toJson(java.lang.Object arg)
-
record
void record(AuditActionContext auditActionContext)
Make an audit trail record. Implementations could use any type of back end medium to serialize audit trail data i.e. RDBMS, log file, IO stream, SMTP, JMS queue or what ever else imaginable.This concept is somewhat similar to log4j Appender.
- Parameters:
auditActionContext- the audit action context
-
getAuditRecordsSince
java.util.Set<? extends AuditActionContext> getAuditRecordsSince(java.time.LocalDate sinceDate)
Gets audit records since.- Parameters:
sinceDate- the since date- Returns:
- the audit records since
-
removeAll
void removeAll()
Remove all.
-
clean
default void clean()
- Specified by:
cleanin interfaceorg.apereo.inspektr.common.Cleanable
-
setAuditFormat
default void setAuditFormat(AuditTrailManager.AuditFormats auditFormat)
-
-