@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Auditable
Annotated actions are audited by being added to the audit log, database and potentially other
consumers.
This annotation only affects types used as arguments in EventPublisher.publish(java.lang.Object). An example usage would be
creating a domain event which extends ApplicationEvent for a specific action and annotating the event with
Auditable to audit the action.
AuditEvent,
AuditEventConverter| Modifier and Type | Required Element and Description |
|---|---|
String |
category
The I18n key of the category for the audited event.
|
Class<? extends AuditEventConverter<?>> |
converter
A converter for converting the annotated event to an
AuditEvent. |
com.atlassian.audit.entity.CoverageLevel |
coverageLevel
The
coverage level for the audited event. |
public abstract String category
AuditCategory is a collection of system defined categories. It is recommended to use one of these
categories where possible.
AuditCategorypublic abstract Class<? extends AuditEventConverter<?>> converter
AuditEvent.public abstract com.atlassian.audit.entity.CoverageLevel coverageLevel
coverage level for the audited event.CoverageLevelpublic abstract String action
Copyright © 2022 Atlassian. All rights reserved.