public class NoOpAuditor extends AbstractAuditor
Auditor implementation that effectively does nothing. Generally used for unit tests
where auditing is not required.| Constructor and Description |
|---|
NoOpAuditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
writeEvent(UUID eventId,
Calendar eventTimeStamp,
String principal,
AuditEvent event,
Collection<? extends AuditContext> contexts)
Writes the auditable event to the storage medium.
|
audit, auditpublic void writeEvent(UUID eventId, Calendar eventTimeStamp, String principal, AuditEvent event, Collection<? extends AuditContext> contexts)
writeEvent in class AbstractAuditoreventId - An arbitrary unique ID for the event.eventTimeStamp - The date/time that the event record was created.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.