Package fr.becpg.repo.audit.plugin
Interface DatabaseAuditPlugin
- All Superinterfaces:
AuditPlugin
- All Known Subinterfaces:
ExtraQueryDatabaseAuditPlugin
- All Known Implementing Classes:
ActivityAuditPlugin,BatchAuditPlugin,ExportSearchAuditPlugin,FormulationAuditPlugin,ReportAuditPlugin
DatabaseAuditPlugin interface.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
Fields inherited from interface fr.becpg.repo.audit.plugin.AuditPlugin
COMPLETED_AT, DURATION, ID, IS_COMPLETED, STARTED_AT -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRecordAuditEntry(Map<String, Serializable> auditValues) afterRecordAuditEntry.voidbeforeRecordAuditEntry(Map<String, Serializable> auditValues) beforeRecordAuditEntry.getAuditApplicationId.getAuditApplicationPath.getKeyMap.default booleanWhether the entry has to be recorded when the audited operation starts and completed when it ends, instead of being recorded once at the end.Methods inherited from interface fr.becpg.repo.audit.plugin.AuditPlugin
applyTo, getAuditedClass, isDatabaseEnable, isStopWatchEnable, isTracerEnable
-
Method Details
-
beforeRecordAuditEntry
beforeRecordAuditEntry.
- Parameters:
auditValues- aMapobject
-
afterRecordAuditEntry
afterRecordAuditEntry.
- Parameters:
auditValues- aMapobject
-
getAuditApplicationId
String getAuditApplicationId()getAuditApplicationId.
- Returns:
- a
Stringobject
-
getAuditApplicationPath
String getAuditApplicationPath()getAuditApplicationPath.
- Returns:
- a
Stringobject
-
getKeyMap
Map<String,AuditDataType> getKeyMap()getKeyMap.
- Returns:
- a
Mapobject
-
isRecordOnStart
default boolean isRecordOnStart()Whether the entry has to be recorded when the audited operation starts and completed when it ends, instead of being recorded once at the end. An operation heavy enough to bring the server down leaves no trace at all when its entry is only written on completion. Recording it upfront keeps the author, the volume and the start time available even when the operation never returns: such an entry simply stays flagged as not completed.- Returns:
- a boolean
-