public interface Auditor
Auditor implementations should be thread safe and not block for relatively long periods of time to commit audit events to the underlying storage medium.
| Modifier and Type | Method and Description |
|---|---|
void |
audit(String principal,
AuditEvent event)
Writes an
AuditEvent to the audit sub-system. |
void |
audit(String principal,
AuditEvent event,
Collection<? extends AuditContext> contexts)
Writes an
AuditEvent to the audit sub-system with addition contextual data. |
void audit(String principal, AuditEvent event)
AuditEvent to the audit sub-system.principal - An identifier of the entity that performed the event. This may be an actual user performing a workflow or a system entity
performing back office processing. Cannot be null or empty.event - The event that was performed and that will be audited. Cannot be null.void audit(String principal, AuditEvent event, Collection<? extends AuditContext> contexts)
AuditEvent to the audit sub-system with addition contextual data.principal - An identifier of the entity that performed the event. This may be an actual user performing a workflow or a system entity
performing back office processing. Cannot be null or empty.event - The event that was performed and that will be audited. Cannot be nullcontexts - A collection of contexts that provide additional information for the event.Copyright © 2010–2021 The Direct Project. All rights reserved.