public class RDBMSAuditor extends AbstractAuditor implements AuditorMBean
| Constructor and Description |
|---|
RDBMSAuditor()
Constructor
|
RDBMSAuditor(RDBMSAuditEventRepository eventRepo,
RDBMSAuditContextRepository contextRepo)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the audit repository.
|
Integer |
getEventCount()
Gets the number of events in the event the auditing system.
|
CompositeData[] |
getEvents(Integer eventCount)
Gets the event data in the audit system.
|
CompositeData |
getLastEvent()
Gets the latest event to be written to the audit system.
|
void |
setContextRepo(RDBMSAuditContextRepository contextRepo) |
void |
setEventRepo(RDBMSAuditEventRepository eventRepo) |
void |
writeEvent(UUID eventId,
Calendar eventTimeStamp,
String principal,
AuditEvent event,
Collection<? extends AuditContext> contexts)
Writes the auditable event to the storage medium.
|
audit, auditpublic RDBMSAuditor()
public RDBMSAuditor(RDBMSAuditEventRepository eventRepo, RDBMSAuditContextRepository contextRepo)
public void setEventRepo(RDBMSAuditEventRepository eventRepo)
public void setContextRepo(RDBMSAuditContextRepository contextRepo)
public 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.public Integer getEventCount()
getEventCount in interface AuditorMBeanpublic CompositeData[] getEvents(Integer eventCount)
getEvents in interface AuditorMBeaneventCount - The number of events to retrieve. Events are retrieved from the most recent event.public CompositeData getLastEvent()
getLastEvent in interface AuditorMBeanpublic void clear()
clear in interface AuditorMBeanCopyright © 2010–2021 The Direct Project. All rights reserved.