public class RDBMSAuditor extends AbstractAuditor implements AuditorMBean
| Constructor and Description |
|---|
RDBMSAuditor()
Constructor
|
RDBMSAuditor(RDBMSDao dao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the audit repository.
|
java.lang.Integer |
getEventCount()
Gets the number of events in the event the auditing system.
|
javax.management.openmbean.CompositeData[] |
getEvents(java.lang.Integer eventCount)
Gets the event data in the audit system.
|
javax.management.openmbean.CompositeData |
getLastEvent()
Gets the latest event to be written to the audit system.
|
void |
setDao(RDBMSDao dao) |
void |
writeEvent(java.util.UUID eventId,
java.util.Calendar eventTimeStamp,
java.lang.String principal,
AuditEvent event,
java.util.Collection<? extends AuditContext> contexts)
Writes the auditable event to the storage medium.
|
audit, auditpublic RDBMSAuditor()
public RDBMSAuditor(RDBMSDao dao)
public void setDao(RDBMSDao dao)
public void writeEvent(java.util.UUID eventId,
java.util.Calendar eventTimeStamp,
java.lang.String principal,
AuditEvent event,
java.util.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 java.lang.Integer getEventCount()
getEventCount in interface AuditorMBeanpublic javax.management.openmbean.CompositeData[] getEvents(java.lang.Integer eventCount)
getEvents in interface AuditorMBeaneventCount - The number of events to retrieve. Events are retrieved from the most recent event.public javax.management.openmbean.CompositeData getLastEvent()
getLastEvent in interface AuditorMBeanpublic void clear()
clear in interface AuditorMBeanCopyright © 2010-2019 The Direct Project. All Rights Reserved.