public class AuditApplicationEvent
extends org.springframework.context.ApplicationEvent
ApplicationEvent to encapsulate AuditEvents.| Constructor and Description |
|---|
AuditApplicationEvent(AuditEvent auditEvent)
Create a new
AuditApplicationEvent that wraps the specified
AuditEvent. |
AuditApplicationEvent(java.time.Instant timestamp,
java.lang.String principal,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> data)
Create a new
AuditApplicationEvent that wraps a newly created
AuditEvent. |
AuditApplicationEvent(java.lang.String principal,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> data)
Create a new
AuditApplicationEvent that wraps a newly created
AuditEvent. |
AuditApplicationEvent(java.lang.String principal,
java.lang.String type,
java.lang.String... data)
Create a new
AuditApplicationEvent that wraps a newly created
AuditEvent. |
| Modifier and Type | Method and Description |
|---|---|
AuditEvent |
getAuditEvent()
Get the audit event.
|
public AuditApplicationEvent(java.lang.String principal,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> data)
AuditApplicationEvent that wraps a newly created
AuditEvent.principal - the principaltype - the event typedata - the event dataAuditEvent.AuditEvent(String, String, Map)public AuditApplicationEvent(java.lang.String principal,
java.lang.String type,
java.lang.String... data)
AuditApplicationEvent that wraps a newly created
AuditEvent.principal - the principaltype - the event typedata - the event dataAuditEvent.AuditEvent(String, String, String...)public AuditApplicationEvent(java.time.Instant timestamp,
java.lang.String principal,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> data)
AuditApplicationEvent that wraps a newly created
AuditEvent.timestamp - the timestampprincipal - the principaltype - the event typedata - the event dataAuditEvent.AuditEvent(Instant, String, String, Map)public AuditApplicationEvent(AuditEvent auditEvent)
AuditApplicationEvent that wraps the specified
AuditEvent.auditEvent - the source of this eventpublic AuditEvent getAuditEvent()