Package org.saidone.service.audit
Class AuditEntry
java.lang.Object
org.saidone.service.audit.AuditEntry
Entity representing a single audit entry stored in MongoDB.
An entry records the timestamp of an audited event along with a small
metadata map describing the request or response. The entry type and metadata keys are kept short using the constants defined in
AuditEntryKeys
so that the persisted documents remain compact.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAuditEntry
with its timestamp set to the current instant. -
Method Summary
-
Constructor Details
-
AuditEntry
public AuditEntry()Creates a newAuditEntry
with its timestamp set to the current instant. Other properties can be populated later before the entry is persisted viaAuditService
.
-