AuditEvent for consumers to listen to will be removed in 7.0.
A replacement API for consuming auditable actions will be available in 7.0.@AsynchronousPreferred @Deprecated public class AuditEvent extends ApplicationEvent
AuditEvent derived from an Audited annotated event or an internal auditable action.
This class can be used in two different ways. The primary (intended) use case is for consuming all
auditable actions, thus offering a consumer API for these actions. The system publishes this event internally for every
auditable action, and a listener can be created to listen to AuditEvent and process it (e.g. add it to a file
log, persist it in the database, etc.).
The secondary use case is a low level API for providing auditable actions to the system, thus offering
a provider API for these actions. An AuditEvent can be published directly to add an auditable action, instead
of using the Audited annotation and an AuditEntryConverter. However this is not the preferred method
of providing an auditable action (as it skips over system processing applied to every Audited event as it is
transformed into an AuditEvent), and as such it is only recommended to be used if Audited is not
suitable in a particular situation.
The AuditEvent class will be retained until 8.0 to continue supporting provider API
for auditable actions. However, the consumer API would be removed in 7.0, i.e., the system would stop publishing
AuditEvents and so, listeners of this event would no longer receive it and be notified of auditable actions.
source| Constructor and Description |
|---|
AuditEvent(Object source,
AuditEntry entry,
Set<String> channels,
Priority priority)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getChannels()
Deprecated.
|
AuditEntry |
getEntry()
Deprecated.
|
Priority |
getPriority()
Deprecated.
|
getDate, getUsergetSource, toString@Nonnull public AuditEntry getEntry()
@Nonnull public Set<String> getChannels()
Copyright © 2020 Atlassian. All rights reserved.