public class MultiProviderAuditor extends java.lang.Object implements Auditor
Auditor implementation that wraps multiple auditors. Each call to audit will result (barring exceptions in the delegated
auditor) in the event being committed to each auditor.| Constructor and Description |
|---|
MultiProviderAuditor(java.util.Collection<? extends Auditor> auditors)
Creates an auditor with multiple internal auditor instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
audit(java.lang.String principal,
AuditEvent event)
Writes an
AuditEvent to the audit sub-system. |
void |
audit(java.lang.String principal,
AuditEvent event,
java.util.Collection<? extends AuditContext> contexts)
Writes an
AuditEvent to the audit sub-system with addition contextual data. |
public MultiProviderAuditor(java.util.Collection<? extends Auditor> auditors)
auditors - The internal auditors that will be used to audit events.public void audit(java.lang.String principal,
AuditEvent event)
AuditEvent to the audit sub-system.audit in interface Auditorprincipal - 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.public void audit(java.lang.String principal,
AuditEvent event,
java.util.Collection<? extends AuditContext> contexts)
AuditEvent to the audit sub-system with addition contextual data.audit in interface Auditorprincipal - 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-2019 The Direct Project. All Rights Reserved.