Package fr.becpg.repo.audit.service
Interface DatabaseAuditService
- All Known Implementing Classes:
DatabaseAuditServiceImpl
public interface DatabaseAuditService
DatabaseAuditService interface.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteAuditEntry(DatabaseAuditPlugin plugin, String filterKey, String filterValue) Complete the entry left open by an operation recorded on start, the one matching the given filter.voiddeleteAuditEntries(DatabaseAuditPlugin plugin, Long fromId, Long toId) deleteAuditEntries.List<org.json.JSONObject> listAuditEntries(DatabaseAuditPlugin plugin, AuditQuery auditFilter) listAuditEntries.listAuditPage(DatabaseAuditPlugin plugin, AuditQuery auditFilter) listAuditPage.intrecordAuditEntry(DatabaseAuditPlugin auditPlugin, Map<String, Serializable> auditValues, boolean deleteOldEntry) recordAuditEntry.
-
Method Details
-
listAuditEntries
listAuditEntries.
- Parameters:
plugin- aDatabaseAuditPluginobjectauditFilter- aAuditQueryobject- Returns:
- a
Listobject
-
listAuditPage
listAuditPage.
Read one page of audit entries by keyset paging, so that the database only ever walks through a bounded window of entry identifiers.- Parameters:
plugin- aDatabaseAuditPluginobjectauditFilter- aAuditQueryobject- Returns:
- a
AuditPageobject
-
recordAuditEntry
int recordAuditEntry(DatabaseAuditPlugin auditPlugin, Map<String, Serializable> auditValues, boolean deleteOldEntry) recordAuditEntry.
- Parameters:
auditPlugin- aDatabaseAuditPluginobjectauditValues- aMapobjectdeleteOldEntry- a boolean- Returns:
- a int
-
completeAuditEntry
Complete the entry left open by an operation recorded on start, the one matching the given filter.- Parameters:
plugin- aDatabaseAuditPluginobjectfilterKey- the audit key correlating the entry to the completed operationfilterValue- the value of that key
-
deleteAuditEntries
deleteAuditEntries.
- Parameters:
plugin- aDatabaseAuditPluginobjectfromId- aLongobjecttoId- aLongobject
-