public class AuditApplicationEvent
extends org.springframework.context.ApplicationEvent
ApplicationEvent
to encapsulate AuditEvent
s.source
Constructor and Description |
---|
AuditApplicationEvent(AuditEvent auditEvent)
Create a new
AuditApplicationEvent that wraps the specified
AuditEvent . |
AuditApplicationEvent(Instant timestamp,
String principal,
String type,
Map<String,Object> data)
Create a new
AuditApplicationEvent that wraps a newly created
AuditEvent . |
AuditApplicationEvent(String principal,
String type,
Map<String,Object> data)
Create a new
AuditApplicationEvent that wraps a newly created
AuditEvent . |
AuditApplicationEvent(String principal,
String type,
String... data)
Create a new
AuditApplicationEvent that wraps a newly created
AuditEvent . |
Modifier and Type | Method and Description |
---|---|
AuditEvent |
getAuditEvent()
Get the audit event.
|
getSource, toString
public AuditApplicationEvent(String principal, String type, Map<String,Object> data)
AuditApplicationEvent
that wraps a newly created
AuditEvent
.principal
- the principaltype
- the event typedata
- the event dataAuditEvent(String, String, Map)
public AuditApplicationEvent(String principal, String type, String... data)
AuditApplicationEvent
that wraps a newly created
AuditEvent
.principal
- the principaltype
- the event typedata
- the event dataAuditEvent(String, String, String...)
public AuditApplicationEvent(Instant timestamp, String principal, String type, Map<String,Object> data)
AuditApplicationEvent
that wraps a newly created
AuditEvent
.timestamp
- the timestampprincipal
- the principaltype
- the event typedata
- the event dataAuditEvent(Instant, String, String, Map)
public AuditApplicationEvent(AuditEvent auditEvent)
AuditApplicationEvent
that wraps the specified
AuditEvent
.auditEvent
- the source of this eventpublic AuditEvent getAuditEvent()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.