Package org.nuxeo.audit.service
Interface AuditBackend
- All Superinterfaces:
AuditAdmin,AuditBackend<LogEntry>,AuditLogger<LogEntry>,AuditReader<LogEntry>,Logs<LogEntry>
- All Known Implementing Classes:
AbstractAuditBackend,MemAuditBackend,MongoDBAuditBackend,OpenSearchAuditBackend,SQLAuditBackend
- Since:
- 2025.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogEntries(List<LogEntry> entries) Adds given log entries.getEventsCount(String eventId) default longgetLatestLogId(String repositoryId, String... eventIds) Returns the latest log id matching events and repository or 0 when no match found.getLogEntriesFor(String uuid, String repositoryId) Returns the logs given a doc uuid and a repository id.getLogEntryByID(long id) Returns a given log entry given its id.booleanhasCapability(AuditBackend.Capability capability) Checks whether the backend has the capability.queryLogs(QueryBuilder builder) Returns the logs given a collection of predicates and a default sort.Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditAdmin
syncLogCreationEntriesMethods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
getApplicationStartedOrder, onApplicationStarted, onApplicationStopped, restoreMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
await, buildEntryFromEvent, getAuditableEventNames, newExtendedInfo, newLogEntryMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLogEntriesAfter, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPage
-
Method Details
-
addLogEntries
Adds given log entries.- Specified by:
addLogEntriesin interfaceAuditLogger<LogEntry>- Parameters:
entries- the list of log entries.
-
getEventsCount
- Specified by:
getEventsCountin interfaceAuditAdmin
-
getLogEntryByID
Returns a given log entry given its id.- Specified by:
getLogEntryByIDin interfaceAuditReader<LogEntry>- Parameters:
id- the log entry identifier- Returns:
- a LogEntry instance
-
queryLogs
Returns the logs given a collection of predicates and a default sort.- Specified by:
queryLogsin interfaceAuditReader<LogEntry>- Parameters:
builder- the query builder to fetch log entries- Returns:
- a list of log entries
- Since:
- 9.3
-
getLogEntriesFor
Returns the logs given a doc uuid and a repository id.- Specified by:
getLogEntriesForin interfaceAuditReader<LogEntry>- Parameters:
uuid- the document uuidrepositoryId- the repository id- Returns:
- a list of log entries
- Since:
- 8.4
-
getLatestLogId
Returns the latest log id matching events and repository or 0 when no match found.- Specified by:
getLatestLogIdin interfaceAuditReader<LogEntry>- Since:
- 9.3
-
hasCapability
Checks whether the backend has the capability.
-